mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Darken the description colors (#3858)
* Darken the description colors * Restore UpdatesHolder.kt * Use the same color as the Extensions subtitles
This commit is contained in:
parent
72d114d46a
commit
9f05d563f9
2 changed files with 10 additions and 3 deletions
|
@ -32,13 +32,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…
Reference in a new issue