🔧 chore: 更新依赖版本,优化 Electron 窗口设置,调整歌词窗口背景色样式

This commit is contained in:
algerkong
2025-04-18 19:18:31 +08:00
parent 76e55d4e6b
commit a676136f48
3 changed files with 33 additions and 17 deletions
+4 -1
View File
@@ -84,15 +84,18 @@ const createWin = () => {
frame: false,
show: false,
transparent: true,
opacity: 1,
hasShadow: false,
alwaysOnTop: true,
resizable: true,
roundedCorners: false,
// 添加跨屏幕支持选项
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
sandbox: false,
contextIsolation: true
}
},
backgroundColor: '#00000000'
});
// 监听窗口关闭事件