Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(settings): icon appearance for the shortcut recorder + row icons
enesb51d7409c96a
diff --git a/src/renderer/components/settings/ShortcutRecorderButton.tsx b/src/renderer/components/settings/ShortcutRecorderButton.tsxindex efe5a9c17..260058eed 100644--- a/src/renderer/components/settings/ShortcutRecorderButton.tsx+++ b/src/renderer/components/settings/ShortcutRecorderButton.tsx@@ -40,17 +40,22 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { COMMANDS_BY_ID, normalizeBindingForCommand, type CommandId } from '@shared/keybindings'import { isMacPlatform } from '@shared/platform-utils'import { recordingKeydown, recordingKeyup, type RecordingState } from './shortcutRecording'+import { IconRecordKey } from './ShortcutRowIcons'const isMac = isMacPlatform()export function ShortcutRecorderButton({commandId,idleLabel,- onCommit+ onCommit,+ appearance = 'button',+ label}: {commandId: CommandIdidleLabel: stringonCommit: (combo: string) => void+ appearance?: 'button' | 'icon'+ label?: string}): React.JSX.Element {const [capturing, setCapturing] = useState(false)const [hint, setHint] = useState('')@@ -118,19 +123,40 @@ export function ShortcutRecorderButton({const action = recordingKeyup(stateRef.current, e, opts)if (action.kind === 'commit') commit(action.combo)}+ const effectiveLabel = label ?? idleLabel+ // ARMED look is the design spec's accent pill, identical for both appearances — an armed+ // recorder should look the same everywhere. Idle look depends on `appearance`; the 'button'+ // idle branch is byte-identical to the pre-appearance markup.+ const className = capturing+ ? 'min-w-[140px] rounded-md border border-accent bg-[color:var(--accent)]/10 px-3 py-1 text-[12px] text-text ring-1 ring-[color:var(--accent)]/40'+ : appearance === 'icon'+ ? 'flex size-6 items-center justify-center rounded-md text-muted hover:bg-fill-weak hover:text-text'+ : 'min-w-[120px] cursor-pointer rounded-md border border-border bg-panel-header px-3 py-1.5 text-[13px] font-medium text-text outline-none hover:bg-[rgba(255,255,255,0.06)]'+ const isIdleIcon = appearance === 'icon' && !capturingreturn (<buttontype="button"// Observability only — no dispatcher reads it (see the header). Keeps the armed state// visible to tests and to anyone inspecting the DOM.data-shortcut-recording={capturing || undefined}- className="min-w-[120px] cursor-pointer rounded-md border border-border bg-panel-header px-3 py-1.5 text-[13px] font-medium text-text outline-none hover:bg-[rgba(255,255,255,0.06)]"+ className={className}onClick={start}onKeyDown={onKeyDown}onKeyUp={onKeyUp}onBlur={stop}+ aria-label={isIdleIcon ? effectiveLabel : undefined}+ title={isIdleIcon ? effectiveLabel : undefined}>- {capturing ? hint || 'Press keys…' : idleLabel}+ {capturing ? (+ <>+ <span className="mr-1.5 inline-block size-1.5 rounded-full bg-accent animate-pulse" />+ {hint || 'Press keys…'}+ </>+ ) : appearance === 'icon' ? (+ <IconRecordKey />+ ) : (+ idleLabel+ )}</button>)}diff --git a/src/renderer/components/settings/ShortcutRowIcons.tsx b/src/renderer/components/settings/ShortcutRowIcons.tsxnew file mode 100644index 000000000..d49265a26--- /dev/null+++ b/src/renderer/components/settings/ShortcutRowIcons.tsx@@ -0,0 +1,59 @@+/** Small line-glyph icons for shortcut rows, in `SettingsIcons.tsx`'s shared-svg convention:+ * 16×16, currentColor stroke, color driven by the parent. */++function IconSvg({ children }: { children: React.ReactNode }): React.JSX.Element {+ return (+ <svg+ width="16"+ height="16"+ viewBox="0 0 16 16"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.4"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ {children}+ </svg>+ )+}++/** A keycap: rounded rect + center dot — the shortcut recorder's idle icon. */+export function IconRecordKey(): React.JSX.Element {+ return (+ <IconSvg>+ <rect x="2.5" y="3.5" width="11" height="9" rx="2" />+ <circle cx="8" cy="8" r="1" fill="currentColor" stroke="none" />+ </IconSvg>+ )+}++/** A small plus — add another binding. */+export function IconPlusSmall(): React.JSX.Element {+ return (+ <IconSvg>+ <path d="M8 3.5v9M3.5 8h9" />+ </IconSvg>+ )+}++/** A slash through a circle — disable this shortcut. */+export function IconDisableSlash(): React.JSX.Element {+ return (+ <IconSvg>+ <circle cx="8" cy="8" r="5.5" />+ <path d="M4.7 11.3 11.3 4.7" />+ </IconSvg>+ )+}++/** A counter-clockwise rotate arrow with an arrowhead — reset to default. */+export function IconResetArrow(): React.JSX.Element {+ return (+ <IconSvg>+ <path d="M12.8 8A4.8 4.8 0 1 1 8 3.2" />+ <path d="M8 3.2H5M8 3.2v3" />+ </IconSvg>+ )+}