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:
parent
9efa13116d
commit
dcd21e6f23
1 changed files with 3 additions and 3 deletions
|
@ -12,8 +12,8 @@ use rope::Point;
|
||||||
use settings::Settings;
|
use settings::Settings;
|
||||||
use theme::ThemeSettings;
|
use theme::ThemeSettings;
|
||||||
use ui::{
|
use ui::{
|
||||||
prelude::*, ButtonLike, CheckboxWithLabel, ElevationIndex, KeyBinding, PopoverMenu,
|
prelude::*, ButtonLike, ElevationIndex, KeyBinding, PopoverMenu, PopoverMenuHandle,
|
||||||
PopoverMenuHandle,
|
SwitchWithLabel,
|
||||||
};
|
};
|
||||||
use workspace::Workspace;
|
use workspace::Workspace;
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ impl Render for MessageEditor {
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.justify_between()
|
.justify_between()
|
||||||
.child(CheckboxWithLabel::new(
|
.child(SwitchWithLabel::new(
|
||||||
"use-tools",
|
"use-tools",
|
||||||
Label::new("Tools"),
|
Label::new("Tools"),
|
||||||
self.use_tools.into(),
|
self.use_tools.into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue