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

Commit 493d0f3d authored by Qinmei Du's avatar Qinmei Du Committed by Android (Google) Code Review
Browse files

Merge "Update the scrimColor and the shape of the modal bottom sheet"

parents cd097243 474660d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,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) {