From 19be201564a886b12c3c251798efa80b624ba9d8 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:28:26 -0600 Subject: [PATCH] fix: theme-aware borders for action buttons - Use --border-strong and --border-subtle instead of hardcoded rgba - Add border variables to OLED and Warm themes - Primary button: 2px subtle border normal, prominent on hover - Secondary buttons: 1px strong border, prominent on hover - Fix AlbumMenu trigger border color --- src/app.css | 10 ++++++++-- src/lib/components/views/AlbumDetailView.svelte | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app.css b/src/app.css index 1b2ef13f7..de4d0f593 100644 --- a/src/app.css +++ b/src/app.css @@ -59,6 +59,9 @@ --bg-secondary: #0a0a0a; --bg-tertiary: #1a1a1a; --bg-hover: #111111; + + --border-subtle: #1a1a1a; + --border-strong: #2a2a2a; } /* Warm Theme */ @@ -71,6 +74,9 @@ --accent-primary: #d4a574; --accent-hover: #e0b888; --accent-active: #c49460; + + --border-subtle: #2e2820; + --border-strong: #3d362a; } /* Nord Theme */ @@ -357,7 +363,7 @@ select { width: 36px; height: 36px; border-radius: 50%; - border: 1px solid rgba(255, 255, 255, 0.3); + border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); cursor: pointer; @@ -379,7 +385,7 @@ select { width: 44px; height: 44px; background: var(--accent-primary); - border: 2px solid transparent; + border: 2px solid var(--border-subtle); color: var(--text-primary); transition: background 150ms ease, border-color 200ms ease; } diff --git a/src/lib/components/views/AlbumDetailView.svelte b/src/lib/components/views/AlbumDetailView.svelte index 3e0aa4781..6a0689b90 100644 --- a/src/lib/components/views/AlbumDetailView.svelte +++ b/src/lib/components/views/AlbumDetailView.svelte @@ -442,7 +442,7 @@ .actions :global(.album-menu .menu-trigger) { width: 36px; height: 36px; - border: 1px solid rgba(255, 255, 255, 0.3); + border: 1px solid var(--border-strong); color: var(--text-muted); }