Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard keys are colored differently #6137

Open
blackchen-1 opened this issue Apr 28, 2024 · 3 comments
Open

Keyboard keys are colored differently #6137

blackchen-1 opened this issue Apr 28, 2024 · 3 comments

Comments

@blackchen-1
Copy link

Introduce the problem

Can you make the keyboard keys uniform in color? Now some keys are white and some are gray
keyboard

Proposal

No response

@kisvegabor
Copy link
Member

By default the control keys are grey. It's inspired by smartphone keyboards. Like this:
image

You can remove the grey "state" by adding this:

lv_buttonmatrix_clear_button_ctrl_all(kb, LV_BUTTONMATRIX_CTRL_CHECKED);

@blackchen-1
Copy link
Author

blackchen-1 commented May 8, 2024

If you switch modes, the color difference changes back. How to solve this problem. Make a judgment to switch modes. Add lv_buttonmatrix_clear_button_ctrl_all ?

@kisvegabor
Copy link
Member

Ah, that's true! In this case please add this:

lv_obj_set_style_bg_color(kb, lv_color_white(), LV_PART_ITEMS | LV_STATE_CHECKED);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants