parameters: (fileName, color=QtGui.QColor(255, 255, 255, 255))
return_statement: return QtGui.QPixmap.fromImage(image)
docstring: Load an icon and multiply it by specified color
docstring_summary: Load an icon and multiply it by specified color
docstring_tokens: Load an icon and multiply it by specified color
function: def coloredIcon(fileName, color=QtGui.QColor(255, 255, 255, 255)):
          """Load an icon and multiply it by specified color"""
          rgba = color.rgba()
          image = BaseItem.dpiScaledIcon(fileName).toImage()
          for x in range(image.width()):
              for y in range(image.height()):
                  currentColor = image.pixel(x, y)
                  image.setPixel(x, y, currentColor & rgba)
  
          return QtGui.QPixmap.fromImage(image)
function_tokens: def coloredIcon ( fileName , color = QtGui . QColor ( 255 , 255 , 255 , 255 ) ) : rgba = color . rgba ( ) image = BaseItem . dpiScaledIcon ( fileName ) . toImage ( ) for x in range ( image . width ( ) ) : for y in range ( image . height ( ) ) : currentColor = image . pixel ( x , y ) image . setPixel ( x , y , currentColor & rgba ) return QtGui . QPixmap . fromImage ( image )