[Android] [PATCH] Fix dark theme

Geoffrey Métais geoffrey.metais at gmail.com
Tue Nov 11 11:54:05 CET 2014


---
 vlc-android/res/layout/directory_view_item.xml |  3 +--
 vlc-android/res/values-v14/styles.xml          | 19 -------------------
 vlc-android/res/values-v17/styles.xml          | 10 ++++++++++
 vlc-android/res/values/styles.xml              |  5 +++--
 4 files changed, 14 insertions(+), 23 deletions(-)
 delete mode 100644 vlc-android/res/values-v14/styles.xml

diff --git a/vlc-android/res/layout/directory_view_item.xml b/vlc-android/res/layout/directory_view_item.xml
index 24ede05..10df661 100644
--- a/vlc-android/res/layout/directory_view_item.xml
+++ b/vlc-android/res/layout/directory_view_item.xml
@@ -3,8 +3,7 @@
     android:id="@+id/layout_item"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
-    android:orientation="horizontal"
-    android:background="@android:color/white" >
+    android:orientation="horizontal" >
 
     <ImageView
         android:id="@+id/dvi_icon"
diff --git a/vlc-android/res/values-v14/styles.xml b/vlc-android/res/values-v14/styles.xml
deleted file mode 100644
index f1d8796..0000000
--- a/vlc-android/res/values-v14/styles.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources xmlns:android="http://schemas.android.com/apk/res/android">
-
-    <style name="Theme.VLC" parent="Theme.VLC.Apearance">
-        <item name="actionBarStyle">@style/ActionBar</item>
-        <item name="actionBarSize">50dp</item>
-        <item name="windowActionBarOverlay">true</item>
-        <item name="actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
-        <item name="drawerArrowStyle">@style/ActionBar.ArrowToggle</item>
-    </style>
-
-    <style name="Theme.VLC.Black" parent="Theme.VLC.Apearance.Black">
-        <item name="android:actionBarStyle">@style/ActionBar</item>
-        <item name="android:actionBarSize">50dp</item>
-        <item name="android:windowActionBarOverlay">true</item>
-        <item name="android:actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
-    </style>
-
-</resources>
\ No newline at end of file
diff --git a/vlc-android/res/values-v17/styles.xml b/vlc-android/res/values-v17/styles.xml
index 5a15973..67bed55 100644
--- a/vlc-android/res/values-v17/styles.xml
+++ b/vlc-android/res/values-v17/styles.xml
@@ -18,6 +18,16 @@
         <item name="android:buttonStyle">@style/RobotoButtonStyle</item>
         <item name="drawerArrowStyle">@style/ActionBar.ArrowToggle</item>
     </style>
+    <style name="Theme.VLC.Black" parent="Theme.VLC.Apearance.Black">
+        <item name="actionBarStyle">@style/ActionBar</item>
+        <item name="actionBarSize">50dp</item>
+        <item name="windowActionBarOverlay">true</item>
+        <item name="actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
+        <item name="android:fontFamily">sans-serif-light</item>
+        <item name="android:textViewStyle">@style/RobotoTextViewStyle</item>
+        <item name="android:buttonStyle">@style/RobotoButtonStyle</item>
+        <item name="drawerArrowStyle">@style/ActionBar.ArrowToggle</item>
+    </style>
 	<style name="RobotoTextViewStyle" parent="android:Widget.TextView">
 	    <item name="android:fontFamily">sans-serif-light</item>
 	</style>
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index ce1d196..b7c00fb 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -77,6 +77,7 @@
         <item name="actionBarSize">50dp</item>
         <item name="windowActionBarOverlay">true</item>
         <item name="actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
+        <item name="drawerArrowStyle">@style/ActionBar.ArrowToggle</item>
     </style>
 
     <style name="Theme.VLC.Apearance.Black" parent="Theme.AppCompat">
@@ -105,7 +106,8 @@
         <item name="list_subtitle">@color/list_subtitle</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/black2</item>
+        <item name="android:windowBackground">@color/black3</item>
+        <item name="android:background">@color/black2</item>
 
         <item name="mini_player_top_shadow">@null</item>
         <item name="audio_playlist_shadow">@null</item>
@@ -131,7 +133,6 @@
         <item name="ic_menu_folder">@drawable/ic_menu_folder_w</item>
         <item name="ic_menu_history">@drawable/ic_menu_history_w</item>
         <item name="ic_move_media">@drawable/ic_move_media_w</item>
-        
         <item name="advanced_options_style">@style/Theme.VLC.AdvancedOptionsBlack</item>
     </style>
 
-- 
1.9.1



More information about the Android mailing list