'Set the widget color.'

def setColor(self, color, selectedColor=None):

    if (selectedColor is None):
        selectedColor = saturated(color, 150)
    palette = create_palette(color, selectedColor)
    self.shapeItem.setPalette(palette)
