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 <jobobby04@users.noreply.github.com>
This commit is contained in:
nicki 2021-08-28 06:56:22 +05:30 committed by GitHub
parent 325ac2b43e
commit 7e8e1fab11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 15 deletions

View File

@ -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
}
}
}
}

View File

@ -170,12 +170,15 @@
<string name="log_extreme_desc">network inspection mode</string>
<!-- General Settings -->
<string name="theme_pure_red">Pure Red</string>
<string name="toggle_expand_search_filters">Expand all search filters by default</string>
<string name="auto_solve_captchas">Automatically solve captcha</string>
<string name="auto_solve_captchas_summary">Use HIGHLY EXPERIMENTAL automatic ReCAPTCHA solver. Will be grayed out if unsupported by your device.</string>
<string name="put_recommends_in_overflow">Recommendations in overflow</string>
<string name="put_recommends_in_overflow_summary">Put the recommendations button in the overflow menu instead of on the manga page</string>
<!-- Appearance Settings -->
<string name="theme_pure_red">Pure Red</string>
<string name="pref_category_navbar">Navbar</string>
<string name="pref_hide_updates_button">Show updates in the nav</string>
<string name="pref_hide_history_button">Show history in the nav</string>
<string name="pref_show_bottom_bar_labels">Always show nav labels</string>