Added more title contrast for item lists. Added icon for custom radios.

This commit is contained in:
Antoine POPINEAU 2020-06-13 13:41:12 +02:00
parent 81cf0835df
commit 94dec8367f
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
6 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M3.24,6.15C2.51,6.43 2,7.17 2,8v12c0,1.1 0.89,2 2,2h16c1.11,0 2,-0.9 2,-2L22,8c0,-1.11 -0.89,-2 -2,-2L8.3,6l8.26,-3.34L15.88,1 3.24,6.15zM7,20c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM20,12h-2v-2h-2v2L4,12L4,8h16v4z"/>
</vector>

View File

@ -60,11 +60,11 @@
<TextView <TextView
android:id="@+id/now_playing_title" android:id="@+id/now_playing_title"
style="@style/AppTheme.ItemTitle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:lines="1" android:lines="1"
android:textColor="@color/itemTitle"
tools:text="Supermassive Black Hole" /> tools:text="Supermassive Black Hole" />
<TextView <TextView

View File

@ -19,7 +19,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:scaleType="centerInside" android:scaleType="centerInside"
android:src="@drawable/cover" android:src="@drawable/radio"
android:tint="@color/controlForeground"
tools:src="@tools:sample/avatars" /> tools:src="@tools:sample/avatars" />
<LinearLayout <LinearLayout

View File

@ -8,7 +8,7 @@
<color name="colorSelected">#525252</color> <color name="colorSelected">#525252</color>
<color name="colorFavorite">#eba999</color> <color name="colorFavorite">#eba999</color>
<color name="itemTitle">#caffffff</color> <color name="itemTitle">#abffffff</color>
<color name="controlForeground">#caffffff</color> <color name="controlForeground">#caffffff</color>
<color name="controlColor">#53bce7</color> <color name="controlColor">#53bce7</color>

View File

@ -10,7 +10,7 @@
<color name="colorSelected">#dadada</color> <color name="colorSelected">#dadada</color>
<color name="colorFavorite">#e17055</color> <color name="colorFavorite">#e17055</color>
<color name="itemTitle">@android:color/black</color> <color name="itemTitle">#222222</color>
<color name="controlForeground">@color/colorPrimary</color> <color name="controlForeground">@color/colorPrimary</color>
<color name="controlColor">@color/colorPrimary</color> <color name="controlColor">@color/colorPrimary</color>

View File

@ -15,8 +15,7 @@
<item name="colorError">@color/colorError</item> <item name="colorError">@color/colorError</item>
</style> </style>
<style name="AppTheme.Fragment"> <style name="AppTheme.Fragment"></style>
</style>
<style name="AppTheme.ButtonStyle" parent="Widget.MaterialComponents.Button"> <style name="AppTheme.ButtonStyle" parent="Widget.MaterialComponents.Button">
<item name="materialThemeOverlay">@style/AppTheme.ButtonStyleTextColor</item> <item name="materialThemeOverlay">@style/AppTheme.ButtonStyleTextColor</item>
@ -37,6 +36,7 @@
<style name="AppTheme.ItemTitle"> <style name="AppTheme.ItemTitle">
<item name="android:textSize">16sp</item> <item name="android:textSize">16sp</item>
<item name="android:textColor">@color/itemTitle</item> <item name="android:textColor">@color/itemTitle</item>
<item name="android:fontFamily">sans-serif-medium</item>
</style> </style>
<style name="AppTheme.OutlinedButton" parent="Widget.MaterialComponents.Button.OutlinedButton"> <style name="AppTheme.OutlinedButton" parent="Widget.MaterialComponents.Button.OutlinedButton">