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.

assistant2: Use `SwitchWithLabel` for the tool toggle (#22317)

Danilo Lealdcd21e6f23ce
diff --git a/crates/assistant2/src/message_editor.rs b/crates/assistant2/src/message_editor.rs
index d5da3c2d6a0..f67e01dfe83 100644
--- a/crates/assistant2/src/message_editor.rs
+++ b/crates/assistant2/src/message_editor.rs
@@ -12,8 +12,8 @@ use rope::Point;
use settings::Settings;
use theme::ThemeSettings;
use ui::{
- prelude::*, ButtonLike, CheckboxWithLabel, ElevationIndex, KeyBinding, PopoverMenu,
- PopoverMenuHandle,
+ prelude::*, ButtonLike, ElevationIndex, KeyBinding, PopoverMenu, PopoverMenuHandle,
+ SwitchWithLabel,
};
use workspace::Workspace;
@@ -256,7 +256,7 @@ impl Render for MessageEditor {
.child(
h_flex()
.justify_between()
- .child(CheckboxWithLabel::new(
+ .child(SwitchWithLabel::new(
"use-tools",
Label::new("Tools"),
self.use_tools.into(),