Update app/src/main/java/org/fcitx/fcitx5/android/input/candidates/floating/LabeledCandidateItemUi.kt

Co-authored-by: rocka <i@rocka.me>
This commit is contained in:
Bryan Nie 2024-12-28 14:34:52 +08:00 committed by GitHub
parent a1bba508da
commit 07233b7e77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ class LabeledCandidateItemUi(
val fg = if (active) theme.genericActiveForegroundColor else theme.candidateTextColor
val altFg = if (active) theme.genericActiveForegroundColor else theme.candidateCommentColor
root.text = buildSpannedString {
color(fg) { append(candidate.label) }
color(labelFg) { append(candidate.label) }
color(fg) { append(candidate.text) }
if (candidate.comment.isNotBlank()) {
append(" ")