fix(macos): mac os icon size fix #10

This commit is contained in:
Alexey Kasyanchuk
2018-03-10 08:27:05 +03:00
parent 2508e6cb1a
commit 3c0930fcd6
3 changed files with 8 additions and 1 deletions

View File

@ -277,7 +277,10 @@ app.on("ready", () => {
mainWindow.openDevTools();
}
tray = new Tray(`${resourcesPath}/icons/512x512.png`)
if(process.platform === 'darwin')
tray = new Tray(`${resourcesPath}/icons/19x19.png`)
else
tray = new Tray(`${resourcesPath}/icons/512x512.png`)
tray.on('click', () => {
mainWindow.isVisible() ? mainWindow.hide() : mainWindow.show()