|
@@ -6,7 +6,9 @@ import eu.davidea.viewholders.FlexibleViewHolder
|
|
|
import eu.kanade.tachiyomi.R
|
|
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
|
|
import eu.kanade.tachiyomi.data.download.model.Download
|
|
|
+import eu.kanade.tachiyomi.util.getResourceColor
|
|
|
import eu.kanade.tachiyomi.util.gone
|
|
|
+import eu.kanade.tachiyomi.util.setVectorCompat
|
|
|
import kotlinx.android.synthetic.main.chapters_item.view.*
|
|
|
import java.util.*
|
|
|
|
|
@@ -33,6 +35,9 @@ class ChapterHolder(
|
|
|
else -> chapter.name
|
|
|
}
|
|
|
|
|
|
+ // Set the correct drawable for dropdown and update the tint to match theme.
|
|
|
+ view.chapter_menu.setVectorCompat(R.drawable.ic_more_horiz_black_24dp, view.context.getResourceColor(R.attr.icon_color))
|
|
|
+
|
|
|
// Set correct text color
|
|
|
chapter_title.setTextColor(if (chapter.read) adapter.readColor else adapter.unreadColor)
|
|
|
if (chapter.bookmark) chapter_title.setTextColor(adapter.bookmarkedColor)
|