mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
⚡ Windows tray icon added
This commit is contained in:
@@ -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
BIN
app/resources/Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
Reference in New Issue
Block a user