Switch icon (#16363)
Nate Butler
created 1 year ago
Updates instances of the `MagicWand` icon to our more recent `Sparkle` /
`ZedAssistant` icon in places where we reference inline assist.
Before:

After:

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
@@ -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>
@@ -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());
@@ -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",
@@ -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",