refactor: update MediaResumeButton to use white color for button text

This commit is contained in:
2026-03-31 22:29:45 +02:00
parent c85767cf25
commit 72f6a37203

View File

@@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
@@ -22,6 +21,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.drawWithContent
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.clipRect
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
@@ -50,7 +50,7 @@ fun MediaResumeButton(
.background(onPrimaryColor),
contentAlignment = Alignment.Center
) {
ButtonContent(text = text, color = primaryColor)
ButtonContent(text = text, color = Color.White)
}
// Top layer: primary colors, clipped to the progress %
@@ -71,7 +71,7 @@ fun MediaResumeButton(
.background(primaryColor),
contentAlignment = Alignment.Center
) {
ButtonContent(text = text, color = onPrimaryColor)
ButtonContent(text = text, color = Color.White)
}
}
}