Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
fix webview loading background color
Browse files Browse the repository at this point in the history
  • Loading branch information
wed0n committed Mar 14, 2024
1 parent e00f1a6 commit df98873
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/thryan/secondclass/ui/login/Login.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ fun Login(modifier: Modifier = Modifier, viewModel: LoginViewModel) {
contentAlignment = Alignment.Center,
modifier = Modifier
.fillMaxSize()
.background(Color(0x88FFFFFF))
.background(with(MaterialTheme.colorScheme.background) {
Color(red, green, blue, 0.5f)
})
// 拦截对WebView的点击
.clickable(onClick = {}, interactionSource = interactionSource, indication = null)
) {
Expand Down

0 comments on commit df98873

Please sign in to comment.