From 6a3925c3e11dd7c017fc19d2a0855d4e0b1b31af Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Fri, 24 Nov 2023 09:22:31 -0500 Subject: [PATCH] Add copilot icons --- crates/ui2/src/components/icon.rs | 6 ++++++ crates/workspace2/src/status_bar.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ui2/src/components/icon.rs b/crates/ui2/src/components/icon.rs index 1f80c3bb267a812a5368b025a63980cc16f02ef9..575b4fdb2877b91da18ad104b0314a4a696efe70 100644 --- a/crates/ui2/src/components/icon.rs +++ b/crates/ui2/src/components/icon.rs @@ -32,6 +32,9 @@ pub enum Icon { Close, Collab, Copilot, + CopilotInit, + CopilotError, + CopilotDisabled, Dash, Envelope, ExclamationTriangle, @@ -93,6 +96,9 @@ impl Icon { Icon::Close => "icons/x.svg", Icon::Collab => "icons/user_group_16.svg", Icon::Copilot => "icons/copilot.svg", + Icon::CopilotInit => "icons/copilot_init.svg", + Icon::CopilotError => "icons/copilot_error.svg", + Icon::CopilotDisabled => "icons/copilot_disabled.svg", Icon::Dash => "icons/dash.svg", Icon::Envelope => "icons/feedback.svg", Icon::ExclamationTriangle => "icons/warning.svg", diff --git a/crates/workspace2/src/status_bar.rs b/crates/workspace2/src/status_bar.rs index c18cc883791f31ab0dd502a7fc63e73ccc733df7..e5b4c1d50aa40ceedbc502a102ce4c7e899e1f4a 100644 --- a/crates/workspace2/src/status_bar.rs +++ b/crates/workspace2/src/status_bar.rs @@ -89,7 +89,7 @@ impl Render for StatusBar { div() .border() .border_color(gpui::red()) - .child(IconButton::new("status-github", Icon::Hash)), + .child(IconButton::new("status-copilot", Icon::Copilot)), ) .child( // Feedback Tool