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