keep alpha in hex colorpicker view

This commit is contained in:
tophf 2018-01-07 20:00:22 +03:00
parent 9111ebcd2b
commit 80ad6418aa

View File

@ -494,6 +494,7 @@
const rgb = colorConverter.HSVtoRGB(HSV); const rgb = colorConverter.HSVtoRGB(HSV);
switch (currentFormat) { switch (currentFormat) {
case 'hex': case 'hex':
rgb.a = HSV.a;
$hexCode.value = colorToString(rgb, 'hex'); $hexCode.value = colorToString(rgb, 'hex');
break; break;
case 'rgb': { case 'rgb': {