From e828e012eaf84e1da8b67b7b37ff8d2babfe4885 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Mon, 19 Jun 2023 01:54:47 +0200
Subject: [PATCH] Make theme visible to qml

---
 src/ui/Theme.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ui/Theme.h b/src/ui/Theme.h
index 0293bc288..d581ffe47 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)
-- 
GitLab