How to change color of list's button's text when focuse the button?


In my project, I need to set the background color button when focused it. But I have a problem, that is when fucose the button, the text will turn white. So how to keep color of button’s text is black?

What LVGL version are you using?


What do you want to achieve?

I want to the “监测目标” keep black when focus the third button of list
but I find that not only the text is white, but also there is no border

What have you tried so far?

I tried to set the style of the button of list, but it is no use