mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 01:41:48 +01: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
@ -32,13 +32,19 @@ class ChapterHolder(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set correct text color
|
// Set correct text color
|
||||||
val chapterColor = when {
|
val chapterTitleColor = when {
|
||||||
chapter.read -> adapter.readColor
|
chapter.read -> adapter.readColor
|
||||||
chapter.bookmark -> adapter.bookmarkedColor
|
chapter.bookmark -> adapter.bookmarkedColor
|
||||||
else -> adapter.unreadColor
|
else -> adapter.unreadColor
|
||||||
}
|
}
|
||||||
chapter_title.setTextColor(chapterColor)
|
chapter_title.setTextColor(chapterTitleColor)
|
||||||
chapter_description.setTextColor(chapterColor)
|
|
||||||
|
val chapterDescriptionColor = when {
|
||||||
|
chapter.read -> adapter.readColor
|
||||||
|
chapter.bookmark -> adapter.bookmarkedColor
|
||||||
|
else -> adapter.unreadColorSecondary
|
||||||
|
}
|
||||||
|
chapter_description.setTextColor(chapterDescriptionColor)
|
||||||
|
|
||||||
bookmark_icon.isVisible = chapter.bookmark
|
bookmark_icon.isVisible = chapter.bookmark
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ class ChaptersAdapter(
|
|||||||
|
|
||||||
val readColor = context.getResourceColor(R.attr.colorOnSurface, 0.38f)
|
val readColor = context.getResourceColor(R.attr.colorOnSurface, 0.38f)
|
||||||
val unreadColor = context.getResourceColor(R.attr.colorOnSurface)
|
val unreadColor = context.getResourceColor(R.attr.colorOnSurface)
|
||||||
|
val unreadColorSecondary = context.getResourceColor(android.R.attr.textColorSecondary)
|
||||||
|
|
||||||
val bookmarkedColor = context.getResourceColor(R.attr.colorAccent)
|
val bookmarkedColor = context.getResourceColor(R.attr.colorAccent)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user