From 0e9c2e428fb61953fd8f152125897646fe6fd337 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 摹曛, 21 12月 2023 16:44:30 +0800
Subject: [PATCH] add mica mica alt acrylic

---
 examples/mainwindow/mainwindow.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/examples/mainwindow/mainwindow.h b/examples/mainwindow/mainwindow.h
index cfed3a6..5511105 100644
--- a/examples/mainwindow/mainwindow.h
+++ b/examples/mainwindow/mainwindow.h
@@ -9,11 +9,23 @@
     explicit MainWindow(QWidget *parent = nullptr);
     ~MainWindow() override;
 
+    enum Theme {
+        Dark,
+        Light,
+    };
+    Q_ENUM(Theme)
+
+Q_SIGNALS:
+    void themeChanged();
+
 protected:
     bool event(QEvent *event) override;
 
 private:
     void installWindowAgent();
+    void loadStyleSheet(Theme theme);
+
+    Theme currentTheme{};
 };
 
 #endif // MAINWINDOW_H

--
Gitblit v1.9.1