From c7eb8bb55cabaa7fc2015634e2c2666a46f108c8 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Wed, 14 Apr 2021 23:54:35 +0200 Subject: [PATCH] Add selected part properties for roller object --- src/hasp/hasp_attribute.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index 6f371fe0..7838bccd 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -699,6 +699,16 @@ static void hasp_attribute_get_part_state(lv_obj_t* obj, const char* attr_in, ch 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)) { // state = LV_STATE_DEFAULT; // return;