Tweaks on Library screen (#7597)

- Toolbar not having padding in landscape
- Fix library always refreshing everything even though user is refreshing category
- Tab text using primary color
- Fix Grid having to big of a top padding
- Fix Pager crashing when initial page is greater than the number of categories
This commit is contained in:
Andreas
2022-07-24 14:48:54 +02:00
committed by GitHub
parent 59f8c1a288
commit bc1f6ba517
6 changed files with 18 additions and 13 deletions
@@ -2,6 +2,7 @@ package eu.kanade.presentation.library
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.components.LibraryBottomActionMenu
import eu.kanade.presentation.components.Scaffold
import eu.kanade.presentation.library.components.LibraryContent
@@ -23,7 +24,7 @@ fun LibraryScreen(
onClickSelectAll: () -> Unit,
onClickInvertSelection: () -> Unit,
onClickFilter: () -> Unit,
onClickRefresh: () -> Unit,
onClickRefresh: (Category?) -> Unit,
) {
Scaffold(
topBar = {
@@ -35,7 +36,7 @@ fun LibraryScreen(
onClickSelectAll = onClickSelectAll,
onClickInvertSelection = onClickInvertSelection,
onClickFilter = onClickFilter,
onClickRefresh = onClickRefresh,
onClickRefresh = { onClickRefresh(null) },
)
},
bottomBar = {