From 90c8b7e3bac2c63c5ac32595cea3856f91cf1b16 Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Sun, 18 Feb 2024 11:48:07 +0200 Subject: [PATCH] When using contrast black theme replace surface color with Low surface color instead of black --- .../commonMain/kotlin/com/artemchep/keyguard/ui/theme/Theme.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/theme/Theme.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/theme/Theme.kt index 52fd6003..43b06d91 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/theme/Theme.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/theme/Theme.kt @@ -290,7 +290,7 @@ fun KeyguardTheme( surface = if (themeBlack && isDarkColorScheme) Color.Black else scheme.surface, surfaceContainerLowest = if (themeBlack && isDarkColorScheme) Color.Black else scheme.surfaceContainerLowest, surfaceContainerLow = if (themeBlack && isDarkColorScheme) Color.Black else scheme.surfaceContainerLow, - surfaceContainer = if (themeBlack && isDarkColorScheme) Color.Black else scheme.surfaceContainer, + surfaceContainer = if (themeBlack && isDarkColorScheme) scheme.surfaceContainerLow else scheme.surfaceContainer, surfaceContainerHigh = if (themeBlack && isDarkColorScheme) scheme.surfaceContainerLow else scheme.surfaceContainerHigh, surfaceContainerHighest = if (themeBlack && isDarkColorScheme) scheme.surfaceContainer else scheme.surfaceContainerHighest, )