FluentUI/src/FluColors.h

62 lines
1.8 KiB
C
Raw Normal View History

2023-05-22 16:17:51 +08:00
#ifndef FLUCOLORS_H
2023-03-06 12:09:06 +08:00
#define FLUCOLORS_H
#include <QObject>
2023-04-27 09:38:57 +08:00
#include <QtQml/qqml.h>
2023-03-06 12:09:06 +08:00
#include "FluColorSet.h"
#include "stdafx.h"
2023-04-27 17:29:39 +08:00
/**
* @brief The FluColors class
*/
2023-03-06 12:09:06 +08:00
class FluColors : public QObject
{
Q_OBJECT
2023-08-18 19:17:45 +08:00
Q_PROPERTY_AUTO(QString,Transparent);
2023-03-06 12:09:06 +08:00
Q_PROPERTY_AUTO(QString,Black);
Q_PROPERTY_AUTO(QString,White);
Q_PROPERTY_AUTO(QString,Grey10);
Q_PROPERTY_AUTO(QString,Grey20);
Q_PROPERTY_AUTO(QString,Grey30);
Q_PROPERTY_AUTO(QString,Grey40);
Q_PROPERTY_AUTO(QString,Grey50);
Q_PROPERTY_AUTO(QString,Grey60);
Q_PROPERTY_AUTO(QString,Grey70);
Q_PROPERTY_AUTO(QString,Grey80);
Q_PROPERTY_AUTO(QString,Grey90);
Q_PROPERTY_AUTO(QString,Grey100);
Q_PROPERTY_AUTO(QString,Grey110);
Q_PROPERTY_AUTO(QString,Grey120);
Q_PROPERTY_AUTO(QString,Grey130);
Q_PROPERTY_AUTO(QString,Grey140);
Q_PROPERTY_AUTO(QString,Grey150);
Q_PROPERTY_AUTO(QString,Grey160);
Q_PROPERTY_AUTO(QString,Grey170);
Q_PROPERTY_AUTO(QString,Grey180);
Q_PROPERTY_AUTO(QString,Grey190);
Q_PROPERTY_AUTO(QString,Grey200);
Q_PROPERTY_AUTO(QString,Grey210);
Q_PROPERTY_AUTO(QString,Grey220);
Q_PROPERTY_AUTO(FluColorSet*,Yellow);
Q_PROPERTY_AUTO(FluColorSet*,Orange);
Q_PROPERTY_AUTO(FluColorSet*,Red);
Q_PROPERTY_AUTO(FluColorSet*,Magenta);
Q_PROPERTY_AUTO(FluColorSet*,Purple);
Q_PROPERTY_AUTO(FluColorSet*,Blue);
Q_PROPERTY_AUTO(FluColorSet*,Teal);
Q_PROPERTY_AUTO(FluColorSet*,Green);
2023-04-27 09:38:57 +08:00
QML_NAMED_ELEMENT(FluColors)
QML_SINGLETON
2023-05-11 18:24:58 +08:00
private:
2023-03-06 12:09:06 +08:00
explicit FluColors(QObject *parent = nullptr);
2023-05-11 18:24:58 +08:00
static FluColors* m_instance;
public:
static FluColors *getInstance();
static FluColors *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine)
{
return getInstance();
}
2023-03-06 12:09:06 +08:00
};
#endif // FLUCOLORS_H