def layer_icon(layer):
    icon = POINT_ICONS.get(layer.style.marker, 'circle_point')
    bm = QtGui.QBitmap(icon_path(icon))
    color = mpl_to_qt4_color(layer.style.color)
    pm = tint_pixmap(bm, color)
    pm = pm.scaledToHeight(15, Qt.SmoothTransformation)
    return QtGui.QIcon(pm)
Create a QtGui.QIcon for a Data or Subset instance
dataset/ETHPy150Open glue-viz/glue/glue/icons/qt/helpers.py/layer_icon