Windows tray icon added

This commit is contained in:
akashnimare
2016-07-04 02:43:06 +05:30
parent a578d5c36a
commit 7e022d76f5
2 changed files with 8 additions and 2 deletions

View File

@@ -12,7 +12,13 @@ let tray = null;
let aboutWindow;
let domainWindow;
const iconPath = path.join(__dirname, '../resources', 'Icon.png');
const APP_ICON = path.join(__dirname, '../resources', 'Icon');
const iconPath = () => {
return process.platform === 'win32'
? APP_ICON + '.ico'
: APP_ICON + '.png'
};
exports.create = win => {
@@ -83,7 +89,7 @@ exports.create = win => {
}
]);
tray = new electron.Tray(iconPath);
tray = new electron.Tray(iconPath());
tray.setToolTip(`${app.getName()}`);
tray.setContextMenu(contextMenu);
tray.on('click', toggleWin);

BIN
app/resources/Icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB