创建弹窗UI调整

This commit is contained in:
2025-09-24 18:51:20 +08:00
parent bb9fda75ae
commit dedd356896
21 changed files with 36 additions and 21 deletions

View File

@@ -43,7 +43,7 @@ fun CreateBottomSheet(
onMomentClick: () -> Unit onMomentClick: () -> Unit
) { ) {
val appColors = LocalAppTheme.current val appColors = LocalAppTheme.current
//水平效果呈现镜像排列
ModalBottomSheet( ModalBottomSheet(
onDismissRequest = onDismiss, onDismissRequest = onDismiss,
sheetState = sheetState, sheetState = sheetState,
@@ -58,42 +58,57 @@ fun CreateBottomSheet(
.padding(top = 24.dp, bottom = 24.dp), .padding(top = 24.dp, bottom = 24.dp),
horizontalAlignment = Alignment.CenterHorizontally horizontalAlignment = Alignment.CenterHorizontally
) { ) {
// 标题 Row(
Text( modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.create_title), verticalAlignment = Alignment.CenterVertically
fontSize = 18.sp, ) {
fontWeight = FontWeight.Bold, Image(
color = appColors.text, painter = painterResource(R.mipmap.h_cj_rw_icon),
modifier = Modifier.padding(bottom = 32.dp) contentDescription = null,
) modifier = Modifier
.padding(start = 16.dp)
)
Spacer(modifier = Modifier.weight(1f))
Text(
text = stringResource(R.string.create_title),
fontSize = 18.sp,
fontWeight = FontWeight.Bold,
color = appColors.text,
modifier = Modifier
.padding(end = 3.dp)
)
Image(
painter = painterResource(R.mipmap.h_cj_x_img),
contentDescription = null,
modifier = Modifier
.padding(end = 18.dp)
)
}
Spacer(modifier = Modifier.height(30.dp))
// 三个创建选项 // 三个创建选项
Row( Row(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.SpaceEvenly horizontalArrangement = Arrangement.SpaceEvenly
) { ) {
// 群聊选项
CreateOption(
icon = R.drawable.ic_create_group_chat,
label = stringResource(R.string.create_group_chat_option),
onClick = onGroupChatClick
)
// 动态选项 // 动态选项
CreateOption( CreateOption(
icon = R.drawable.ic_create_monent, icon = R.drawable.ic_create_monent,
label = stringResource(R.string.create_moment), label = stringResource(R.string.create_moment),
onClick = onMomentClick onClick = onMomentClick
) )
// 群聊选项
CreateOption(
icon = R.mipmap.icons_circle_camera,
label = stringResource(R.string.create_group_chat_option),
onClick = onGroupChatClick
)
// AI选项 // AI选项
CreateOption( CreateOption(
icon = R.drawable.ic_create_ai, icon = R.mipmap.icons_circle_ai,
label = stringResource(R.string.create_ai), label = stringResource(R.string.create_ai),
onClick = onAiClick onClick = onAiClick
) )
} }
Spacer(modifier = Modifier.height(40.dp)) Spacer(modifier = Modifier.height(40.dp))

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB