File tree 1 file changed +3
-1
lines changed
app/src/main/java/com/osfans/trime/ime/candidates
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class CandidateItemUi(
35
35
private val maybeCommentTextColor = ColorManager .getColor(" comment_text_color" )
36
36
private val maybeHighlightedCandidateTextColor = ColorManager .getColor(" hilited_candidate_text_color" )
37
37
private val maybeHighlightedCommentTextColor = ColorManager .getColor(" hilited_comment_text_color" )
38
+ private val maybeHighlightedCandidateBackColor = ColorManager .getColor(" hilited_candidate_back_color" )
38
39
39
40
val label =
40
41
textView {
@@ -58,7 +59,6 @@ class CandidateItemUi(
58
59
59
60
override val root =
60
61
constraintLayout {
61
- background = ColorManager .getColor(" hilited_candidate_back_color" )?.let { pressHighlightDrawable(it) }
62
62
if (theme.generalStyle.commentOnTop) {
63
63
add(
64
64
altLabel,
@@ -102,9 +102,11 @@ class CandidateItemUi(
102
102
if (yes) {
103
103
maybeHighlightedCandidateTextColor?.let { label.setTextColor(it) }
104
104
maybeHighlightedCommentTextColor?.let { altLabel.setTextColor(it) }
105
+ maybeHighlightedCandidateBackColor?.let { root.setBackgroundColor(it) }
105
106
} else {
106
107
maybeCandidateTextColor?.let { label.setTextColor(it) }
107
108
maybeCommentTextColor?.let { altLabel.setTextColor(it) }
109
+ maybeHighlightedCandidateBackColor?.let { root.background = pressHighlightDrawable(it) }
108
110
}
109
111
}
110
112
}
You can’t perform that action at this time.
0 commit comments