palfrey / rhythmbox-tray-icon

Tray icon for Rhythmbox 3+
https://tevps.net/blog/2012/01/16/re-adding-a-tray-icon-to-rhythmbox/
GNU General Public License v3.0
21 stars 18 forks source link

Change icon in tray on Play/Pause action #2

Closed aboutbus closed 12 years ago

aboutbus commented 12 years ago

Is it possible to change icon in tray on Play/Pause action?

palfrey commented 12 years ago

Yes, actually. It's a bit fiddly because there isn't a "rhythmbox is playing" icon. OTOH, there's a Gnome "playing icon" and the rhythmbox icon which I can combine to do things.

aboutbus commented 12 years ago

You can use two different icons from rhythmbox, without Gnome "playing icon". For example: rhythmboxIcon = "/usr/share/icons/hicolor/32x32/apps/rhythmbox.png" playIcon = "/usr/share/pixmaps/rhythmbox-small.xpm"

Here is a my patch. http://pastebin.com/GLeQKVXp

Status icon looks cute for me now. Thank you.

palfrey commented 12 years ago

True, it could be done like that but I'd personally find it very hard to tell which one is the playing icon. This way you get an unambiguous play icon.