From 4b3b31c83d097380eede0e48673b27958286b208 Mon Sep 17 00:00:00 2001 From: yiling Date: Sat, 4 Jul 2026 11:25:39 +0800 Subject: [PATCH] style(webui): compare pane topbar is always dark with light text Force the dark palette on the compare pane topbar (via a scoped `dark` class + system tokens, no hardcoded hex) so the bar background is dark in both light and dark app themes. Active pane text uses text-foreground (white in the dark scope); inactive pane uses text-muted-foreground (light gray). --- .../compare/compare-pane-topbar.tsx | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/packages/webui/components/compare/compare-pane-topbar.tsx b/packages/webui/components/compare/compare-pane-topbar.tsx index e6d7544c..b7deed92 100644 --- a/packages/webui/components/compare/compare-pane-topbar.tsx +++ b/packages/webui/components/compare/compare-pane-topbar.tsx @@ -41,10 +41,8 @@ export function ComparePaneTopbar({ onExit, }: ComparePaneTopbarProps) { const iconButtonClass = cn( - 'flex-shrink-0 rounded p-1 transition-colors', - isActive - ? 'text-background/70 hover:bg-background/20 hover:text-background' - : 'text-muted-foreground hover:bg-accent hover:text-foreground', + 'flex-shrink-0 rounded p-1 transition-colors hover:bg-muted', + isActive ? 'text-foreground' : 'text-muted-foreground hover:text-foreground', ) const exitButton = ( @@ -57,10 +55,8 @@ export function ComparePaneTopbar({