mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +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:
		| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user