fix(mac): 修复隐藏标题栏拖拽;标题与内容左对齐;增加 banner 高度以避让交通灯
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user