Description
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.
https://docs.lvgl.io/8/overview/style.html?highlight=lv_obj_set_style_local_bg_color
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_remove_style_all(bg_top); | |
//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.