Skip to content

Commit

Permalink
Fix repo tab container color mismatching with title when scrolled
Browse files Browse the repository at this point in the history
  • Loading branch information
wingio committed Sep 12, 2024
1 parent b7dc7db commit 2515d21
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ class RepoScreen(
.nestedScroll(scrollBehavior.nestedScrollConnection)
) {
val tabColor by animateColorAsState(
targetValue = MaterialTheme.colorScheme.surfaceColorAtElevation(
3.dp
).copy(scrollBehavior.state.collapsedFraction), label = "Tab color"
targetValue = MaterialTheme.colorScheme.surfaceContainer.copy(
alpha = scrollBehavior.state.collapsedFraction
),
label = "Tab color"
)
val badgeColor by animateColorAsState(
targetValue = Color.Black
Expand Down

0 comments on commit 2515d21

Please sign in to comment.