FluentUI/src/FluTheme.h
朱子楚\zhuzi 5bb8f27968 update
2023-03-11 21:15:36 +08:00

25 lines
511 B
C++

#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)
Q_PROPERTY_AUTO(bool,isFrameless);
Q_PROPERTY_AUTO(bool,isDark);
Q_PROPERTY_AUTO(bool,isNativeText);
Q_PROPERTY_AUTO(int,textSize);
public:
explicit FluTheme(QObject *parent = nullptr);
static FluTheme *getInstance();
private:
static FluTheme* m_instance;
};
#endif // FLUTHEME_H