|
|
|
@ -81,6 +81,9 @@ public class EditorSettingPane<T extends Widget> extends BaseStyleSettingPane<T>
|
|
|
|
|
} |
|
|
|
|
lineComboBox.setSelectedLineStyle(editorTheme.getBorderStyle().getLineType()); |
|
|
|
|
borderRadiusSpinner.setValue(editorTheme.getBorderStyle().getRadius()); |
|
|
|
|
if(selectBgColorBox != null) { |
|
|
|
|
selectBgColorBox.setSelectObject(editorTheme.getSelectBoxBgColor()); |
|
|
|
|
} |
|
|
|
|
assignFontSizePane(editorTheme); |
|
|
|
|
} |
|
|
|
|
switchCard(); |
|
|
|
@ -94,23 +97,26 @@ public class EditorSettingPane<T extends Widget> extends BaseStyleSettingPane<T>
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void updateBean(T t) { |
|
|
|
|
|
|
|
|
|
EditorTheme widgetTheme = initEditorTheme(t); |
|
|
|
|
t.setWidgetTheme(updateEditorBean(widgetTheme)); |
|
|
|
|
updateEditorBean(widgetTheme); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected EditorTheme updateEditorBean(EditorTheme editorTheme) { |
|
|
|
|
protected void updateEditorBean(EditorTheme editorTheme) { |
|
|
|
|
int selectIndex = styleSettingHead.getSelectedIndex(); |
|
|
|
|
editorTheme.setFollowTheme(selectIndex == 0); |
|
|
|
|
return updateEditorStyleBean(editorTheme); |
|
|
|
|
updateEditorStyleBean(editorTheme); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected EditorTheme updateEditorStyleBean(EditorTheme editorTheme) { |
|
|
|
|
protected void updateEditorStyleBean(EditorTheme editorTheme) { |
|
|
|
|
editorTheme.setThemeColor(colorSelectBox.getSelectObject()); |
|
|
|
|
if(selectBgColorBox != null) { |
|
|
|
|
editorTheme.setSelectBoxBgColor(selectBgColorBox.getSelectObject()); |
|
|
|
|
} |
|
|
|
|
editorTheme.setStyleType(style1.isSelected() ? WidgetThemeDisplayConstants.STYLE_1 : WidgetThemeDisplayConstants.STYLE_2); |
|
|
|
|
editorTheme.setBorderStyle(new BorderStyle((int) borderRadiusSpinner.getValue(), lineComboBox.getSelectedLineStyle())); |
|
|
|
|
assignFontSizeStyle(editorTheme); |
|
|
|
|
switchCard(); |
|
|
|
|
return editorTheme; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|