[Android] Preferences : set SwitchPreference button to black theme option
Alexandre Perraud
git at videolan.org
Fri Aug 21 18:44:17 CEST 2015
vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Aug 21 18:28:37 2015 +0200| [3773fe8a501c32902fdc0a4929384d844284cea0] | committer: Alexandre Perraud
Preferences : set SwitchPreference button to black theme option
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=3773fe8a501c32902fdc0a4929384d844284cea0
---
vlc-android/res/values/styles.xml | 2 +-
vlc-android/res/xml/preferences.xml | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index ba6691a..4043a24 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -111,7 +111,7 @@
<item name="colorPrimary">@color/orange800</item>
<item name="colorPrimaryDark">@android:color/transparent</item>
- <item name="colorAccent">@color/orange800</item>
+ <item name="colorAccent">@color/orange600</item>
<item name="item_footer">@color/grey700</item>
<item name="background_default">@color/grey850</item>
<item name="background_default_darker">@color/grey875</item>
diff --git a/vlc-android/res/xml/preferences.xml b/vlc-android/res/xml/preferences.xml
index 0e9ca55..f2f86be 100644
--- a/vlc-android/res/xml/preferences.xml
+++ b/vlc-android/res/xml/preferences.xml
@@ -21,11 +21,10 @@
android:widgetLayout="@layout/custom_chexbox"
android:title="@string/play_as_audio_background" />
- <CheckBoxPreference
+ <SwitchPreference
android:defaultValue="false"
android:key="enable_black_theme"
android:summary="@string/enable_black_theme_summary"
- android:widgetLayout="@layout/custom_chexbox"
android:title="@string/enable_black_theme" />
<ListPreference
More information about the Android
mailing list