[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
|
@ -57,6 +57,7 @@ class I3BarOutput(object):
|
|||
def begin(self):
|
||||
"""Start one output iteration"""
|
||||
self._widgets = []
|
||||
self._theme.reset()
|
||||
|
||||
def flush(self):
|
||||
"""Flushes output"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue