Make theme visible to qml

This commit is contained in:
Nicolas Werner 2023-06-19 01:54:47 +02:00
parent 3cd7898a0d
commit e828e012ea
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -6,10 +6,13 @@
#include <QColor> #include <QColor>
#include <QPalette> #include <QPalette>
#include <QQmlEngine>
class Theme final : public QPalette class Theme final : public QPalette
{ {
Q_GADGET Q_GADGET
QML_ANONYMOUS
Q_PROPERTY(QColor sidebarBackground READ sidebarBackground CONSTANT) Q_PROPERTY(QColor sidebarBackground READ sidebarBackground CONSTANT)
Q_PROPERTY(QColor alternateButton READ alternateButton CONSTANT) Q_PROPERTY(QColor alternateButton READ alternateButton CONSTANT)
Q_PROPERTY(QColor separator READ separator CONSTANT) Q_PROPERTY(QColor separator READ separator CONSTANT)