Clean up library display settings tab a bit

(cherry picked from commit 843e748de3d8d4afff7b7b6baa47193e4138191f)
This commit is contained in:
arkon
2023-03-19 12:41:29 -04:00
committed by Jobobby04
parent 2b6da6ae69
commit 8d0c9969b0
2 changed files with 19 additions and 21 deletions
@@ -240,7 +240,7 @@ private fun ColumnScope.DisplayPage(
)
}
HeadingItem(R.string.badges_header)
HeadingItem(R.string.complications_header)
val downloadBadge by screenModel.libraryPreferences.downloadBadge().collectAsState()
CheckboxItem(
label = stringResource(R.string.action_display_download_badge),
@@ -265,6 +265,14 @@ private fun ColumnScope.DisplayPage(
screenModel.togglePreference(LibraryPreferences::languageBadge)
},
)
val showContinueReadingButton by screenModel.libraryPreferences.showContinueReadingButton().collectAsState()
CheckboxItem(
label = stringResource(R.string.action_display_show_continue_reading_button),
checked = showContinueReadingButton,
onClick = {
screenModel.togglePreference(LibraryPreferences::showContinueReadingButton)
},
)
HeadingItem(R.string.tabs_header)
val categoryTabs by screenModel.libraryPreferences.categoryTabs().collectAsState()
@@ -283,16 +291,6 @@ private fun ColumnScope.DisplayPage(
screenModel.togglePreference(LibraryPreferences::categoryNumberOfItems)
},
)
HeadingItem(R.string.other_header)
val showContinueReadingButton by screenModel.libraryPreferences.showContinueReadingButton().collectAsState()
CheckboxItem(
label = stringResource(R.string.action_display_show_continue_reading_button),
checked = showContinueReadingButton,
onClick = {
screenModel.togglePreference(LibraryPreferences::showContinueReadingButton)
},
)
}
data class GroupMode(