mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Fix border appearing when resizing window on Mac (#16358)
This commit is contained in:
parent
1d38f4a829
commit
dfd1a06cf1
1 changed files with 2 additions and 0 deletions
|
|
@ -325,6 +325,7 @@ const initMainWindow = () => {
|
||||||
fullscreenable: true,
|
fullscreenable: true,
|
||||||
fullscreen: windowState.fullscreen,
|
fullscreen: windowState.fullscreen,
|
||||||
trafficLightPosition: {x: 8, y: 8},
|
trafficLightPosition: {x: 8, y: 8},
|
||||||
|
transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
webviewTag: true,
|
webviewTag: true,
|
||||||
|
|
@ -1090,6 +1091,7 @@ app.whenReady().then(() => {
|
||||||
minWidth: 493,
|
minWidth: 493,
|
||||||
minHeight: 376,
|
minHeight: 376,
|
||||||
fullscreenable: true,
|
fullscreenable: true,
|
||||||
|
transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
|
||||||
frame: "darwin" === process.platform,
|
frame: "darwin" === process.platform,
|
||||||
icon: path.join(appDir, "stage", "icon-large.png"),
|
icon: path.join(appDir, "stage", "icon-large.png"),
|
||||||
titleBarStyle: "hidden",
|
titleBarStyle: "hidden",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue