mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
ui: match the download ring to the sync spinner
This commit is contained in:
@@ -998,7 +998,7 @@ private fun DownloadProgressIcon(
|
|||||||
) {
|
) {
|
||||||
val description = stringResource(R.string.downloads_in_progress)
|
val description = stringResource(R.string.downloads_in_progress)
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier.size(28.dp).semantics { contentDescription = description },
|
modifier = Modifier.size(32.dp).semantics { contentDescription = description },
|
||||||
contentAlignment = Alignment.Center,
|
contentAlignment = Alignment.Center,
|
||||||
) {
|
) {
|
||||||
val fraction = progress.fraction
|
val fraction = progress.fraction
|
||||||
@@ -1007,13 +1007,13 @@ private fun DownloadProgressIcon(
|
|||||||
progress = { fraction },
|
progress = { fraction },
|
||||||
color = color,
|
color = color,
|
||||||
trackColor = MaterialTheme.colorScheme.surfaceContainerHighest,
|
trackColor = MaterialTheme.colorScheme.surfaceContainerHighest,
|
||||||
strokeWidth = 2.5.dp,
|
strokeWidth = 2.dp,
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
CircularProgressIndicator(
|
CircularProgressIndicator(
|
||||||
color = color,
|
color = color,
|
||||||
strokeWidth = 2.5.dp,
|
strokeWidth = 2.dp,
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user