set white background for OSs which have turned off subpixel aliasing (#1129)
This commit is contained in:
@@ -442,6 +442,7 @@ function handleAppWebContentsCreated(dc, contents) {
|
|||||||
}
|
}
|
||||||
if (!popupWindow) {
|
if (!popupWindow) {
|
||||||
popupWindow = new BrowserWindow({
|
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,
|
parent: mainWindow,
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
@@ -39,6 +39,7 @@ function createUpdaterModal(parentWindow, options) {
|
|||||||
height: windowHeight,
|
height: windowHeight,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
autoHideMenuBar: true,
|
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') {
|
if (process.platform === 'linux') {
|
||||||
windowOptions.icon = options.linuxAppIcon;
|
windowOptions.icon = options.linuxAppIcon;
|
||||||
|
@@ -52,6 +52,7 @@ function createMainWindow(config, options) {
|
|||||||
minWidth: minimumWindowWidth,
|
minWidth: minimumWindowWidth,
|
||||||
minHeight: minimumWindowHeight,
|
minHeight: minimumWindowHeight,
|
||||||
fullscreen: false,
|
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: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
contextIsolation: false,
|
contextIsolation: false,
|
||||||
|
Reference in New Issue
Block a user