Lines Matching refs:theme
274 def GetHighlight(self, theme, element):
275 """Return dict of theme element highlight colors.
280 cfg = ('default' if self.defaultCfg['highlight'].has_section(theme)
282 theme_dict = self.GetThemeDict(cfg, theme)
292 type - string, 'default' or 'user' theme type
293 themeName - string, theme name
295 that all theme elements are present in a newly created theme.
302 raise InvalidTheme('Invalid theme type specified')
303 # Provide foreground and background colors for each theme
307 # TODO copy theme from a class attribute.
308 theme ={'normal-foreground':'#000000',
342 for element in theme:
348 ' -\n problem retrieving theme element %r'
349 '\n from theme %r.\n'
351 (element, themeName, theme[element]))
353 theme[element] = cfgParser.Get(
354 themeName, element, default=theme[element])
355 return theme
358 "Return the name of the currently active text color theme."