mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Add selected part properties for roller object
This commit is contained in:
parent
d1a2fa5a1b
commit
c7eb8bb55c
@ -699,6 +699,16 @@ static void hasp_attribute_get_part_state(lv_obj_t* obj, const char* attr_in, ch
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(check_obj_type(obj, LV_HASP_ROLLER)) {
|
||||||
|
if(index == 1) {
|
||||||
|
part = LV_ROLLER_PART_SELECTED;
|
||||||
|
} else {
|
||||||
|
part = LV_ROLLER_PART_BG;
|
||||||
|
}
|
||||||
|
state = LV_STATE_DEFAULT;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// if(check_obj_type(obj, LV_HASP_LMETER)) {
|
// if(check_obj_type(obj, LV_HASP_LMETER)) {
|
||||||
// state = LV_STATE_DEFAULT;
|
// state = LV_STATE_DEFAULT;
|
||||||
// return;
|
// return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user