Implemented app-theme-helper. Needs to be cleaned up.
This commit is contained in:
parent
178c15dafb
commit
8b98a9be85
39 changed files with 275 additions and 1370 deletions
|
|
@ -1,21 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_audio">
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory android:title="@string/pref_header_audio">
|
||||
|
||||
<CheckBoxPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATESwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="gapless_playback"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/pref_summary_gapless_playback"
|
||||
android:title="@string/pref_title_gapless_playback"
|
||||
android:widgetLayout="@layout/preference_dynamic_checkbox" />
|
||||
android:title="@string/pref_title_gapless_playback" />
|
||||
|
||||
<Preference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreference
|
||||
android:key="equalizer"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:title="@string/equalizer" />
|
||||
|
||||
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
|
||||
</com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,43 +1,32 @@
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_colors">
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory android:title="@string/pref_header_colors">
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
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
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEColorPreference
|
||||
android:key="primary_color"
|
||||
android:persistent="false"
|
||||
android:summary="@string/primary_color_desc"
|
||||
android:title="@string/primary_color" />
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.ColorChooserPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEColorPreference
|
||||
android:key="accent_color"
|
||||
android:persistent="false"
|
||||
android:summary="@string/accent_color_desc"
|
||||
android:title="@string/accent_color" />
|
||||
|
||||
<CheckBoxPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATESwitchPreference
|
||||
android:defaultValue="true"
|
||||
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" />
|
||||
android:title="@string/pref_title_colored_notification" />
|
||||
|
||||
<CheckBoxPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATESwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="should_color_navigation_bar"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:persistent="false"
|
||||
android:summary="@string/pref_summary_colored_navigation_bar"
|
||||
android:title="@string/pref_title_navigation_bar"
|
||||
android:widgetLayout="@layout/preference_dynamic_checkbox" />
|
||||
android:title="@string/pref_title_navigation_bar" />
|
||||
|
||||
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
|
||||
</com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
|
|||
|
|
@ -1,17 +1,25 @@
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_general">
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory android:title="@string/pref_header_general">
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEListPreference
|
||||
android:defaultValue="-1"
|
||||
android:entries="@array/pref_start_page_list_titles"
|
||||
android:entryValues="@array/pref_start_page_list_values"
|
||||
android:key="default_start_page"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_set_default_start_page" />
|
||||
|
||||
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEListPreference
|
||||
android:defaultValue="light"
|
||||
android:entries="@array/pref_general_theme_list_titles"
|
||||
android:entryValues="@array/pref_general_theme_list_values"
|
||||
android:key="general_theme"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_general_theme" />
|
||||
|
||||
</com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
|
|||
|
|
@ -1,26 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_images">
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory android:title="@string/pref_header_images">
|
||||
|
||||
<CheckBoxPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATESwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="ignore_media_store_artwork"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/pref_summary_ignore_media_store_artwork"
|
||||
android:title="@string/pref_title_ignore_media_store_artwork"
|
||||
android:widgetLayout="@layout/preference_dynamic_checkbox" />
|
||||
android:title="@string/pref_title_ignore_media_store_artwork" />
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEListPreference
|
||||
android:defaultValue="only_wifi"
|
||||
android:entries="@array/pref_auto_download_images_titles"
|
||||
android:entryValues="@array/pref_auto_download_images_values"
|
||||
android:key="auto_download_images_policy"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_auto_download_artist_images" />
|
||||
|
||||
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
|
||||
</com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -1,24 +1,20 @@
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_lockscreen">
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory android:title="@string/pref_header_lockscreen">
|
||||
|
||||
<CheckBoxPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATESwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="album_art_on_lockscreen"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/pref_summary_album_art_on_lockscreen"
|
||||
android:title="@string/pref_title_album_art_on_lockscreen"
|
||||
android:widgetLayout="@layout/preference_dynamic_checkbox" />
|
||||
android:title="@string/pref_title_album_art_on_lockscreen" />
|
||||
|
||||
<CheckBoxPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATESwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:dependency="album_art_on_lockscreen"
|
||||
android:key="blurred_album_art"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:summary="@string/pref_summary_blurred_album_art"
|
||||
android:title="@string/pref_title_blurred_album_art"
|
||||
android:widgetLayout="@layout/preference_dynamic_checkbox" />
|
||||
android:title="@string/pref_title_blurred_album_art" />
|
||||
|
||||
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
|
||||
</com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory android:title="@string/pref_header_now_playing_screen">
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory android:title="@string/pref_header_now_playing_screen">
|
||||
|
||||
<com.afollestad.materialdialogs.prefs.MaterialListPreference
|
||||
<com.kabouzeid.appthemehelper.common.prefs.ATEListPreference
|
||||
android:enabled="false"
|
||||
android:key="now_playing_layout"
|
||||
android:layout="@layout/preference_custom"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:summary="Coming soon"
|
||||
android:title="@string/pref_title_now_playing_layout" />
|
||||
|
||||
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
|
||||
</com.kabouzeid.appthemehelper.common.prefs.ATEPreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue