feat(color): add Slider & Choice widget option types (#5518)
This commit is contained in:
@@ -70,7 +70,6 @@ inline void setZoneOptionValue(ZoneOptionValue& zov, unsigned int value)
|
||||
inline ZoneOptionValueEnum zoneValueEnumFromType(ZoneOption::Type type)
|
||||
{
|
||||
switch(type) {
|
||||
case ZoneOption::File:
|
||||
case ZoneOption::String:
|
||||
return ZOV_String;
|
||||
|
||||
@@ -86,10 +85,6 @@ inline ZoneOptionValueEnum zoneValueEnumFromType(ZoneOption::Type type)
|
||||
case ZoneOption::Source:
|
||||
return ZOV_Source;
|
||||
|
||||
case ZoneOption::Timer:
|
||||
case ZoneOption::Switch:
|
||||
case ZoneOption::TextSize:
|
||||
case ZoneOption::Align:
|
||||
default:
|
||||
return ZOV_Unsigned;
|
||||
}
|
||||
|
||||
@@ -90,12 +90,13 @@ struct ZoneOption
|
||||
Source,
|
||||
Bool,
|
||||
String,
|
||||
File,
|
||||
TextSize,
|
||||
Timer,
|
||||
Switch,
|
||||
Color,
|
||||
Align
|
||||
Align,
|
||||
Slider,
|
||||
Choice,
|
||||
};
|
||||
|
||||
const char * name;
|
||||
|
||||
Reference in New Issue
Block a user