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
@@ -78,8 +78,18 @@ void patchWidgetOptions(ZonePersistentData* zones, unsigned n_zones)
if (widgetName.empty()) continue;
if (widgetName == "Value" || widgetName == "Gauge") {
if (widgetName == "Value") {
zone.widgetData.options[0].type = ZOV_Source;
zone.widgetData.options[1].type = ZOV_Color;
} else if (widgetName == "Gauge") {
zone.widgetData.options[0].type = ZOV_Source;
zone.widgetData.options[3].type = ZOV_Color;
} else if (widgetName == "Outputs") {
zone.widgetData.options[2].type = ZOV_Color;
zone.widgetData.options[3].type = ZOV_Color;
zone.widgetData.options[4].type = ZOV_Color;
} else if (widgetName == "Text") {
zone.widgetData.options[1].type = ZOV_Color;
}
}
}