Migrating from 7.5 to 8.1 - Background colour

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:

@kisvegabor any suggestions?

Thanks!

Hi,

Take a look at the tabviews documentation and examples to see how to style it.
https://docs.lvgl.io/master/widgets/extra/tabview.html

Thanks for that.

The next thing I need is what the old colours were. Any idea where I can get those from? IE the TabView and Tab background…

Thanks