[theme] Draw default separators if specified in theme

fixes #605
This commit is contained in:
tobi-wan-kenobi 2020-04-30 20:23:12 +02:00
parent e4604a8317
commit cc8b8a5c31
2 changed files with 4 additions and 1 deletions

View file

@ -459,7 +459,7 @@ class WidgetDrawer(object):
"color": self._theme.fg(widget),
"background": self._theme.bg(widget),
"separator_block_width": self._theme.separator_block_width(widget),
"separator": True if separator is None else False,
"separator": self._theme.default_separators(widget),
"min_width": None,
# "min_width": width + "A"*(len(self._prefix) + len(self._suffix)) if width else None,
"align": self._theme.align(widget),

View file

@ -176,6 +176,9 @@ class Theme(object):
"""Return the SBW"""
return self._get(widget, "separator-block-width", None)
def default_separators(self, widget):
return self._get(widget, "default-separators", False)
def _load_wal_colors(self):
walfile = os.path.expanduser("~/.cache/wal/colors.json")
result = {}