From 28a53774a6c9af6aa8d3e86a99bb23a736c5413d Mon Sep 17 00:00:00 2001 From: alexstyl <1665273+alexstyl@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:17:45 +0700 Subject: [PATCH] Update documentation --- docs/modal-bottom-sheet.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/modal-bottom-sheet.md b/docs/modal-bottom-sheet.md index 6872cdf..b560b88 100644 --- a/docs/modal-bottom-sheet.md +++ b/docs/modal-bottom-sheet.md @@ -455,14 +455,18 @@ ModalBottomSheet(rememberModalBottomSheetState(initialDetent = SheetDetent.Fully val window = LocalModalWindow.current LaunchedEffect(Unit) { // change system bars to transparent - window.navigationBarColor = Color.Transparent.toArgb() window.statusBarColor = Color.Transparent.toArgb() + window.navigationBarColor = Color.Black.copy(0.33f).toArgb() // don't forget to update the icons too - WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightStatusBars = true - WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightNavigationBars = true + val windowInsetsController = WindowInsetsControllerCompat(window, window.decorView) + windowInsetsController.isAppearanceLightStatusBars = true + windowInsetsController.isAppearanceLightNavigationBars = true } - BasicText("Transparent status bar, darkened navbars. Easy-peazy 😎 ", modifier = Modifier.navigationBarsPadding()) + BasicText( + "Transparent status bar, darkened navbars. Easy-peazy 😎 ", + modifier = Modifier.navigationBarsPadding() + ) } } ```