mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
Make transparent color switch to black and white when a gradient type is applied
This commit is contained in:
parent
474b309f7a
commit
35749e5b37
1 changed files with 3 additions and 0 deletions
|
@ -309,6 +309,9 @@ const applyGradientTypeToSelection = function (gradientType, applyToStroke, text
|
||||||
if (noStrokeOriginally && hasGradientNow) {
|
if (noStrokeOriginally && hasGradientNow) {
|
||||||
// Make outline visible
|
// Make outline visible
|
||||||
item.strokeWidth = 1;
|
item.strokeWidth = 1;
|
||||||
|
// Make the gradient black to white
|
||||||
|
itemColor1 = 'black';
|
||||||
|
itemColor2 = 'white';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue