mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 05:49:16 +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.system.isLTR
|
||||||
import eu.kanade.tachiyomi.util.view.resetStrokeColor
|
import eu.kanade.tachiyomi.util.view.resetStrokeColor
|
||||||
import eu.kanade.tachiyomi.util.view.updateLayoutParams
|
import eu.kanade.tachiyomi.util.view.updateLayoutParams
|
||||||
import kotlin.math.abs
|
|
||||||
|
|
||||||
@SuppressLint("ClickableViewAccessibility")
|
@SuppressLint("ClickableViewAccessibility")
|
||||||
class MangaHeaderHolder(
|
class MangaHeaderHolder(
|
||||||
@ -327,11 +326,10 @@ class MangaHeaderHolder(
|
|||||||
floatArrayOf(
|
floatArrayOf(
|
||||||
accentArray[0],
|
accentArray[0],
|
||||||
accentArray[1],
|
accentArray[1],
|
||||||
// fun math just for good contrast
|
(if (dark) 0.3f else 0.85f)
|
||||||
((if (dark) 0.35f else 0.87f) + (abs(onAccentArray[2] - 0.5f) * .7f)) / 2f
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
165
|
199
|
||||||
)
|
)
|
||||||
val textColor = ColorUtils.HSLToColor(
|
val textColor = ColorUtils.HSLToColor(
|
||||||
floatArrayOf(
|
floatArrayOf(
|
||||||
|
Loading…
Reference in New Issue
Block a user