#ifndef APPTHEME_H #define APPTHEME_H #include #include #include "appsettings.h" class AppTheme : public QObject { Q_OBJECT Q_PROPERTY(QVariant style READ getStyle NOTIFY styleChanged) public: explicit AppTheme(QObject *parent = nullptr); private: QVariant lightTheme; QVariant darkTheme; QVariant * currentTheme; signals: void styleChanged(); public slots: QVariant getStyle(); Q_INVOKABLE void changeTheme(); }; #endif // APPTHEME_H