From 7a21d0c7fc92966a1048718f7946fd9727b46e0a Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 7 May 2026 09:07:14 +0100 Subject: [PATCH] fix(ui): sync stale shadow rgba from pre-Phase-10a amber to current accent Eighteen sites across SegmentedButton, Toggle, HotkeyRecorder, ModelDownloader, FilesPage, and SettingsPage hardcoded the old amber rgba(232,168,124,...) for focus rings, glows, and progress bars. After the Phase 10a a11y darkening of --accent to #c98555, the inline shadows no longer matched the accent fill they were paired with, so every focused input rendered a glow at a noticeably different hue from its border. Replaced all of them with the current accent rgba(201,133,85,...). Toggle component also had two motion violations: an active:scale-95 press-shrink and a cubic-bezier(0.16,1,0.3,1) (ease-out-expo) thumb transition. Both replaced with the brand's --ease curve (0.2,0.8,0.2,1) and the scale dropped, in line with the record-button fix in the previous commit. Removed redundant inline transition-duration overrides on FilesPage Browse button (the global * rule already sets --duration-ui) and on ModelDownloader's primary CTA (also dropped its active:scale-[0.97]). --- src/lib/components/HotkeyRecorder.svelte | 2 +- src/lib/components/ModelDownloader.svelte | 4 ++-- src/lib/components/SegmentedButton.svelte | 2 +- src/lib/components/Toggle.svelte | 7 ++----- src/lib/pages/FilesPage.svelte | 5 ++--- src/lib/pages/SettingsPage.svelte | 24 +++++++++++------------ 6 files changed, 20 insertions(+), 24 deletions(-) diff --git a/src/lib/components/HotkeyRecorder.svelte b/src/lib/components/HotkeyRecorder.svelte index 141e2fc..271b487 100644 --- a/src/lib/components/HotkeyRecorder.svelte +++ b/src/lib/components/HotkeyRecorder.svelte @@ -187,7 +187,7 @@ type="button" class="inline-flex items-center gap-1.5 rounded-xl px-4 py-2.5 {recording - ? 'bg-bg-input border-accent shadow-[0_0_0_3px_rgba(232,168,124,0.1)]' + ? 'bg-bg-input border-accent shadow-[0_0_0_3px_rgba(201,133,85,0.1)]' : captured ? 'bg-bg-input border-border animate-pulse-warm' : 'bg-bg-input border-border hover:border-border'} diff --git a/src/lib/components/ModelDownloader.svelte b/src/lib/components/ModelDownloader.svelte index faa3728..5b3ff78 100644 --- a/src/lib/components/ModelDownloader.svelte +++ b/src/lib/components/ModelDownloader.svelte @@ -82,7 +82,7 @@
@@ -93,7 +93,7 @@ {:else}
diff --git a/src/lib/pages/FilesPage.svelte b/src/lib/pages/FilesPage.svelte index ad9ca32..cc03c32 100644 --- a/src/lib/pages/FilesPage.svelte +++ b/src/lib/pages/FilesPage.svelte @@ -199,8 +199,7 @@