-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I have implemented the following customization on this matter:
- Created light and dark versions of your png file and renamed them as "dark-theme.png" and "light-theme.png", and symlinked one that suits my current theme as "indicator-chars.png", changing the corresponding file name in "indicator-chars.py" accordingly.
- Inserted the following lines in "indicator-chars.py":
DarkTheme_item = self.create_menu_item('Use dark theme icons')
DarkTheme_item.connect("activate", self.DarkTheme)
menu.append(DarkTheme_item)
LightTheme_item = self.create_menu_item('Use light theme icons')
LightTheme_item.connect("activate", self.LightTheme)
menu.append(LightTheme_item)
def DarkTheme(self, dude):
os.system("/usr/local/indicator-chars/dark-theme-icons")
def LightTheme(self, dude):
os.system("/usr/local/indicator-chars/light-theme-icons")
(As you can see I've also moved your script to /usr/local/indicator-chars even symlinking it in /usr/local/bin)
Perhaps, if you wish, you can implement this icon switching feature in a better way as I I only know a little bit shell scripting.
Metadata
Metadata
Assignees
Labels
No labels