Sine Striker
2023-12-22 555a8181fff96271812476f2169f2713d7734f4b
src/core/style/styleagent_win.cpp
@@ -85,7 +85,7 @@
    SystemSettingEventFilter *SystemSettingEventFilter::instance = nullptr;
    void StyleAgentPrivate::init() {
    void StyleAgentPrivate::setupSystemThemeHook() {
        if (isHighContrastModeEnabled()) {
            systemTheme = StyleAgent::HighContrast;
        } else if (isDarkThemeActive()) {
@@ -93,9 +93,7 @@
        } else {
            systemTheme = StyleAgent::Light;
        }
    }
    void StyleAgentPrivate::setupSystemThemeHook() {
        g_styleAgentSet->insert(this);
        SystemSettingEventFilter::install();
    }