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
),
) {
val showGradientBackground = appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU
val shouldShowGradientBackground =
appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU
NiaBackground {
NiaGradientBackground(
topColor = if (showGradientBackground) {
topColor = if (shouldShowGradientBackground) {
LocalGradientColors.current.top
} else {
Color.Unspecified
},
bottomColor = if (showGradientBackground) {
bottomColor = if (shouldShowGradientBackground) {
LocalGradientColors.current.bottom
} else {
Color.Unspecified
},
containerColor = if (showGradientBackground) {
containerColor = if (shouldShowGradientBackground) {
LocalGradientColors.current.container
} else {
Color.Unspecified

Loading…
Cancel
Save