Output widget colors as such

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:03 +01:00
parent a356b5199d
commit cc9b146713
14 changed files with 132 additions and 4 deletions
+5 -1
View File
@@ -46,6 +46,7 @@ union ZoneOptionValue
uint32_t boolValue;
char stringValue[LEN_ZONE_OPTION_STRING];
CUST_ATTR(source, r_zov_source, w_zov_source);
CUST_ATTR(color, r_zov_color, w_zov_color);
};
enum ZoneOptionValueEnum {
@@ -53,7 +54,8 @@ enum ZoneOptionValueEnum {
ZOV_Signed,
ZOV_Bool,
ZOV_String,
ZOV_Source
ZOV_Source,
ZOV_Color
};
struct ZoneOption
@@ -101,6 +103,8 @@ inline ZoneOptionValueEnum zoneValueEnumFromType(ZoneOption::Type type)
return ZOV_Source;
case ZoneOption::Color:
return ZOV_Color;
case ZoneOption::Timer:
case ZoneOption::Switch:
case ZoneOption::TextSize: