From d35b9ba14137c78ba1fae3b78964e55f38c9a584 Mon Sep 17 00:00:00 2001 From: jackwener Date: Thu, 9 Jul 2026 22:59:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(desktop):=20content=20surface=20is=20the=20?= =?UTF-8?q?palette=20background=20=E2=80=94=20pure=20white,=20real=20contr?= =?UTF-8?q?ast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The darwin glass palette stepped the content container down 0.015 (measured 0.985) 'so it wouldn't glare against vibrancy', which collapsed the card↔canvas contrast to Δ0.009 — the maintainer read it as 'content isn't pure white and barely separates from the sidebar'. The card is now the palette background verbatim (CDP-measured 1.0); separation is the canvas/sidebar's job (surface-canvas −0.024 + vibrancy), matching the reference's white-card-on-gray-shell. Dark glass keeps its +0.035 elevation. Desktop 2293/2293. --- apps/desktop/src/renderer/styles/theme-glass.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/renderer/styles/theme-glass.css b/apps/desktop/src/renderer/styles/theme-glass.css index 7ef2d5e2c9..7627533556 100644 --- a/apps/desktop/src/renderer/styles/theme-glass.css +++ b/apps/desktop/src/renderer/styles/theme-glass.css @@ -83,9 +83,14 @@ html[data-os="darwin"] { /* PALETTE-LEAK-0: the zinc hex here (#fafafa) overrode reference-shell's var(--background)-derived container for ALL of darwin, so the main content pane ignored palette switches entirely. Re-anchor on - --background so hue/chroma follow the active palette; the default - palette (background l=1.0) resolves to the same value. */ - --color-bg-container: oklch(from var(--background) calc(l - 0.015) c h); + --background so hue/chroma follow the active palette. + CONTENT-SURFACE-CONTRAST (maintainer, 2026-07-09): the extra −0.015 + step made the content card visibly off-white (measured 0.985) and + collapsed the card↔canvas contrast to Δ0.009 — "内容面不是纯白, + 和左边对比不够". The card is the palette background, full stop; + separation is the canvas/sidebar's job (surface-canvas −0.024 + + vibrancy), matching the reference's white-card-on-gray-shell. */ + --color-bg-container: var(--background); --color-text-quaternary: oklch(from var(--foreground) l c h / 0.45); }