Lines Matching full:theme
282 def GetHighlight(self, theme, element, fgBg=None): argument
283 """Return individual theme element highlight color(s).
291 if self.defaultCfg['highlight'].has_section(theme):
292 themeDict = self.GetThemeDict('default', theme)
294 themeDict = self.GetThemeDict('user', theme)
314 type - string, 'default' or 'user' theme type
315 themeName - string, theme name
317 that all theme elements are present in a newly created theme.
324 raise InvalidTheme('Invalid theme type specified')
325 # Provide foreground and background colors for each theme
329 # TODO copy theme from a class attribute.
330 theme ={'normal-foreground':'#000000',
359 for element in theme:
363 ' -\n problem retrieving theme element %r'
364 '\n from theme %r.\n'
366 (element, themeName, theme[element]))
371 theme[element] = cfgParser.Get(
372 themeName, element, default=theme[element])
373 return theme
376 """Return the name of the currently active text color theme.
379 [Theme]
391 default = self.GetOption('main', 'Theme', 'default',
394 theme = self.GetOption('main', 'Theme', 'name2', default='')
395 if default and not theme or not default:
396 theme = self.GetOption('main', 'Theme', 'name', default='')
398 if source['highlight'].has_section(theme):
399 return theme