Re: How to modify the mx ColorPicker SwatchPanel swatchPreview skin

2017-05-12 Thread Alex Harui
Have you considered just monkey-patching SwatchSkin? Otherwise, I think in theory you can subclass ColorPicker, override the mx_internal getDropDown and return a subclass of SwatchPanel that creates subclasses of SwatchSkin. HTH, -Alex On 5/12/17, 9:23 PM, "Chris Velevitch" wrote: >The mx Colo

How to modify the mx ColorPicker SwatchPanel swatchPreview skin

2017-05-12 Thread Chris Velevitch
The mx ColorPicker swatchPreview skin is created by SwatchSkin.updateSkin function in lines 144-145. I need to change the border color and the shadow colors as are both hardcoded (0x99 and 0xFF respectively) but because the design and hierarchy of the classes of ColorPicker the preview swa