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

Commit 474660d3 authored by Qinmei Du's avatar Qinmei Du
Browse files

Update the scrimColor and the shape of the modal bottom sheet

screenshot: https://screenshot.googleplex.com/8MEHpC5qYb26h5o

Test: deployed locally

Bug: 253157211
Change-Id: Ib03fff0811b9909fa4f49e2ce2280ce6ded58d8c
parent 372a08e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ fun CreateCredentialScreen(
        )
      }
    },
    scrimColor = MaterialTheme.colorScheme.scrim,
    scrimColor = MaterialTheme.colorScheme.scrim.copy(alpha = 0.8f),
    sheetShape = EntryShape.TopRoundedCorner,
  ) {}
  LaunchedEffect(state.currentValue) {
+3 −2
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ import com.android.credentialmanager.common.ui.CancelButton
import com.android.credentialmanager.common.ui.Entry
import com.android.credentialmanager.common.ui.TransparentBackgroundEntry
import com.android.credentialmanager.jetpack.developer.PublicKeyCredential
import com.android.credentialmanager.ui.theme.EntryShape

@Composable
fun GetCredentialScreen(
@@ -94,8 +95,8 @@ fun GetCredentialScreen(
        )
      }
    },
    scrimColor = Color.Transparent,
    sheetShape = MaterialTheme.shapes.medium,
    scrimColor = MaterialTheme.colorScheme.scrim.copy(alpha = 0.8f),
    sheetShape = EntryShape.TopRoundedCorner,
  ) {}
  LaunchedEffect(state.currentValue) {
    if (state.currentValue == ModalBottomSheetValue.Hidden) {