Skip to content

Commit

Permalink
fix transparent navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zinkovskyi committed Jan 12, 2025
1 parent 49c1065 commit cb0ba94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
Expand Down Expand Up @@ -127,7 +128,7 @@ fun BottomSheet(
onClick = state::expandSoft
)
.fillMaxWidth()
.height(state.collapsedBound)
.fillMaxHeight()
.background(collapsedBackgroundColor),
content = collapsedContent
)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/dd3boh/outertune/ui/player/Player.kt
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ fun BottomSheetPlayer(
backgroundColor = if (useDarkTheme || playerBackground == PlayerBackgroundStyle.DEFAULT) {
MaterialTheme.colorScheme.surfaceColorAtElevation(NavigationBarDefaults.Elevation)
} else MaterialTheme.colorScheme.onSurfaceVariant,
collapsedBackgroundColor = Color.Transparent,
collapsedBackgroundColor = MaterialTheme.colorScheme.surfaceColorAtElevation(NavigationBarDefaults.Elevation),
onDismiss = {
playerConnection.player.stop()
playerConnection.player.clearMediaItems()
Expand Down

0 comments on commit cb0ba94

Please sign in to comment.