From dd225e0a0e2035665356b6d60b5600fc817dce56 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Fri, 27 Nov 2026 14:14:06 +0100 Subject: [PATCH] Pull-to-sync's still ring is floret-kit's BusyIndicator (#157) --- .../jeanlucmakiola/agendula/ui/common/SyncPullBox.kt | 11 +++-------- floret-kit | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/de/jeanlucmakiola/agendula/ui/common/SyncPullBox.kt b/app/src/main/java/de/jeanlucmakiola/agendula/ui/common/SyncPullBox.kt index e5ab3f9..853e7a3 100644 --- a/app/src/main/java/de/jeanlucmakiola/agendula/ui/common/SyncPullBox.kt +++ b/app/src/main/java/de/jeanlucmakiola/agendula/ui/common/SyncPullBox.kt @@ -4,7 +4,6 @@ import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.BoxScope import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size -import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi import androidx.compose.material3.pulltorefresh.PullToRefreshBox @@ -15,10 +14,8 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp +import de.jeanlucmakiola.floret.components.BusyIndicator import de.jeanlucmakiola.floret.identity.rememberLoopingMotion -import androidx.compose.ui.semantics.ProgressBarRangeInfo -import androidx.compose.ui.semantics.clearAndSetSemantics -import androidx.compose.ui.semantics.progressBarRangeInfo /** * Pull down to sync every account (#73). Without an account there is nothing @@ -59,11 +56,9 @@ fun SyncPullBox( modifier = placement, containerColor = PullToRefreshDefaults.loadingIndicatorContainerColor, ) { - CircularProgressIndicator( + BusyIndicator( progress = { if (syncing) 1f else state.distanceFraction.coerceIn(0f, 1f) }, - modifier = Modifier - .size(24.dp) - .clearAndSetSemantics { progressBarRangeInfo = ProgressBarRangeInfo.Indeterminate }, + modifier = Modifier.size(24.dp), strokeWidth = 2.5.dp, ) } diff --git a/floret-kit b/floret-kit index a7f8166..a11f3e9 160000 --- a/floret-kit +++ b/floret-kit @@ -1 +1 @@ -Subproject commit a7f8166c4be0d791df965cbed4a556e2ad7a2882 +Subproject commit a11f3e9f5705b75cea0822965b2b1cf076397f38