code: def get_color(value, alpha):
      
      color = QColor()
      for typ in COLORS:
          if isinstance(value, typ):
              color = QColor(COLORS[typ])
      color.setAlphaF(alpha)
      return color
docs: Return color depending on value type