diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/Color.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/Color.kt index 3df780ae24..f7be0e18b3 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/Color.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/Color.kt @@ -10,7 +10,7 @@ import kotlin.math.sin fun oklch(L: Float, C: Float, H: Float, alpha: Float = 1f): Color { val hRad = H * (Math.PI.toFloat() / 180f) - return Color(L, C * cos(hRad), C * sin(hRad), alpha, ColorSpaces.Oklab) + return Color(L, C * cos(hRad), C * sin(hRad), alpha, ColorSpaces.Oklab).convert(ColorSpaces.DisplayP3) } val Indigo = Color(0xFF9966FF)