diff --git a/app/lib/window.ts b/app/lib/window.ts index 1b180b53..20cd1737 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -6,13 +6,9 @@ import * as fs from 'fs' import * as os from 'os' import * as path from 'path' -let electronVibrancy: any let SetWindowCompositionAttribute: any let AccentState: any let DwmEnableBlurBehindWindow: any -if (process.platform === 'darwin') { - electronVibrancy = require('electron-vibrancy') -} if (process.platform === 'win32') { SetWindowCompositionAttribute = require('windows-swca').SetWindowCompositionAttribute AccentState = require('windows-swca').AccentState @@ -117,13 +113,6 @@ export class Window { } else { DwmEnableBlurBehindWindow(this.window, enabled) } - } else if (process.platform === 'darwin') { - if (enabled && !this.vibrancyViewID) { - this.vibrancyViewID = electronVibrancy.SetVibrancy(this.window, 0) - } else if (!enabled && this.vibrancyViewID) { - electronVibrancy.RemoveView(this.window, this.vibrancyViewID) - this.vibrancyViewID = null - } } } diff --git a/app/package.json b/app/package.json index bfaffc7a..a95964af 100644 --- a/app/package.json +++ b/app/package.json @@ -25,7 +25,6 @@ "electron-debug": "^2.0.0", "electron-is-dev": "0.1.2", "electron-squirrel-startup": "^1.0.0", - "electron-vibrancy": "^0.1.3", "js-yaml": "3.8.2", "mz": "^2.6.0", "ngx-toastr": "^8.7.3", diff --git a/app/yarn.lock b/app/yarn.lock index 03f49342..6445a733 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -80,10 +80,6 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -bindings@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7" - camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" @@ -183,13 +179,6 @@ electron-squirrel-startup@^1.0.0: dependencies: debug "^2.2.0" -electron-vibrancy@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/electron-vibrancy/-/electron-vibrancy-0.1.3.tgz#04382dd6e030e5ca5e60f8e024033738cb8479e3" - dependencies: - bindings "^1.2.1" - nan "^2.0.5" - env-paths@^0.3.0: version "0.3.1" resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-0.3.1.tgz#c30ccfcbc30c890943dc08a85582517ef00da463" @@ -336,10 +325,6 @@ mz@^2.6.0: object-assign "^4.0.1" thenify-all "^1.0.0" -nan@^2.0.5: - version "2.10.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" - ngx-toastr@^8.7.3: version "8.7.3" resolved "https://registry.yarnpkg.com/ngx-toastr/-/ngx-toastr-8.7.3.tgz#d3b7a8077ba1c860dd8a44779ccad38c5ea15c92"