-
{t(`actions.${action}`)}
+
+ {t(`actions.${action}`)}
{
@@ -168,18 +168,18 @@ export function ShortcutsConfigDialog() {
className={[
"px-2 py-1 rounded text-xs font-mono border transition-all min-w-[90px] text-center select-none",
isCapturing
- ? "bg-[#34B27B]/20 border-[#34B27B] text-[#34B27B] animate-pulse"
+ ? "bg-[var(--brand-soft)] border-[var(--brand)] text-[var(--brand)] animate-pulse"
: hasConflict
- ? "bg-amber-500/10 border-amber-500/50 text-amber-400"
- : "bg-white/5 border-white/10 text-slate-200 hover:border-[#34B27B]/50 hover:text-[#34B27B] cursor-pointer",
+ ? "bg-[var(--warn-soft)] border-[var(--warn)] text-[var(--warn)]"
+ : "bg-[var(--surface-2)] border-[var(--border)] text-[var(--fg-2)] hover:border-[var(--brand)] hover:text-[var(--brand)] cursor-pointer",
].join(" ")}
>
{isCapturing ? t("pressKey") : formatBinding(draft[action], isMac)}
{hasConflict && conflict?.conflictWith.type === "configurable" && (
-
-
+
+
⚠{" "}
{t("alreadyUsedBy", {
action: t(`actions.${conflict.conflictWith.action}`),
@@ -189,14 +189,14 @@ export function ShortcutsConfigDialog() {
{t("swap")}
{tc("actions.cancel")}
@@ -209,32 +209,32 @@ export function ShortcutsConfigDialog() {
-
+
{t("fixed")}
{FIXED_SHORTCUTS.map(({ i18nKey, label, display }) => (
-
+
{t(`fixedActions.${i18nKey}`, { defaultValue: label })}
-
+
{display}
))}
- {t("helpText")}
+ {t("helpText")}
@@ -246,7 +246,7 @@ export function ShortcutsConfigDialog() {
{tc("actions.save")}