Fix stats chart color

This commit is contained in:
Koitharu
2024-03-23 16:18:01 +02:00
parent 0a1bc6716b
commit 88f55997fa

View File

@@ -33,7 +33,7 @@ object KotatsuColors {
val hue = (manga.id.absoluteValue % 360).toFloat()
ColorUtils.HSLToColor(floatArrayOf(hue, 0.5f, 0.5f))
} else {
context.getThemeColor(R.attr.colorSurface)
context.getThemeColor(R.attr.colorOutline)
}
val backgroundColor = context.getThemeColor(R.attr.colorSurfaceContainerHigh)
return MaterialColors.harmonize(color, backgroundColor)