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
2 changed files with 23 additions and 15 deletions
@@ -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
}
}
}
}