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: Add label to Max Mode toggle (#30003)

Marshall Bowers096355915a5d
diff --git a/crates/agent/src/message_editor.rs b/crates/agent/src/message_editor.rs
index 8b084ea513e..068f125b725 100644
--- a/crates/agent/src/message_editor.rs
+++ b/crates/agent/src/message_editor.rs
@@ -470,9 +470,13 @@ impl MessageEditor {
let active_completion_mode = thread.completion_mode();
Some(
- IconButton::new("max-mode", IconName::ZedMaxMode)
+ Button::new("max-mode", "Max Mode")
+ .label_size(LabelSize::Small)
+ .color(Color::Muted)
+ .icon(IconName::ZedMaxMode)
.icon_size(IconSize::Small)
.icon_color(Color::Muted)
+ .icon_position(IconPosition::Start)
.toggle_state(active_completion_mode == CompletionMode::Max)
.on_click(cx.listener(move |this, _event, _window, cx| {
this.thread.update(cx, |thread, _cx| {