[Android] Fix miniplayer background + progressbar background

Nicolas Pomepuy git at videolan.org
Thu Apr 16 15:43:39 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Apr  8 12:14:38 2020 +0200| [2dcf4c8da9bfdcb5701b71c2c318a17db0f8e1a5] | committer: Nicolas Pomepuy

Fix miniplayer background + progressbar background

> https://code.videolan.org/videolan/vlc-android/commit/2dcf4c8da9bfdcb5701b71c2c318a17db0f8e1a5
---

 .../src/main/res/drawable/progress_mini_player.xml       |  2 +-
 .../src/main/res/drawable/progress_mini_player_dark.xml  | 16 ----------------
 application/vlc-android/res/values/styles.xml            |  4 ++--
 3 files changed, 3 insertions(+), 19 deletions(-)

diff --git a/application/resources/src/main/res/drawable/progress_mini_player.xml b/application/resources/src/main/res/drawable/progress_mini_player.xml
index 91b5d2240..052600f57 100644
--- a/application/resources/src/main/res/drawable/progress_mini_player.xml
+++ b/application/resources/src/main/res/drawable/progress_mini_player.xml
@@ -2,7 +2,7 @@
 
     <item android:id="@android:id/background">
         <shape>
-            <solid android:color="@color/grey50" />
+            <solid android:color="?attr/background_default_darker" />
         </shape>
     </item>
     <item android:id="@android:id/progress">
diff --git a/application/resources/src/main/res/drawable/progress_mini_player_dark.xml b/application/resources/src/main/res/drawable/progress_mini_player_dark.xml
deleted file mode 100644
index 88454451c..000000000
--- a/application/resources/src/main/res/drawable/progress_mini_player_dark.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
-
-    <item android:id="@android:id/background">
-        <shape>
-            <solid android:color="@color/grey850" />
-        </shape>
-    </item>
-    <item android:id="@android:id/progress">
-        <clip>
-            <shape>
-                <solid android:color="@color/orange500" />
-            </shape>
-        </clip>
-    </item>
-
-</layer-list>
\ No newline at end of file
diff --git a/application/vlc-android/res/values/styles.xml b/application/vlc-android/res/values/styles.xml
index c7d8507c9..0da02125e 100644
--- a/application/vlc-android/res/values/styles.xml
+++ b/application/vlc-android/res/values/styles.xml
@@ -39,7 +39,7 @@
         <item name="background_default">@color/white</item>
         <item name="progress_indeterminate_tint">@color/white</item>
         <item name="background_default_gradient">@drawable/gradient_background_light</item>
-        <item name="background_default_darker">@color/grey100</item>
+        <item name="background_default_darker">@color/grey200</item>
         <item name="background_actionbar">@color/white</item>
         <item name="background_menu_divider">@color/grey400</item>
         <item name="background_menu">@color/grey200</item>
@@ -193,7 +193,7 @@
         <item name="ic_trash">@drawable/ic_trash_w</item>
         <item name="ic_reset">@drawable/ic_reset_w</item>
         <item name="gridview_progressbar">@drawable/gridview_progressbar_w</item>
-        <item name="progress_mini_player">@drawable/progress_mini_player_dark</item>
+        <item name="progress_mini_player">@drawable/progress_mini_player</item>
         <item name="advanced_options_style">@style/Theme.MaterialComponents.Dialog</item>
         <item name="advanced_options_bg">@drawable/advanced_options_background_dark</item>
         <item name="ic_playasaudio_off">@drawable/ic_playasaudio_off_w</item>



More information about the Android mailing list