Since the scripts in the public:color_picker_macros::color_picker_scripts macro are loaded in xf:head, they are not loaded in overlays, so the color picker can not be used here. Perhaps the contents of this macro should be taken out separately, so that it can be included on the page manually?