Clean up library display settings tab a bit

This commit is contained in:
arkon
2023-03-19 12:41:29 -04:00
parent d160cfaa0e
commit 843e748de3
2 changed files with 19 additions and 21 deletions

View File

@ -184,7 +184,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),
@ -209,6 +209,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()
@ -227,14 +235,4 @@ 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)
},
)
}