Fix color error.

This commit is contained in:
Benoit Marty 2023-01-26 16:50:16 +01:00 committed by Benoit Marty
parent 3273685cc4
commit 171e35c89a

View file

@ -48,19 +48,19 @@ fun ProgressDialog(
modifier = modifier modifier = modifier
.fillMaxWidth() .fillMaxWidth()
.background( .background(
color = ElementTheme.colors.onBackground, color = ElementTheme.colors.surfaceVariant,
shape = RoundedCornerShape(8.dp) shape = RoundedCornerShape(8.dp)
) )
) { ) {
Column(horizontalAlignment = Alignment.CenterHorizontally) { Column(horizontalAlignment = Alignment.CenterHorizontally) {
CircularProgressIndicator( CircularProgressIndicator(
modifier = Modifier.padding(16.dp), modifier = Modifier.padding(16.dp),
color = ElementTheme.colors.background color = ElementTheme.colors.onSurfaceVariant
) )
if (!text.isNullOrBlank()) { if (!text.isNullOrBlank()) {
Text( Text(
text = text, text = text,
color = ElementTheme.colors.background, color = ElementTheme.colors.onSurfaceVariant,
modifier = Modifier.padding(16.dp) modifier = Modifier.padding(16.dp)
) )
} }