[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:
parent
88b36417f8
commit
4baf63f88c
5 changed files with 50 additions and 13 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue