Skip to content

Commit

Permalink
Update bottom sheet shadow specs
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 25, 2023
1 parent 8d2f7cf commit 759b8b7
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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(
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 759b8b7

Please sign in to comment.