From dff9fb236d97fdd27891672ee0dcd9dc37fcdc4c Mon Sep 17 00:00:00 2001 From: weisj Date: Sat, 11 Jul 2020 17:13:05 +0200 Subject: [PATCH] Sync all options exposed through the LafManager. --- .../java/com/github/weisj/darklaf/settings/ThemeSettings.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java index 4a014e1d..b3c20f07 100644 --- a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java +++ b/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(); }