shade the now playing art and resaturate the mini player

This commit is contained in:
austinried
2026-10-04 00:29:54 +00:00
parent f8eede9e9c
commit 9afedde0c4
2 changed files with 3 additions and 1 deletions
@@ -52,7 +52,7 @@ fun MiniPlayer(
color = color =
artwork?.let { artwork?.let {
val (hue, saturation, lightness) = lerp(it.scheme.surfaceContainerHigh, it.gradientHigh, 0.5f).toHsl() val (hue, saturation, lightness) = lerp(it.scheme.surfaceContainerHigh, it.gradientHigh, 0.5f).toHsl()
Color.hsl(hue, saturation * 0.65f, lightness) Color.hsl(hue, saturation * 0.8f, lightness)
} ?: MaterialTheme.colorScheme.surfaceContainerHigh, } ?: MaterialTheme.colorScheme.surfaceContainerHigh,
contentColor = MaterialTheme.colorScheme.onSurface, contentColor = MaterialTheme.colorScheme.onSurface,
modifier = modifier =
@@ -44,6 +44,7 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
@@ -175,6 +176,7 @@ fun NowPlayingScreen(
Modifier Modifier
.fillMaxHeight() .fillMaxHeight()
.aspectRatio(1f) .aspectRatio(1f)
.shadow(elevation = 3.dp, shape = RoundedCornerShape(2.dp), clip = false)
.clip(RoundedCornerShape(2.dp)), .clip(RoundedCornerShape(2.dp)),
) )
} }