Unpack icon files so setting browserWindow.icon works

This commit is contained in:
Feross Aboukhadijeh
2016-03-20 00:52:02 -07:00
parent f1c27f2a69
commit 1022d616d2
3 changed files with 21 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ function createMainWindow () {
autoHideMenuBar: true, // Hide top menu bar unless Alt key is pressed (Windows, Linux)
backgroundColor: '#282828',
darkTheme: true, // Forces dark theme (GTK+3)
icon: config.APP_ICON,
icon: config.APP_ICON + '.png',
minWidth: 375,
minHeight: 38 + (120 * 2), // header height + 2 torrents
show: false, // Hide window until DOM finishes loading