Browse Source

REPORT-64262 【视觉验收】主题编辑的边框配置完善

【问题原因】
单元格样式预览区域四周要留有外边距

【改动思路】
同上
feature/x
Starryi 3 years ago
parent
commit
977e23dbc5
  1. 6
      designer-base/src/main/java/com/fr/design/mainframe/theme/edit/cell/CellStyleEditPane.java
  2. 13
      designer-realize/src/main/java/com/fr/design/report/ReportStylePane.java

6
designer-base/src/main/java/com/fr/design/mainframe/theme/edit/cell/CellStyleEditPane.java

@ -117,8 +117,10 @@ public class CellStyleEditPane extends MultiTabPane<ThemedCellStyle> {
JPanel previewPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
previewArea = new CellRectangleStylePreviewPane(true);
previewArea.setPreferredSize(new Dimension(223, 60));
previewPane.setBorder(BorderUtils.createTitleBorder(i18nText("Fine-Design_Basic_Preview")));
previewArea.setPreferredSize(new Dimension(215, 52));
previewPane.setBorder(BorderFactory.createCompoundBorder(
BorderUtils.createTitleBorder(i18nText("Fine-Design_Basic_Preview")),
BorderFactory.createEmptyBorder(4, 4, 4, 4)));
previewPane.add(previewArea, BorderLayout.CENTER);
this.add(previewPane, BorderLayout.NORTH);

13
designer-realize/src/main/java/com/fr/design/report/ReportStylePane.java

@ -118,13 +118,12 @@ public class ReportStylePane extends BasicPane {
private JPanel createPreviewPane() {
JPanel container = FRGUIPaneFactory.createBorderLayout_S_Pane();
container.setBorder(createTitleBorder(Toolkit.i18nText("Fine-Design_Basic_Preview")));
container.setPreferredSize(new Dimension(container.getPreferredSize().width, 60));
JPanel content = FRGUIPaneFactory.createBorderLayout_S_Pane();
content.setBorder(BorderFactory.createEmptyBorder(4, 4, 2, 2));
previewArea.setPreferredSize(new Dimension(container.getPreferredSize().width, 42));
content.add(previewArea, BorderLayout.NORTH);
container.add(content, BorderLayout.NORTH);
container.setBorder(BorderFactory.createCompoundBorder(
createTitleBorder(Toolkit.i18nText("Fine-Design_Basic_Preview")),
BorderFactory.createEmptyBorder(4, 4, 4, 4)
));
previewArea.setPreferredSize(new Dimension(container.getPreferredSize().width, 40));
container.add(previewArea, BorderLayout.CENTER);
return container;
}

Loading…
Cancel
Save