Skip to content

Commit

Permalink
Merge pull request #137 from brudaswen/fix/issue-136-translucent-colo…
Browse files Browse the repository at this point in the history
…r-for-chromLikeFilter

Support translucent color for ChromeLikeFilter
  • Loading branch information
mateuszkwiecinski authored Mar 27, 2021
2 parents 4bd921e + 3061b08 commit 4eeb576
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ChromeLikeFilter(
// draw the ribbon
graphics.color = ribbonColor
if (!adaptive) {
graphics.composite = AlphaComposite.getInstance(AlphaComposite.SRC_IN, 1f)
graphics.composite = AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, 1f)
}
when (gravity) {
Gravity.TOP -> graphics.fillRect(0, 0, image.width, backgroundHeight)
Expand Down

0 comments on commit 4eeb576

Please sign in to comment.