mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 18:13:15 -05:00
Temporarily replace library category tabs divider with our own
Fixes #7789
This commit is contained in:
parent
9859b38f32
commit
db91d04e82
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,7 @@ import com.google.accompanist.pager.PagerState
|
|||
import eu.kanade.domain.category.model.Category
|
||||
import eu.kanade.presentation.category.visualName
|
||||
import eu.kanade.presentation.components.AppStateBanners
|
||||
import eu.kanade.presentation.components.Divider
|
||||
import eu.kanade.presentation.components.TabIndicator
|
||||
import eu.kanade.presentation.components.TabText
|
||||
import kotlinx.coroutines.launch
|
||||
|
@ -34,6 +35,9 @@ fun LibraryTabs(
|
|||
selectedTabIndex = state.currentPage,
|
||||
edgePadding = 0.dp,
|
||||
indicator = { TabIndicator(it[state.currentPage]) },
|
||||
// TODO: use default when width is fixed upstream
|
||||
// https://issuetracker.google.com/issues/242879624
|
||||
divider = {},
|
||||
) {
|
||||
categories.forEachIndexed { index, category ->
|
||||
val count by if (showMangaCount) {
|
||||
|
@ -51,6 +55,8 @@ fun LibraryTabs(
|
|||
}
|
||||
}
|
||||
|
||||
Divider()
|
||||
|
||||
AppStateBanners(isDownloadOnly, isIncognitoMode)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue