Revert "vibrancy fixes"

This reverts commit a8d78ce185084406ab4d096399e321fe0f53fac4.
This commit is contained in:
Eugene Pankov 2021-01-09 17:29:37 +01:00
parent b5701cf9f9
commit ea92f1a700
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 7 additions and 4 deletions

View File

@ -91,10 +91,10 @@ export class Window {
}
}
if (process.platform === 'win32') {
this.window = new glasstron.BrowserWindow(bwOptions)
} else {
if (process.platform === 'darwin') {
this.window = new BrowserWindow(bwOptions) as GlasstronWindow
} else {
this.window = new glasstron.BrowserWindow(bwOptions)
}
this.window.once('ready-to-show', () => {
@ -155,6 +155,9 @@ 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)
}

View File

@ -66,7 +66,7 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab')
)
| Right
.form-line(*ngIf='hostApp.platform !== Platform.Linux')
.form-line
.header
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background
.title(*ngIf='hostApp.platform === Platform.macOS') Vibrancy