From a9b24d18be0a27527af4d8ff81f17df539fabf81 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Wed, 4 Sep 2024 03:03:40 +0900 Subject: [PATCH] color mix --- .../android/src/main/java/chat/simplex/app/SimplexApp.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/android/src/main/java/chat/simplex/app/SimplexApp.kt b/apps/multiplatform/android/src/main/java/chat/simplex/app/SimplexApp.kt index 9661625945..340b3fcf98 100644 --- a/apps/multiplatform/android/src/main/java/chat/simplex/app/SimplexApp.kt +++ b/apps/multiplatform/android/src/main/java/chat/simplex/app/SimplexApp.kt @@ -285,7 +285,7 @@ class SimplexApp: Application(), LifecycleEventObserver { // Animate to the target color //animatedColor.animateTo(targetColor, spec) // Set the status bar color to the animated color - window.statusBarColor = animatedColor.value.toArgb() + window.statusBarColor = CurrentColors.value.colors.background.mixWith(animatedColor.value.copy(1f), 1 - animatedColor.value.alpha).toArgb() // Update light status bar appearance if necessary if (windowInsetController?.isAppearanceLightStatusBars != isLight) { windowInsetController?.isAppearanceLightStatusBars = isLight