More adjustments to tags background

This commit is contained in:
Jays2Kings 2021-07-17 23:17:44 -04:00
parent 6f425a2261
commit b34c41215b

View File

@ -27,7 +27,6 @@ import eu.kanade.tachiyomi.util.system.getResourceColor
import eu.kanade.tachiyomi.util.system.isLTR
import eu.kanade.tachiyomi.util.view.resetStrokeColor
import eu.kanade.tachiyomi.util.view.updateLayoutParams
import kotlin.math.abs
@SuppressLint("ClickableViewAccessibility")
class MangaHeaderHolder(
@ -327,11 +326,10 @@ class MangaHeaderHolder(
floatArrayOf(
accentArray[0],
accentArray[1],
// fun math just for good contrast
((if (dark) 0.35f else 0.87f) + (abs(onAccentArray[2] - 0.5f) * .7f)) / 2f
(if (dark) 0.3f else 0.85f)
)
),
165
199
)
val textColor = ColorUtils.HSLToColor(
floatArrayOf(