Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using this code to set appropriate appindicator icon for my application. Basically I set separate mono dark/light icon for Ambiance and Radiance theme in order to integrate my app into Unity desktop just like many other apps do. This works well, but what I noticed is that other apps (Tomboy, thunderbird...) update their appindicator icons immediately after the theme is changed. How do they do that? With my current implementation, I need to restart my app in order to get the right icon.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Tomboy does not actually have a code for detecting theme changes. Its icon changes automatically because there is a Tomboy icon both in the ubuntu-icon-dark icon theme (used by Ambiance) and in the ubuntu-icon-light icon theme (used by Radiance). That's the recommended way.

share|improve this answer
    
Yeah, but those themes do not provide icon for my app :) –  umpirsky Jan 20 '12 at 18:37
1  
Not by default, but you can add them by making your package install your icons on the /usr/share/icons/ubuntu-icon-dark and /usr/share/icons/ubuntu-icon-light folders. –  Marcelo Hashimoto Jan 20 '12 at 18:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.