set white background for OSs which have turned off subpixel aliasing (#1129)

This commit is contained in:
Guillermo Vayá
2019-12-27 10:47:12 +01:00
committed by GitHub
parent e95b7aad02
commit 81a9e5e028
3 changed files with 3 additions and 0 deletions

View File

@@ -442,6 +442,7 @@ function handleAppWebContentsCreated(dc, contents) {
}
if (!popupWindow) {
popupWindow = new BrowserWindow({
backgroundColor: '#fff', // prevents blurry text: https://electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do
parent: mainWindow,
show: false,
webPreferences: {

View File

@@ -39,6 +39,7 @@ function createUpdaterModal(parentWindow, options) {
height: windowHeight,
resizable: false,
autoHideMenuBar: true,
backgroundColor: '#fff', // prevents blurry text: https://electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do
};
if (process.platform === 'linux') {
windowOptions.icon = options.linuxAppIcon;

View File

@@ -52,6 +52,7 @@ function createMainWindow(config, options) {
minWidth: minimumWindowWidth,
minHeight: minimumWindowHeight,
fullscreen: false,
backgroundColor: '#fff', // prevents blurry text: https://electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do
webPreferences: {
nodeIntegration: true,
contextIsolation: false,