mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
assistant: Tweak the model selector design (#19704)
Exploring using the UI font for it, as it is more common for dropdowns and popovers throughout the app. Feeling like it makes it lighter and also shorter in width! | Before | After | |--------|--------| | <img width="1296" alt="Screenshot 2024-10-24 at 16 39 04" src="https://github.com/user-attachments/assets/0412f922-77a9-4d83-adf9-5632534d6c5b"> | <img width="1296" alt="Screenshot 2024-10-24 at 16 38 26" src="https://github.com/user-attachments/assets/8bf52ba7-fda7-4437-b53e-903c282f2931"> | Release Notes: - N/A
This commit is contained in:
parent
d45b830412
commit
6cd5c9e32f
1 changed files with 23 additions and 28 deletions
|
@ -158,21 +158,16 @@ impl PickerDelegate for ModelPickerDelegate {
|
|||
.spacing(ListItemSpacing::Sparse)
|
||||
.selected(selected)
|
||||
.start_slot(
|
||||
div().pr_1().child(
|
||||
div().pr_0p5().child(
|
||||
Icon::new(model_info.icon)
|
||||
.color(Color::Muted)
|
||||
.size(IconSize::Medium),
|
||||
),
|
||||
)
|
||||
.child(
|
||||
h_flex().w_full().justify_between().min_w(px(200.)).child(
|
||||
h_flex()
|
||||
.w_full()
|
||||
.justify_between()
|
||||
.font_buffer(cx)
|
||||
.min_w(px(240.))
|
||||
.child(
|
||||
h_flex()
|
||||
.gap_2()
|
||||
.gap_1p5()
|
||||
.child(Label::new(model_info.model.name().0.clone()))
|
||||
.child(
|
||||
Label::new(provider_name)
|
||||
|
@ -212,7 +207,7 @@ impl PickerDelegate for ModelPickerDelegate {
|
|||
h_flex()
|
||||
.w_full()
|
||||
.border_t_1()
|
||||
.border_color(cx.theme().colors().border)
|
||||
.border_color(cx.theme().colors().border_variant)
|
||||
.p_1()
|
||||
.gap_4()
|
||||
.justify_between()
|
||||
|
|
Loading…
Reference in a new issue