feat: M5 透明窗+亚克力(FR-A2,BrowserWindow transparent/backgroundMaterial=acrylic,App 根用 var(--bg-primary),透明主题透出亚克力)

This commit is contained in:
hunter-dev
2026-08-24 23:52:45 +08:00
parent 566c8ba10e
commit 545bc38370
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ function createWindow() {
win = new BrowserWindow({
width: 1200, height: 760, minWidth: 900, minHeight: 580,
center: true, frame: false, show: false,
transparent: true, backgroundColor: '#00000000', backgroundMaterial: 'acrylic',
webPreferences: {
preload: nodePath.join(__dirname, '../preload/index.mjs'),
contextIsolation: true, nodeIntegration: false, sandbox: false