Skip to content

Commit

Permalink
Fix weird color layout issue with references
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekwah committed Mar 16, 2021
1 parent 801eb35 commit e16d791
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions packages/main/src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ const isDev = require('electron-is-dev');
const url = require('url');

let mini_win = null;
let maxi_win = null;

const webPreferences = {
backgroundThrottling: true,
preload: path.join(__dirname, 'preload.js'),
contextIsolation: true,
enableRemoteModule: false,
nodeIntegration: false,
nativeWindowOpen: true
/* devTools: false, */
};
let maxi_win = null

const defaultBrowserSettings = {
width: WINDOW_MIN_WIDTH,
Expand All @@ -37,7 +27,6 @@ const defaultBrowserSettings = {
show: false,
resizable: false,
frame: false,
webPreferences,
maximizable: false,
}

Expand All @@ -50,6 +39,15 @@ function createWindow() {
minWidth: WINDOW_MIN_WIDTH,
minHeight: WINDOW_MIN_HEIGHT,
backgroundColor: '#383a3f',
webPreferences: {
backgroundThrottling: true,

This comment has been minimized.

Copy link
@Kariaro

Kariaro Mar 16, 2021

Member

#7 When testing I discovered that changing backgroundThrottling to false fixed this issue

preload: path.join(__dirname, 'preload.js'),
contextIsolation: true,
enableRemoteModule: false,
nodeIntegration: false,
nativeWindowOpen: true
/* devTools: false, */
}
});

// Was app/renderer/public/index.html
Expand All @@ -71,6 +69,15 @@ function createWindow() {
const win2 = new BrowserWindow({
...defaultBrowserSettings,
transparent: true,
webPreferences: {
backgroundThrottling: true,
preload: path.join(__dirname, 'preload.js'),
contextIsolation: true,
enableRemoteModule: false,
nodeIntegration: false,
nativeWindowOpen: true
/* devTools: false, */
}
});

// Was app/renderer/public/fullscreen_index.html
Expand Down

0 comments on commit e16d791

Please sign in to comment.