Skip to content

Commit

Permalink
Use a material theme color for playing item
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Aug 21, 2023
1 parent b38a5fd commit 69f00ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ 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
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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 69f00ef

Please sign in to comment.