mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -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) {
|
||||
// Make outline visible
|
||||
item.strokeWidth = 1;
|
||||
// Make the gradient black to white
|
||||
itemColor1 = 'black';
|
||||
itemColor2 = 'white';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue