return selectedTextColorAndStyle;
}
private ColorAndStyle getNormalTextColorAndStyle() {
if (normalTextColorAndStyle == null) {
EditorThemeProperties props = EditorThemePropertiesManager.getCurrentEditorThemeProperties();
normalTextColorAndStyle = new ColorAndStyle("Normal Text Color", props.getNormalTextColor(),
props.getNormalTextStyle());
normalTextColorAndStyle.addListener(new ColorAndStyleAdapter() {
@Override
public void colorChanged(Color newColor) {
EditorThemeProperties themeProps = EditorThemePropertiesManager.getCurrentEditorThemeProperties();
themeProps.setNormalTextColor(newColor);
updateSaveButton();
}
@Override
public void styleChanged(FontStyle newStyle) {
EditorThemeProperties themeProps = EditorThemePropertiesManager.getCurrentEditorThemeProperties();
themeProps.setNormalTextStyle(newStyle);
updateSaveButton();
// Make sure to update the font style combo box
ComboBoxUtil.setSelected(getFontStyleComboBox(), newStyle);