From e7dcbc125035c8ebcf1bf0ae09ce535fb3d4b3c4 Mon Sep 17 00:00:00 2001 From: kxxhyorim Date: Thu, 29 Feb 2024 18:11:08 +0900 Subject: [PATCH] =?UTF-8?q?[UI]=20=EB=AF=B8=EC=85=98=20=EC=A7=84=ED=96=89?= =?UTF-8?q?=EC=83=81=ED=99=A9=20=EA=B4=80=EB=A6=AC=20SpannableString?= =?UTF-8?q?=EC=9D=98=20Red=EC=9D=98=20=EC=BB=AC=EB=9F=AC=EA=B0=92=EC=9D=84?= =?UTF-8?q?=20=EC=A0=95=ED=99=95=ED=95=9C=20hex=EA=B0=92=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20(#208)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lgtm/android/common_ui/model/mapper/UiMapper.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common-ui/src/main/java/com/lgtm/android/common_ui/model/mapper/UiMapper.kt b/common-ui/src/main/java/com/lgtm/android/common_ui/model/mapper/UiMapper.kt index 62d179a3..5dedb6ea 100644 --- a/common-ui/src/main/java/com/lgtm/android/common_ui/model/mapper/UiMapper.kt +++ b/common-ui/src/main/java/com/lgtm/android/common_ui/model/mapper/UiMapper.kt @@ -36,6 +36,9 @@ import com.lgtm.domain.util.dotStyleDateFormatter import com.lgtm.domain.util.korean12HourTimeFormatter import java.time.LocalDateTime +const val LGTM_RED = "#fe504f" +const val LGTM_GRAY_3 = "#cfd8e7" + fun MissionDetailVO.toUiModel(): MissionDetailUI = MissionDetailUI( currentPeopleNumber = currentPeopleNumber, description = description, @@ -125,7 +128,7 @@ fun AccountInfoVO.toUiModel() = AccountInfoUI( fun createRedSpannableText(text: String, redTextStart: Int, redTextEnd: Int): SpannableString { val spannableText = SpannableString(text) spannableText.setSpan( - ForegroundColorSpan(Color.RED), + ForegroundColorSpan(Color.parseColor(LGTM_RED)), redTextStart, redTextEnd, Spannable.SPAN_EXCLUSIVE_INCLUSIVE