diff --git a/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt b/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt index e500203..6ba5664 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt @@ -71,7 +71,12 @@ fun WeekPager( modifier = modifier ) { page -> val pageOffset = abs(pagerState.currentPageOffsetFraction) - val alpha = 1f - pageOffset.coerceIn(0f, 0.3f) / 0.3f + val isCurrentPage = page == pagerState.currentPage + val alpha = if (isCurrentPage) { + 1f - pageOffset + } else { + pageOffset + } val weekMonday = pageToWeekMonday(page, initialWeekMonday) Row( modifier = Modifier