assistant: Use square buttons for the inline assist model selector (#14928)

This PR updates the model selector buttons in the inline assistant to
use `IconButtonShape::Square`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-21 13:59:21 -04:00 committed by GitHub
parent 2d96bba61f
commit 83f6a7f228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ use std::{
time::{Duration, Instant},
};
use theme::ThemeSettings;
use ui::{prelude::*, ContextMenu, PopoverMenu, Tooltip};
use ui::{prelude::*, ContextMenu, IconButtonShape, PopoverMenu, Tooltip};
use util::RangeExt;
use workspace::{notifications::NotificationId, Toast, Workspace};
@ -1461,7 +1461,7 @@ impl Render for PromptEditor {
})
.trigger(
IconButton::new("context", IconName::Settings)
.size(ButtonSize::None)
.shape(IconButtonShape::Square)
.icon_size(IconSize::Small)
.icon_color(Color::Muted)
.tooltip(move |cx| {
@ -1473,7 +1473,7 @@ impl Render for PromptEditor {
.display_name()
),
None,
"Click to Change Model",
"Change Model",
cx,
)
}),

View File

@ -27,7 +27,7 @@ use std::{
use terminal::Terminal;
use terminal_view::TerminalView;
use theme::ThemeSettings;
use ui::{prelude::*, ContextMenu, PopoverMenu, Tooltip};
use ui::{prelude::*, ContextMenu, IconButtonShape, PopoverMenu, Tooltip};
use util::ResultExt;
use workspace::{notifications::NotificationId, Toast, Workspace};
@ -588,7 +588,7 @@ impl Render for PromptEditor {
})
.trigger(
IconButton::new("context", IconName::Settings)
.size(ButtonSize::None)
.shape(IconButtonShape::Square)
.icon_size(IconSize::Small)
.icon_color(Color::Muted)
.tooltip(move |cx| {
@ -600,7 +600,7 @@ impl Render for PromptEditor {
.display_name()
),
None,
"Click to Change Model",
"Change Model",
cx,
)
}),