ColorPicker 'defaultOpacity' attribute is not working
You can test with this simple example
To reproduce it:
* Click the label
* Select black color with 50% opacity
* Press 'OK' button. You will see the label as 'grey' (really it is black with 50% opacity)
* Click the label again
* Without modifying anything, press 'OK' button. Now the label is pure 'black'.
This is because it seems the ColorPicker is ignoring the 'defaultOpacity' attribute.
Thanks and regards.
Thanks.
You can test with this simple example
Code:
isc.Label.create({ border: '1px black solid', width: 300, height: 30, contents: 'Click to select a color', selectedColor: '#FFFFFF', selectedOpacity: 100, click : function () { var me = this; isc.ColorPicker.getSharedColorPicker({ supportsTransparency: true, defaultPickMode: 'complex', defaultOpacity: me.selectedOpacity, defaultColor: me.selectedColor, colorSelected: function (color, opacity) { this.Super('colorSelected', arguments); me.selectedColor = color; me.selectedOpacity = opacity; me.setBackgroundColor(color); me.setOpacity(opacity); } }).show(); } });
* Click the label
* Select black color with 50% opacity
* Press 'OK' button. You will see the label as 'grey' (really it is black with 50% opacity)
* Click the label again
* Without modifying anything, press 'OK' button. Now the label is pure 'black'.
This is because it seems the ColorPicker is ignoring the 'defaultOpacity' attribute.
Thanks and regards.
Thanks.
Comment