Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17087

Daniel5eebb29831b2
diff --git a/app/electron/main.js b/app/electron/main.js
index dbe5b0b511..014f3ce959 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -303,6 +303,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,
},
@@ -403,7 +404,6 @@ const initMainWindow = () => {
fullscreenable: true,
fullscreen: windowState.fullscreen,
trafficLightPosition: {x: 8, y: 8},
- transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
webPreferences: {
nodeIntegration: true,
webviewTag: true,
@@ -1146,7 +1146,6 @@ 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",