Keep the translucency effect even when the window loses focus on macOS. (#10196)

This commit is contained in:
fireblue
2025-01-14 02:06:09 +08:00
committed by GitHub
parent f9dadf0816
commit 66c173b1b5

View File

@@ -100,6 +100,10 @@ export class Window {
}
}
if (process.platform === 'darwin') {
bwOptions.visualEffectState = 'active'
}
if (process.platform === 'darwin') {
this.window = new BrowserWindow(bwOptions) as GlasstronWindow
} else {