|
@@ -99,7 +99,7 @@ fun InputDialog(
|
|
|
topRadius = 16.dp,
|
|
topRadius = 16.dp,
|
|
|
bottomRadius = 16.dp,
|
|
bottomRadius = 16.dp,
|
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
|
- .width(320.dp)
|
|
|
|
|
|
|
+ .fillMaxWidth(0.75f)
|
|
|
// 防止点击穿透
|
|
// 防止点击穿透
|
|
|
.clickable(
|
|
.clickable(
|
|
|
indication = null,
|
|
indication = null,
|
|
@@ -111,13 +111,12 @@ fun InputDialog(
|
|
|
Row(
|
|
Row(
|
|
|
Modifier
|
|
Modifier
|
|
|
.fillMaxWidth()
|
|
.fillMaxWidth()
|
|
|
- .height(40.dp)
|
|
|
|
|
.padding(horizontal = 16.dp),
|
|
.padding(horizontal = 16.dp),
|
|
|
verticalAlignment = Alignment.CenterVertically
|
|
verticalAlignment = Alignment.CenterVertically
|
|
|
) {
|
|
) {
|
|
|
Text(
|
|
Text(
|
|
|
title,
|
|
title,
|
|
|
- fontSize = 16.sp,
|
|
|
|
|
|
|
+ fontSize = 18.sp,
|
|
|
lineHeight = 48.sp,
|
|
lineHeight = 48.sp,
|
|
|
fontWeight = FontWeight.Bold,
|
|
fontWeight = FontWeight.Bold,
|
|
|
color = Text,
|
|
color = Text,
|
|
@@ -173,7 +172,7 @@ fun InputDialog(
|
|
|
.clip(RoundedCornerShape(6.dp))
|
|
.clip(RoundedCornerShape(6.dp))
|
|
|
.background(Color.Gray.copy(alpha = 0.6f))
|
|
.background(Color.Gray.copy(alpha = 0.6f))
|
|
|
.clickable(onClick = { onCancel() })
|
|
.clickable(onClick = { onCancel() })
|
|
|
- .padding(vertical = 5.dp),
|
|
|
|
|
|
|
+ .padding(vertical = 8.dp),
|
|
|
textAlign = TextAlign.Center,
|
|
textAlign = TextAlign.Center,
|
|
|
fontSize = 16.sp,
|
|
fontSize = 16.sp,
|
|
|
fontWeight = FontWeight.Bold
|
|
fontWeight = FontWeight.Bold
|
|
@@ -187,7 +186,7 @@ fun InputDialog(
|
|
|
.clip(RoundedCornerShape(6.dp))
|
|
.clip(RoundedCornerShape(6.dp))
|
|
|
.background(MaterialTheme.colorScheme.primary)
|
|
.background(MaterialTheme.colorScheme.primary)
|
|
|
.clickable(onClick = { onConfirm() })
|
|
.clickable(onClick = { onConfirm() })
|
|
|
- .padding(vertical = 5.dp),
|
|
|
|
|
|
|
+ .padding(vertical = 8.dp),
|
|
|
textAlign = TextAlign.Center,
|
|
textAlign = TextAlign.Center,
|
|
|
fontSize = 16.sp,
|
|
fontSize = 16.sp,
|
|
|
fontWeight = FontWeight.Bold
|
|
fontWeight = FontWeight.Bold
|