feat(app): add keyboard shortcut to cycle themes

This commit is contained in:
Mohamed Boudra
2026-04-10 18:50:50 +07:00
parent faf85e038c
commit 01af138939
4 changed files with 46 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ export type KeyboardActionId =
| "worktree.new"
| "worktree.archive"
| "view.toggle.focus"
| "theme.cycle"
| "message-input.action";
export type KeyboardShortcutPayload =
@@ -744,6 +744,32 @@ const SHORTCUT_BINDINGS: readonly ShortcutBinding[] = [
},
},
// --- Theme cycling ---
{
id: "theme-cycle-cmd-shift-t-mac",
action: "theme.cycle",
combo: "Cmd+Alt+T",
when: { mac: true, commandCenter: false },
help: {
id: "cycle-theme",
section: "panels",
label: "Cycle theme",
keys: ["mod", "alt", "T"],
},
},
{
id: "theme-cycle-ctrl-alt-t-non-mac",
action: "theme.cycle",
combo: "Ctrl+Alt+T",
when: { mac: false, commandCenter: false, terminal: false },
help: {
id: "cycle-theme",
section: "panels",
label: "Cycle theme",
keys: ["mod", "alt", "T"],
},
},
// --- Message input ---
{
id: "message-input-voice-toggle-cmd-shift-d-mac",