RadioSet: Remove manually setting main container as scrollable
This commit is contained in:
parent
1460016914
commit
9a60ab8f74
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user