mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-07-08 02:54:40 -04: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…
Add table
Add a link
Reference in a new issue