From 9b7349a76179af372273618b92a570e587a15cd5 Mon Sep 17 00:00:00 2001 From: zhong <2724770085@qq.com> Date: Thu, 4 Sep 2025 14:23:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=BE=A4=E8=81=8A=E7=95=8C=E9=9D=A2=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=BD=AE=E7=81=B0=E7=8A=B6=E6=80=81=E7=9A=84?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=BE=A4=E8=81=8A=E6=8C=89=E9=92=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E8=BE=93=E5=85=A5=E6=A1=86=E5=85=89=E6=A0=87?= =?UTF-8?q?=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aiosman/ravenow/ui/group/CreateGroupChatScreen.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/aiosman/ravenow/ui/group/CreateGroupChatScreen.kt b/app/src/main/java/com/aiosman/ravenow/ui/group/CreateGroupChatScreen.kt index 71b550a..5542432 100644 --- a/app/src/main/java/com/aiosman/ravenow/ui/group/CreateGroupChatScreen.kt +++ b/app/src/main/java/com/aiosman/ravenow/ui/group/CreateGroupChatScreen.kt @@ -21,6 +21,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.ColorFilter +import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource @@ -198,6 +199,7 @@ fun CreateGroupChatScreen() { ), modifier = Modifier.weight(1f), singleLine = true, + cursorBrush = SolidColor(AppColors.text), decorationBox = { innerTextField -> Box { if (searchText.text.isEmpty()) { @@ -213,6 +215,7 @@ fun CreateGroupChatScreen() { ) } } + // // 搜索栏 // Box( // modifier = Modifier @@ -279,6 +282,7 @@ fun CreateGroupChatScreen() { modifier = Modifier .weight(1f), singleLine = true, + cursorBrush = SolidColor(AppColors.text), decorationBox = { innerTextField -> Box(Modifier.fillMaxWidth()) { if (groupName.text.isEmpty()) { @@ -442,7 +446,7 @@ fun CreateGroupChatScreen() { } } } - + // 创建群聊按钮 - 固定在底部 Button( onClick = { @@ -465,7 +469,9 @@ fun CreateGroupChatScreen() { .padding(start = 16.dp, end = 16.dp, top = 16.dp, bottom = navigationBarPadding + 16.dp), colors = ButtonDefaults.buttonColors( containerColor = AppColors.main, - contentColor = AppColors.mainText + contentColor = AppColors.mainText, + disabledContainerColor = AppColors.disabledBackground, + disabledContentColor = AppColors.text ), shape = RoundedCornerShape(24.dp), enabled = groupName.text.isNotEmpty() && selectedMembers.isNotEmpty() && !CreateGroupChatViewModel.isLoading @@ -484,6 +490,7 @@ fun CreateGroupChatScreen() { ) } } + } }