[core/theme] Better separator handling

Add a generic method to the theme to get the "previous" value of an
attribute.
This commit is contained in:
Tobias Witek 2020-02-23 14:31:30 +01:00
parent 66bdfacf6f
commit a2446a36af
3 changed files with 16 additions and 11 deletions

View file

@ -44,7 +44,7 @@ class i3(object):
return [{
'full_text': self._theme.separator(),
'color': self._theme.bg(widget),
'background': self._theme.prev_bg(widget),
'background': self._theme.bg('previous'),
'separator': False,
'separator_block_width': self._theme.separator_block_width(),
'border_top': self._theme.border_top(),