Skip to content

The VS Code of video editing, built for agents.

TypeScript

Enhance Windows Mica integration and sidebar styling

konstantin-paulusa34c00d46ad8
diff --git a/apps/desktop/WINDOWS.md b/apps/desktop/WINDOWS.md
index 11346cc2..cf768b9d 100644
--- a/apps/desktop/WINDOWS.md
+++ b/apps/desktop/WINDOWS.md
@@ -433,9 +433,13 @@ How Mica is wired, and what to look at on hardware:
restore, fullscreen, and snap keep the material, the rounded corners, and
the resize border; the unfocused window (Windows swaps Mica for a solid
fallback colour by design) still looks right; no white flash on launch.
- If the sidebars read too light against the main column, give `--sidebar` a
- partial tint under `[data-backdrop="mica"]` in `index.css` instead of full
- transparency.
+- First run on Windows (2026-09-21): the material shows, but dark Mica
+ (around #202020) reads lighter than the macOS backdrop, which is tinted
+ with 7% grey at 0.9. In dark mode `--sidebar` is therefore that grey at 0.6
+ over the material instead of fully transparent; light Mica is within a shade
+ of `--sidebar` and takes no tint. The alpha is the knob. Since `--sidebar`
+ is translucent now, `bg-sidebar` must not stack: `WindowsTitleBar` has no
+ background and lets the editor root's show through.
Tasks:
diff --git a/apps/web/src/components/ui/windows-title-bar.tsx b/apps/web/src/components/ui/windows-title-bar.tsx
index 21103264..da0cf8b6 100644
--- a/apps/web/src/components/ui/windows-title-bar.tsx
+++ b/apps/web/src/components/ui/windows-title-bar.tsx
@@ -24,6 +24,9 @@ type WindowsTitleBarProps = {
* interactive inside it has to opt out with `-webkit-app-region: no-drag`.
* Its bottom border runs the full width, so the first row of the left sidebar
* drops its own top border on Windows.
+ * It has no background of its own: the page root's `bg-sidebar` shows through
+ * the padding it sits in, and a second coat would double the tint `--sidebar`
+ * carries over Mica.
* Renders nothing on other platforms; the editor clears it with
* `--titlebar-height`. The dashboard has no such row: its sidebar header and
* view headers line up with the controls instead.
@@ -32,7 +35,7 @@ export function WindowsTitleBar(props: WindowsTitleBarProps) {
return (
<Show when={isWindowsDesktop()}>
<div
- class="fixed inset-x-0 top-0 z-20 flex h-(--titlebar-height) border-b border-border bg-sidebar"
+ class="fixed inset-x-0 top-0 z-20 flex h-(--titlebar-height) border-b border-border"
style="-webkit-app-region: drag;"
>
<div
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 5d1ccc82..b91480cd 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -262,6 +262,14 @@
--sidebar: hsla(0, 0%, 0%, 0);
}
+/* Dark Mica sits around #202020, lighter than the macOS backdrop, which main
+ tints with `MACOS_BACKDROP` (7% grey at 0.9). The sidebars lay the same grey
+ over the material to land at that depth; raise the alpha to go darker. Light
+ Mica is already within a shade of `--sidebar` and takes no tint. */
+[data-backdrop="mica"][data-kb-theme="dark"] {
+ --sidebar: hsla(0, 0%, 7%, 0.6);
+}
+
@layer base {
* {
@apply border-border outline-ring/50 select-none;