[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

@ -3,10 +3,6 @@
"defaults": {
"default-separators": false,
"separator-block-width": 0,
"cycle": [
{ "fg": "#93a1a1", "bg": "#002b36" },
{ "fg": "#eee8d5", "bg": "#586e75" }
],
"warning": {
"fg": "#002b36",
"bg": "#b58900"
@ -16,6 +12,10 @@
"bg": "#dc322f"
}
},
"cycle": [
{ "fg": "#93a1a1", "bg": "#002b36" },
{ "fg": "#eee8d5", "bg": "#586e75" }
],
"dnf": {
"good": {
"fg": "#002b36",