mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-26 02:37:01 +08:00
feat(style): add LV_STATE_ALT for simple dark/light switching (#9691)
This commit is contained in:
committed by
GitHub
parent
bc76ee1857
commit
3e2b395724
@@ -46,6 +46,7 @@ States
|
||||
A widget can be in a combination of the following states:
|
||||
|
||||
- :cpp:enumerator:`LV_STATE_DEFAULT`: Normal, released state.
|
||||
- :cpp:enumerator:`LV_STATE_ALT`: Alternative style settings, e.g. dark mode.
|
||||
- :cpp:enumerator:`LV_STATE_CHECKED`: Toggled or checked state.
|
||||
- :cpp:enumerator:`LV_STATE_FOCUSED`: Focused via keypad, encoder, or clicked via
|
||||
touchpad/mouse.
|
||||
|
||||
@@ -264,6 +264,7 @@ States
|
||||
Widgets can be in a combination of the following states:
|
||||
|
||||
- :cpp:enumerator:`LV_STATE_DEFAULT`: Normal, released state
|
||||
- :cpp:enumerator:`LV_STATE_ALT`: Alternative style settings, e.g. dark mode.
|
||||
- :cpp:enumerator:`LV_STATE_CHECKED`: Toggled or checked state
|
||||
- :cpp:enumerator:`LV_STATE_FOCUSED`: Focused via keypad or encoder or clicked via touchpad/mouse
|
||||
- :cpp:enumerator:`LV_STATE_FOCUS_KEY`: Focused via keypad or encoder but not via touchpad/mouse
|
||||
|
||||
Reference in New Issue
Block a user