Skip to content

indicator icon(s) - switching #10

@Sadi58

Description

@Sadi58

I have implemented the following customization on this matter:

  1. 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.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions