完善客户端模块与工作区能力
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-13 19:45:30 +08:00
parent 0148b91a15
commit 22add3f01f
97 changed files with 4756 additions and 3226 deletions

View File

@@ -258,7 +258,11 @@ function createWindow(): BrowserWindow {
sandbox: false,
webviewTag: false,
},
titleBarStyle: isMac ? 'hiddenInset' : useCustomTitleBar ? 'hidden' : 'default',
// `hiddenInset` leaves a native top inset in the renderer viewport. That
// makes a full-height Canvas look like it has an extra horizontal bar and
// clips the top of the columns. `hidden` keeps the traffic lights while
// giving the renderer the full window bounds.
titleBarStyle: isMac ? 'hidden' : useCustomTitleBar ? 'hidden' : 'default',
// Keep the native traffic lights on the same centerline as the 40px
// renderer title bar. The native glyphs sit about 7px below the
// configured origin, so y=13 centers them on the renderer controls.