dorian
721da8c178
- fixed bug that made a 'no connection' error appear, even if there was a connection to the server
32 lines
538 B
C++
32 lines
538 B
C++
#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();
|
|
};
|
|
|
|
#endif // APPSTYLE_H
|