zed/crates/gpui/examples
Conrad Irwin ebaa270baf
Clip UTF-16 offsets in text for range (#20968)
When launching the Pinyin keyboard, macOS will sometimes try to peek one
character back in the string.

This caused a panic if the preceding character was an emoji. The docs
say
"don't assume the range is valid", so now we don't.

Release Notes:

- (macOS) Fixed a panic when using the Pinyin keyboard with emojis
2024-11-20 22:04:26 -07:00
..
image gpui: Fix SVG color render, when color have alpha (#20537) 2024-11-16 16:53:57 +02:00
svg gpui: Add svg example (#17315) 2024-09-03 13:15:37 -04:00
animation.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
gif_viewer.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
hello_world.rs
image_loading.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
input.rs Clip UTF-16 offsets in text for range (#20968) 2024-11-20 22:04:26 -07:00
opacity.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
ownership_post.rs
painting.rs gpui: Add paint_path example (#20499) 2024-11-16 13:36:13 +02:00
set_menus.rs
shadow.rs
text_wrapper.rs gpui: Fix CJK line wrap for GPUI text render (#17737) 2024-09-12 15:55:03 -04:00
uniform_list.rs gpui: Add example for uniform_list (#17421) 2024-09-05 14:24:10 -04:00
window.rs gpui: Fix hide, activate method on Windows to hide/show application (#18164) 2024-09-30 23:20:24 -07:00
window_positioning.rs
window_shadow.rs