mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[lvgl] Add lvgl.theme.update action (#17678)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
Claude Sonnet 5
parent
ad3e2f83b8
commit
98ee7e0f82
@@ -295,6 +295,22 @@ lvgl:
|
||||
id: style_test
|
||||
bg_color: blue
|
||||
bg_opa: !lambda return 0.5;
|
||||
# `obj` is already themed above -- exercises updating an existing hidden style.
|
||||
- lvgl.theme.update:
|
||||
obj:
|
||||
border_width: 2
|
||||
# `label` is never mentioned under `theme:` -- exercises lazily creating the
|
||||
# hidden style and getting it attached to already-built label widgets.
|
||||
- lvgl.theme.update:
|
||||
label:
|
||||
text_color: red
|
||||
# `button` is never mentioned under `theme:`, and only a non-default state is
|
||||
# targeted here -- exercises that no spurious, empty main/default style is
|
||||
# created (and attached to every button) alongside the requested one.
|
||||
- lvgl.theme.update:
|
||||
button:
|
||||
pressed:
|
||||
bg_color: red
|
||||
- lvgl.image.update:
|
||||
id: lv_image
|
||||
src:
|
||||
|
||||
Reference in New Issue
Block a user