From c837319767bb609c6ec806336e49a347c77b11d3 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周五, 22 12月 2023 21:30:53 +0800
Subject: [PATCH] Add non-system-border option on Windows

---
 src/core/style/styleagent_win.cpp |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/core/style/styleagent_win.cpp b/src/core/style/styleagent_win.cpp
index 663b632..bee647a 100644
--- a/src/core/style/styleagent_win.cpp
+++ b/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();
     }

--
Gitblit v1.9.1