From 44fdd65967b561527865a02cafce0de4cdc9fa70 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 5 May 2025 11:27:24 -0700 Subject: [PATCH] feat: use theme color for shortcuts rows --- gui/src/pages/config/KeyboardShortcuts.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gui/src/pages/config/KeyboardShortcuts.tsx b/gui/src/pages/config/KeyboardShortcuts.tsx index 4456bf45c..75e6eec18 100644 --- a/gui/src/pages/config/KeyboardShortcuts.tsx +++ b/gui/src/pages/config/KeyboardShortcuts.tsx @@ -11,13 +11,10 @@ interface KeyboardShortcutProps { function KeyboardShortcut(props: KeyboardShortcutProps) { return (
-
- {props.description}: +
+ {props.description}:
{props.shortcut} @@ -27,7 +24,7 @@ function KeyboardShortcut(props: KeyboardShortcutProps) { } // Shortcut strings will be rendered correctly based on the platform by the Shortcut component -const vscodeShortcuts: Omit[] = [ +const vscodeShortcuts: Omit[] = [ { shortcut: "cmd '", description: "Toggle Selected Model", @@ -84,7 +81,7 @@ const vscodeShortcuts: Omit[] = [ }, ]; -const jetbrainsShortcuts: Omit[] = [ +const jetbrainsShortcuts: Omit[] = [ { shortcut: "cmd '", description: "Toggle Selected Model", @@ -135,7 +132,7 @@ function KeyboardShortcuts() { }, []); return ( -
+

Keyboard shortcuts

{shortcuts.map((shortcut, i) => { @@ -154,4 +151,3 @@ function KeyboardShortcuts() { } export default KeyboardShortcuts; -