From 7e8e1fab11504a83cac02e34280cb84f60b30006 Mon Sep 17 00:00:00 2001 From: nicki <72807749+curche@users.noreply.github.com> Date: Sat, 28 Aug 2021 06:56:22 +0530 Subject: [PATCH] Create Navbar category in Appearance settings (#404) * add new category for navbar appearance * update strings for new appearance settings also adds `pref_category_navbar` for new Navbar settings sub section * Update SettingsAppearanceController.kt Co-authored-by: jobobby04 --- .../setting/SettingsAppearanceController.kt | 33 +++++++++++-------- app/src/main/res/values/strings_sy.xml | 5 ++- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAppearanceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAppearanceController.kt index 8d564cfbc..f299c58f0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAppearanceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAppearanceController.kt @@ -156,20 +156,25 @@ class SettingsAppearanceController : SettingsController() { summary = "%s" } } - switchPreference { - key = Keys.showNavUpdates - titleRes = R.string.pref_hide_updates_button - defaultValue = true - } - switchPreference { - key = Keys.showNavHistory - titleRes = R.string.pref_hide_history_button - defaultValue = true - } - switchPreference { - key = Keys.bottomBarLabels - titleRes = R.string.pref_show_bottom_bar_labels - defaultValue = true + + preferenceCategory { + titleRes = R.string.pref_category_navbar + + switchPreference { + key = Keys.showNavUpdates + titleRes = R.string.pref_hide_updates_button + defaultValue = true + } + switchPreference { + key = Keys.showNavHistory + titleRes = R.string.pref_hide_history_button + defaultValue = true + } + switchPreference { + key = Keys.bottomBarLabels + titleRes = R.string.pref_show_bottom_bar_labels + defaultValue = true + } } } } diff --git a/app/src/main/res/values/strings_sy.xml b/app/src/main/res/values/strings_sy.xml index 8022d2d60..d36ebf21d 100644 --- a/app/src/main/res/values/strings_sy.xml +++ b/app/src/main/res/values/strings_sy.xml @@ -170,12 +170,15 @@ network inspection mode - Pure Red Expand all search filters by default Automatically solve captcha Use HIGHLY EXPERIMENTAL automatic ReCAPTCHA solver. Will be grayed out if unsupported by your device. Recommendations in overflow Put the recommendations button in the overflow menu instead of on the manga page + + + Pure Red + Navbar Show updates in the nav Show history in the nav Always show nav labels