feat: use unified compact title bar on windows and linux

Co-authored-by: rfc1437 <774975+rfc1437@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-17 07:45:06 +00:00
parent 0b3386bd61
commit cecbae9d27
2 changed files with 132 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ protocol.registerSchemesAsPrivileged([
]);
function createWindow(): void {
const isMac = process.platform === 'darwin';
mainWindow = new BrowserWindow({
width: 1400,
height: 900,
@@ -48,7 +49,17 @@ function createWindow(): void {
minHeight: 600,
title: 'Blogging Desktop Server',
backgroundColor: '#1e1e1e', // VS Code dark background
titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : 'default',
titleBarStyle: isMac ? 'hiddenInset' : 'hidden',
...(isMac
? {}
: {
titleBarOverlay: {
color: '#252526',
symbolColor: '#cccccc',
height: 34,
},
autoHideMenuBar: true,
}),
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: false,