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

@ -156,8 +156,8 @@ export function makeGradient(svgDefElem, color, lighter = false) {
let gradientId ='path-fill-gradient' + '-' + color + '-' +(lighter ? 'lighter' : 'default');
let gradientDef = renderVerticalGradient(svgDefElem, gradientId);
let opacities = [1, 0.6, 0.2];
if(lighter) {
opacities = [0.4, 0.2, 0];
if (lighter) {
opacities = [0.4, 0.05, 0];
}
setGradientStop(gradientDef, "0%", color, opacities[0]);