Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bd10952 authored by Wes Okuhara's avatar Wes Okuhara
Browse files

Screen Capture: Add elevation shadow to toolbar

The UX spec for the screen capture toolbar was recently updated and this
updates the elevation shadow.

Bug: 412723197
Test: Manual
Flag: com.android.systemui.desktop_screen_capture
Change-Id: I7e0a87e6dfcf9ef9760fef261dd1df87f00454ac
parent 50602ea4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.android.compose.PlatformIconButton
import com.android.systemui.res.R

@@ -38,6 +40,7 @@ fun Toolbar(
    onCloseClick: () -> Unit,
    modifier: Modifier = Modifier,
    colors: FloatingToolbarColors = defaultColors(),
    elevation: Dp = 2.dp,
    content: @Composable RowScope.() -> Unit,
) {
    HorizontalFloatingToolbar(
@@ -45,6 +48,7 @@ fun Toolbar(
        modifier = modifier,
        colors = colors,
        shape = FloatingToolbarDefaults.ContainerShape,
        expandedShadowElevation = elevation,
        leadingContent = {
            PlatformIconButton(
                iconResource = R.drawable.ic_close,