color palette with popup (code refactor)

Non dockable widget for palette popup.