Description
I would like to set the background colour of a list
What MCU/Processor/Board and compiler are you using?
Simlator
What LVGL version are you using?
8.1
What do you want to achieve?
lv_dropdown_get_list(
What have you tried so far?
lv_obj_t * list = lv_dropdown_get_list(roller_temp); /*Get the list*/
lv_obj_set_style_bg_color(list, lv_color_hex(MAIN_BG_COLOUR), LV_PART_MAIN);
lv_obj_set_style_border_color(list, MAIN_BORDER_COLOUR, LV_PART_MAIN);
lv_obj_set_style_bg_color(list, lv_color_hex(0x01a2b1), LV_PART_INDICATOR | LV_PART_SELECTED);
lv_obj_set_style_bg_color(list, lv_color_hex(0x01a2b1), LV_PART_MAIN | LV_PART_SELECTED);
lv_obj_set_style_bg_color(list, lv_color_hex(0x01a2b1), LV_PART_SELECTED);
lv_obj_set_style_bg_color(list, lv_color_hex(0x01a2b1), LV_PART_INDICATOR);
lv_obj_set_style_bg_color(list, lv_color_hex(0x01a2b1), LV_PART_INDICATOR | LV_PART_SELECTED);
lv_obj_set_style_bg_color(list, lv_color_hex(0x01a2b1), LV_PART_ITEMS | LV_PART_SELECTED);
Code to reproduce
Above
Screenshot and/or video
Any help would be much appreciated!