Skip to content

Commit 800ad1d

Browse files
committed
Update command palette style
1 parent 6bdb6e4 commit 800ad1d

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

crates/command_palette2/src/command_palette.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use gpui::{
88
use picker::{Picker, PickerDelegate};
99
use std::cmp::{self, Reverse};
1010
use theme::ActiveTheme;
11-
use ui::{modal, v_stack, Label};
11+
use ui::{v_stack, Label, StyledExt};
1212
use util::{
1313
channel::{parse_zed_link, ReleaseChannel, RELEASE_CHANNEL},
1414
ResultExt,
@@ -305,15 +305,13 @@ impl PickerDelegate for CommandPaletteDelegate {
305305
};
306306

307307
div()
308+
.px_1()
308309
.text_color(colors.text)
309-
.when(selected, |s| {
310-
s.border_l_10().border_color(colors.terminal_ansi_yellow)
311-
})
312-
.hover(|style| {
313-
style
314-
.bg(colors.element_active)
315-
.text_color(colors.text_accent)
316-
})
310+
.text_ui()
311+
.bg(colors.ghost_element_background)
312+
.rounded_md()
313+
.when(selected, |this| this.bg(colors.ghost_element_selected))
314+
.hover(|this| this.bg(colors.ghost_element_hover))
317315
.child(Label::new(command.name.clone()))
318316
}
319317

crates/editor2/src/editor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,7 @@ impl CodeActionsMenu {
15551555
let colors = cx.theme().colors();
15561556
div()
15571557
.px_2()
1558+
.text_ui()
15581559
.text_color(colors.text)
15591560
.when(selected, |style| {
15601561
style

crates/picker2/src/picker2.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,12 @@ impl<D: PickerDelegate> Render for Picker<D> {
156156
v_stack()
157157
.py_0p5()
158158
.px_1()
159-
.child(div().px_2().py_0p5().child(self.editor.clone())),
159+
.child(div().px_1().py_0p5().child(self.editor.clone())),
160160
)
161161
.child(Divider::horizontal())
162162
.child(
163163
v_stack()
164-
.py_0p5()
165-
.px_1()
164+
.p_1()
166165
.grow()
167166
.child(
168167
uniform_list("candidates", self.delegate.match_count(), {

0 commit comments

Comments
 (0)