diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-19 01:54:47 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-19 01:54:47 +0200 |
commit | e828e012eaf84e1da8b67b7b37ff8d2babfe4885 (patch) | |
tree | af08fa3ad750f9380ce58c96e529aaa6ce2c562a /src/ui/Theme.h | |
parent | Fix dialog paths (diff) | |
download | nheko-e828e012eaf84e1da8b67b7b37ff8d2babfe4885.tar.xz |
Make theme visible to qml
Diffstat (limited to '')
-rw-r--r-- | src/ui/Theme.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/Theme.h b/src/ui/Theme.h index 0293bc28..d581ffe4 100644 --- a/src/ui/Theme.h +++ b/src/ui/Theme.h @@ -6,10 +6,13 @@ #include <QColor> #include <QPalette> +#include <QQmlEngine> class Theme final : public QPalette { Q_GADGET + QML_ANONYMOUS + Q_PROPERTY(QColor sidebarBackground READ sidebarBackground CONSTANT) Q_PROPERTY(QColor alternateButton READ alternateButton CONSTANT) Q_PROPERTY(QColor separator READ separator CONSTANT) |