-
Notifications
You must be signed in to change notification settings - Fork 120
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
background color does not work for most components #687
Comments
Change the opacity to 255 and you will see the background |
Oh, that is an embarrassing oversight on my side, thanks for the fast response. I would suggest setting that to 255 on default (when color is set). |
So for anybody finding this with similar problems: The issue I had and why I opened this issue: |
We are using LVGL default values for the opacity. For example, Button widget has 255 opacity by default and Label widget has 0. |
This makes sense. We can change opacity to 255 if it was 0 when color is changed. |
Describe the bug
For some components (I can confirm label, image and container) the background color does not appear.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For the background color to change.
Screenshots
Desktop (please complete the following information):
** LVGL version (if used)**
Additional context
It will change the code of screens.c, button works without problems and the code looks basically identical.
Potentially related issue: #644
The text was updated successfully, but these errors were encountered: