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

Commit

Permalink
change OS X tray icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Jan 2, 2016
1 parent 46915a6 commit f5234df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file added src/assets/images/tray-osx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/js/backend/nw.interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ let settingsWindow;

event.on(EVENT.SET_HOSTS_MENU, (__menus) => {
if (!appIcon) {
appIcon = new Tray(path.join(global.__dirname, './assets/images/[email protected]'));
if (process.platform === 'darwin') {
appIcon = new Tray(path.join(global.__dirname, './assets/images/tray-osx.png'));
} else {
appIcon = new Tray(path.join(global.__dirname, './assets/images/[email protected]'));
}
appIcon.setToolTip(APP_NAME);
appIcon.on('click', focusCurrentWindow);
}
Expand Down

0 comments on commit f5234df

Please sign in to comment.