fix(macos): mac os icon size fix #10
This commit is contained in:
parent
2508e6cb1a
commit
3c0930fcd6
@ -24,6 +24,10 @@
|
||||
"from": "resources/icons/512x512.png",
|
||||
"to": "icons/512x512.png"
|
||||
},
|
||||
{
|
||||
"from": "resources/icons/19x19.png",
|
||||
"to": "icons/19x19.png"
|
||||
},
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
"directories": {
|
||||
|
BIN
resources/icons/19x19.png
Normal file
BIN
resources/icons/19x19.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user