[core/theme] Add separator-block-width

This commit is contained in:
Tobias Witek 2020-02-16 14:54:20 +01:00
parent 6e5e297d93
commit 808c46f551
2 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,7 @@ class i3(object):
'color': self._theme.fg(widget),
'background': self._theme.bg(widget),
'separator': self._theme.default_separators(),
'separator_block_width': self._theme.separator_block_width(),
})
core.event.trigger('next-widget')
return widgets

View file

@ -39,6 +39,9 @@ class Theme(object):
def default_separators(self, widget=None):
return self.__get(widget, 'default-separators', True)
def separator_block_width(self, widget=None):
return self.__get(widget, 'separator-block-width', 0)
def __start(self):
self.__widget_count = 0