From b360724dca8813a4f577afc13e879d149d450b09 Mon Sep 17 00:00:00 2001 From: acite <1498045907@qq.com> Date: Thu, 2 Oct 2025 01:34:09 +0800 Subject: [PATCH] [fix] Chapter progress --- .../aether/view/pages/ComicPageView.kt | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/acitelight/aether/view/pages/ComicPageView.kt b/app/src/main/java/com/acitelight/aether/view/pages/ComicPageView.kt index 9d1b3db..1f94071 100644 --- a/app/src/main/java/com/acitelight/aether/view/pages/ComicPageView.kt +++ b/app/src/main/java/com/acitelight/aether/view/pages/ComicPageView.kt @@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.foundation.lazy.LazyRow @@ -54,6 +55,7 @@ import coil3.compose.AsyncImage import coil3.request.ImageRequest import com.acitelight.aether.model.BookMark import com.acitelight.aether.setFullScreen +import com.acitelight.aether.view.components.BiliMiniSlider import com.acitelight.aether.view.components.BookmarkPop import com.acitelight.aether.viewModel.ComicPageViewModel import kotlinx.coroutines.launch @@ -239,15 +241,16 @@ fun ComicPageView( .align(Alignment.BottomCenter) ) { - Box { + val k = it.getPageChapterIndex(pagerState.currentPage) + Column(Modifier + .padding(bottom = 24.dp)) { LazyRow( horizontalArrangement = Arrangement.spacedBy(5.dp), state = comicPageViewModel.listState!!, modifier = Modifier .fillMaxWidth() - .padding(bottom = 18.dp) + .padding(bottom = 1.dp) .padding(horizontal = 12.dp) .height(180.dp) - .align(Alignment.BottomCenter) ) { items(comicPageViewModel.pageList.size) @@ -307,6 +310,17 @@ fun ComicPageView( } } } + + BiliMiniSlider( + value = (k.second.toInt()) / it.getChapterLength(k.first.page).toFloat(), + modifier = Modifier + .height(6.dp) + .fillMaxWidth().padding(horizontal = 24.dp) + .fillMaxWidth(), + onValueChange = { + + } + ) } } }