dots in omgekeerde volgorde

This commit is contained in:
Lukas Barragan Torres 2023-05-02 16:17:12 +02:00
parent 173eeb1073
commit 6fb597c7e1

View file

@ -37,11 +37,11 @@ class BreakSessionScreen(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center,
) {
repeat(funPomoDoroTimer.breaksRemaining - 1) {
repeat(funPomoDoroTimer.repeats - funPomoDoroTimer.breaksRemaining) {
Dot(color = Color.DarkGray)
}
if (funPomoDoroTimer.isInBreak) Dot(Color.Green) else Dot(Color.DarkGray)
repeat(funPomoDoroTimer.repeats - funPomoDoroTimer.breaksRemaining) {
if (!funPomoDoroTimer.isInBreak) Dot(Color.Green) else Dot(Color.DarkGray)
repeat(funPomoDoroTimer.breaksRemaining - 1) {
Dot(color = Color.Gray)
}
}