Skip to content

Inherited style colors do not change after changing the theme at runtime #793

Open
@kpapadimakis

Description

@kpapadimakis

Describe the bug
Inherited style colors do not change after I change the theme at runtime. I see that the inherited color in the child style is the color number and not the theme color string

To Reproduce
Steps to reproduce the behavior:

  1. Add a default style for the buttons, with background and text colors chosen from a theme. Create a button
  2. Create an inherited style (in my case, with just another font) and assign this to a 2nd button
  3. Change the theme at runtime
  4. Theme colors for the buttons with the inherited style do not change
  5. Workaround is that I select the same theme color for the button background and text and then I get the desired result, but I also get a "redundant modification" next to the style name

Expected behavior
I would expect that the theme color names would be inherited in the child style

** LVGL version (if used)**
8.x

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions