Change toolbar icon
Hello! Is there any possibility (or workaround or smth) to change window toolbar icon at runtime? The use case is pretty simple - I need to attract users attention by showing him number of unread messages (like skype does)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
:+1:
If you mean a taskbar icon, then setBadgeLabel.
the systray in advance can be animated: look at https://github.com/rogerwang/node-webkit/wiki/Tray
"Tray.icon
Get or Set the icon of Tray, icon must a path to your icon file. It can be a relative path which points to an icon in your app, or an absolute path pointing to a file in user's system.
OSX caveat: when used in notification context, (png) icon is not sized down like in windows notification area, it is rather displayed in 1:1 ratio. "
micha
2014-10-25 7:01 GMT+02:00 Mithgol [email protected]:
If you mean a taskbar icon, then setBadgeLabel https://github.com/rogerwang/node-webkit/wiki/Window#setbadgelabellabel.
— Reply to this email directly or view it on GitHub https://github.com/rogerwang/node-webkit/issues/1077#issuecomment-60471853 .
How about changing the dock icon at runtime (OS X)? I think https://github.com/rogerwang/node-webkit/issues/2552 is related
This should be working with latest version now.
In 0.13 we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with Node.js v6.0 and new Chromium versions within 1 day after upstream release.
The new version would fixed many issues reported here and we're scrubbing them. This issue is closed as we believe it should be fixed. Please leave a message if it isn't and we'll reopen it.