mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
shade the now playing art and resaturate the mini player
This commit is contained in:
@@ -52,7 +52,7 @@ fun MiniPlayer(
|
||||
color =
|
||||
artwork?.let {
|
||||
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,
|
||||
contentColor = MaterialTheme.colorScheme.onSurface,
|
||||
modifier =
|
||||
|
||||
@@ -44,6 +44,7 @@ import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.draw.shadow
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
@@ -175,6 +176,7 @@ fun NowPlayingScreen(
|
||||
Modifier
|
||||
.fillMaxHeight()
|
||||
.aspectRatio(1f)
|
||||
.shadow(elevation = 3.dp, shape = RoundedCornerShape(2.dp), clip = false)
|
||||
.clip(RoundedCornerShape(2.dp)),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user