Skip to content

Commit

Permalink
don't have translucent background on image post thumbnail click
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Ramesh committed Jun 14, 2023
1 parent 63623cc commit 9722324
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ fun ImageViewerDialog(url: String, onBackRequest: () -> Unit) {
}

val backColor = MaterialTheme.colorScheme.scrim
val backColorTranslucent = MaterialTheme.colorScheme.scrim.copy(alpha = 0.4f)

var showTopBar by remember { mutableStateOf(true) }

Expand All @@ -82,7 +81,7 @@ fun ImageViewerDialog(url: String, onBackRequest: () -> Unit) {
animationSpec = tween(backFadeTime),
)
val backgroundColor = animateColorAsState(
targetValue = if (showTopBar) backColorTranslucent else backColor,
targetValue = backColor,
animationSpec = tween(backFadeTime),
)

Expand Down

0 comments on commit 9722324

Please sign in to comment.