Merge pull request #28 from vector-im/dbkr/maybe_enable_subpixel_rendering

Hopefully enable subpixel font rendering
This commit is contained in:
David Baker 2020-02-21 11:42:10 +00:00 committed by GitHub
commit 5e6f3b4f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -592,6 +592,9 @@ app.on('ready', async () => {
const preloadScript = path.normalize(`${__dirname}/preload.js`);
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,
show: false,
autoHideMenuBar: store.get('autoHideMenuBar', true),