From 19bb7715a26a5d269003dcc6186507fa606729d5 Mon Sep 17 00:00:00 2001 From: Kevinlinpr Date: Thu, 10 Oct 2024 01:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=8C=89=E9=92=AE=EF=BC=8C?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/composables/EditCommentBottomModal.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/aiosman/riderpro/ui/composables/EditCommentBottomModal.kt b/app/src/main/java/com/aiosman/riderpro/ui/composables/EditCommentBottomModal.kt index 3fd49c8..ffa73fa 100644 --- a/app/src/main/java/com/aiosman/riderpro/ui/composables/EditCommentBottomModal.kt +++ b/app/src/main/java/com/aiosman/riderpro/ui/composables/EditCommentBottomModal.kt @@ -20,6 +20,7 @@ import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.text.BasicTextField +import androidx.compose.material.Icon import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect @@ -71,20 +72,18 @@ fun EditCommentBottomModal( modifier = Modifier.fillMaxWidth() ) { Text( - if (replyComment == null) "评论" else "回复", + if (replyComment == null) "Comment" else "Reply", fontWeight = FontWeight.W600, modifier = Modifier.weight(1f), fontSize = 20.sp, fontStyle = FontStyle.Italic ) - Crossfade(targetState = text.isNotEmpty(), animationSpec = tween(500)) { isNotEmpty -> - Image( - painter = rememberUpdatedState( - if (isNotEmpty) painterResource(id = R.drawable.rider_pro_send) else painterResource( - id = R.drawable.rider_pro_send_disable - ) - ).value, - contentDescription = "Send", + Crossfade(targetState = text.isNotEmpty(), animationSpec = tween(500), + label = "" + ) { isNotEmpty -> + Icon( + painter = painterResource(id = R.drawable.rider_pro_video_share), + contentDescription = "Emoji", modifier = Modifier .size(32.dp) .noRippleClickable { @@ -94,6 +93,7 @@ fun EditCommentBottomModal( } }, + tint = if (isNotEmpty) Color.Red else Color(0xffe0e0e0) ) } }