ZIm/crates/gpui/examples
Nathan Sobo cd1e56d6c7
Add support for dashed borders to GPUI (#27139)
Features:

* Scales dash spacing with border width.
* Laying out dashes around rounded corners.
* Varying border widths with rounded corners - now uses an ellipse for the inner edge of the border.
* When there are no rounded corners, each straight border is laid out separately, so that the dashes to meet at the corners.
* All sides of each dash are antialiased.

![image](https://github.com/user-attachments/assets/b3789a98-a5be-4f97-9736-c4e59615afe6)

![image](https://github.com/user-attachments/assets/739bdc57-4580-42c8-bfc3-6e287411a408)

Release Notes:

- N/A

---------

Co-authored-by: Michael Sloan <michael@zed.dev>
Co-authored-by: Ben <ben@zed.dev>
2025-03-25 11:11:04 -06:00
..
image gpui: Maintain img aspect ratio when max_width is set (#25632) 2025-03-03 12:36:27 +01:00
svg gpui: Update asset paths for more examples (#24646) 2025-02-11 14:37:55 +00:00
animation.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
data_table.rs gpui: Rename rounded_md to rounded_sm (#26228) 2025-03-06 17:57:31 +00:00
gif_viewer.rs gpui: Update asset paths for more examples (#24646) 2025-02-11 14:37:55 +00:00
gradient.rs Revert "Revert recent anti-aliasing improvements (#24289)" and fix selection top right corner radius issue (#24342) 2025-02-06 11:03:23 +02:00
hello_world.rs Add support for dashed borders to GPUI (#27139) 2025-03-25 11:11:04 -06:00
image_loading.rs gpui: Rename rounded_sm to rounded_xs (#26221) 2025-03-06 16:08:19 +00:00
input.rs gpui: Fix Cut action in input example (#26203) 2025-03-06 10:02:52 -05:00
on_window_close_quit.rs Add last window closed setting (#25185) 2025-02-19 20:03:10 +00:00
opacity.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
ownership_post.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
painting.rs Revert "Revert recent anti-aliasing improvements (#24289)" and fix selection top right corner radius issue (#24342) 2025-02-06 11:03:23 +02:00
pattern.rs gpui: Add interval in pattern (#26459) 2025-03-14 12:51:09 -07:00
set_menus.rs gpui: Update docs to reflect removal of View, ViewContext, WindowContext (#24008) 2025-01-31 11:40:42 -08:00
shadow.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
text_layout.rs gpui: Fix line_through, underline position when used text center or right (#24721) 2025-03-15 11:44:51 +02:00
text_wrapper.rs gpui: Add line_clamp to truncate text after a specified number of lines (#23058) 2025-01-29 22:14:24 +02:00
uniform_list.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
window.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
window_positioning.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
window_shadow.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00