summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-10-26 11:04:46 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-10-26 11:04:46 +0200
commitfbffffe577d60086fa1ce51e65a1e4c7c9b03fe3 (patch)
tree79f626a74a047b6f384246c2bc6c8e257c0e2a02 /gui/src
parenteaa0c1f96cb8f0d70426efe2a5733d37584babd9 (diff)
parenta4813cead5e639e062a48b3d33b8bec1113c682c (diff)
downloadmullvadvpn-fbffffe577d60086fa1ce51e65a1e4c7c9b03fe3.tar.xz
mullvadvpn-fbffffe577d60086fa1ce51e65a1e4c7c9b03fe3.zip
Merge branch 'decrease-font-weight'
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();