Description
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
v7
What do you want to achieve?
apply a style to a pageview to change its background color. The container of the pageview?
What have you tried so far?
I tried to apply a style lv_obj_add_style to LV_PAGE_PART_BG but didn’t change the color.
Code to reproduce
lv_style_init(&darkbg);
lv_style_set_bg_color(&darkbg, LV_STATE_DEFAULT, lv_color_make(0,0,0));
lv_obj_t *darkBgTab = lv_tabview_add_tab(tabView, "Dark bg");
lv_obj_add_style(darkBgTab, LV_PAGE_PART_BG, &darkbg);