🎨 Prevent the white background from flashing when closing error windows in macOS dark mode (#16792)

This commit is contained in:
Jeffrey Chen 2026-01-08 01:03:23 +08:00 committed by GitHub
parent afc97f9fa7
commit 5f2abf9d9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
},