[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:
Tobi-wan Kenobi 2016-12-09 12:28:39 +01:00
parent 59fb47ae3b
commit 527489e0de
6 changed files with 87 additions and 32 deletions

View file

@ -57,6 +57,7 @@ class I3BarOutput(object):
def begin(self):
"""Start one output iteration"""
self._widgets = []
self._theme.reset()
def flush(self):
"""Flushes output"""