From 2f59395b8183b1de62bd0ba83685298d9a7e3271 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 21 12æ 2023 19:56:42 +0800 Subject: [PATCH] minor tweaks --- src/stylesupport/styleagent.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/stylesupport/styleagent.h b/src/stylesupport/styleagent.h index 8474820..94afa33 100644 --- a/src/stylesupport/styleagent.h +++ b/src/stylesupport/styleagent.h @@ -19,12 +19,22 @@ explicit StyleAgent(QObject *parent = nullptr); ~StyleAgent() override; + enum SystemTheme { + Unknown, + Light, + Dark, + HighContrast, + }; + Q_ENUM(SystemTheme) + public: + SystemTheme systemTheme() const; + QVariant windowAttribute(QWindow *window, const QString &key) const; bool setWindowAttribute(QWindow *window, const QString &key, const QVariant &attribute); Q_SIGNALS: - void systemThemeChanged(); + void systemThemeChanged(); // Do we need wallpaper change notify? protected: StyleAgent(StyleAgentPrivate &d, QObject *parent = nullptr); -- Gitblit v1.9.1