summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-10-25 15:33:01 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-10-26 11:04:34 +0200
commita4813cead5e639e062a48b3d33b8bec1113c682c (patch)
tree79f626a74a047b6f384246c2bc6c8e257c0e2a02 /gui/src
parent045bf53699e76215fe17b3e9b9a439cae5321943 (diff)
downloadmullvadvpn-a4813cead5e639e062a48b3d33b8bec1113c682c.tar.xz
mullvadvpn-a4813cead5e639e062a48b3d33b8bec1113c682c.zip
Set window color to #FFF on Windows
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts5
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();