[themes] Add state-dependent themeing
Module themes (only!) can now contain state-specific theme information - for example, the "battery" module has different states for charging and discharging, and those can have different prefix and postfix configurations to indicate what is going on.
This commit is contained in:
parent
3ca53dd0fa
commit
97273b5a41
3 changed files with 22 additions and 3 deletions
|
@ -4,7 +4,15 @@
|
|||
"suffix" : " "
|
||||
},
|
||||
"battery": {
|
||||
"prefix": "bat "
|
||||
"prefix": "bat ",
|
||||
"states": {
|
||||
"charging": {
|
||||
"suffix": "+"
|
||||
},
|
||||
"discharging": {
|
||||
"suffix": "-"
|
||||
}
|
||||
}
|
||||
},
|
||||
"time": {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue