Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent_ui: Tone down thinking icon button (#48962)

Danilo Lealbc72f6ef53d4
diff --git a/assets/icons/thinking_mode_off.svg b/assets/icons/thinking_mode_off.svg
new file mode 100644
index 00000000000..e313950ce41
--- /dev/null
+++ b/assets/icons/thinking_mode_off.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M6.03722 10.2625C5.9067 9.62316 6.03718 9.62442 5.05829 8.47947C4.73761 8.16533 4.51949 7.86033 4.37222 7.56792M6.03722 10.2625L6.03718 12.3893C6.03718 13.0544 6.58765 13.5937 7.2667 13.5937H8.72323C9.40228 13.5937 9.95264 13.0544 9.95264 12.3893V12.0283M6.03722 10.2625H7.5" stroke="#C6CAD0" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M6 2.9415C6.59896 2.59412 7.28707 2.40634 7.99495 2.40634C9.03341 2.40634 10.0294 2.81046 10.7637 3.52978C11.4979 4.2491 11.9105 5.22472 11.9105 6.242C11.9105 6.87697 11.6713 7.46553 11.3046 8" stroke="#C6CAD0" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M14.1225 13.809C14.0341 13.9146 13.877 13.9289 13.7711 13.8409L1.19311 3.4002C1.08659 3.31177 1.07221 3.15361 1.16104 3.04742L1.87752 2.191C1.96588 2.08539 2.123 2.07111 2.22895 2.15905L14.8069 12.5998C14.9134 12.6882 14.9278 12.8464 14.839 12.9526L14.1225 13.809Z" fill="#C6CAD0"/>
+</svg>
diff --git a/crates/agent_ui/src/acp/thread_view/active_thread.rs b/crates/agent_ui/src/acp/thread_view/active_thread.rs
index fe296c6f9e0..49c95f21cf0 100644
--- a/crates/agent_ui/src/acp/thread_view/active_thread.rs
+++ b/crates/agent_ui/src/acp/thread_view/active_thread.rs
@@ -2769,18 +2769,25 @@ impl AcpThreadView {
let thinking = thread.thinking_enabled();
- let (tooltip_label, icon) = if thinking {
- ("Disable Thinking Mode", IconName::ThinkingMode)
+ let (tooltip_label, icon, color) = if thinking {
+ (
+ "Disable Thinking Mode",
+ IconName::ThinkingMode,
+ Color::Muted,
+ )
} else {
- ("Enable Thinking Mode", IconName::ToolThink)
+ (
+ "Enable Thinking Mode",
+ IconName::ThinkingModeOff,
+ Color::Custom(cx.theme().colors().icon_disabled.opacity(0.8)),
+ )
};
let focus_handle = self.message_editor.focus_handle(cx);
let thinking_toggle = IconButton::new("thinking-mode", icon)
.icon_size(IconSize::Small)
- .icon_color(Color::Muted)
- .toggle_state(thinking)
+ .icon_color(color)
.tooltip(move |_, cx| {
Tooltip::for_action_in(tooltip_label, &ToggleThinkingMode, &focus_handle, cx)
})
diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rs
index 5ebafde1e0f..7daefe5ddc0 100644
--- a/crates/icons/src/icons.rs
+++ b/crates/icons/src/icons.rs
@@ -235,6 +235,7 @@ pub enum IconName {
TextSnippet,
TextThread,
ThinkingMode,
+ ThinkingModeOff,
Thread,
ThreadFromSummary,
ThumbsDown,