Browse Source

去掉背景色配置面板判空,用不着

release/11.0
obo 1 year ago
parent
commit
f18183b7d9
  1. 8
      designer-form/src/main/java/com/fr/design/widgettheme/common/EditorSettingPane.java

8
designer-form/src/main/java/com/fr/design/widgettheme/common/EditorSettingPane.java

@ -81,9 +81,7 @@ public class EditorSettingPane<T extends Widget> extends BaseStyleSettingPane<T>
} }
lineComboBox.setSelectedLineStyle(editorTheme.getBorderStyle().getLineType()); lineComboBox.setSelectedLineStyle(editorTheme.getBorderStyle().getLineType());
borderRadiusSpinner.setValue(editorTheme.getBorderStyle().getRadius()); borderRadiusSpinner.setValue(editorTheme.getBorderStyle().getRadius());
if(selectBgColorBox != null) { selectBgColorBox.setSelectObject(editorTheme.getSelectBoxBgColor());
selectBgColorBox.setSelectObject(editorTheme.getSelectBoxBgColor());
}
assignFontSizePane(editorTheme); assignFontSizePane(editorTheme);
} }
switchCard(); switchCard();
@ -110,9 +108,7 @@ public class EditorSettingPane<T extends Widget> extends BaseStyleSettingPane<T>
protected void updateEditorStyleBean(EditorTheme editorTheme) { protected void updateEditorStyleBean(EditorTheme editorTheme) {
editorTheme.setThemeColor(colorSelectBox.getSelectObject()); editorTheme.setThemeColor(colorSelectBox.getSelectObject());
if(selectBgColorBox != null) { editorTheme.setSelectBoxBgColor(selectBgColorBox.getSelectObject());
editorTheme.setSelectBoxBgColor(selectBgColorBox.getSelectObject());
}
editorTheme.setStyleType(style1.isSelected() ? WidgetThemeDisplayConstants.STYLE_1 : WidgetThemeDisplayConstants.STYLE_2); editorTheme.setStyleType(style1.isSelected() ? WidgetThemeDisplayConstants.STYLE_1 : WidgetThemeDisplayConstants.STYLE_2);
editorTheme.setBorderStyle(new BorderStyle((int) borderRadiusSpinner.getValue(), lineComboBox.getSelectedLineStyle())); editorTheme.setBorderStyle(new BorderStyle((int) borderRadiusSpinner.getValue(), lineComboBox.getSelectedLineStyle()));
assignFontSizeStyle(editorTheme); assignFontSizeStyle(editorTheme);

Loading…
Cancel
Save