Nate Butler
ce848375fe
add ui::Vector and separate images from icons ( #17815 )
...
This PR pulls non-icon assets out of `ui::components::icon` in
preparation for icon standardization.
In the future icons will have standard names and sizes, and these image
assets won't conform to those constraints.
We can also add a `ui::components::image::Image` wrapper around the
`gpui::img` element in the future for any Zed-specific image styling we
want to enforce.
Of note:
```rust
#[derive(Debug, PartialEq, Eq, Copy, Clone, EnumIter, EnumString, IntoStaticStr, Serialize, Deserialize, DerivePathStr)]
#[strum(serialize_all = "snake_case")]
#[path_str(prefix = "images", suffix = ".svg")]
pub enum VectorName {
ZedLogo,
ZedXCopilot,
}
```
You can see in the above code we no longer need to manually specify
paths for image/icon enums like we currently do in
`ui::components::icon`.
The icon component will get this same treatment in the future, once we:
- do the design work needed to standardize the icons
- remove unused icons
- update icon names
Release Notes:
- N/A
2024-09-13 17:44:16 -04:00
..
2024-08-30 14:36:38 -07:00
2024-09-06 11:58:39 +02:00
2024-09-13 17:44:16 -04:00
2024-09-13 15:42:15 -04:00
2024-08-16 10:09:38 -07:00
2024-09-04 14:32:20 -04:00
2024-09-06 11:58:39 +02:00
2024-09-12 14:46:08 -04:00
2024-09-06 11:58:39 +02:00
2024-09-12 14:46:08 -04:00
2024-09-06 11:58:39 +02:00
2024-08-29 18:09:06 +02:00
2024-09-12 14:46:08 -04:00
2024-07-10 17:36:22 +02:00
2024-09-13 13:17:49 -04:00
2024-09-12 14:46:08 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-13 17:44:16 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-12 14:46:08 -04:00
2024-08-26 11:43:13 -04:00
2024-09-13 16:45:16 -04:00
2024-09-13 10:54:23 -04:00
2024-09-13 14:49:50 -04:00
2024-09-06 11:58:39 +02:00
2024-09-12 14:46:08 -04:00
2024-09-13 13:17:49 -04:00
2024-09-06 11:58:39 +02:00
2024-09-07 02:36:55 +02:00
2024-07-29 14:21:41 +02:00
2024-09-13 13:17:49 -04:00
2024-08-13 23:06:07 -07:00
2024-09-13 13:17:49 -04:00
2024-07-23 15:01:05 -07:00
2024-09-12 14:46:08 -04:00
2024-09-10 13:41:06 -04:00
2024-09-12 16:15:20 -04:00
2024-09-13 17:44:16 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-13 13:17:49 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-13 15:11:10 -04:00
2024-09-13 16:23:55 -04:00
2024-09-10 15:51:01 -04:00
2024-09-10 15:51:01 -04:00
2024-09-13 08:11:27 -04:00
2024-09-06 11:58:39 +02:00
2024-07-26 21:10:56 -04:00
2024-09-11 12:56:39 -04:00
2024-09-10 11:16:27 -04:00
2024-09-10 15:51:01 -04:00
2024-08-28 22:12:49 -07:00
2024-07-15 17:04:15 -06:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-08-13 01:43:19 +02:00
2024-09-05 11:05:57 -04:00
2024-09-13 16:23:55 -04:00
2024-09-06 11:58:39 +02:00
2024-09-12 14:46:08 -04:00
2024-09-10 15:25:57 -04:00
2024-09-06 11:58:39 +02:00
2024-07-13 21:59:14 +03:00
2024-09-12 15:23:27 -04:00
2024-09-13 13:17:49 -04:00
2024-07-19 11:13:15 +02:00
2024-09-13 13:17:49 -04:00
2024-09-10 15:51:01 -04:00
2024-09-13 17:05:34 -03:00
2024-09-06 11:58:39 +02:00
2024-09-10 15:51:01 -04:00
2024-09-10 16:41:29 -04:00
2024-09-12 14:46:08 -04:00
2024-09-10 11:16:27 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-07 19:58:28 -04:00
2024-09-13 13:17:49 -04:00
2024-09-06 11:58:39 +02:00
2024-09-07 00:51:09 -04:00
2024-09-06 11:58:39 +02:00
2024-07-22 00:57:34 +02:00
2024-09-06 15:47:17 +02:00
2024-09-06 11:58:39 +02:00
2024-08-20 14:27:33 -04:00
2024-09-06 11:58:39 +02:00
2024-09-13 17:44:16 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-08-27 00:51:51 +03:00
2024-09-06 11:58:39 +02:00
2024-09-12 14:46:08 -04:00
2024-08-21 20:24:35 -04:00
2024-09-07 10:51:02 -04:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-09-07 02:36:55 +02:00
2024-07-24 16:25:52 -04:00
2024-09-06 11:58:39 +02:00
2024-09-13 11:51:14 -07:00
2024-09-13 17:44:16 -04:00
2024-07-08 17:05:30 -04:00
2024-09-13 16:45:16 -04:00
2024-09-12 09:11:19 -04:00
2024-09-06 11:58:39 +02:00
2024-09-13 15:11:10 -04:00
2024-09-12 14:46:08 -04:00
2024-09-13 15:17:01 -04:00
2024-09-13 13:17:49 -04:00
2024-09-12 14:46:08 -04:00
2024-08-26 01:01:46 +03:00