From e828e012eaf84e1da8b67b7b37ff8d2babfe4885 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 19 Jun 2023 01:54:47 +0200 Subject: Make theme visible to qml --- src/ui/Theme.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 #include +#include 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) -- cgit 1.4.1