StyleSheetLoader: Cleanup code and add workaround for macOS dark theme

Fixes #778
This commit is contained in:
Jonas Kvinge
2021-09-28 17:24:26 +02:00
parent 44a3bad278
commit 2b445fb563
3 changed files with 42 additions and 64 deletions

View File

@@ -51,10 +51,10 @@ void Appearance::LoadUserTheme() {
bool use_a_custom_color_set = s.value(AppearanceSettingsPage::kUseCustomColorSet).toBool();
s.endGroup();
if (!use_a_custom_color_set) return;
ChangeForegroundColor(foreground_color_);
ChangeBackgroundColor(background_color_);
if (use_a_custom_color_set) {
ChangeForegroundColor(foreground_color_);
ChangeBackgroundColor(background_color_);
}
}