Beispiel #1
0
 def create_theme(self):
     """
     Create a theme, using the currently selected theme for this plugin
     if one is available.
     """
     theme = self.gconf_client.get_string("%s/theme" % self.gconf_key)
     new_theme = None
     if theme:
         theme_def = g15theme.get_theme(theme, sys.modules[self.__module__])
         if theme_def:
             new_theme = g15theme.G15Theme(theme_def)
     if not new_theme:
         new_theme = g15theme.G15Theme(self)
     new_theme.plugin = self
     return new_theme
Beispiel #2
0
 def SetThemeSVG(self, svg_text):
     self._page.set_theme(g15theme.G15Theme(None, None, svg_text=svg_text))
Beispiel #3
0
 def reload_theme(self):
     """
     Reload the SVG theme and configure it
     """
     self.theme = g15theme.G15Theme(self, "menu-screen")
Beispiel #4
0
 def LoadTheme(self, theme_dir, variant):
     self._page.set_theme(g15theme.G15Theme(theme_dir, variant))