From a8d78ce185084406ab4d096399e321fe0f53fac4 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 9 Jan 2021 17:02:01 +0100 Subject: [PATCH] vibrancy fixes --- app/lib/window.ts | 9 +++------ .../src/components/settingsTab.component.pug | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/lib/window.ts b/app/lib/window.ts index 6189b4ab..e817c7c1 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -91,10 +91,10 @@ export class Window { } } - if (process.platform === 'darwin') { - this.window = new BrowserWindow(bwOptions) as GlasstronWindow - } else { + if (process.platform === 'win32') { this.window = new glasstron.BrowserWindow(bwOptions) + } else { + this.window = new BrowserWindow(bwOptions) as GlasstronWindow } this.window.once('ready-to-show', () => { @@ -155,9 +155,6 @@ export class Window { } else { DwmEnableBlurBehindWindow(this.window, enabled) } - } else if (process.platform === 'linux') { - this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27') - this.window.setBlur(enabled) } else { this.window.setVibrancy(enabled ? macOSVibrancyType : null) } diff --git a/terminus-settings/src/components/settingsTab.component.pug b/terminus-settings/src/components/settingsTab.component.pug index 7b1be36c..37b9ee48 100644 --- a/terminus-settings/src/components/settingsTab.component.pug +++ b/terminus-settings/src/components/settingsTab.component.pug @@ -66,7 +66,7 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab') ) | Right - .form-line + .form-line(*ngIf='hostApp.platform !== Platform.Linux') .header .title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background .title(*ngIf='hostApp.platform === Platform.macOS') Vibrancy