Skip to content

Commit

Permalink
[UI] 미션 진행상황 관리 SpannableString의 Red의 컬러값을 정확한 hex값으로 변경 (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
KxxHyoRim committed Feb 29, 2024
1 parent 4a4b551 commit e7dcbc1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e7dcbc1

Please sign in to comment.