mirror of
https://github.com/esphome/esphome.git
synced 2025-02-07 05:30:54 +00:00
[lvgl] Fix image mode
property (Bugfix) (#7938)
This commit is contained in:
parent
5a92e24662
commit
517f659da8
@ -79,7 +79,7 @@ class ImgType(WidgetType):
|
|||||||
if CONF_ANTIALIAS in config:
|
if CONF_ANTIALIAS in config:
|
||||||
lv.img_set_antialias(w.obj, config[CONF_ANTIALIAS])
|
lv.img_set_antialias(w.obj, config[CONF_ANTIALIAS])
|
||||||
if mode := config.get(CONF_MODE):
|
if mode := config.get(CONF_MODE):
|
||||||
lv.img_set_mode(w.obj, mode)
|
await w.set_property("size_mode", mode)
|
||||||
|
|
||||||
|
|
||||||
img_spec = ImgType()
|
img_spec = ImgType()
|
||||||
|
@ -451,6 +451,7 @@ lvgl:
|
|||||||
src: cat_image
|
src: cat_image
|
||||||
align: top_left
|
align: top_left
|
||||||
y: "50"
|
y: "50"
|
||||||
|
mode: real
|
||||||
- tileview:
|
- tileview:
|
||||||
id: tileview_id
|
id: tileview_id
|
||||||
scrollbar_mode: active
|
scrollbar_mode: active
|
||||||
@ -647,6 +648,7 @@ lvgl:
|
|||||||
grid_cell_row_pos: 0
|
grid_cell_row_pos: 0
|
||||||
grid_cell_column_pos: 0
|
grid_cell_column_pos: 0
|
||||||
src: !lambda return dog_image;
|
src: !lambda return dog_image;
|
||||||
|
mode: virtual
|
||||||
on_click:
|
on_click:
|
||||||
then:
|
then:
|
||||||
- lvgl.tabview.select:
|
- lvgl.tabview.select:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user