Skip to content

Commit df94768

Browse files
committed
make button less appearant + use keyboard icon
1 parent ff261ee commit df94768

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/command_palette/src/command_palette.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ impl PickerDelegate for CommandPaletteDelegate {
475475
)
476476
.map(|keybind| {
477477
ButtonLike::new(name)
478+
.style(ButtonStyle::Transparent)
478479
.child(keybind)
479480
.tooltip(ui::Tooltip::text("Change key binding…"))
480481
.on_click(|_, window, cx| {
@@ -489,7 +490,9 @@ impl PickerDelegate for CommandPaletteDelegate {
489490
.into_any_element()
490491
})
491492
.unwrap_or_else(|| {
492-
IconButton::new(command.action.name(), IconName::Plus)
493+
IconButton::new(command.action.name(), IconName::Keyboard)
494+
.style(ButtonStyle::Transparent)
495+
.alpha(0.8)
493496
.icon_size(IconSize::XSmall)
494497
.tooltip(ui::Tooltip::text("Add key binding…"))
495498
.on_click(|_, window, cx| {

0 commit comments

Comments
 (0)