From 9a60ab8f74e7e775c999a0e7a21987a11cd8ebcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominic=20H=C3=B6glinger?= Date: Sat, 27 Sep 2025 22:12:46 +0200 Subject: [PATCH] RadioSet: Remove manually setting main container as scrollable --- ExternalApps/RadioSet/main/Source/RadioSet.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ExternalApps/RadioSet/main/Source/RadioSet.cpp b/ExternalApps/RadioSet/main/Source/RadioSet.cpp index dbe9de54..710949db 100644 --- a/ExternalApps/RadioSet/main/Source/RadioSet.cpp +++ b/ExternalApps/RadioSet/main/Source/RadioSet.cpp @@ -1015,18 +1015,6 @@ public: lv_obj_align(mainPanel, LV_ALIGN_TOP_MID, 0, 0); lv_obj_set_style_border_width(mainPanel, 0, 0); lv_obj_set_style_pad_all(mainPanel, 0, 0); - // Only needed if container needs to be scrollable through encoder long long press - lv_obj_add_flag(mainPanel, (lv_obj_flag_t)(LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_SCROLL_ON_FOCUS)); - auto* group = lv_group_get_default(); - lv_group_add_obj(group, mainPanel); - - static lv_style_t style_scroll_focus; - lv_style_init(&style_scroll_focus); - lv_style_set_bg_color(&style_scroll_focus, lv_color_make(0x40,0xA0,0xFF)); - lv_style_set_bg_opa(&style_scroll_focus, LV_OPA_COVER); - lv_style_set_border_width(&style_scroll_focus, 1); - lv_style_set_border_color(&style_scroll_focus, lv_theme_get_color_primary(nullptr)); - lv_obj_add_style(mainPanel, &style_scroll_focus, LV_PART_SCROLLBAR | LV_STATE_FOCUSED); deviceForm = initDeviceForm(mainPanel); }