mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-12-02 07:43:00 +08:00
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
#ifndef FLUCOLORS_H
|
|
#define FLUCOLORS_H
|
|
|
|
#include <QObject>
|
|
#include <QtQml/qqml.h>
|
|
#include "FluColorSet.h"
|
|
#include "stdafx.h"
|
|
#include "singleton.h"
|
|
|
|
/**
|
|
* @brief The FluColors class
|
|
*/
|
|
class FluColors : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY_AUTO(QString,Transparent);
|
|
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);
|
|
QML_NAMED_ELEMENT(FluColors)
|
|
QML_SINGLETON
|
|
private:
|
|
explicit FluColors(QObject *parent = nullptr);
|
|
public:
|
|
SINGLETON(FluColors)
|
|
static FluColors *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return getInstance();}
|
|
};
|
|
|
|
#endif // FLUCOLORS_H
|