Switch icon (#16363)

Nate Butler created

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.

Change summary

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(-)

Detailed changes

assets/icons/magic_wand.svg 🔗

@@ -1,10 +0,0 @@
-<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-    <path d="M3 13L7.01562 8.98438" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M8.6875 7.3125L9.5 6.5" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M7 5V3" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M12 5V3" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M12 10V8" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M6 4L8 4" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M11 4L13 4" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-    <path d="M11 9L13 9" stroke="black" stroke-width="1.5" stroke-linecap="round"/>
-</svg>

crates/assistant/src/assistant_panel.rs 🔗

@@ -119,7 +119,7 @@ struct InlineAssistTabBarButton;
 
 impl Render for InlineAssistTabBarButton {
     fn render(&mut self, cx: &mut ViewContext<Self>) -> 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());

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",

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",