[core/themes] Add state themes

Each widget can now return a state using the method "state()". This
string is then used to look up a theme information which is used instead
of the default or module theme, if found.

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-09 13:32:22 +01:00
parent 88b36417f8
commit 4baf63f88c
5 changed files with 50 additions and 13 deletions

View file

@ -6,10 +6,17 @@
"fg": "#000000",
"bg": "#111111",
"separator": " * ",
"separator-block-width": 10
"separator-block-width": 10,
"critical": {
"fg": "#ffffff",
"bg": "#010101"
}
},
"test-widget": {
"fg": "#ababab",
"bg": "#222222"
"bg": "#222222",
"critical": {
"fg": "#bababa"
}
}
}