def METHOD_NAME(self, bar):
    """add color as pango markup to a bar"""
    if bar in ["▁", "▂"]:
        color = self.theme.color("green", "green")
    elif bar in ["▃", "▄"]:
        color = self.theme.color("yellow", "yellow")
    elif bar in ["▅", "▆"]:
        color = self.theme.color("orange", "orange")
    elif bar in ["▇", "█"]:
        color = self.theme.color("red", "red")
    colored_bar = '<span foreground="{}">{}</span>'.format(color, bar)
    return colored_bar