Update components/lvgl.rst

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
H. Árkosi Róbert 2024-05-10 09:15:27 +02:00 committed by GitHub
parent 950ef8698d
commit d5e20d8ec1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ In the example below, you have an ``arc`` with some styles set here. Note how yo
So the inheritance happens like this: state based styles override the locally specified styles, which override the style definitions, which override the theme, which overrides the top level styles.
The precedence (value) of states is quite intuitive, and it's something the user would expect naturally. E.g. if a widget is focused the user will still want to see if it's pressed, therefore the pressed state has a higher precedence. If the focused state had a higher precedence it would overwrite the pressed color.
The precedence (value) of states is quite intuitive and it's something the user would expect naturally. For example, if a widget is focused the user will still want to see if it's pressed, therefore the pressed state has a higher precedence. (If the focused state had a higher precedence it would override the "pressed" color, defeating its purpose.)
Feel free to experiment to discover inheritance of the styles based on states between the nested widgets.