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) {
|
||||
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: {
|
||||
|
@@ -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;
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user