mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Add WidgetType::Image and Image::alt_text (#5534)
This adds `WidgetType::Image` and correctly sets it in the Image widget. This allows us to query for images in kittest tests and tells accesskit that a node is an image. It also adds `Image::alt_text` to set a text that will be shown if the image fails to load and will be read via screen readers. This also allows us to query images by label in kittest. * [x] I have followed the instructions in the PR template --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
3
crates/egui_kittest/tests/snapshots/image_snapshots.png
Normal file
3
crates/egui_kittest/tests/snapshots/image_snapshots.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:31faeb4e5f488b8bcee5e090accd326d7e43b264e81768ae7c1907e3b6d0f739
|
||||
size 2121
|
||||
Reference in New Issue
Block a user