From 722ac4ecc7a818eb384d76e6bc69a087bfe6a669 Mon Sep 17 00:00:00 2001 From: Zakhar Timoshenko Date: Mon, 12 Feb 2024 19:02:23 +0300 Subject: [PATCH] Tweak chapter item --- .../org/koitharu/kotatsu/details/ui/DetailsFragment.kt | 2 -- .../kotatsu/details/ui/adapter/ChapterListItemAD.kt | 5 +++-- app/src/main/res/layout/fragment_details.xml | 10 ++++++---- app/src/main/res/layout/item_chapter.xml | 1 - 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt index 412d83856..2533b0874 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt @@ -71,8 +71,6 @@ import org.koitharu.kotatsu.scrobbling.common.domain.model.ScrobblingInfo import org.koitharu.kotatsu.scrobbling.common.ui.selector.ScrobblingSelectorSheet import org.koitharu.kotatsu.search.ui.MangaListActivity import org.koitharu.kotatsu.search.ui.SearchActivity -import java.text.SimpleDateFormat -import java.util.Date import javax.inject.Inject @AndroidEntryPoint diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/adapter/ChapterListItemAD.kt b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/adapter/ChapterListItemAD.kt index 45a9e2521..7234dd4bb 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/adapter/ChapterListItemAD.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/adapter/ChapterListItemAD.kt @@ -13,6 +13,7 @@ import org.koitharu.kotatsu.core.util.ext.textAndVisible import org.koitharu.kotatsu.databinding.ItemChapterBinding import org.koitharu.kotatsu.details.ui.model.ChapterListItem import org.koitharu.kotatsu.list.ui.model.ListModel +import com.google.android.material.R as MR fun chapterListItemAD( clickListener: OnListItemClickListener, @@ -33,7 +34,7 @@ fun chapterListItemAD( item.isCurrent -> { binding.textViewTitle.drawableStart = ContextCompat.getDrawable(context, R.drawable.ic_current_chapter) binding.textViewTitle.setTextColor(context.getThemeColorStateList(android.R.attr.textColorPrimary)) - binding.textViewDescription.setTextColor(context.getThemeColorStateList(android.R.attr.textColorTertiary)) + binding.textViewDescription.setTextColor(context.getThemeColorStateList(android.R.attr.textColorPrimary)) binding.textViewTitle.typeface = Typeface.DEFAULT_BOLD binding.textViewDescription.typeface = Typeface.DEFAULT_BOLD } @@ -45,7 +46,7 @@ fun chapterListItemAD( null } binding.textViewTitle.setTextColor(context.getThemeColorStateList(android.R.attr.textColorPrimary)) - binding.textViewDescription.setTextColor(context.getThemeColorStateList(android.R.attr.textColorTertiary)) + binding.textViewDescription.setTextColor(context.getThemeColorStateList(MR.attr.colorOutline)) binding.textViewTitle.typeface = Typeface.DEFAULT binding.textViewDescription.typeface = Typeface.DEFAULT } diff --git a/app/src/main/res/layout/fragment_details.xml b/app/src/main/res/layout/fragment_details.xml index 1d87ea806..93bfaaca7 100644 --- a/app/src/main/res/layout/fragment_details.xml +++ b/app/src/main/res/layout/fragment_details.xml @@ -42,7 +42,7 @@ app:layout_constraintBottom_toBottomOf="@id/imageView_cover" app:layout_constraintEnd_toEndOf="@id/imageView_cover" /> - - + android:textAppearance="?attr/textAppearanceBodyLarge" + tools:text="@string/approximate_reading_time" />