Cleaned up the settings

This commit is contained in:
Karim Abou Zeid 2015-07-15 17:49:03 +02:00
commit e42867e066
11 changed files with 62 additions and 100 deletions

View file

@ -106,7 +106,7 @@
<string name="pref_header_general">General</string>
<string name="pref_header_images">Images</string>
<string name="pref_header_lockscreen">Lockscreen</string>
<string name="pref_summary_colored_navigation_bar">In which views the navigation bar should be colored.</string>
<string name="pref_summary_colored_navigation_bar">Colors the navigation bar in the primary color.</string>
<string name="pref_title_navigation_bar">Colored Navigation Bar</string>
<string name="pref_title_set_default_start_page">Start Page</string>
<string name="pref_title_colored_navigation_bar_artists">Artist View</string>
@ -115,7 +115,6 @@
<string name="pref_title_colored_navigation_bar_playlists">Playlist View</string>
<string name="pref_title_colored_navigation_bar_tag_editor">Tag Editor</string>
<string name="pref_title_colored_navigation_bar_other_screens">Everywhere Else</string>
<string name="pref_title_colored_album_footers">Colored Album Footers</string>
<string name="pref_title_album_art_on_lockscreen">Album Art on Lockscreen</string>
<string name="pref_title_colored_notification">Colored Notification</string>
<string name="pref_title_ignore_media_store_artwork">Ignore Media Store artwork</string>
@ -152,7 +151,6 @@
<string name="playlist_name_empty">Playlist name</string>
<string name="song">Song</string>
<string name="pref_only_lollipop">"Only available on Lollipop."</string>
<string name="pref_summary_colored_album_footers">"Album footers in the grid are colored with the album cover\'s vibrant color."</string>
<string name="pref_summary_album_art_on_lockscreen">The album art is shown on the lockscreen. You might have to restart Phonograph in order for changes to take affect.</string>
<string name="pref_summary_colored_notification">"The notification is colored with the album cover\'s vibrant color."</string>
<string name="pref_summary_gapless_playback">"Eliminates the gap between two songs. This can cause playback issues on some devices."</string>

View file

@ -3,48 +3,40 @@
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_colors">
<com.afollestad.materialdialogs.prefs.MaterialListPreference
android:layout="@layout/preference_custom"
android:defaultValue="0"
android:entries="@array/pref_general_theme_list_titles"
android:entryValues="@array/pref_general_theme_list_values"
android:key="general_theme"
android:layout="@layout/preference_custom"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/pref_title_general_theme" />
<com.kabouzeid.gramophone.prefs.ColorChooserPreference
android:key="primary_color"
android:title="@string/primary_color"
android:summary="@string/primary_color_desc" />
android:summary="@string/primary_color_desc"
android:title="@string/primary_color" />
<com.kabouzeid.gramophone.prefs.ColorChooserPreference
android:key="accent_color"
android:title="@string/accent_color"
android:summary="@string/accent_color_desc" />
android:summary="@string/accent_color_desc"
android:title="@string/accent_color" />
<CheckBoxPreference
android:layout="@layout/preference_custom"
android:defaultValue="true"
android:key="colored_album_footers"
android:title="@string/pref_title_colored_album_footers"
android:summary="@string/pref_summary_colored_album_footers"
android:key="colored_notification"
android:layout="@layout/preference_custom"
android:summary="@string/pref_summary_colored_notification"
android:title="@string/pref_title_colored_notification"
android:widgetLayout="@layout/preference_dynamic_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:key="should_color_navigation_bar"
android:layout="@layout/preference_custom"
android:defaultValue="false"
android:key="colored_notification"
android:title="@string/pref_title_colored_notification"
android:summary="@string/pref_summary_colored_notification"
android:widgetLayout="@layout/preference_dynamic_checkbox" />
<com.afollestad.materialdialogs.prefs.MaterialMultiSelectListPreference
android:layout="@layout/preference_custom"
android:key="colored_navigation_bar"
android:entries="@array/pref_navigation_bar_color_titles"
android:entryValues="@array/pref_navigation_bar_color_values"
android:summary="@string/pref_summary_colored_navigation_bar"
android:title="@string/pref_title_navigation_bar"
android:summary="@string/pref_summary_colored_navigation_bar" />
android:widgetLayout="@layout/preference_dynamic_checkbox" />
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>