Function missing in header


When compiling compiler cannot find header for the function

I want to set a local style with lv_obj_set_style_local_bg_color, this is proposed in the documentation.

What MCU/Processor/Board and compiler are you using?

Rapberry pi 4

What LVGL version are you using?

What do you want to achieve?

set style

What have you tried so far?

Search all headers but function is not available

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/
bg_top = lv_obj_create(scr);
//lv_obj_set_style_local_bg_opa(bg_top, LV_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_COVER);
lv_obj_set_style_local_bg_color(bg_top, lv_palette_main(LV_PALETTE_INDIGO), LV_PART_MAIN);
lv_obj_set_size(bg_top, LV_HOR_RES, topHeight);

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

Yes, that function (lv_obj_set_style_local_bg_color) is v7 function.
In v8 use this: lv_obj_set_style_bg_color
The v8 documentation is not updated 100%
I noticed, that _local_ is removed from a couple of function names, so whenever you face similar problem, just search for a function without it.

Thanks, good to know. I find it quite confusing to jump from 7 to 8. This kind of details take a lot of time. But anyway. Have to do it one time or the other.