zed/crates/gpui/examples
Matin Aniss 4bd935b409
gpui: Add support for animated images (#13809)
This PR adds support for animated images. The image requires a id for it
to actually animate across frames.

Currently it only has support for `GIF`, I tried adding decoding a
animated `WebP` into frames but it seems to error. This issue in the
image crate seems to document this
https://github.com/image-rs/image/issues/2263.

Not sure if this is the best way or the desired way for animated images
to work in GPUI but I would really like support for animated images.
Open to feedback.

Example Video:


https://github.com/zed-industries/zed/assets/76515905/011f790f-d070-499b-96c9-bbff141fb002



Closes https://github.com/zed-industries/zed/issues/9993

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Nathan <nathan@zed.dev>
2024-07-27 14:05:37 +02:00
..
image gpui: Add support for animated images (#13809) 2024-07-27 14:05:37 +02:00
animation.rs gpui example: Fix SVG not showing up when running from root (#13648) 2024-06-28 15:58:19 +02:00
gif_viewer.rs gpui: Add support for animated images (#13809) 2024-07-27 14:05:37 +02:00
hello_world.rs Linux window decorations (#13611) 2024-07-03 11:28:09 -07:00
input.rs Add mouse handling to gpui input example (#14350) 2024-07-15 12:10:25 -06:00
ownership_post.rs More adjustments for blog post 2024-01-18 07:01:46 -07:00
set_menus.rs gpui: Update Menu name to use SharedString type to support more types (#14791) 2024-07-19 08:51:31 -04:00
window_positioning.rs gpui: Fix cx.bounds, cx.open_window position on macOS (#14044) 2024-07-10 09:52:33 -06:00
window_shadow.rs Linux window decorations (#13611) 2024-07-03 11:28:09 -07:00