Scale down linux tray icon, try to stop it from flashing on Ubuntu #232

This commit is contained in:
Ben Gotow 2018-02-05 19:40:04 -08:00
parent 95f10323ee
commit 7743c5f703
5 changed files with 7 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -83,16 +83,13 @@ class SystemTrayManager {
};
updateTraySettings(iconPath, unreadString, isTemplateImg) {
if (this._iconPath === iconPath && this._unreadString === unreadString) return;
this._iconPath = iconPath;
this._unreadString = unreadString;
if (this._tray) {
const icon = _getIcon(this._iconPath, isTemplateImg);
const tooltip = _getTooltip(unreadString);
this._tray.setImage(icon);
this._tray.setToolTip(tooltip);
if (this._iconPath !== iconPath) {
this._iconPath = iconPath;
if (this._tray) this._tray.setImage(_getIcon(this._iconPath, isTemplateImg));
}
if (this._unreadString !== unreadString) {
this._unreadString = unreadString;
if (this._tray) this._tray.setToolTip(_getTooltip(unreadString));
}
}