feat: update opacity for light gradient

This commit is contained in:
Shivam Mishra 2020-07-28 19:27:54 +05:30
parent f8c3f9d7b4
commit 51a6ed33a5

View File

@ -157,7 +157,7 @@ export function makeGradient(svgDefElem, color, lighter = false) {
let gradientDef = renderVerticalGradient(svgDefElem, gradientId);
let opacities = [1, 0.6, 0.2];
if (lighter) {
opacities = [0.4, 0.2, 0];
opacities = [0.4, 0.05, 0];
}
setGradientStop(gradientDef, "0%", color, opacities[0]);