Description
I would like to change background color of the active screen when i move the slider. I don’t see the background color changes.
What MCU/Processor/Board and compiler are you using?
ESP32S3
What LVGL version are you using?
LVGL version = 8.3
ESP32 IDF version 5.1.2
Eclipse IDE
What do you want to achieve?
Would like to change active screen background color
What have you tried so far?
Tried lv_obj_set_style_bg_color
Code to reproduce
The code block(s) should be formatted like:
static void change_color(void){
lv_obj_t * scr = lv_scr_act();
lv_obj_set_style_bg_color(scr,lv_palette_main(LV_PALETTE_RED),LV_PART_MAIN);
}
Screenshot and/or video
NA