diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-10-26 11:04:46 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-10-26 11:04:46 +0200 |
| commit | fbffffe577d60086fa1ce51e65a1e4c7c9b03fe3 (patch) | |
| tree | 79f626a74a047b6f384246c2bc6c8e257c0e2a02 /gui/src | |
| parent | eaa0c1f96cb8f0d70426efe2a5733d37584babd9 (diff) | |
| parent | a4813cead5e639e062a48b3d33b8bec1113c682c (diff) | |
| download | mullvadvpn-fbffffe577d60086fa1ce51e65a1e4c7c9b03fe3.tar.xz mullvadvpn-fbffffe577d60086fa1ce51e65a1e4c7c9b03fe3.zip | |
Merge branch 'decrease-font-weight'
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 4bd963f1b8..29baab992a 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1731,7 +1731,6 @@ class ApplicationMain { fullscreenable: false, show: false, frame: this.guiSettings.unpinnedWindow, - transparent: !this.guiSettings.unpinnedWindow, webPreferences: { preload: path.join(__dirname, '../renderer/preloadBundle.js'), nodeIntegration: false, @@ -1752,6 +1751,7 @@ class ApplicationMain { titleBarStyle: this.guiSettings.unpinnedWindow ? 'default' : 'customButtonsOnHover', minimizable: this.guiSettings.unpinnedWindow, closable: this.guiSettings.unpinnedWindow, + transparent: !this.guiSettings.unpinnedWindow, }); // make the window visible on all workspaces and prevent the icon from showing in the dock @@ -1775,6 +1775,9 @@ class ApplicationMain { // https://github.com/electron/electron/issues/25915 alwaysOnTop: !this.guiSettings.unpinnedWindow, skipTaskbar: !this.guiSettings.unpinnedWindow, + // Workaround for sub-pixel anti-aliasing + // https://github.com/electron/electron/blob/main/docs/faq.md#the-font-looks-blurry-what-is-this-and-what-can-i-do + backgroundColor: '#fff', }); appWindow.removeMenu(); |
