FluentUI/src/FluTheme.h

25 lines
511 B
C
Raw Normal View History

2023-03-06 14:22:13 +08:00
#ifndef FLUTHEME_H
#define FLUTHEME_H
#include <QObject>
#include "FluColorSet.h"
#include "stdafx.h"
class FluTheme : public QObject
{
Q_OBJECT
Q_PROPERTY_AUTO(FluColorSet*,primaryColor)
2023-03-09 11:50:40 +08:00
Q_PROPERTY_AUTO(bool,isFrameless);
2023-03-06 14:22:13 +08:00
Q_PROPERTY_AUTO(bool,isDark);
2023-03-11 21:15:36 +08:00
Q_PROPERTY_AUTO(bool,isNativeText);
2023-03-09 23:11:59 +08:00
Q_PROPERTY_AUTO(int,textSize);
2023-03-06 14:22:13 +08:00
public:
explicit FluTheme(QObject *parent = nullptr);
static FluTheme *getInstance();
private:
static FluTheme* m_instance;
};
#endif // FLUTHEME_H