Browse Source

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

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
94dec8367f
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 9
      app/src/main/res/drawable/radio.xml
  2. 2
      app/src/main/res/layout/partial_now_playing.xml
  3. 3
      app/src/main/res/layout/row_radio.xml
  4. 2
      app/src/main/res/values-night/colors.xml
  5. 2
      app/src/main/res/values/colors.xml
  6. 4
      app/src/main/res/values/styles.xml

9
app/src/main/res/drawable/radio.xml

@ -0,0 +1,9 @@ @@ -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>

2
app/src/main/res/layout/partial_now_playing.xml

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

3
app/src/main/res/layout/row_radio.xml

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

2
app/src/main/res/values-night/colors.xml

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

2
app/src/main/res/values/colors.xml

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
<color name="colorSelected">#dadada</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="controlColor">@color/colorPrimary</color>

4
app/src/main/res/values/styles.xml

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

Loading…
Cancel
Save