Switch to rgba for rectangle opacity rendering.

This commit is contained in:
Pavan Jadhaw 2018-04-08 21:58:39 +05:30
parent 2565b6a1e8
commit 73bff1ca38

View file

@ -353,17 +353,16 @@ case "$1" in
echo
echo "Caching images for faster screen locking"
# resized
convert "$resized" -draw "fill '#00000096' $rectangles" "$l_resized"
convert "$resized" -draw "fill rgba(0, 0, 0, 0.4) $rectangles" "$l_resized"
# dim
convert "$dim" -draw "fill '#00000096' $rectangles" "$l_dim"
convert "$dim" -draw "fill rgba(0, 0, 0, 0.4) $rectangles" "$l_dim"
# blur
convert "$blur" -draw "fill '#00000096' $rectangles" "$l_blur"
convert "$blur" -draw "fill rgba(0, 0, 0, 0.4) $rectangles" "$l_blur"
# blur
convert "$dimblur" -draw "fill '#00000096' $rectangles" "$l_dimblur"
convert "$dimblur" -draw "fill rgba(0, 0, 0, 0.4) $rectangles" "$l_dimblur"
echo
echo "All required changes have been applied"
;;