This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
fanny-app/headers/appstyle.h

33 lines
538 B
C
Raw Normal View History

2019-03-10 12:54:35 +01:00
#ifndef APPSTYLE_H
#define APPSTYLE_H
#include <QObject>
#include <QVariant>
#include "appsettings.h"
class AppStyle : public QObject
{
Q_OBJECT
Q_PROPERTY(QVariant style READ getStyle NOTIFY styleChanged)
public:
explicit AppStyle(QObject *parent = nullptr);
private:
QVariant lightTheme;
QVariant darkTheme;
QVariant * currentTheme;
signals:
void styleChanged();
public slots:
QVariant getStyle();
Q_INVOKABLE void changeTheme();
Q_INVOKABLE void refreshTheme();
2019-03-10 12:54:35 +01:00
};
#endif // APPSTYLE_H