Temporarily replace library category tabs divider with our own

Fixes #7789
This commit is contained in:
arkon 2022-09-25 10:50:02 -04:00
parent 9859b38f32
commit db91d04e82

View file

@ -14,6 +14,7 @@ import com.google.accompanist.pager.PagerState
import eu.kanade.domain.category.model.Category import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.category.visualName import eu.kanade.presentation.category.visualName
import eu.kanade.presentation.components.AppStateBanners import eu.kanade.presentation.components.AppStateBanners
import eu.kanade.presentation.components.Divider
import eu.kanade.presentation.components.TabIndicator import eu.kanade.presentation.components.TabIndicator
import eu.kanade.presentation.components.TabText import eu.kanade.presentation.components.TabText
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@ -34,6 +35,9 @@ fun LibraryTabs(
selectedTabIndex = state.currentPage, selectedTabIndex = state.currentPage,
edgePadding = 0.dp, edgePadding = 0.dp,
indicator = { TabIndicator(it[state.currentPage]) }, indicator = { TabIndicator(it[state.currentPage]) },
// TODO: use default when width is fixed upstream
// https://issuetracker.google.com/issues/242879624
divider = {},
) { ) {
categories.forEachIndexed { index, category -> categories.forEachIndexed { index, category ->
val count by if (showMangaCount) { val count by if (showMangaCount) {
@ -51,6 +55,8 @@ fun LibraryTabs(
} }
} }
Divider()
AppStateBanners(isDownloadOnly, isIncognitoMode) AppStateBanners(isDownloadOnly, isIncognitoMode)
} }
} }