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() val downloadBadge by screenModel.libraryPreferences.downloadBadge().collectAsState()
CheckboxItem( CheckboxItem(
label = stringResource(R.string.action_display_download_badge), label = stringResource(R.string.action_display_download_badge),
@ -209,6 +209,14 @@ private fun ColumnScope.DisplayPage(
screenModel.togglePreference(LibraryPreferences::languageBadge) 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) HeadingItem(R.string.tabs_header)
val categoryTabs by screenModel.libraryPreferences.categoryTabs().collectAsState() val categoryTabs by screenModel.libraryPreferences.categoryTabs().collectAsState()
@ -227,14 +235,4 @@ private fun ColumnScope.DisplayPage(
screenModel.togglePreference(LibraryPreferences::categoryNumberOfItems) 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)
},
)
} }

View File

@ -14,7 +14,7 @@
<string name="track">Tracking</string> <string name="track">Tracking</string>
<string name="history">History</string> <string name="history">History</string>
<!-- Activities and fragments labels (toolbar title) --> <!-- Screen titles -->
<string name="label_more">More</string> <string name="label_more">More</string>
<string name="label_settings">Settings</string> <string name="label_settings">Settings</string>
<string name="label_download_queue">Download queue</string> <string name="label_download_queue">Download queue</string>
@ -113,7 +113,7 @@
<string name="action_display_language_badge">Language</string> <string name="action_display_language_badge">Language</string>
<string name="action_display_show_tabs">Show category tabs</string> <string name="action_display_show_tabs">Show category tabs</string>
<string name="action_display_show_number_of_items">Show number of items</string> <string name="action_display_show_number_of_items">Show number of items</string>
<string name="action_display_show_continue_reading_button">Show continue reading button</string> <string name="action_display_show_continue_reading_button">Continue reading button</string>
<string name="action_disable">Disable</string> <string name="action_disable">Disable</string>
<string name="action_pin">Pin</string> <string name="action_pin">Pin</string>
<string name="action_unpin">Unpin</string> <string name="action_unpin">Unpin</string>
@ -582,15 +582,15 @@
<string name="logout_success">You are now logged out</string> <string name="logout_success">You are now logged out</string>
<string name="unknown_error">Unknown error</string> <string name="unknown_error">Unknown error</string>
<!-- Library fragment --> <!-- Library -->
<string name="updating_category">Updating category</string> <string name="updating_category">Updating category</string>
<string name="manga_from_library">From library</string> <string name="manga_from_library">From library</string>
<string name="downloaded_chapters">Downloaded chapters</string> <string name="downloaded_chapters">Downloaded chapters</string>
<string name="badges_header">Badges</string> <!-- Like watchface complications. For badges/buttons on library covers. -->
<string name="complications_header">Complications</string>
<string name="tabs_header">Tabs</string> <string name="tabs_header">Tabs</string>
<string name="other_header">Other</string>
<!-- Catalogue fragment --> <!-- Browse source -->
<!-- missing prompt after Compose rewrite #7901 --> <!-- missing prompt after Compose rewrite #7901 -->
<string name="no_more_results">No more results</string> <string name="no_more_results">No more results</string>
<string name="no_results_found">No results found</string> <string name="no_results_found">No results found</string>
@ -612,7 +612,7 @@
<string name="local_filter_order_by">Order by</string> <string name="local_filter_order_by">Order by</string>
<string name="date">Date</string> <string name="date">Date</string>
<!-- Manga info fragment --> <!-- Manga info -->
<string name="ongoing">Ongoing</string> <string name="ongoing">Ongoing</string>
<string name="unknown">Unknown</string> <string name="unknown">Unknown</string>
<string name="unknown_author">Unknown author</string> <string name="unknown_author">Unknown author</string>
@ -644,7 +644,7 @@
<string name="snack_add_to_library">Add to library?</string> <string name="snack_add_to_library">Add to library?</string>
<string name="description_placeholder">No description</string> <string name="description_placeholder">No description</string>
<!-- Manga chapters fragment --> <!-- Manga chapters -->
<string name="display_mode_chapter">Chapter %1$s</string> <string name="display_mode_chapter">Chapter %1$s</string>
<string name="chapter_downloading_progress">Downloading (%1$d/%2$d)</string> <string name="chapter_downloading_progress">Downloading (%1$d/%2$d)</string>
<string name="chapter_error">Error</string> <string name="chapter_error">Error</string>
@ -757,14 +757,14 @@
<item quantity="other">Skipping %d chapters, either the source is missing them or they have been filtered out</item> <item quantity="other">Skipping %d chapters, either the source is missing them or they have been filtered out</item>
</plurals> </plurals>
<!-- Updates fragment --> <!-- Updates -->
<string name="updating_library">Updating library</string> <string name="updating_library">Updating library</string>
<string name="update_already_running">An update is already running</string> <string name="update_already_running">An update is already running</string>
<string name="cant_open_last_read_chapter">Unable to open last read chapter</string> <string name="cant_open_last_read_chapter">Unable to open last read chapter</string>
<string name="updates_last_update_info">Library last updated: %s</string> <string name="updates_last_update_info">Library last updated: %s</string>
<string name="updates_last_update_info_just_now">Just now</string> <string name="updates_last_update_info_just_now">Just now</string>
<!-- History fragment --> <!-- History -->
<string name="recent_manga_time">Ch. %1$s - %2$s</string> <string name="recent_manga_time">Ch. %1$s - %2$s</string>
<string name="pref_clear_history">Clear history</string> <string name="pref_clear_history">Clear history</string>
<string name="clear_history_completed">History deleted</string> <string name="clear_history_completed">History deleted</string>