add JSON separator block at the beginning of draw()

This commit is contained in:
me 2020-01-31 11:34:17 +02:00
parent 8a16d3cb3a
commit 289a40ff72

View file

@ -353,6 +353,10 @@ class WidgetDrawer(object):
list[0] - optional if the theme has a separator list[0] - optional if the theme has a separator
list[1] - JSON text for the widget list[1] - JSON text for the widget
""" """
separator = self._theme.separator(widget)
self.add_separator(widget, separator)
full_text = widget.full_text() full_text = widget.full_text()
if widget.get_module() and widget.get_module().hidden(): if widget.get_module() and widget.get_module().hidden():
return [] return []
@ -379,9 +383,6 @@ class WidgetDrawer(object):
if suffix: if suffix:
full_text = u"{}{}".format(full_text, suffix) full_text = u"{}{}".format(full_text, suffix)
separator = self._theme.separator(widget)
self.add_separator(widget, separator)
width = self._theme.minwidth(widget) width = self._theme.minwidth(widget)
if width: if width: