Railton
February 20, 2025, 1:40am
1
Description
I have a keyboard widget that is working fine and I want to have dark keys and white text. I have made the background of the keys dark but I cannot find in the documentation how to set the text colour.
Thanks in advance for any help.
What LVGL version are you using?
v9.2.2
maybe you can try lv_obj_set_style_text_color(kb, lv_color_make(255,255,255), LV_PART_ITEMS);
Railton
February 20, 2025, 12:28pm
3
lizhaoming634:
lv_obj_set_style_text_color(kb, lv_color_make(255,255,255), LV_PART_ITEMS);
Thanks for the steer. I needed the following to get all the buttons with white text.
lv_obj_set_style_text_color(keyboard, lv_color_make(255,255,255), LV_PART_ITEMS);
lv_obj_set_style_text_color(keyboard, lv_color_make(255,255,255), LV_PART_ITEMS| LV_STATE_CHECKED);