Darken the description colors (#3858)
* Darken the description colors * Restore UpdatesHolder.kt * Use the same color as the Extensions subtitles (cherry picked from commit 9f05d563f96385e2e0f5fe82f6ce097f8f2ccca2)
This commit is contained in:
parent
90452a7833
commit
13196a68b1
@ -34,13 +34,19 @@ class ChapterHolder(
|
||||
}
|
||||
|
||||
// Set correct text color
|
||||
val chapterColor = when {
|
||||
val chapterTitleColor = when {
|
||||
chapter.read -> adapter.readColor
|
||||
chapter.bookmark -> adapter.bookmarkedColor
|
||||
else -> adapter.unreadColor
|
||||
}
|
||||
chapter_title.setTextColor(chapterColor)
|
||||
chapter_description.setTextColor(chapterColor)
|
||||
chapter_title.setTextColor(chapterTitleColor)
|
||||
|
||||
val chapterDescriptionColor = when {
|
||||
chapter.read -> adapter.readColor
|
||||
chapter.bookmark -> adapter.bookmarkedColor
|
||||
else -> adapter.unreadColorSecondary
|
||||
}
|
||||
chapter_description.setTextColor(chapterDescriptionColor)
|
||||
|
||||
bookmark_icon.isVisible = chapter.bookmark
|
||||
|
||||
|
@ -22,6 +22,7 @@ class ChaptersAdapter(
|
||||
|
||||
val readColor = context.getResourceColor(R.attr.colorOnSurface, 0.38f)
|
||||
val unreadColor = context.getResourceColor(R.attr.colorOnSurface)
|
||||
val unreadColorSecondary = context.getResourceColor(android.R.attr.textColorSecondary)
|
||||
|
||||
val bookmarkedColor = context.getResourceColor(R.attr.colorAccent)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user