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

<img width="800" alt="Screenshot 2024-12-20 at 8 52 27 PM"
src="https://github.com/user-attachments/assets/4b4f62a3-eb23-489b-a459-2117baaa37b4"
/>

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-12-20 21:15:47 -03:00 committed by GitHub
parent 9efa13116d
commit dcd21e6f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),