Skip to content

Commit d2eb090

Browse files
committed
Fix star and attachment icon colors
1 parent 3ff1269 commit d2eb090

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListAdapter.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,11 @@ class MessageListAdapter internal constructor(
394394

395395
if (appearance.stars) {
396396
holder.star.isSelected = isStarred
397+
if (isStarred) {
398+
holder.star.clearColorFilter()
399+
} else {
400+
holder.star.setColorFilter(foregroundColor)
401+
}
397402
holder.starClickArea.contentDescription = if (isStarred) {
398403
res.getString(R.string.unflag_action)
399404
} else {
@@ -435,6 +440,7 @@ class MessageListAdapter internal constructor(
435440
holder.date.setTextColor(foregroundColor)
436441
holder.date.text = displayDate
437442
holder.attachment.isVisible = hasAttachments
443+
holder.attachment.setColorFilter(foregroundColor)
438444

439445
val statusHolder = buildStatusHolder(isForwarded, isAnswered)
440446
if (statusHolder != null) {

0 commit comments

Comments
 (0)