forked from yakyak/yakyak
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v1.5.6' into hebrew-support
- Loading branch information
Showing
6 changed files
with
73 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,25 @@ i18n = require 'i18n' | |
{ Menu, Tray, nativeImage } = require('electron').remote | ||
|
||
if os.platform() == 'darwin' | ||
trayIcons = | ||
trayIconsPath = | ||
"read": path.join __dirname, '..', '..', 'icons', 'osx-icon-read-Template.png' | ||
"unread": path.join __dirname, '..', '..', 'icons', 'osx-icon-unread-Template.png' | ||
|
||
else if process.env.XDG_CURRENT_DESKTOP && process.env.XDG_CURRENT_DESKTOP.match(/KDE/) | ||
# This is to work around a bug with electron apps + KDE not showing correct icon size. | ||
trayIcons = | ||
trayIconsPath = | ||
"read": path.join __dirname, '..', '..', 'icons', '[email protected]' | ||
"unread": path.join __dirname, '..', '..', 'icons', '[email protected]' | ||
|
||
else | ||
trayIcons = | ||
trayIconsPath = | ||
"read": path.join __dirname, '..', '..', 'icons', '[email protected]' | ||
"unread": path.join __dirname, '..', '..', 'icons', '[email protected]' | ||
|
||
trayIcons = | ||
"read": nativeImage.createFromPath(trayIconsPath["read"]) | ||
"unread": nativeImage.createFromPath(trayIconsPath["unread"]) | ||
|
||
tray = null | ||
|
||
# TODO: this is all WIP | ||
|
@@ -36,6 +40,7 @@ create = () -> | |
|
||
destroy = -> | ||
tray.destroy() if tray | ||
console.log('is Destroyed', tray.isDestroyed()) | ||
tray = null | ||
|
||
update = (unreadCount, viewstate) -> | ||
|