Remove loader animation. Fix correct background color according to theme while loading. Set correct color on BrowserWindow to prevent white flash.

This commit is contained in:
Jonatan Heyman
2023-01-18 21:36:31 +01:00
parent 80feeed26c
commit 4a56b7d331
2 changed files with 12 additions and 21 deletions

View File

@ -48,6 +48,7 @@ async function createWindow() {
win = new BrowserWindow({
title: 'Main window',
icon: join(process.env.PUBLIC, 'favicon.ico'),
backgroundColor: nativeTheme.shouldUseDarkColors ? '#262B37' : '#FFFFFF',
//titleBarStyle: 'customButtonsOnHover',
autoHideMenuBar: true,
webPreferences: {