keymap_editor: Adjust some items of the UI (#42876)
- Only showing the "Create" menu item in the right-click context menu for actions that _do not_ contain a binding already assigned to them - Only show the "Clear Input" icon button in the keystroke modal when the input is focused/in recording mode - Add a subtle hover style to the table rows just to make it easier to navigate Release Notes: - N/A
This commit is contained in:
@@ -641,11 +641,10 @@ pub fn render_table_row<const COLS: usize>(
|
||||
.map_or([None; COLS], |widths| widths.map(Some));
|
||||
|
||||
let mut row = h_flex()
|
||||
.h_full()
|
||||
.id(("table_row", row_index))
|
||||
.w_full()
|
||||
.justify_between()
|
||||
.size_full()
|
||||
.when_some(bg, |row, bg| row.bg(bg))
|
||||
.hover(|s| s.bg(cx.theme().colors().element_hover.opacity(0.6)))
|
||||
.when(!is_striped, |row| {
|
||||
row.border_b_1()
|
||||
.border_color(transparent_black())
|
||||
|
||||
Reference in New Issue
Block a user