[themes] Add font and background colors to themes
Themes can now specify "fg" (font color) and "bg" (background color) on all levels.
This commit is contained in:
parent
8538f272d6
commit
7b48b08365
3 changed files with 14 additions and 4 deletions
|
@ -12,7 +12,9 @@ class i3bar(bumblebee.output.Output):
|
|||
theme = obj.theme()
|
||||
|
||||
data = {
|
||||
"full_text": "{}{}{}".format(theme.prefix(obj), obj.data(), theme.suffix(obj))
|
||||
"full_text": "{}{}{}".format(theme.prefix(obj), obj.data(), theme.suffix(obj)),
|
||||
"color": theme.color(obj),
|
||||
"background": theme.background(obj)
|
||||
}
|
||||
if theme.default_separators(obj) == False:
|
||||
data["separator"] = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue