agent: Add icon for Zed's max mode (#29610)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-04-29 15:31:50 -03:00 committed by GitHub
parent 2973bf188b
commit a376038803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,14 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2489_484)">
<path d="M11 8.9V11C8.51716 11 7.48284 11 5 11V10.4L11 5.6V5H5V7.1" stroke="black" stroke-width="1.5"/>
<path d="M1.5 5.5V1.5H5" stroke="black" stroke-opacity="0.5" stroke-width="1.5"/>
<path d="M14.5 5.5V1.5H11" stroke="black" stroke-opacity="0.5" stroke-width="1.5"/>
<path d="M1.5 10.5V14.5H5" stroke="black" stroke-opacity="0.5" stroke-width="1.5"/>
<path d="M14.5 10.5V14.5H11" stroke="black" stroke-opacity="0.5" stroke-width="1.5"/>
</g>
<defs>
<clipPath id="clip0_2489_484">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 687 B

View File

@ -413,7 +413,7 @@ impl MessageEditor {
let active_completion_mode = thread.completion_mode();
Some(
IconButton::new("max-mode", IconName::SquarePlus)
IconButton::new("max-mode", IconName::ZedMaxMode)
.icon_size(IconSize::Small)
.toggle_state(active_completion_mode == Some(CompletionMode::Max))
.on_click(cx.listener(move |this, _event, _window, cx| {
@ -424,7 +424,7 @@ impl MessageEditor {
});
});
}))
.tooltip(Tooltip::text("Max Mode"))
.tooltip(Tooltip::text("Toggle Max Mode"))
.into_any_element(),
)
}

View File

@ -247,6 +247,7 @@ pub enum IconName {
XCircle,
ZedAssistant,
ZedAssistantFilled,
ZedMaxMode,
ZedPredict,
ZedPredictDisabled,
ZedPredictDown,