57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
#ifndef __COLORS_H__
|
|
#define __COLORS_H__
|
|
|
|
#include "AccentColor.h"
|
|
#include "Utilities.h"
|
|
#include <QObject>
|
|
|
|
class Colors : public QObject {
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY_AUTO(QColor, Transparent)
|
|
Q_PROPERTY_AUTO(QColor, Black)
|
|
Q_PROPERTY_AUTO(QColor, White)
|
|
Q_PROPERTY_AUTO(QColor, Grey10)
|
|
Q_PROPERTY_AUTO(QColor, Grey20)
|
|
Q_PROPERTY_AUTO(QColor, Grey30)
|
|
Q_PROPERTY_AUTO(QColor, Grey40)
|
|
Q_PROPERTY_AUTO(QColor, Grey50)
|
|
Q_PROPERTY_AUTO(QColor, Grey60)
|
|
Q_PROPERTY_AUTO(QColor, Grey70)
|
|
Q_PROPERTY_AUTO(QColor, Grey80)
|
|
Q_PROPERTY_AUTO(QColor, Grey90)
|
|
Q_PROPERTY_AUTO(QColor, Grey100)
|
|
Q_PROPERTY_AUTO(QColor, Grey110)
|
|
Q_PROPERTY_AUTO(QColor, Grey120)
|
|
Q_PROPERTY_AUTO(QColor, Grey130)
|
|
Q_PROPERTY_AUTO(QColor, Grey140)
|
|
Q_PROPERTY_AUTO(QColor, Grey150)
|
|
Q_PROPERTY_AUTO(QColor, Grey160)
|
|
Q_PROPERTY_AUTO(QColor, Grey170)
|
|
Q_PROPERTY_AUTO(QColor, Grey180)
|
|
Q_PROPERTY_AUTO(QColor, Grey190)
|
|
Q_PROPERTY_AUTO(QColor, Grey200)
|
|
Q_PROPERTY_AUTO(QColor, Grey210)
|
|
Q_PROPERTY_AUTO(QColor, Grey220)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Yellow)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Orange)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Red)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Magenta)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Purple)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Blue)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Teal)
|
|
Q_PROPERTY_AUTO_P(AccentColor *, Green)
|
|
QML_ELEMENT
|
|
QML_SINGLETON
|
|
|
|
public:
|
|
static Colors *instance();
|
|
static Colors *create(QQmlEngine *, QJSEngine *);
|
|
Q_INVOKABLE AccentColor *createAccentColor(const QColor &primaryColor);
|
|
|
|
protected:
|
|
Colors(QObject *parent = nullptr);
|
|
};
|
|
|
|
#endif // __COLORS_H__
|