From 1f1ed7e9ece5f65368b0ad41fdafe2058148de3f Mon Sep 17 00:00:00 2001 From: fvanroie Date: Tue, 29 Dec 2020 21:11:20 +0100 Subject: [PATCH] Add slider parts --- src/hasp/hasp_attribute.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index e218cc2d..f9c04c07 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -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;