diff --git a/src/renderer/styles.css b/src/renderer/styles.css index ee9714b2..4c7d2e4b 100644 --- a/src/renderer/styles.css +++ b/src/renderer/styles.css @@ -1059,6 +1059,19 @@ html[data-native-material="on"] .lightcode-sidebar-aside { html[data-native-material="on"] .lightcode-sidebar-aside .lightcode-overlay-header { background: transparent; } +/* The floating overlay sidebar sits over dimmed content, where a translucent + tint reads muddy and hurts legibility — paint it fully opaque (the glass tint + at 100%). Docked sidebars keep the translucent tint set above. */ +html[data-native-material="on"] .lightcode-sidebar-aside--overlay { + background: var(--content-background); +} +/* While the overlay sidebar slides out and snaps to the collapsed rail, the + spacer that reserves the rail's slot is briefly uncovered. Give it the same + glass tint as the docked collapsed rail so the strip never flashes raw + acrylic before the rail paints in. */ +html[data-native-material="on"] .lightcode-sidebar-spacer { + background: var(--sidebar-glass-tint); +} /* Windows-only frosting bump. DWM acrylic blurs whatever sits behind the window, so the backdrop bleeds through the tint and drags the sidebar toward it: a dark theme over a bright window washes out toward grey, while a light theme over a @@ -1091,12 +1104,10 @@ html[data-sidebar-glass="on"]:not([data-native-material="on"]) .lightcode-overlay-header { background: transparent; } -/* Real blur only for the floating overlay sidebar (it sits over content). */ -@supports (backdrop-filter: blur(1px)) { - html[data-sidebar-glass="on"]:not([data-native-material="on"]) .lightcode-sidebar-aside--overlay { - background: color-mix(in oklab, var(--sidebar-background) 70%, transparent); - backdrop-filter: blur(18px) saturate(1.5); - } +/* In-app fallback overlay sidebar: opaque too — it floats over dimmed content, + so the faux-glass tint/blur used for the docked fallback would read muddy. */ +html[data-sidebar-glass="on"]:not([data-native-material="on"]) .lightcode-sidebar-aside--overlay { + background: var(--sidebar-background); } /* Overlays (settings, git review, file editor, …) reuse the same AppShell, so @@ -2405,6 +2416,27 @@ html[data-platform="darwin"] .lightcode-content-over-drag-region--drag { } } +/* Docked right/bottom panel content fade. The panel's