Update download colors

This commit is contained in:
Jay 2020-04-13 22:36:54 -04:00
parent ffa83e3677
commit fb7599c833
4 changed files with 6 additions and 3 deletions

View File

@ -21,8 +21,9 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
R.color.divider) R.color.divider)
private val disabledColor = ContextCompat.getColor(context, private val disabledColor = ContextCompat.getColor(context,
R.color.material_on_surface_disabled) R.color.material_on_surface_disabled)
private val primaryColor = context.getResourceColor(android.R.attr.textColorPrimaryInverse)
private val downloadedColor = ContextCompat.getColor(context, private val downloadedColor = ContextCompat.getColor(context,
R.color.material_green_800) R.color.download)
private val errorColor = ContextCompat.getColor(context, private val errorColor = ContextCompat.getColor(context,
R.color.red_error) R.color.red_error)
private val filledCircle = ContextCompat.getDrawable(context, private val filledCircle = ContextCompat.getDrawable(context,
@ -94,7 +95,7 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
download_progress_indeterminate.gone() download_progress_indeterminate.gone()
download_border.setImageDrawable(filledCircle) download_border.setImageDrawable(filledCircle)
download_border.drawable.setTint(downloadedColor) download_border.drawable.setTint(downloadedColor)
download_icon.drawable.setTint(Color.WHITE) download_icon.drawable.setTint(primaryColor)
} }
Download.ERROR -> { Download.ERROR -> {
download_progress.gone() download_progress.gone()

View File

@ -33,7 +33,7 @@
style="?android:attr/progressBarStyleHorizontal" style="?android:attr/progressBarStyleHorizontal"
android:progressDrawable="@drawable/circle_progress" android:progressDrawable="@drawable/circle_progress"
android:layout_gravity="center" android:layout_gravity="center"
android:progressTint="@color/colorAccent" android:progressTint="@color/download"
android:progressBackgroundTint="@color/material_on_surface_disabled"/> android:progressBackgroundTint="@color/material_on_surface_disabled"/>

View File

@ -25,6 +25,7 @@
<color name="textColorHint">@color/md_white_1000_50</color> <color name="textColorHint">@color/md_white_1000_50</color>
<color name="textColorHintInverse">@color/md_black_1000_38</color> <color name="textColorHintInverse">@color/md_black_1000_38</color>
<color name="divider">@color/md_white_1000_12</color> <color name="divider">@color/md_white_1000_12</color>
<color name="download">@color/material_green_700</color>
<color name="background">#1C1C1D</color> <color name="background">#1C1C1D</color>
<color name="dialog">#212121</color> <color name="dialog">#212121</color>

View File

@ -37,6 +37,7 @@
<color name="divider">@color/md_black_1000_12</color> <color name="divider">@color/md_black_1000_12</color>
<color name="oldNavBarBackground">#B3FFFFFF</color> <color name="oldNavBarBackground">#B3FFFFFF</color>
<color name="badgeColor">@color/material_red_accent_700</color> <color name="badgeColor">@color/material_red_accent_700</color>
<color name="download">@color/material_green_800</color>
<color name="preference_fallback_accent_color">@color/colorAccent</color> <color name="preference_fallback_accent_color">@color/colorAccent</color>
<color name="darkPrimaryColor">#212121</color> <color name="darkPrimaryColor">#212121</color>