From d393051b1d84c7b1db6bfc21ecf517ee44ab6dee Mon Sep 17 00:00:00 2001 From: FunkyMuse Date: Thu, 24 Aug 2023 10:29:55 +0200 Subject: [PATCH] feat: add alpha parameter --- .../commons/compose/extensions/ComposeExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/compose/extensions/ComposeExtensions.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/compose/extensions/ComposeExtensions.kt index 095c63c44..f77531ba0 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/compose/extensions/ComposeExtensions.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/compose/extensions/ComposeExtensions.kt @@ -43,7 +43,7 @@ fun AdjustNavigationBarColors(canScroll: Boolean?) { val isSystemInDarkTheme = isSystemInDarkTheme() val isSurfaceLitWell = MaterialTheme.colorScheme.surface.isLitWell() val navigationBarColor = when (canScroll) { - true -> Color(MaterialTheme.colorScheme.surface.toArgb().darkenColor(factor = 1)) + true -> Color(MaterialTheme.colorScheme.surface.toArgb().darkenColor(factor = 1)).copy(alpha = 0.5f) else -> Color.Transparent } DisposableEffect(systemUiController, !isSystemInDarkTheme, navigationBarColor) {