From 759b8b751ae3ad4fc30e2ace896c40d6b8ff3332 Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Wed, 25 Oct 2023 14:26:30 +0530 Subject: [PATCH] Update bottom sheet shadow specs --- .../mobile/ui/designsystem/component/BottomSheet.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/BottomSheet.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/BottomSheet.kt index 0b618d99d..fbe2fd8ec 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/BottomSheet.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/BottomSheet.kt @@ -21,6 +21,7 @@ import androidx.compose.material3.Text import androidx.compose.material3.rememberModalBottomSheetState import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.Stable import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf @@ -30,7 +31,12 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.shadow +import androidx.compose.ui.geometry.Size +import androidx.compose.ui.geometry.toRect import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.Outline +import androidx.compose.ui.unit.Density +import androidx.compose.ui.unit.LayoutDirection import androidx.compose.ui.unit.dp import kotlinx.coroutines.launch import org.hisp.dhis.mobile.ui.designsystem.theme.InternalSizeValues @@ -40,6 +46,8 @@ import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing0 import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing24 import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor +import androidx.compose.ui.graphics.Shape as ComposeShape +import org.hisp.dhis.mobile.ui.designsystem.theme.Color as ThemeColor @Composable fun BottomSheetHeader( @@ -200,7 +208,7 @@ fun BottomSheetShell( } val shadowModifier = if (canScrollForward) { - Modifier.shadow(elevation = 16.dp) + Modifier.shadow(elevation = 32.dp, ambientColor = ThemeColor.Blue900, spotColor = ThemeColor.Blue900) } else { Modifier }