Update command palette style

This commit is contained in:
Nate Butler 2023-11-12 22:13:54 -05:00
parent 6bdb6e486e
commit 800ad1d3dc
3 changed files with 10 additions and 12 deletions

View file

@ -8,7 +8,7 @@ use gpui::{
use picker::{Picker, PickerDelegate};
use std::cmp::{self, Reverse};
use theme::ActiveTheme;
use ui::{modal, v_stack, Label};
use ui::{v_stack, Label, StyledExt};
use util::{
channel::{parse_zed_link, ReleaseChannel, RELEASE_CHANNEL},
ResultExt,
@ -305,15 +305,13 @@ impl PickerDelegate for CommandPaletteDelegate {
};
div()
.px_1()
.text_color(colors.text)
.when(selected, |s| {
s.border_l_10().border_color(colors.terminal_ansi_yellow)
})
.hover(|style| {
style
.bg(colors.element_active)
.text_color(colors.text_accent)
})
.text_ui()
.bg(colors.ghost_element_background)
.rounded_md()
.when(selected, |this| this.bg(colors.ghost_element_selected))
.hover(|this| this.bg(colors.ghost_element_hover))
.child(Label::new(command.name.clone()))
}