windows vibrancy support (#5)

This commit is contained in:
Eugene Pankov
2018-08-09 11:44:30 -07:00
parent aaf6209d9f
commit abb313d118
6 changed files with 43 additions and 8 deletions

View File

@@ -218,8 +218,7 @@ export class AppRootComponent {
}
private updateVibrancy () {
document.body.classList.toggle('vibrant', this.config.store.appearance.vibrancy)
this.hostApp.getWindow().setVibrancy(this.config.store.appearance.vibrancy ? 'dark' : null)
this.hostApp.getWindow().setOpacity(this.config.store.appearance.opacity)
this.hostApp.setVibrancy(this.config.store.appearance.vibrancy)
this.hostApp.getWindow().setOpacity(this.config.store.appearance.opacity)
}
}