Skip to content

Commit

Permalink
vibrancy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jan 9, 2021
1 parent bba1eac commit a8d78ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions app/lib/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion terminus-settings/src/components/settingsTab.component.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8d78ce

Please sign in to comment.