Browse Source

Sync all options exposed through the LafManager.

pull/198/head
weisj 4 years ago
parent
commit
dff9fb236d
  1. 4
      core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java

4
core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java

@ -389,6 +389,10 @@ public class ThemeSettings implements ThemePreferenceListener {
* Updates all values according to the current settings.
*/
public void refresh() {
Theme theme = LafManager.getTheme();
currentConfiguration.setTheme(theme);
currentConfiguration.setFontSizeRule(theme.getFontSizeRule());
currentConfiguration.setAccentColorRule(theme.getAccentColorRule());
currentConfiguration.setSystemPreferencesEnabled(LafManager.isPreferenceChangeReportingEnabled());
updateSettingsPanel();
}

Loading…
Cancel
Save