From d8b9a9f593911569ff2bceb49b4f020978d0d2e1 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Mon, 4 Mar 2024 02:03:59 +0600 Subject: [PATCH] Fix ChapterDownloadIndicator Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> --- .../manga/components/ChapterDownloadIndicator.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/ChapterDownloadIndicator.kt b/app/src/main/java/eu/kanade/presentation/manga/components/ChapterDownloadIndicator.kt index 85b54eac02..b1a1474ecc 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/ChapterDownloadIndicator.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/ChapterDownloadIndicator.kt @@ -24,6 +24,7 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.StrokeCap import androidx.compose.ui.hapticfeedback.HapticFeedback import androidx.compose.ui.hapticfeedback.HapticFeedbackType import androidx.compose.ui.platform.LocalHapticFeedback @@ -137,6 +138,8 @@ private fun DownloadingIndicator( modifier = IndicatorModifier, color = strokeColor, strokeWidth = IndicatorStrokeWidth, + trackColor = Color.Transparent, + strokeCap = StrokeCap.Butt, ) } else { val animatedProgress by animateFloatAsState( @@ -154,6 +157,9 @@ private fun DownloadingIndicator( modifier = IndicatorModifier, color = strokeColor, strokeWidth = IndicatorSize / 2, + trackColor = Color.Transparent, + strokeCap = StrokeCap.Butt, + gapSize = 0.dp, ) } DropdownMenu(expanded = isMenuExpanded, onDismissRequest = { isMenuExpanded = false }) {