Themed icons

This commit is contained in:
MM20
2021-12-04 21:39:45 +01:00
parent be50fb2276
commit ccda48c559
18 changed files with 357 additions and 125 deletions
@@ -95,6 +95,11 @@ class PreferencesAppearanceFragment : PreferenceFragmentCompat() {
true
}
findPreference<Preference>("themed_icons")?.setOnPreferenceChangeListener { _, _ ->
iconRepository.recreate()
true
}
val shapePreference = findPreference<Preference>("icon_shape")!!
shapePreference.summary = getShapeName()
shapePreference.setOnPreferenceClickListener {
@@ -22,6 +22,12 @@
app:summary="@string/preference_cards_summary"
app:title="@string/preference_cards" />
<PreferenceCategory app:title="@string/preference_category_icons">
<SwitchPreference
app:key="themed_icons"
android:defaultValue="false"
app:title="@string/preference_themed_icons"
app:summary="@string/preference_themed_icons_summary"
/>
<ListPreference
app:key="icon_pack"
app:persistent="false"