From 35749e5b37c66ca0a872dccb35805ea8cf71ec7e Mon Sep 17 00:00:00 2001 From: DD Liu Date: Fri, 21 Aug 2020 10:28:08 -0400 Subject: [PATCH] Make transparent color switch to black and white when a gradient type is applied --- src/helper/style-path.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helper/style-path.js b/src/helper/style-path.js index 07663296..469dbfce 100644 --- a/src/helper/style-path.js +++ b/src/helper/style-path.js @@ -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'; } }