Description
I want to change the button’s label text color while the button begin press.
In short, how to pass the state of the button to the label?
Or perhaps there’s a better way.
What LVGL version are you using?
V7.1.0
I want to change the button’s label text color while the button begin press.
In short, how to pass the state of the button to the label?
Or perhaps there’s a better way.
V7.1.0
Hi @zhan,
I would try this:
lv_obj_set_style_local_text_color(your_button, LV_BTN_PART_MAIN, LV_STATE_PRESSED, LV_COLOR_RED);
Kind Regards,
Pete