mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Prevent the white background from flashing when closing error windows in macOS dark mode (#16792)
This commit is contained in:
@@ -218,6 +218,7 @@ const showErrorWindow = (titleZh, titleEn, content, emoji = "⚠️") => {
|
||||
titleBarStyle: "hidden",
|
||||
fullscreenable: false,
|
||||
icon: path.join(appDir, "stage", "icon-large.png"),
|
||||
transparent: "darwin" === process.platform, // 避免深色模式关闭窗口时闪现白色背景
|
||||
webPreferences: {
|
||||
nodeIntegration: true, webviewTag: true, webSecurity: false, contextIsolation: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user