mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
Update download colors
This commit is contained in:
parent
ffa83e3677
commit
fb7599c833
@ -21,8 +21,9 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
R.color.divider)
|
||||
private val disabledColor = ContextCompat.getColor(context,
|
||||
R.color.material_on_surface_disabled)
|
||||
private val primaryColor = context.getResourceColor(android.R.attr.textColorPrimaryInverse)
|
||||
private val downloadedColor = ContextCompat.getColor(context,
|
||||
R.color.material_green_800)
|
||||
R.color.download)
|
||||
private val errorColor = ContextCompat.getColor(context,
|
||||
R.color.red_error)
|
||||
private val filledCircle = ContextCompat.getDrawable(context,
|
||||
@ -94,7 +95,7 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
download_progress_indeterminate.gone()
|
||||
download_border.setImageDrawable(filledCircle)
|
||||
download_border.drawable.setTint(downloadedColor)
|
||||
download_icon.drawable.setTint(Color.WHITE)
|
||||
download_icon.drawable.setTint(primaryColor)
|
||||
}
|
||||
Download.ERROR -> {
|
||||
download_progress.gone()
|
||||
|
@ -33,7 +33,7 @@
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:progressDrawable="@drawable/circle_progress"
|
||||
android:layout_gravity="center"
|
||||
android:progressTint="@color/colorAccent"
|
||||
android:progressTint="@color/download"
|
||||
android:progressBackgroundTint="@color/material_on_surface_disabled"/>
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
<color name="textColorHint">@color/md_white_1000_50</color>
|
||||
<color name="textColorHintInverse">@color/md_black_1000_38</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="dialog">#212121</color>
|
||||
|
@ -37,6 +37,7 @@
|
||||
<color name="divider">@color/md_black_1000_12</color>
|
||||
<color name="oldNavBarBackground">#B3FFFFFF</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="darkPrimaryColor">#212121</color>
|
||||
|
Loading…
Reference in New Issue
Block a user