fix(ui): reapply web dark mode on scheme change

This commit is contained in:
Oleg Shparber
2026-06-04 20:56:06 +03:00
parent 56ab1fb9e9
commit c4492a3de3
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -53,6 +53,7 @@ Settings::Settings(QObject *parent)
connect(qApp->styleHints(), &QStyleHints::colorSchemeChanged, this, [this]() {
if (contentAppearance == ContentAppearance::Automatic) {
applyColorScheme();
emit updated();
}
});
#endif
+3 -2
View File
@@ -327,11 +327,12 @@ void SettingsDialog::saveSettings()
settings->isIgnoreSslErrorsEnabled = ui->ignoreSslErrorsCheckBox->isChecked();
settings->save();
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
// Must precede save(), so that updated() is emitted with the effective scheme.
settings->applyColorScheme();
#endif
settings->save();
}
} // namespace Zeal::WidgetUi