From 3ec695452c8e4a032a7ff60e83233031cf97b5fc Mon Sep 17 00:00:00 2001 From: Ajay Poshak Date: Mon, 14 Oct 2024 21:49:35 +0530 Subject: [PATCH] Add background color to main screen --- apps/console-electron/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/console-electron/main.js b/apps/console-electron/main.js index 09614de..6072e33 100644 --- a/apps/console-electron/main.js +++ b/apps/console-electron/main.js @@ -2,9 +2,15 @@ import { app, BrowserWindow } from 'electron'; function createWindow() { const win = new BrowserWindow({ + show: false, useContentSize: true, + backgroundColor: '#0a0a0a', }); + win.once('ready-to-show', () => { + win.show() + }) + if (app.isPackaged === false) { win.loadURL('http://localhost:4000'); win.webContents.on('did-fail-load', (e, code, desc) => {