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