mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add slider parts
This commit is contained in:
parent
b0430c7e7b
commit
1f1ed7e9ec
@ -516,6 +516,18 @@ static void hasp_attribute_get_part_state(lv_obj_t * obj, const char * attr_in,
|
||||
return;
|
||||
}
|
||||
|
||||
if(check_obj_type(obj, LV_HASP_SLIDER)) {
|
||||
if(index == 1) {
|
||||
part = LV_SLIDER_PART_INDIC;
|
||||
} else if(index == 2) {
|
||||
part = LV_SLIDER_PART_KNOB;
|
||||
} else {
|
||||
part = LV_SLIDER_PART_BG;
|
||||
}
|
||||
state = LV_STATE_DEFAULT;
|
||||
return;
|
||||
}
|
||||
|
||||
if(check_obj_type(obj, LV_HASP_CHECKBOX)) {
|
||||
if(index == 1) {
|
||||
part = LV_CHECKBOX_PART_BULLET;
|
||||
|
Loading…
x
Reference in New Issue
Block a user