From fcb2a1151fd149a2d2ec6eb12900812db4eb4e21 Mon Sep 17 00:00:00 2001 From: Serhii Vecherenko Date: Mon, 15 Jun 2026 14:42:38 -0700 Subject: [PATCH 1/2] fix(sidebar): keep overlay panels opaque and fade docked content - Use full-height opaque backgrounds for floating overlay sidebars - Fade docked panel content while keeping the aside shell opaque - Default sidebar translucency to on --- src/renderer/styles.css | 37 +++++++++++-- .../parts/AppShell/parts/AsideSlot.tsx | 55 +++++++++++++------ src/shared/settings.ts | 6 +- 3 files changed, 73 insertions(+), 25 deletions(-) diff --git a/src/renderer/styles.css b/src/renderer/styles.css index ee9714b2..eafbdeab 100644 --- a/src/renderer/styles.css +++ b/src/renderer/styles.css @@ -1059,6 +1059,12 @@ 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); +} /* 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 +1097,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 +2409,27 @@ html[data-platform="darwin"] .lightcode-content-over-drag-region--drag { } } +/* Docked right/bottom panel content fade. The panel's