From edb2f60d9d7fa2eb9f98d0848c70959447707333 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 7 Dec 2023 10:53:24 +0100 Subject: [PATCH] Use the correct icons in AssistantPanel header --- crates/assistant2/src/assistant_panel.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/assistant2/src/assistant_panel.rs b/crates/assistant2/src/assistant_panel.rs index 876225c7e7b4e448f70524fcd240605a8ba87fd6..359056d9d3d4826cbd9014261e0325c67069acd4 100644 --- a/crates/assistant2/src/assistant_panel.rs +++ b/crates/assistant2/src/assistant_panel.rs @@ -955,7 +955,7 @@ impl AssistantPanel { } fn render_split_button(cx: &mut ViewContext) -> impl IntoElement { - IconButton::new("split_button", Icon::Menu) + IconButton::new("split_button", Icon::SplitMessage) .on_click(cx.listener(|this, _event, cx| { if let Some(active_editor) = this.active_editor() { active_editor.update(cx, |editor, cx| editor.split(&Default::default(), cx)); @@ -965,7 +965,7 @@ impl AssistantPanel { } fn render_assist_button(cx: &mut ViewContext) -> impl IntoElement { - IconButton::new("assist_button", Icon::Menu) + IconButton::new("assist_button", Icon::MagicWand) .on_click(cx.listener(|this, _event, cx| { if let Some(active_editor) = this.active_editor() { active_editor.update(cx, |editor, cx| editor.assist(&Default::default(), cx)); @@ -975,7 +975,7 @@ impl AssistantPanel { } fn render_quote_button(cx: &mut ViewContext) -> impl IntoElement { - IconButton::new("quote_button", Icon::Menu) + IconButton::new("quote_button", Icon::Quote) .on_click(cx.listener(|this, _event, cx| { if let Some(workspace) = this.workspace.upgrade() { cx.window_context().defer(move |cx| { @@ -989,7 +989,7 @@ impl AssistantPanel { } fn render_plus_button(cx: &mut ViewContext) -> impl IntoElement { - IconButton::new("plus_button", Icon::Menu) + IconButton::new("plus_button", Icon::Plus) .on_click(cx.listener(|this, _event, cx| { this.new_conversation(cx); })) @@ -998,7 +998,7 @@ impl AssistantPanel { fn render_zoom_button(&self, cx: &mut ViewContext) -> impl IntoElement { let zoomed = self.zoomed; - IconButton::new("zoom_button", Icon::Menu) + IconButton::new("zoom_button", Icon::MagnifyingGlass) .on_click(cx.listener(|this, _event, cx| { this.toggle_zoom(&ToggleZoom, cx); }))