feat: add alpha parameter

This commit is contained in:
FunkyMuse 2023-08-24 10:29:55 +02:00
parent c3ea8d891c
commit d393051b1d

View file

@ -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) {