mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix stroke color in browse for library entries
This commit is contained in:
parent
780f5d6583
commit
d9efb25837
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.ui.source.browse
|
|||
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import androidx.core.graphics.ColorUtils
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import coil.Coil
|
||||
|
@ -22,7 +23,6 @@ import eu.kanade.tachiyomi.util.view.setCards
|
|||
*
|
||||
* @param view the inflated view for this holder.
|
||||
* @param adapter the adapter handling this holder.
|
||||
* @param listener a listener to react to single tap and long tap events.
|
||||
* @constructor creates a new library holder.
|
||||
*/
|
||||
class BrowseSourceGridHolder(
|
||||
|
@ -72,6 +72,9 @@ class BrowseSourceGridHolder(
|
|||
Coil.imageLoader(view.context).enqueue(request)
|
||||
|
||||
binding.coverThumbnail.alpha = if (manga.favorite) 0.34f else 1.0f
|
||||
binding.card.strokeColorStateList?.defaultColor?.let { color ->
|
||||
binding.card.strokeColor = ColorUtils.setAlphaComponent(color, if (manga.favorite) 87 else 255)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue