mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
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 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(),
|
||||
|
|
Loading…
Reference in a new issue