macOS vibrancy fixes

This commit is contained in:
Eugene Pankov
2022-01-30 20:43:59 +01:00
parent 109a83db5b
commit 75764cd725
7 changed files with 12 additions and 9 deletions

View File

@@ -116,7 +116,6 @@ export default class ElectronModule {
if (this.hostApp.platform === Platform.Windows && !isWindowsBuild(WIN_BUILD_FLUENT_BG_SUPPORTED)) {
vibrancyType = null
}
document.body.classList.toggle('vibrant', this.config.store.appearance.vibrancy)
this.electron.ipcRenderer.send('window-set-vibrancy', this.config.store.appearance.vibrancy, vibrancyType)
this.hostWindow.setOpacity(this.config.store.appearance.opacity)