[Android] UI : Fix style for black theme and cosmectic issues

Alexandre Perraud git at videolan.org
Wed Feb 25 16:03:23 CET 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Feb 25 15:46:37 2015 +0100| [9b63a28c12a641d047bbc1b804fb546280726e34] | committer: Alexandre Perraud

UI : Fix style for black theme and cosmectic issues

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9b63a28c12a641d047bbc1b804fb546280726e34
---

 vlc-android/res/values/attrs.xml  |    2 ++
 vlc-android/res/values/colors.xml |    1 +
 vlc-android/res/values/styles.xml |   17 ++++++++++-------
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/vlc-android/res/values/attrs.xml b/vlc-android/res/values/attrs.xml
index 33acdfa..f2fb8a9 100644
--- a/vlc-android/res/values/attrs.xml
+++ b/vlc-android/res/values/attrs.xml
@@ -5,6 +5,8 @@
     <attr name="item_common_selected" format="reference|color" />
     <attr name="item_footer" format="reference|color" />
     <attr name="playlist_item_footer" format="reference|color" />
+    <attr name="background_default" format="reference|color" />
+    <attr name="background_default_darker" format="reference|color" />
     <attr name="background_menu_divider" format="reference|color" />
     <attr name="background_menu" format="reference|color" />
     <attr name="background_header" format="reference|color" />
diff --git a/vlc-android/res/values/colors.xml b/vlc-android/res/values/colors.xml
index 694c7b9..1a3ee0d 100644
--- a/vlc-android/res/values/colors.xml
+++ b/vlc-android/res/values/colors.xml
@@ -57,6 +57,7 @@
     <color name="grey700">#616161</color>
     <color name="grey800">#424242</color>
     <color name="grey850">#323232</color>
+    <color name="grey875">#2a2a2a</color>
     <color name="grey900">#212121</color>
 
     <color name="grey50transparent">#dcfafafa</color>
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index bc6ba1b..c6e7b33 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -28,6 +28,8 @@
         <item name="item_common_selected">@color/item_common_selected</item>
         <item name="item_footer">@color/item_footer</item>
         <item name="playlist_item_footer">@color/grey2</item>
+        <item name="background_default">@color/grey50</item>
+        <item name="background_default_darker">@color/grey100</item>
         <item name="background_menu_divider">@color/background_menu_divider</item>
         <item name="background_menu">@color/background_menu</item>
         <item name="background_player">@color/grey100</item>
@@ -42,7 +44,7 @@
         <item name="list_subtitle">@color/list_subtitle</item>
         <item name="list_title_last">@color/list_title_last</item>
         <item name="list_title">@color/list_title</item>
-        <item name="android:windowBackground">@color/background_common</item>
+        <item name="android:windowBackground">@color/grey200</item>
 
         <item name="mini_player_top_shadow">@drawable/mini_player_top_shadow</item>
         <item name="audio_playlist_shadow">@drawable/audio_playlist_shadow</item>
@@ -96,22 +98,23 @@
         <item name="item_common_selected">@color/item_common_selected</item>
         <item name="item_footer">@color/grey1</item>
         <item name="playlist_item_footer">@color/grey1</item>
+        <item name="background_default">@color/grey850</item>
+        <item name="background_default_darker">@color/grey875</item>
         <item name="background_menu_divider">@color/grey1</item>
-        <item name="background_menu">@color/black2</item>
+        <item name="background_menu">@color/grey850</item>
         <item name="background_player">@color/grey850</item>
         <item name="background_playlist">@color/black2</item>
         <item name="background_header">@color/black3</item>
         <item name="audio_browser_separator">@color/darkorange</item>
         <item name="playlist_item_drag_shadow">@color/darkorange</item>
         <item name="audio_player_header_time">@color/darkorange</item>
-        <item name="font_default">@color/white</item>
+        <item name="font_default">@color/grey50</item>
         <item name="font_light">@color/font_light</item>
-        <item name="list_menu">@color/white</item>
-        <item name="list_subtitle">@color/list_subtitle</item>
+        <item name="list_menu">@color/grey50</item>
+        <item name="list_subtitle">@color/grey400</item>
         <item name="list_title_last">@color/list_title_last</item>
         <item name="list_title">@color/bt_list_title</item>
-        <item name="android:windowBackground">@color/black3</item>
-        <item name="android:background">@color/black2</item>
+        <item name="android:windowBackground">@color/grey900</item>
 
         <item name="mini_player_top_shadow">@null</item>
         <item name="audio_playlist_shadow">@null</item>



More information about the Android mailing list