parent
2973bf188b
commit
a376038803
14
assets/icons/zed_max_mode.svg
Normal file
14
assets/icons/zed_max_mode.svg
Normal 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 |
@ -413,7 +413,7 @@ impl MessageEditor {
|
|||||||
let active_completion_mode = thread.completion_mode();
|
let active_completion_mode = thread.completion_mode();
|
||||||
|
|
||||||
Some(
|
Some(
|
||||||
IconButton::new("max-mode", IconName::SquarePlus)
|
IconButton::new("max-mode", IconName::ZedMaxMode)
|
||||||
.icon_size(IconSize::Small)
|
.icon_size(IconSize::Small)
|
||||||
.toggle_state(active_completion_mode == Some(CompletionMode::Max))
|
.toggle_state(active_completion_mode == Some(CompletionMode::Max))
|
||||||
.on_click(cx.listener(move |this, _event, _window, cx| {
|
.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(),
|
.into_any_element(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -247,6 +247,7 @@ pub enum IconName {
|
|||||||
XCircle,
|
XCircle,
|
||||||
ZedAssistant,
|
ZedAssistant,
|
||||||
ZedAssistantFilled,
|
ZedAssistantFilled,
|
||||||
|
ZedMaxMode,
|
||||||
ZedPredict,
|
ZedPredict,
|
||||||
ZedPredictDisabled,
|
ZedPredictDisabled,
|
||||||
ZedPredictDown,
|
ZedPredictDown,
|
||||||
|
Loading…
Reference in New Issue
Block a user