[core/themes] Add "cycling" support
Allow a theme to define a "cycle" of attributes that are cycled through on a widget-per-widget basis (e.g. for alternating the widget background). These cycles take precedence over the default values, but can be overridden by module-specific theme instructions. see #23
This commit is contained in:
parent
59fb47ae3b
commit
527489e0de
6 changed files with 87 additions and 32 deletions
|
@ -46,6 +46,9 @@ class MockTheme(object):
|
|||
self.attr_fg = None
|
||||
self.attr_bg = None
|
||||
|
||||
def reset(self):
|
||||
pass
|
||||
|
||||
def prefix(self, widget):
|
||||
return self.attr_prefix
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue