From d2ef085470973e0ab039d0db3cab4e54d3f19eb4 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Mon, 4 May 2026 19:19:35 +0100 Subject: [PATCH] fix color space --- .../src/commonMain/kotlin/chat/simplex/common/ui/theme/Color.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)