|
|
@ -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
|
|
|
|