From 5f2abf9d9ed6326dae53527d2d61375f8ca457f0 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Thu, 8 Jan 2026 01:03:23 +0800 Subject: [PATCH] :art: Prevent the white background from flashing when closing error windows in macOS dark mode (#16792) --- app/electron/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/electron/main.js b/app/electron/main.js index 640bbf3ad..49daf94c7 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -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, },