Skip to content

Commit

Permalink
Remove alpha from page background
Browse files Browse the repository at this point in the history
With the alpha, there are many artifacts while scrolling the ViewPager
or the page itself.
  • Loading branch information
ahmedre committed Nov 30, 2024
1 parent 34be838 commit 543e135
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ fun Modifier.pageGradient(startWithWidth: Boolean): Modifier {

return background(
brush = Brush.linearGradient(
0f to Color(0xf0, 0xea, 0xdf, 0xff / 2),
0.46f to Color(0xff, 0xfe, 0xfa, 0xff / 2),
1f to Color(0xf0, 0xea, 0xdf, 0xff / 2),
0f to Color(0xf0, 0xea, 0xdf),
0.46f to Color(0xff, 0xfe, 0xfa),
1f to Color(0xf0, 0xea, 0xdf),
start = startOffset,
end = endOffset,
tileMode = TileMode.Repeated
Expand Down

0 comments on commit 543e135

Please sign in to comment.