Skip to content

Commit

Permalink
Add background color to main screen
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayPoshak committed Oct 14, 2024
1 parent 69ad9ec commit 3ec6954
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/console-electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 3ec6954

Please sign in to comment.