Nate Butler
e5943975f9
gpui & ui: Use shader for dashed dividers ( #23839 )
...
TODO:
- [x] BackgroundOrientation
- [x] PatternDash
- [x] `pattern_horizontal_dash` & `pattern_vertical_dash`
- [x] Metal dash shader
- [x] Blade dash shader
- [x] Update ui::Divider to use new pattern
---
This PR introduces proper dashed dividers using the new `PatternDash`
background shader.

Before this we were using 128 elements to create a dashed divider, which
is both expensive, and would not scale beyond a certain size. This
allows us to simplify the divider element as well.
Changes:
- Adds `BackgroundOrientation` to `gpui::color::Background` to allow
specifying a direction for a pattern
- Adds the PatternDash pattern variant
- Updates `ui::Divider`'s dashed variants to be more efficient
Misc:
- Documents the `ui::Divider` component
- Treat `.metal` files as `C` in the Zed project until we get some metal
syntax highlighting.
Release Notes:
- N/A
2025-01-29 12:18:34 -05:00
..
2025-01-27 04:00:27 +00:00
2025-01-28 10:56:05 -05:00
2025-01-26 03:02:45 +00:00
2025-01-27 21:56:29 +00:00
2025-01-28 11:40:42 -03:00
2025-01-27 21:56:29 +00:00
2025-01-27 13:40:59 -05:00
2025-01-26 03:02:45 +00:00
2025-01-28 11:40:42 -03:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-27 04:00:27 +00:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-17 17:39:22 +01:00
2025-01-29 16:33:48 +00:00
2025-01-27 04:00:27 +00:00
2025-01-17 17:39:22 +01:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-01-29 11:32:18 +01:00
2025-01-26 03:02:45 +00:00
2025-01-27 13:40:59 -05:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-29 11:32:18 +01:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-17 17:39:22 +01:00
2025-01-26 23:37:34 +00:00
2025-01-27 04:00:27 +00:00
2025-01-28 12:27:09 +01:00
2025-01-29 06:48:07 +00:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-17 17:39:22 +01:00
2025-01-27 18:11:15 -08:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-27 21:56:29 +00:00
2025-01-17 17:39:22 +01:00
2025-01-29 12:18:34 -05:00
2025-01-28 21:38:06 +00:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-29 11:32:18 +01:00
2025-01-28 12:27:09 +01:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-01-29 11:32:18 +01:00
2025-01-26 23:37:34 +00:00
2025-01-27 13:40:59 -05:00
2025-01-27 12:29:08 -03:00
2025-01-27 13:40:59 -05:00
2025-01-28 19:04:21 -05:00
2025-01-28 19:04:21 -05:00
2025-01-28 21:38:06 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-01-28 21:38:06 +00:00
2025-01-27 04:00:27 +00:00
2025-01-27 04:00:27 +00:00
2025-01-17 17:39:22 +01:00
2025-01-17 17:39:22 +01:00
2025-01-28 21:48:16 +00:00
2025-01-17 17:39:22 +01:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 14:44:12 +00:00
2025-01-27 04:00:27 +00:00
2025-01-27 04:00:27 +00:00
2025-01-27 12:32:22 +01:00
2025-01-27 04:00:27 +00:00
2025-01-28 21:38:06 +00:00
2025-01-28 19:04:21 -05:00
2025-01-28 10:42:10 +02:00
2025-01-27 04:00:27 +00:00
2025-01-28 19:04:21 -05:00
2025-01-28 21:38:06 +00:00
2025-01-27 04:00:27 +00:00
2025-01-28 21:38:06 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 23:37:34 +00:00
2025-01-27 04:00:27 +00:00
2025-01-28 19:04:21 -05:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-25 19:24:19 +00:00
2025-01-26 23:37:34 +00:00
2025-01-27 21:56:29 +00:00
2025-01-27 04:00:27 +00:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-01-29 07:05:33 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-28 10:37:48 +01:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-17 17:39:22 +01:00
2025-01-24 14:18:22 -07:00
2025-01-29 11:32:18 +01:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 23:37:34 +00:00
2025-01-17 17:39:22 +01:00
2025-01-17 17:39:22 +01:00
2025-01-28 16:03:48 +02:00
2025-01-29 09:44:51 +00:00
2025-01-27 18:11:15 -08:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-29 12:18:34 -05:00
2025-01-26 03:02:45 +00:00
2025-01-28 21:38:06 +00:00
2025-01-26 14:56:07 +08:00
2025-01-27 04:00:27 +00:00
2025-01-29 06:18:56 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-29 12:18:34 -05:00
2025-01-28 11:40:42 -03:00
2025-01-29 11:55:51 -05:00
2025-01-26 03:02:45 +00:00
2025-01-27 04:00:27 +00:00
2025-01-29 13:00:10 +00:00