query config for markup before processing prefix/suffix

This commit is contained in:
me 2020-01-31 11:56:07 +02:00
parent 333a1f9907
commit ea1c0b7043

View file

@ -365,13 +365,13 @@ class WidgetDrawer(object):
separator = self._theme.separator(widget) separator = self._theme.separator(widget)
self.add_separator(widget, separator) self.add_separator(widget, separator)
markup = "none" if not self._config else self._config.markup()
padding = self._theme.padding(widget) padding = self._theme.padding(widget)
self._prefix = self._theme.prefix(widget, padding) self._prefix = self._theme.prefix(widget, padding)
self._suffix = self._theme.suffix(widget, padding) self._suffix = self._theme.suffix(widget, padding)
markup = "none" if not self._config else self._config.markup()
if markup == "pango": if markup == "pango":
# add prefix/suffix colors # add prefix/suffix colors
fg = self._theme.prefix_fg(widget) fg = self._theme.prefix_fg(widget)