From 2aa1e476ca140d7dd3449df5823e9d731696da9f Mon Sep 17 00:00:00 2001 From: Starryi Date: Fri, 27 Aug 2021 10:49:28 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-58211=20=E3=80=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E3=80=91=E5=8D=95=E5=85=83=E6=A0=BC=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E8=83=8C=E6=99=AF=E6=B8=90=E5=8F=98=E8=89=B2?= =?UTF-8?q?=EF=BC=8C=E5=8F=B3=E8=BE=B9=E6=8C=89=E9=92=AE=E4=B8=8D=E5=A5=BD?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 渐变色控件的实现问题,不能自适应宽度,直接 修改那里尺寸影响太大,先将主题编辑面板的宽度 变大些 【改动思路】 同上 --- .../fr/design/mainframe/theme/TemplateThemeProfilePane.java | 4 ++-- .../mainframe/theme/dialog/TemplateThemeProfileDialog.java | 2 +- .../fr/design/mainframe/theme/edit/CellStyleListEditPane.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeProfilePane.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeProfilePane.java index 79053f357..cedc63f3f 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeProfilePane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeProfilePane.java @@ -63,7 +63,7 @@ public abstract class TemplateThemeProfilePane extends public static final int PREVIEW_PANE_WIDTH = LEFT_TITLE_PANE_WIDTH - 10; public static final int PREVIEW_PANE_HEIGHT = LEFT_TITLE_PANE_HEIGHT - TITLE_BORDER_FONT - 16; - public static final int RIGHT_PANE_WIDTH = 352; + public static final int RIGHT_PANE_WIDTH = 362; public static final int RIGHT_PANE_HEIGHT = LEFT_TITLE_PANE_HEIGHT; public static final int COLOR_SCHEME_TITLE_PANE_WIDTH = 298; public static final int COLOR_SCHEME_TITLE_PANE_HEIGHT = 174 + TITLE_BORDER_FONT / 2; @@ -275,7 +275,7 @@ public abstract class TemplateThemeProfilePane extends return container; } public void addCustomEditorPane(String title, JComponent component) { - component.setPreferredSize(new Dimension(350, 260)); + component.setPreferredSize(new Dimension(360, 260)); uiTabbedPane.addTab(title, component); } protected JPanel createCellStyleSettingPane() { diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/dialog/TemplateThemeProfileDialog.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/dialog/TemplateThemeProfileDialog.java index 84853943b..f0eeb2f48 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/dialog/TemplateThemeProfileDialog.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/dialog/TemplateThemeProfileDialog.java @@ -36,7 +36,7 @@ public class TemplateThemeProfileDialog extends Templat public static TemplateThemeProfilePane currentVisibleProfilePane; - public static final int CONTENT_WIDTH = 900; + public static final int CONTENT_WIDTH = 910; public static final int CONTENT_HEIGHT = 570; public TemplateThemeProfileDialog(Window parent, TemplateThemeProfilePane profilePane) { diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/CellStyleListEditPane.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/CellStyleListEditPane.java index ec855962a..e0e42b8b4 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/CellStyleListEditPane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/CellStyleListEditPane.java @@ -139,7 +139,7 @@ public class CellStyleListEditPane extends JListControlPane { initCardPane(); JPanel leftPane = getLeftPane(); leftPane.setPreferredSize(new Dimension(90, 0)); - cardPane.setPreferredSize(new Dimension(260, 0)); + cardPane.setPreferredSize(new Dimension(270, 0)); JPanel mainSplitPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); mainSplitPane.add(leftPane, BorderLayout.WEST); mainSplitPane.add(cardPane, BorderLayout.CENTER);