Commit 42375e9d authored by Ronan's avatar Ronan

feat(Colors): add a color for field backgrounds

parent 3df5342a
...@@ -59,6 +59,8 @@ class Colors : public QObject { ...@@ -59,6 +59,8 @@ class Colors : public QObject {
Q_PROPERTY(QStringList colorNames READ getColorNames CONSTANT); Q_PROPERTY(QStringList colorNames READ getColorNames CONSTANT);
ADD_COLOR(a, "transparent"); ADD_COLOR(a, "transparent");
// Primary color.
ADD_COLOR(b, "#D64D00"); ADD_COLOR(b, "#D64D00");
ADD_COLOR(c, "#CBCBCB"); ADD_COLOR(c, "#CBCBCB");
ADD_COLOR(d, "#5A585B"); ADD_COLOR(d, "#5A585B");
...@@ -66,15 +68,27 @@ class Colors : public QObject { ...@@ -66,15 +68,27 @@ class Colors : public QObject {
ADD_COLOR(f, "#E8E8E8"); ADD_COLOR(f, "#E8E8E8");
ADD_COLOR(g, "#6B7A86"); ADD_COLOR(g, "#6B7A86");
ADD_COLOR(h, "#687680"); ADD_COLOR(h, "#687680");
// Primary color for hovered items.
ADD_COLOR(i, "#FE5E00"); ADD_COLOR(i, "#FE5E00");
ADD_COLOR(j, "#4B5964"); ADD_COLOR(j, "#4B5964");
ADD_COLOR(k, "#FFFFFF"); ADD_COLOR(k, "#FFFFFF");
ADD_COLOR(l, "#000000"); ADD_COLOR(l, "#000000");
// Primary color for clicked items.
ADD_COLOR(m, "#FF8600"); ADD_COLOR(m, "#FF8600");
ADD_COLOR(n, "#A1A1A1"); ADD_COLOR(n, "#A1A1A1");
ADD_COLOR(o, "#D0D8DE"); ADD_COLOR(o, "#D0D8DE");
// Progress bar.
ADD_COLOR(p, "#17A81A"); ADD_COLOR(p, "#17A81A");
// Field background.
ADD_COLOR(q, "#FFFFFF");
// Field error.
ADD_COLOR(error, "#FF0000"); ADD_COLOR(error, "#FF0000");
ADD_COLOR_WITH_ALPHA(g, 10); ADD_COLOR_WITH_ALPHA(g, 10);
...@@ -107,6 +121,7 @@ signals: ...@@ -107,6 +121,7 @@ signals:
void colorTnChanged (const QColor &color); void colorTnChanged (const QColor &color);
void colorToChanged (const QColor &color); void colorToChanged (const QColor &color);
void colorTpChanged (const QColor &color); void colorTpChanged (const QColor &color);
void colorTqChanged (const QColor &color);
void colorTerrorChanged (const QColor &color); void colorTerrorChanged (const QColor &color);
......
...@@ -19,7 +19,7 @@ QtObject { ...@@ -19,7 +19,7 @@ QtObject {
} }
property QtObject color: QtObject { property QtObject color: QtObject {
property color normal: Colors.k property color normal: Colors.q
property color readOnly: Colors.e property color readOnly: Colors.e
} }
} }
......
...@@ -19,7 +19,7 @@ QtObject { ...@@ -19,7 +19,7 @@ QtObject {
} }
property QtObject color: QtObject { property QtObject color: QtObject {
property color normal: Colors.k property color normal: Colors.q
property color readOnly: Colors.e property color readOnly: Colors.e
} }
} }
......
...@@ -24,7 +24,7 @@ QtObject { ...@@ -24,7 +24,7 @@ QtObject {
} }
property QtObject color: QtObject { property QtObject color: QtObject {
property color normal: Colors.k property color normal: Colors.q
property color readOnly: Colors.e property color readOnly: Colors.e
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment