From 6cfbb54edeed1d755dda3949163770a012ee57e2 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Fri, 16 Aug 2024 14:01:56 -0400 Subject: [PATCH] Switch icon (#16363) Updates instances of the `MagicWand` icon to our more recent `Sparkle` / `ZedAssistant` icon in places where we reference inline assist. Before: ![CleanShot 2024-08-16 at 13 41 58@2x](https://github.com/user-attachments/assets/67af27a2-a09b-44bb-a8af-2bafcbbd9038) After: ![CleanShot 2024-08-16 at 13 48 34@2x](https://github.com/user-attachments/assets/229ccc8e-8a93-44c1-abe0-7b6e22ca93e2) Release Notes: - Updated inline assist icon in the editor & terminal. --- assets/icons/magic_wand.svg | 10 ---------- crates/assistant/src/assistant_panel.rs | 2 +- crates/quick_action_bar/src/quick_action_bar.rs | 2 +- crates/ui/src/components/icon.rs | 2 -- 4 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 assets/icons/magic_wand.svg diff --git a/assets/icons/magic_wand.svg b/assets/icons/magic_wand.svg deleted file mode 100644 index cd21947647..0000000000 --- a/assets/icons/magic_wand.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index ac2e54ab12..b27f2f2b3a 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -119,7 +119,7 @@ struct InlineAssistTabBarButton; impl Render for InlineAssistTabBarButton { fn render(&mut self, cx: &mut ViewContext) -> impl IntoElement { - IconButton::new("terminal_inline_assistant", IconName::MagicWand) + IconButton::new("terminal_inline_assistant", IconName::ZedAssistant) .icon_size(IconSize::Small) .on_click(cx.listener(|_, _, cx| { cx.dispatch_action(InlineAssist::default().boxed_clone()); diff --git a/crates/quick_action_bar/src/quick_action_bar.rs b/crates/quick_action_bar/src/quick_action_bar.rs index bda398eee1..5ac49189a9 100644 --- a/crates/quick_action_bar/src/quick_action_bar.rs +++ b/crates/quick_action_bar/src/quick_action_bar.rs @@ -141,7 +141,7 @@ impl Render for QuickActionBar { let assistant_button = QuickActionBarButton::new( "toggle inline assistant", - IconName::MagicWand, + IconName::ZedAssistant, false, Box::new(InlineAssist::default()), "Inline Assist", diff --git a/crates/ui/src/components/icon.rs b/crates/ui/src/components/icon.rs index b0062f5d67..dd8612e33a 100644 --- a/crates/ui/src/components/icon.rs +++ b/crates/ui/src/components/icon.rs @@ -195,7 +195,6 @@ pub enum IconName { LineHeight, Link, ListTree, - MagicWand, MagnifyingGlass, MailOpen, Maximize, @@ -359,7 +358,6 @@ impl IconName { IconName::LineHeight => "icons/line_height.svg", IconName::Link => "icons/link.svg", IconName::ListTree => "icons/list_tree.svg", - IconName::MagicWand => "icons/magic_wand.svg", IconName::MagnifyingGlass => "icons/magnifying_glass.svg", IconName::MailOpen => "icons/mail_open.svg", IconName::Maximize => "icons/maximize.svg",