[core/theme] Add separator-block-width
This commit is contained in:
parent
6e5e297d93
commit
808c46f551
2 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@ class i3(object):
|
||||||
'color': self._theme.fg(widget),
|
'color': self._theme.fg(widget),
|
||||||
'background': self._theme.bg(widget),
|
'background': self._theme.bg(widget),
|
||||||
'separator': self._theme.default_separators(),
|
'separator': self._theme.default_separators(),
|
||||||
|
'separator_block_width': self._theme.separator_block_width(),
|
||||||
})
|
})
|
||||||
core.event.trigger('next-widget')
|
core.event.trigger('next-widget')
|
||||||
return widgets
|
return widgets
|
||||||
|
|
|
@ -39,6 +39,9 @@ class Theme(object):
|
||||||
def default_separators(self, widget=None):
|
def default_separators(self, widget=None):
|
||||||
return self.__get(widget, 'default-separators', True)
|
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):
|
def __start(self):
|
||||||
self.__widget_count = 0
|
self.__widget_count = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue