diff --git a/designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditPane.java b/designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditPane.java index 9d568c2be6..92300b00b9 100644 --- a/designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditPane.java +++ b/designer-base/src/main/java/com/fr/widgettheme/theme/edit/widget/WidgetStyleEditPane.java @@ -77,7 +77,7 @@ public class WidgetStyleEditPane extends BasicBeanPane< } private void initCommonStyleEditor() { - colorSelectBox = new NewColorSelectBox(140, true); + colorSelectBox = new NewColorSelectBox(WidgetThemeDisplayConstants.THEME_WIDGET_COMPONENT_WIDTH, true); colorSelectBox.setSelectObject(WidgetThemeDisplayConstants.DEFAULT_THEME_COLOR); initLineBox(); borderRadiusSpinner = new UISpinner(0, Integer.MAX_VALUE, 1); @@ -86,7 +86,7 @@ public class WidgetStyleEditPane extends BasicBeanPane< } protected void initTextStylePane() { - textStylePane = new WidgetTextStylePane(FRFontPane.getFontSizes(), 140); + textStylePane = new WidgetTextStylePane(FRFontPane.getFontSizes(), WidgetThemeDisplayConstants.THEME_WIDGET_COMPONENT_WIDTH); } /** diff --git a/designer-form/src/main/java/com/fr/design/widgettheme/BaseStyleSettingPane.java b/designer-form/src/main/java/com/fr/design/widgettheme/BaseStyleSettingPane.java index 0acee5550e..9e1e1eb4cf 100644 --- a/designer-form/src/main/java/com/fr/design/widgettheme/BaseStyleSettingPane.java +++ b/designer-form/src/main/java/com/fr/design/widgettheme/BaseStyleSettingPane.java @@ -270,14 +270,12 @@ public abstract class BaseStyleSettingPane extends BasicBeanPa borderRadiusSpinner.setValue(BorderStyle.DEFAULT_BORDER_RADIUS); } if (textStylePane != null) { - //后面看看怎么设置默认背景色 textStylePane.setTextStyle(new TextStyle()); } if (frFontPane != null) { frFontPane.populateBean(FRFont.getInstance()); } if (selectBgColorBox != null) { - //后面看看怎么设置默认背景色 selectBgColorBox.setSelectObject(null); } }