|
|
@ -80,6 +80,7 @@ fun NiaApp(
|
|
|
|
appState: NiaAppState,
|
|
|
|
appState: NiaAppState,
|
|
|
|
modifier: Modifier = Modifier,
|
|
|
|
modifier: Modifier = Modifier,
|
|
|
|
windowAdaptiveInfo: WindowAdaptiveInfo = currentWindowAdaptiveInfo(),
|
|
|
|
windowAdaptiveInfo: WindowAdaptiveInfo = currentWindowAdaptiveInfo(),
|
|
|
|
|
|
|
|
bottomSystemUiHeight: WindowInsets = WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom),
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
val shouldShowGradientBackground =
|
|
|
|
val shouldShowGradientBackground =
|
|
|
|
appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU
|
|
|
|
appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU
|
|
|
@ -87,9 +88,7 @@ fun NiaApp(
|
|
|
|
|
|
|
|
|
|
|
|
NiaBackground(
|
|
|
|
NiaBackground(
|
|
|
|
modifier = modifier
|
|
|
|
modifier = modifier
|
|
|
|
.windowInsetsPadding(
|
|
|
|
.windowInsetsPadding(bottomSystemUiHeight),
|
|
|
|
WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
NiaGradientBackground(
|
|
|
|
NiaGradientBackground(
|
|
|
|
gradientColors = if (shouldShowGradientBackground) {
|
|
|
|
gradientColors = if (shouldShowGradientBackground) {
|
|
|
|