From 289a40ff729277bf4a9bbac1295090dd59b8c6d1 Mon Sep 17 00:00:00 2001 From: me Date: Fri, 31 Jan 2020 11:34:17 +0200 Subject: [PATCH] add JSON separator block at the beginning of draw() --- bumblebee/output.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bumblebee/output.py b/bumblebee/output.py index 696d540..06b123b 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -353,6 +353,10 @@ class WidgetDrawer(object): list[0] - optional if the theme has a separator list[1] - JSON text for the widget """ + + separator = self._theme.separator(widget) + self.add_separator(widget, separator) + full_text = widget.full_text() if widget.get_module() and widget.get_module().hidden(): return [] @@ -379,9 +383,6 @@ class WidgetDrawer(object): if suffix: full_text = u"{}{}".format(full_text, suffix) - separator = self._theme.separator(widget) - self.add_separator(widget, separator) - width = self._theme.minwidth(widget) if width: