Zhao Yuhang
2023-12-23 7d747f3bb139d2c01aee61b809d0929e8e908a2d
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();
    }