mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-10 06:15:17 +00:00
Hopefully enable subpixel font rendering
https://github.com/vector-im/riot-web/issues/12443 points out the electron eccentricity that the background of a BrowserWindow is 'transparent' (whatever that actually means in practice) by default which causes subpixel font rendering to be disabled. Set an explicit background colour as per the faq entry. Fixes https://github.com/vector-im/riot-web/issues/12443
This commit is contained in:
parent
0ec93e296f
commit
0577abd885
1 changed files with 3 additions and 0 deletions
|
@ -592,6 +592,9 @@ app.on('ready', async () => {
|
||||||
|
|
||||||
const preloadScript = path.normalize(`${__dirname}/preload.js`);
|
const preloadScript = path.normalize(`${__dirname}/preload.js`);
|
||||||
mainWindow = global.mainWindow = new BrowserWindow({
|
mainWindow = global.mainWindow = new BrowserWindow({
|
||||||
|
// https://www.electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do
|
||||||
|
backgroundColor: '#fff',
|
||||||
|
|
||||||
icon: iconPath,
|
icon: iconPath,
|
||||||
show: false,
|
show: false,
|
||||||
autoHideMenuBar: store.get('autoHideMenuBar', true),
|
autoHideMenuBar: store.get('autoHideMenuBar', true),
|
||||||
|
|
Loading…
Reference in a new issue