mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
parent
63d5e6e710
commit
4d2f760619
2 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@ import android.content.Context
|
|||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.widget.LinearLayout
|
||||
import androidx.annotation.ColorInt
|
||||
import androidx.core.text.bold
|
||||
import androidx.core.text.buildSpannedString
|
||||
import androidx.core.view.isVisible
|
||||
|
@ -78,6 +79,12 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
|
|||
}
|
||||
}
|
||||
|
||||
fun setTextColors(@ColorInt color: Int) {
|
||||
binding.upperText.setTextColor(color)
|
||||
binding.warningText.setTextColor(color)
|
||||
binding.lowerText.setTextColor(color)
|
||||
}
|
||||
|
||||
private fun missingChapterWarning(transition: ChapterTransition) {
|
||||
if (transition.to == null) {
|
||||
binding.warning.isVisible = false
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package eu.kanade.tachiyomi.ui.reader.viewer.webtoon
|
||||
|
||||
import android.graphics.Color
|
||||
import android.view.Gravity
|
||||
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
|
||||
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
|
@ -54,6 +55,7 @@ class WebtoonTransitionHolder(
|
|||
setMargins(0, childMargins, 0, childMargins)
|
||||
}
|
||||
|
||||
transitionView.setTextColors(Color.WHITE)
|
||||
layout.addView(transitionView)
|
||||
layout.addView(pagesContainer, childParams)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue