[themes] Make individual items theme-able (a bit)
Individual items in the bar can now be configured with a prefix and a suffix. It works like this: * If there is a specific module configuration in the theme configuration, use that (i.e. { "<modulename>": { "prefix: " a " } }) * Otherwise, if there is a configuration in the "default" section of the theme, use that * Otherwise, if the module object itself has a method called like the required attribute (prefix, suffix), use that * Otherwise, leave prefix/suffix empty ("")
This commit is contained in:
parent
e895400589
commit
3ca53dd0fa
7 changed files with 51 additions and 12 deletions
|
@ -6,4 +6,10 @@ class Module(object):
|
|||
def theme(self):
|
||||
return self._theme
|
||||
|
||||
def data(self):
|
||||
pass
|
||||
|
||||
def state(self):
|
||||
return "default"
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue