fix: macos tray icon size
This commit is contained in:
parent
0666d4677e
commit
a89f24d2f1
3 changed files with 9 additions and 2 deletions
BIN
resources/images/logo_16x16.png
Normal file
BIN
resources/images/logo_16x16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 931 B |
|
|
@ -14,6 +14,10 @@ var cpr = require('cpr'),
|
|||
['../node_modules/ace-builds/src-min/worker-javascript.js', '../app/client/workers/worker-javascript.js'],
|
||||
]
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
files.push(['../resources/images/logo_16x16.png', '../app/assets/logo_16x16.png'])
|
||||
}
|
||||
|
||||
for (var i in files) {
|
||||
cpr(...files[i].map(f => path.resolve(__dirname + '/' + f)), {
|
||||
overwrite: true
|
||||
|
|
|
|||
|
|
@ -17,7 +17,11 @@ module.exports = function (options = {}) {
|
|||
resetMenu(isServerRunning)
|
||||
})
|
||||
|
||||
tray = new Tray(__dirname + '/../assets/logo.png')
|
||||
var icon = __dirname + '/../assets/logo.png'
|
||||
if (process.platform === 'darwin') {
|
||||
var icon = __dirname + '/../assets/logo_16x16.png'
|
||||
}
|
||||
tray = new Tray(icon)
|
||||
contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'Open/Hide', click: () => {
|
||||
|
|
@ -33,7 +37,6 @@ module.exports = function (options = {}) {
|
|||
{
|
||||
label: 'Start/Stop',
|
||||
click: () => {
|
||||
console.log(isServerRunning)
|
||||
if (isServerRunning) {
|
||||
ipcMain.emit('stop');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue