From b7cfc9177ed6bcdabe82fa09147fb206e67fe3b8 Mon Sep 17 00:00:00 2001 From: LyAhn Date: Sun, 21 Jun 2026 08:48:05 +0100 Subject: [PATCH] fix: subtle-light theme parity for lightbox panel and media surfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In subtle-light, the lightbox dragged its whole surface (including the metadata panel) dark via media-dark-surface, while conventional-dark themed the panel normally. Scope the dark surface to the media canvas and re-light the panel by remapping --color-* variables on a .lightbox-panel wrapper (Tailwind v4 resolves every colour utility through these vars, so this re-themes the subtree — including accents — with no !important). Mark gallery/duplicate media tiles as media-dark-surface so their on-image overlays stay light-on-dark, and theme the window restore icon via var(--color-gray-950) instead of a hardcoded hex. --- src/components/DuplicateFinder.tsx | 2 +- src/components/Gallery.tsx | 2 +- src/components/Lightbox.tsx | 2 +- src/components/TitleBar.tsx | 2 +- src/index.css | 30 ++++++++++++++++++++++++++++++ 5 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/components/DuplicateFinder.tsx b/src/components/DuplicateFinder.tsx index 417045b..1ab85fe 100644 --- a/src/components/DuplicateFinder.tsx +++ b/src/components/DuplicateFinder.tsx @@ -71,7 +71,7 @@ function DuplicateGroupCard({ group }: { group: DuplicateGroup }) { return (