Commit a8bc6ad5 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Colors): handle correctly rgba colors

parent 2784afb6
......@@ -36,11 +36,12 @@
} \
QColor m ## COLOR = VALUE;
// Alpha is in percent.
#define ADD_COLOR_WITH_ALPHA(COLOR, ALPHA) \
Q_PROPERTY(QColor COLOR ## ALPHA READ get ## COLOR ## ALPHA NOTIFY colorT ## COLOR ## Changed); \
QColor get ## COLOR ## ALPHA() { \
QColor color = m ## COLOR; \
color.setAlpha(ALPHA); \
color.setAlpha(ALPHA * 255 / 100); \
return color; \
}
......
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