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
This commit is contained in:
Qinmei Du
2022-11-30 07:59:43 +00:00
parent 372a08e0b8
commit 474660d33d
2 changed files with 4 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ fun CreateCredentialScreen(
)
}
},
scrimColor = MaterialTheme.colorScheme.scrim,
scrimColor = MaterialTheme.colorScheme.scrim.copy(alpha = 0.8f),
sheetShape = EntryShape.TopRoundedCorner,
) {}
LaunchedEffect(state.currentValue) {

View File

@@ -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) {