From dcd21e6f23cef49738f99e2c91417d47fe4289ee Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 20 Dec 2024 21:15:47 -0300 Subject: [PATCH] assistant2: Use `SwitchWithLabel` for the tool toggle (#22317) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Screenshot 2024-12-20 at 8 52 27 PM Release Notes: - N/A --- crates/assistant2/src/message_editor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/assistant2/src/message_editor.rs b/crates/assistant2/src/message_editor.rs index d5da3c2d6a0b775997aba9b985ea8e00d44a9efb..f67e01dfe834961079fe6d89bc699538ef8c44b7 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(),