docs: def _get_color(color):
          """ Returns a QColor built from a Pygments color string. """
          color = str(color).replace("#", "")
          qcolor = QtGui.QColor()
          qcolor.setRgb(int(color[:2], base=16),
                        int(color[2:4], base=16),
                        int(color[4:6], base=16))
          return qcolor