Browse Source

Fix cover thumbnails not being translucent for favorited manga in sources

arkon 4 years ago
parent
commit
57b63f43f5

+ 3 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/SourceListHolder.kt

@@ -38,6 +38,9 @@ class SourceListHolder(private val view: View, adapter: FlexibleAdapter<*>) :
         title.text = manga.title
         title.setTextColor(if (manga.favorite) favoriteColor else unfavoriteColor)
 
+        // Set alpha of thumbnail.
+        thumbnail.alpha = if (manga.favorite) 0.3f else 1.0f
+
         setImage(manga)
     }