Rename to shouldShowGradientBackground

Change-Id: I79d4b43354f9da99d91fb21ee84fc084b374f4b8
pull/491/head
Alex Vanyo 2 years ago
parent 2fad9fd1e5
commit 088a1de92e

@ -87,21 +87,22 @@ fun NiaApp(
windowSizeClass = windowSizeClass windowSizeClass = windowSizeClass
), ),
) { ) {
val showGradientBackground = appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU val shouldShowGradientBackground =
appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU
NiaBackground { NiaBackground {
NiaGradientBackground( NiaGradientBackground(
topColor = if (showGradientBackground) { topColor = if (shouldShowGradientBackground) {
LocalGradientColors.current.top LocalGradientColors.current.top
} else { } else {
Color.Unspecified Color.Unspecified
}, },
bottomColor = if (showGradientBackground) { bottomColor = if (shouldShowGradientBackground) {
LocalGradientColors.current.bottom LocalGradientColors.current.bottom
} else { } else {
Color.Unspecified Color.Unspecified
}, },
containerColor = if (showGradientBackground) { containerColor = if (shouldShowGradientBackground) {
LocalGradientColors.current.container LocalGradientColors.current.container
} else { } else {
Color.Unspecified Color.Unspecified

Loading…
Cancel
Save