mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:19:18 +01:00
More adjustments to tags background
This commit is contained in:
parent
6f425a2261
commit
b34c41215b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user