[core/output] rename variables to more suggestive names

Getting ready for next small refactoring.
This commit is contained in:
me 2020-02-12 18:04:45 +02:00
parent 75cf28a1ea
commit f988be041f

View file

@ -354,11 +354,11 @@ class WidgetDrawer(object):
"""add custom theme colors for prefix"""
if self._markup == "pango":
# add prefix/suffix colors
fg = self._theme.prefix_fg(widget)
bg = self._theme.prefix_bg(widget)
prefix_fg = self._theme.prefix_fg(widget)
prefix_bg = self._theme.prefix_bg(widget)
self._prefix = "<span {} {}>{}</span>".format(
"foreground='{}'".format(fg) if fg else "",
"background='{}'".format(bg) if bg else "",
"foreground='{}'".format(prefix_fg) if prefix_fg else "",
"background='{}'".format(prefix_bg) if prefix_bg else "",
self._prefix
)