Reorganize appearance settings (#7207)

This commit is contained in:
André 2024-05-31 10:46:59 +02:00 committed by GitHub
parent 0a768e6286
commit f8c864f553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 26 additions and 23 deletions

View File

@ -381,7 +381,7 @@
<string name="download_pref_details">Details</string> <string name="download_pref_details">Details</string>
<string name="import_export_pref">Import/Export</string> <string name="import_export_pref">Import/Export</string>
<string name="import_export_search_keywords">backup, restore</string> <string name="import_export_search_keywords">backup, restore</string>
<string name="appearance">Appearance</string> <string name="theming">Theming</string>
<string name="external_elements">External elements</string> <string name="external_elements">External elements</string>
<string name="interruptions">Interruptions</string> <string name="interruptions">Interruptions</string>
<string name="playback_control">Playback control</string> <string name="playback_control">Playback control</string>
@ -534,6 +534,7 @@
<string name="pref_show_subscription_title">Show titles</string> <string name="pref_show_subscription_title">Show titles</string>
<string name="pref_new_episodes_action_title">New episodes action</string> <string name="pref_new_episodes_action_title">New episodes action</string>
<string name="pref_new_episodes_action_sum">Action to take for new episodes</string> <string name="pref_new_episodes_action_sum">Action to take for new episodes</string>
<string name="episode_information">Episode information</string>
<!-- About screen --> <!-- About screen -->
<string name="about_pref">About</string> <string name="about_pref">About</string>

View File

@ -43,11 +43,6 @@
android:key="prefPlaybackSpeedLauncher" android:key="prefPlaybackSpeedLauncher"
android:summary="@string/pref_playback_speed_sum" android:summary="@string/pref_playback_speed_sum"
android:title="@string/playback_speed"/> android:title="@string/playback_speed"/>
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="prefPlaybackTimeRespectsSpeed"
android:summary="@string/pref_playback_time_respects_speed_sum"
android:title="@string/pref_playback_time_respects_speed_title"/>
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:defaultValue="false" android:defaultValue="false"
android:key="prefStreamOverDownload" android:key="prefStreamOverDownload"

View File

@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:search="http://schemas.android.com/apk/com.bytehamster.lib.preferencesearch"> xmlns:search="http://schemas.android.com/apk/com.bytehamster.lib.preferencesearch">
<PreferenceCategory android:title="@string/appearance"> <PreferenceCategory android:title="@string/theming">
<de.danoeh.antennapod.ui.preferences.preference.ThemePreference <de.danoeh.antennapod.ui.preferences.preference.ThemePreference
android:key="prefTheme" /> android:key="prefTheme" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
@ -16,22 +16,6 @@
android:key="prefTintedColors" android:key="prefTintedColors"
android:summary="@string/pref_tinted_theme_message" android:summary="@string/pref_tinted_theme_message"
android:defaultValue="false" /> android:defaultValue="false" />
<Preference
android:key="prefHiddenDrawerItems"
android:summary="@string/pref_nav_drawer_items_sum"
android:title="@string/pref_nav_drawer_items_title"/>
<SwitchPreferenceCompat
android:title="@string/pref_episode_cover_title"
android:key="prefEpisodeCover"
android:summary="@string/pref_episode_cover_summary"
android:defaultValue="true"
android:enabled="true"/>
<SwitchPreferenceCompat
android:title="@string/pref_show_remain_time_title"
android:key="showTimeLeft"
android:summary="@string/pref_show_remain_time_summary"
android:defaultValue="false"
android:enabled="true"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/subscriptions_label"> <PreferenceCategory android:title="@string/subscriptions_label">
<Preference <Preference
@ -50,6 +34,25 @@
android:key="prefSubscriptionsFilter" android:key="prefSubscriptionsFilter"
android:summary="@string/pref_filter_feed_sum" /> android:summary="@string/pref_filter_feed_sum" />
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/episode_information">
<SwitchPreferenceCompat
android:title="@string/pref_episode_cover_title"
android:key="prefEpisodeCover"
android:summary="@string/pref_episode_cover_summary"
android:defaultValue="true"
android:enabled="true"/>
<SwitchPreferenceCompat
android:title="@string/pref_show_remain_time_title"
android:key="showTimeLeft"
android:summary="@string/pref_show_remain_time_summary"
android:defaultValue="false"
android:enabled="true"/>
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="prefPlaybackTimeRespectsSpeed"
android:summary="@string/pref_playback_time_respects_speed_sum"
android:title="@string/pref_playback_time_respects_speed_title"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/external_elements"> <PreferenceCategory android:title="@string/external_elements">
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:defaultValue="false" android:defaultValue="false"
@ -77,6 +80,10 @@
android:title="@string/pref_default_page" android:title="@string/pref_default_page"
android:summary="@string/pref_default_page_sum" android:summary="@string/pref_default_page_sum"
android:defaultValue="HomeFragment"/> android:defaultValue="HomeFragment"/>
<Preference
android:key="prefHiddenDrawerItems"
android:summary="@string/pref_nav_drawer_items_sum"
android:title="@string/pref_nav_drawer_items_title"/>
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:key="prefBackButtonOpensDrawer" android:key="prefBackButtonOpensDrawer"
android:title="@string/pref_back_button_opens_drawer" android:title="@string/pref_back_button_opens_drawer"