nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Change toolbar icon

Open sgorshechnikov opened this issue 13 years ago • 5 comments

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.

sgorshechnikov avatar Sep 06 '13 05:09 sgorshechnikov

:+1:

vulgarcoder avatar Sep 12 '14 04:09 vulgarcoder

If you mean a taskbar icon, then setBadgeLabel.

Mithgol avatar Oct 25 '14 05:10 Mithgol

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 .

michapixel avatar Nov 03 '14 13:11 michapixel

How about changing the dock icon at runtime (OS X)? I think https://github.com/rogerwang/node-webkit/issues/2552 is related

romangetman avatar Nov 03 '14 17:11 romangetman

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.

nwjs-bot avatar Sep 18 '16 04:09 nwjs-bot