Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #67 from zhusee2/retina-menubar-icon
Browse files Browse the repository at this point in the history
Fix missing menubar icon and retina support for the icon on OS X
  • Loading branch information
Aluxian committed May 4, 2015
2 parents d46c22f + 0ac54f0 commit a99c0a4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ module.exports = {
*/
loadTrayIcon: function(win) {
var tray = new gui.Tray({
icon: 'icons/icon_' + (platform.isOSX ? 'menubar' : 'tray') + '.png'
icon: 'icons/icon_' + (platform.isOSX ? 'menubar.tiff' : 'tray.png')
});

tray.on('click', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/window-behaviour.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = {

// Update the tray icon too
if (win.tray) {
win.tray.icon = 'icons/icon_' + (platform.isOSX ? 'menubar' : 'tray') + (label ? '_alert' : '') + '.png';
win.tray.icon = 'icons/icon_' + (platform.isOSX ? 'menubar' : 'tray') + (label ? '_alert' : '') + (platform.isOSX ? '.tiff' : '.png');
}
}, 50);
},
Expand Down
Binary file removed src/icons/icon_menubar.png
Binary file not shown.
Binary file added src/icons/icon_menubar.tiff
Binary file not shown.
Binary file added src/icons/icon_menubar_alert.tiff
Binary file not shown.
Binary file removed src/icons/icon_menubar_alt.png
Binary file not shown.

0 comments on commit a99c0a4

Please sign in to comment.