优化卷显示

This commit is contained in:
HapeLee
2025-11-02 13:51:56 +08:00
parent 7ca096e882
commit a0ca182910
3 changed files with 15 additions and 28 deletions
@@ -278,22 +278,19 @@ class ChapterListAdapter(
when {
item.isVolume -> {
ivVolume.visible()
if (isCollapsed) ivColl.visible()
else ivColl.gone()
ivVolume.isChecked = isCollapsed
tvChapterName.textSize = 12f
tvChapterName.setTextColor(context.themeColor(com.google.android.material.R.attr.colorTertiary))
tvChapterName.setTextColor(context.themeColor(com.google.android.material.R.attr.colorSecondary))
tvChapterItem.setBackgroundColor(context.themeColor(com.google.android.material.R.attr.colorSurface))
}
isDur -> {
ivColl.gone()
ivVolume.gone()
tvChapterName.setTextColor(context.themeColor(androidx.appcompat.R.attr.colorPrimary))
tvChapterItem.setBackgroundColor(context.themeColor(com.google.android.material.R.attr.colorSurfaceContainer))
}
else -> {
ivColl.gone()
ivVolume.gone()
tvChapterName.setTextColor(context.themeColor(com.google.android.material.R.attr.colorOnSurface))
tvChapterItem.setBackgroundColor(context.themeColor(com.google.android.material.R.attr.colorSurface))