[core/theme] Add simple theme stub

Add support for default fg/bg colors
This commit is contained in:
Tobias Witek 2020-02-15 14:05:27 +01:00
parent 99cca7002c
commit affeba5b8f
4 changed files with 75 additions and 2 deletions

View file

@ -8,6 +8,7 @@ class i3(object):
def __init__(self, theme=core.theme.Theme()):
self._modules = []
self._status = {}
self._theme = theme
def modules(self, modules=None):
if not modules:
@ -40,6 +41,8 @@ class i3(object):
'full_text': widget.full_text(),
'instance': widget.id(),
'name': module.id(),
'color': self._theme.fg(widget),
'background': self._theme.bg(widget),
})
return widgets