fix(mac): 修复隐藏标题栏拖拽;标题与内容左对齐;增加 banner 高度以避让交通灯

This commit is contained in:
Jason
2025-08-10 19:13:45 +08:00
parent 65a660fcdc
commit 5f0ef8a441
5 changed files with 39 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ import {
import { store } from "./store";
let mainWindow: BrowserWindow | null = null;
const isMac = process.platform === "darwin";
function createWindow() {
mainWindow = new BrowserWindow({
@@ -27,7 +28,8 @@ function createWindow() {
contextIsolation: true,
nodeIntegration: false,
},
titleBarStyle: "hiddenInset",
// 使用 macOS 隐藏式标题栏,仅在 macOS 启用
...(isMac ? { titleBarStyle: "hiddenInset" as const } : {}),
autoHideMenuBar: true,
});