From 327055934009dc416be6234db8e4d26fab81fb80 Mon Sep 17 00:00:00 2001
From: SineStriker <55847490+SineStriker@users.noreply.github.com>
Date: 摹曛, 21 12月 2023 23:21:28 +0800
Subject: [PATCH] Merge pull request #8 from stdware/stylesupport

---
 src/stylesupport/styleagent_mac.mm |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/stylesupport/styleagent_mac.mm b/src/stylesupport/styleagent_mac.mm
new file mode 100644
index 0000000..64cdf16
--- /dev/null
+++ b/src/stylesupport/styleagent_mac.mm
@@ -0,0 +1,29 @@
+#include "styleagent_p.h"
+
+#include <QtCore/QVariant>
+
+namespace QWK {
+
+    void StyleAgentPrivate::setupSystemThemeHook() {
+    }
+
+    void StyleAgentPrivate::removeSystemThemeHook() {
+    }
+
+    bool StyleAgentPrivate::updateWindowAttribute(QWindow *window, const QString &key,
+                                                  const QVariant &attribute,
+                                                  const QVariant &oldAttribute) {
+        Q_UNUSED(oldAttribute)
+
+        if (key == QStringLiteral("no-system-buttons")) {
+            if (attribute.toBool()) {
+                // TODO: set off
+            } else {
+                // TODO: set on
+            }
+            return true;
+        }
+        return false;
+    }
+
+}
\ No newline at end of file

--
Gitblit v1.9.1