Skip to content

Commit

Permalink
minor adjustments to mini player
Browse files Browse the repository at this point in the history
  • Loading branch information
07jasjeet committed Jan 11, 2025
1 parent 41c623d commit 1b212ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
Expand All @@ -34,6 +35,7 @@ import org.listenbrainz.android.ui.theme.ListenBrainzTheme
fun BottomNavigationBar(
modifier: Modifier = Modifier,
navController: NavController = rememberNavController(),
backgroundColor: Color = ListenBrainzTheme.colorScheme.nav,
backdropScaffoldState: BackdropScaffoldState = rememberBackdropScaffoldState(initialValue = BackdropValue.Revealed),
scrollToTop: () -> Unit,
username : String?,
Expand All @@ -46,7 +48,7 @@ fun BottomNavigationBar(
)
BottomNavigation(
modifier = modifier,
backgroundColor = ListenBrainzTheme.colorScheme.nav,
backgroundColor = backgroundColor,
elevation = 0.dp
) {
val coroutineScope = rememberCoroutineScope()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fun SongViewPager(
state = pagerState,
modifier = modifier
.fillMaxWidth()
.dynamicBackgroundFromAlbumArt(currentlyPlayingSong.albumArt)
.background(viewModel.playerBackGroundColor)
) {
Column(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class BrainzPlayerViewModel @Inject constructor(
var isSearching by mutableStateOf(false)

var playerBackGroundColor by mutableStateOf(Color.Transparent)
private set

init {
updatePlayerPosition()
Expand Down

0 comments on commit 1b212ce

Please sign in to comment.