Skip to content

Commit 4a00651

Browse files
author
livecodeali
committed
[[ SVG Icon ]] Fix alpha value of svg icon widget for consitency with rgb
1 parent 795be86 commit 4a00651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/widgets/svgpath/svgpath.lcb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,10 @@ private handler stringToColor(in pString as String) returns Color
308308
if tComponentCount is 4 then
309309
put (element 4 of tComponentList) parsed as number into tAlpha
310310
else
311-
put 1.0 into tAlpha
311+
put 255 into tAlpha
312312
end if
313313

314-
return color [ tRed/255, tGreen/255, tBlue/255, tAlpha ]
314+
return color [ tRed/255, tGreen/255, tBlue/255, tAlpha/255 ]
315315
end handler
316316

317317

0 commit comments

Comments
 (0)