diff --git a/assets/icons/thinking_mode_off.svg b/assets/icons/thinking_mode_off.svg new file mode 100644 index 0000000000000000000000000000000000000000..e313950ce41303ad1bf799e5d65ab6d9ca0735ff --- /dev/null +++ b/assets/icons/thinking_mode_off.svg @@ -0,0 +1,5 @@ + + + + + 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 fe296c6f9e0abe7b5fc7926d23eed7a37e5e0633..49c95f21cf0949afc50853c80b65986d65a9e528 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 5ebafde1e0f4aee9c2179067cb39de358e05104c..7daefe5ddc089f84222a855f9fb9005e9dab6d07 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,