paint screen backgrounds from the theme instead of hardcoded black

This commit is contained in:
austinried
2026-10-04 00:30:05 +00:00
parent dff2fe58e0
commit 065bd99086
3 changed files with 3 additions and 3 deletions
@@ -98,7 +98,7 @@ fun HeroDetailScaffold(
val effectiveArtwork = artwork ?: baseArtworkColors()
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.onBackground) {
ArtworkTheme(effectiveArtwork) {
BoxWithConstraints(modifier.fillMaxSize().background(Color.Black)) {
BoxWithConstraints(modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) {
val listState = rememberLazyListState()
val fill = rememberViewportFill(listState)
val density = LocalDensity.current
@@ -276,7 +276,7 @@ fun ArtistDetailScreen(
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.onBackground) {
ArtworkTheme(effectiveArtwork) {
BoxWithConstraints(modifier.fillMaxSize().background(Color.Black)) {
BoxWithConstraints(modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) {
val screenHeightPx = with(density) { maxHeight.toPx() }
val barHeightPx = with(density) { barHeight.toPx() }
val gradientScrollPx = scrollPx - imageHeightPx
@@ -231,7 +231,7 @@ fun NowPlayingScreen(
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.onBackground) {
ArtworkTheme(artwork) {
Box(modifier.fillMaxSize().background(Color.Black)) {
Box(modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) {
HeroGradient(
colors = artwork,
scrollPx = { 0f },