From 69f00ef781d843faebb1190b829ab11e2bd046f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Mon, 21 Aug 2023 08:40:18 +0200 Subject: [PATCH] Use a material theme color for playing item --- .../pillarbox/demo/ui/player/playlist/PlaylistItemView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/player/playlist/PlaylistItemView.kt b/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/player/playlist/PlaylistItemView.kt index 7c0437a81..90c313dee 100644 --- a/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/player/playlist/PlaylistItemView.kt +++ b/pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/player/playlist/PlaylistItemView.kt @@ -12,6 +12,7 @@ import androidx.compose.material.icons.filled.ArrowUpward import androidx.compose.material.icons.filled.Delete import androidx.compose.material3.Icon import androidx.compose.material3.IconButton +import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -19,7 +20,6 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.style.TextOverflow -import ch.srgssr.pillarbox.demo.ui.theme.RedSrgDark /** * Playlist item view @@ -49,7 +49,7 @@ fun PlaylistItemView( ) { val isPlaying = currentPosition == position val fontWeight = if (isPlaying) FontWeight.Bold else FontWeight.Normal - val color = if (isPlaying) RedSrgDark else Color.Unspecified + val color = if (isPlaying) MaterialTheme.colorScheme.inversePrimary else Color.Unspecified Text( modifier = Modifier.weight(0.5f), text = title,