feat: add alpha parameter
This commit is contained in:
parent
c3ea8d891c
commit
d393051b1d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue