ColorPalette: Cleanup

Also added a convenient method to convert a color from the palette
to a QColor instance.