From 66c173b1b540bf1084f8d05040020d5b14cab365 Mon Sep 17 00:00:00 2001 From: fireblue Date: Tue, 14 Jan 2025 02:06:09 +0800 Subject: [PATCH] Keep the translucency effect even when the window loses focus on macOS. (#10196) --- app/lib/window.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/window.ts b/app/lib/window.ts index 510652a7..8e01ee14 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -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 {