From cc8b8a5c311ffb5b3e8b7db4f87671acd6529ade Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Thu, 30 Apr 2020 20:23:12 +0200 Subject: [PATCH] [theme] Draw default separators if specified in theme fixes #605 --- bumblebee/output.py | 2 +- bumblebee/theme.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bumblebee/output.py b/bumblebee/output.py index 8e49894..54b4999 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -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), diff --git a/bumblebee/theme.py b/bumblebee/theme.py index 02af8dc..f361f15 100644 --- a/bumblebee/theme.py +++ b/bumblebee/theme.py @@ -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 = {}