This commit is contained in:
2026-10-22 15:58:24 +07:00
parent 49f2d9edc1
commit bebb4cebbf
25 changed files with 147 additions and 100 deletions
+45
View File
@@ -0,0 +1,45 @@
use gpui::SharedString;
use gpui_kit::assets::IconNamed;
/// Coop icons kept from before the gpui-kit migration; absent from the kit bundle.
#[derive(Clone, Copy)]
pub enum IconName {
ArrowDownCircle,
ArrowLeft,
Book,
CaretDown,
CaretRight,
Compass,
Door,
Group,
Invite,
Message,
PlusChat,
Profile,
Relay,
Search,
Settings,
}
impl IconNamed for IconName {
fn path(self) -> SharedString {
match self {
Self::ArrowDownCircle => "icons/arrow-down-circle.svg",
Self::ArrowLeft => "icons/arrow-left.svg",
Self::Book => "icons/book.svg",
Self::CaretDown => "icons/caret-down.svg",
Self::CaretRight => "icons/caret-right.svg",
Self::Compass => "icons/compass.svg",
Self::Door => "icons/door.svg",
Self::Group => "icons/group.svg",
Self::Invite => "icons/invite.svg",
Self::Message => "icons/message.svg",
Self::PlusChat => "icons/plus-chat.svg",
Self::Profile => "icons/profile.svg",
Self::Relay => "icons/relay.svg",
Self::Search => "icons/search.svg",
Self::Settings => "icons/settings.svg",
}
.into()
}
}
+2
View File
@@ -1,5 +1,7 @@
pub use avatar::Avatar;
pub use icon::IconName;
pub use window_drag::title_bar_drag_handlers;
pub mod avatar;
pub mod icon;
pub mod window_drag;