remove context from ui (again) and create weird trait for it

This commit is contained in:
iris committed 2025-09-24 17:41:25 -04:00
1 parent 26c248dcba
commit 719bee4b31
12 files changed
+107 -92

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ impl Widget for Image {
}
}
pub fn image<Ctx>(image: impl LoadableImage) -> impl WidgetFn<Image, Ctx> {
pub fn image(image: impl LoadableImage) -> impl WidgetFn<Image> {
let image = image.get_image().expect("Failed to load image");
move |ui| Image {
handle: ui.add_texture(image),