mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 02:29:10 +01:00
Downloaded button arrow is back to always white
This commit is contained in:
parent
2d9f19e8db
commit
472ba92fe6
@ -21,7 +21,6 @@ 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.download)
|
||||
private val errorColor = ContextCompat.getColor(context,
|
||||
@ -95,7 +94,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(primaryColor)
|
||||
download_icon.drawable.setTint(Color.WHITE)
|
||||
}
|
||||
Download.ERROR -> {
|
||||
download_progress.gone()
|
||||
|
Loading…
x
Reference in New Issue
Block a user