Ported the ColorPaletteWidget to XWT