暗黑模式下创建群聊界面不显示置灰状态的创建群聊按钮问题;输入框光标颜色
This commit is contained in:
@@ -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() {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user