// Load theme properties
File filepath = EditorThemePropertiesManager.getFilepath(themeName);
EditorThemePropertiesManager.loadEditorThemeProperties(filepath);
EditorThemeProperties themeProps = EditorThemePropertiesManager.getCurrentEditorThemeProperties();
ComboBoxUtil.setSelected(getFontNameComboBox(), themeProps.getFontName());
ComboBoxUtil.setSelected(getFontSizeComboBox(), "" + themeProps.getFontSize());
getBackgroundColorAndStyle().setSelectedColor(themeProps.getBackgroundColor());
getLineNumberBackgroundColorAndStyle().setSelectedColor(themeProps.getLineNumberBackgroundColor());
getLineNumberTextColorAndStyle().setSelectedColor(themeProps.getLineNumberTextColor());
getHighlightedLineColorAndStyle().setSelectedColor(themeProps.getHighlightedLineColor());
getSelectionColorAndStyle().setSelectedColor(themeProps.getSelectionColor());
getSelectedTextColorAndStyle().setSelectedColor(themeProps.getSelectedTextColor());
getNormalTextColorAndStyle().setSelectedColor(themeProps.getNormalTextColor());
getNormalTextColorAndStyle().setSelectedStyle(themeProps.getNormalTextStyle());
getCommentTextColorAndStyle().setSelectedColor(themeProps.getCommentTextColor());
getCommentTextColorAndStyle().setSelectedStyle(themeProps.getCommentTextStyle());
getQuotedTextColorAndStyle().setSelectedColor(themeProps.getQuotedTextColor());
getQuotedTextColorAndStyle().setSelectedStyle(themeProps.getQuotedTextStyle());
getKeywordTextColorAndStyle().setSelectedColor(themeProps.getKeywordTextColor());
getKeywordTextColorAndStyle().setSelectedStyle(themeProps.getKeywordTextStyle());
getLiteralTextColorAndStyle().setSelectedColor(themeProps.getLiteralTextColor());
getLiteralTextColorAndStyle().setSelectedStyle(themeProps.getLiteralTextStyle());
getAnnotationTextColorAndStyle().setSelectedColor(themeProps.getAnnotationTextColor());
getAnnotationTextColorAndStyle().setSelectedStyle(themeProps.getAnnotationTextStyle());
updateSaveButton();
}
});
}