From 0d54fd83c6f9e2c22385ac805bd6decc6c6d9354 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Sun, 17 May 2026 16:49:27 +0800 Subject: [PATCH] feat(ui): add --titlebar-height token for Desktop's frameless window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Desktop is switching from the native Windows titlebar to a custom one rendered in the renderer (frameless BrowserWindow + custom Min/Max/Close). The bar is 32px tall — the same height Windows draws its system titlebar — so expose it as a token here for any future Desktop layout that needs to subtract it. --- packages/ui/src/styles/theme.css | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/src/styles/theme.css b/packages/ui/src/styles/theme.css index 1e02b17f..608b8b96 100644 --- a/packages/ui/src/styles/theme.css +++ b/packages/ui/src/styles/theme.css @@ -62,6 +62,7 @@ --sidebar-ring: oklch(64% 0.16 230); --chrome-height: 3.25rem; /* 52px — uniform top-bar height */ + --titlebar-height: 2rem; /* 32px — Windows native titlebar height */ --shadow-color: 240 6% 10%; --shadow-xs: 0 1px 2px 0 hsl(var(--shadow-color) / 0.05);