🎨 Fix border appearing when resizing window on Mac (#16358)

This commit is contained in:
Jeffrey Chen 2025-11-16 10:35:22 +08:00 committed by GitHub
parent 1d38f4a829
commit dfd1a06cf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -325,6 +325,7 @@ const initMainWindow = () => {
fullscreenable: true,
fullscreen: windowState.fullscreen,
trafficLightPosition: {x: 8, y: 8},
transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
webPreferences: {
nodeIntegration: true,
webviewTag: true,
@ -1090,6 +1091,7 @@ app.whenReady().then(() => {
minWidth: 493,
minHeight: 376,
fullscreenable: true,
transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
frame: "darwin" === process.platform,
icon: path.join(appDir, "stage", "icon-large.png"),
titleBarStyle: "hidden",