Dropdown list part

Description

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

Win32, esp32, custom hw

What LVGL version are you using?

8.3.6

What do you want to achieve?

Set the colour of the dropdown list selector (shown in green in the image).

What have you tried so far?

Lots of different parts and states on the dropdown list, but I can’t seem to change the background colour or text colour. I can set the colour of the pressed item, just not the checked item.

Screenshot and/or video

dropdown_list

Ok ,I just worked it out. Pressed is LV_PART_SELECTED | LV_STATE_PRESSED and the selected one is LV_PART_SELECTED | LV_STATE_CHECKED. I was missing the checked state.