Make transparent color switch to black and white when a gradient type is applied

This commit is contained in:
DD Liu 2020-08-21 10:28:08 -04:00
parent 474b309f7a
commit 35749e5b37

View file

@ -309,6 +309,9 @@ const applyGradientTypeToSelection = function (gradientType, applyToStroke, text
if (noStrokeOriginally && hasGradientNow) {
// Make outline visible
item.strokeWidth = 1;
// Make the gradient black to white
itemColor1 = 'black';
itemColor2 = 'white';
}
}