agent: Add label to Max Mode toggle (#30003)
This PR adds a label to the Max Mode toggle, for increased clarity: <img width="647" alt="Screenshot 2025-05-06 at 9 16 35 AM" src="https://github.com/user-attachments/assets/38cd55fb-43ad-430b-8b4c-5adf707317cf" /> Release Notes: - Agent Beta: Added a label to the Max Mode toggle.
This commit is contained in:
parent
e44367c6d0
commit
096355915a
1 changed files with 5 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue