Description
I would like to make the background the same colour as it was in 7.5
What MCU/Processor/Board and compiler are you using?
Simulator
What LVGL version are you using?
8.1
What do you want to achieve?
Make the background the same colour as it used to be
What have you tried so far?
scr = lv_obj_create(NULL);
static lv_style_t style_bgCol;
lv_style_init(&style_bgCol);
lv_style_set_bg_color(&style_bgCol, lv_color_hex(0x586273));
lv_obj_add_style(scr, &style_bgCol, 0);
lv_disp_load_scr(scr);
printf("create Screen 2\n");
// Screen2
scr2 = lv_obj_create(NULL);
lv_obj_t * tv = lv_tabview_create(scr, LV_DIR_TOP, 50);
lv_obj_set_height(tv, 535);
Code to reproduce
Above
Screenshot and/or video
8.1:
7.5: