From c174d55365b1538970b9fe934e2094e3bbc6ab55 Mon Sep 17 00:00:00 2001 From: jinuemong Date: Wed, 21 Feb 2024 22:09:37 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20=EB=82=B4=EC=97=AD=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20QA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/view/component/FieldSelectComponent.kt | 5 ++--- .../history/detail/edit/HistoryDetailEditScreen.kt | 13 +++++++------ .../res/drawable/ic_text_field_chevron_right.xml | 13 +++++++++++++ 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 presentation/src/main/res/drawable/ic_text_field_chevron_right.xml diff --git a/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/common/view/component/FieldSelectComponent.kt b/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/common/view/component/FieldSelectComponent.kt index 68ec8132..d277e37c 100644 --- a/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/common/view/component/FieldSelectComponent.kt +++ b/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/common/view/component/FieldSelectComponent.kt @@ -72,10 +72,9 @@ fun FieldSelectComponent( ) Image( - painter = painterResource(R.drawable.ic_chevron_right), + painter = painterResource(R.drawable.ic_text_field_chevron_right), contentDescription = null, - modifier = Modifier.align(Alignment.CenterEnd), - colorFilter = ColorFilter.tint(Gray500) + modifier = Modifier.align(Alignment.CenterEnd) ) } } diff --git a/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/ui/main/home/history/detail/edit/HistoryDetailEditScreen.kt b/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/ui/main/home/history/detail/edit/HistoryDetailEditScreen.kt index 1f52f31a..60bf9556 100644 --- a/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/ui/main/home/history/detail/edit/HistoryDetailEditScreen.kt +++ b/presentation/src/main/kotlin/ac/dnd/mour/android/presentation/ui/main/home/history/detail/edit/HistoryDetailEditScreen.kt @@ -78,6 +78,7 @@ import androidx.compose.ui.graphics.ColorFilter import androidx.compose.ui.platform.LocalFocusManager import androidx.compose.ui.res.painterResource import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.rememberTextMeasurer import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp @@ -184,6 +185,7 @@ private fun HistoryDetailEditScreen( isShowingSuccessEditSnackBar = true delay(500L) isShowingSuccessEditSnackBar = false + isEditMode = false } } } @@ -220,7 +222,7 @@ private fun HistoryDetailEditScreen( .padding(Space8) ) { Image( - painter = painterResource(R.drawable.ic_close), + painter = painterResource(R.drawable.ic_close_rounded), contentDescription = null, modifier = Modifier .align(Alignment.CenterEnd) @@ -296,9 +298,8 @@ private fun HistoryDetailEditScreen( } } else { Image( - painter = painterResource(R.drawable.ic_chevron_right), + painter = painterResource(R.drawable.ic_text_field_chevron_right), contentDescription = null, - colorFilter = ColorFilter.tint(Gray500) ) } }, @@ -322,6 +323,7 @@ private fun HistoryDetailEditScreen( horizontal = 16.dp ), fieldHeight = 97.dp, + hintText = "메모를 입력해주세요", onTextFieldFocusChange = { isMemoSelected = it }, @@ -341,9 +343,8 @@ private fun HistoryDetailEditScreen( } } else { Image( - painter = painterResource(R.drawable.ic_chevron_right), - contentDescription = null, - colorFilter = ColorFilter.tint(Gray500) + painter = painterResource(R.drawable.ic_text_field_chevron_right), + contentDescription = null ) } }, diff --git a/presentation/src/main/res/drawable/ic_text_field_chevron_right.xml b/presentation/src/main/res/drawable/ic_text_field_chevron_right.xml new file mode 100644 index 00000000..b27bef0d --- /dev/null +++ b/presentation/src/main/res/drawable/ic_text_field_chevron_right.xml @@ -0,0 +1,13 @@ + + +