Skip to content

Commit

Permalink
Graceful window showing using backgroundColor
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Aug 31, 2017
1 parent c199638 commit 6a368a2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ app.on('ready', () => {
console.log('Application ready!')

mainWindow = new BrowserWindow({
show: false,
width: 1000,
height: 800
})

mainWindow.webContents.on('dom-ready', () => {
// The window has loaded its contents
mainWindow.show()
height: 800,
backgroundColor: '#1e1e1e'
})

mainWindow.loadURL(`file://${__dirname}/../renderer/index.html`)
Expand Down

0 comments on commit 6a368a2

Please sign in to comment.