Skip to content

Commit 3ff1269

Browse files
committed
Change color priority to show selection also on active items
1 parent ed3092a commit 3ff1269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ class MessageListAdapter internal constructor(
504504
private fun selectBackgroundColor(selected: Boolean, read: Boolean, active: Boolean): Int {
505505
val backGroundAsReadIndicator = appearance.backGroundAsReadIndicator
506506
return when {
507-
active -> activeItemBackgroundColor
508507
selected -> selectedItemBackgroundColor
508+
active -> activeItemBackgroundColor
509509
backGroundAsReadIndicator && read -> readItemBackgroundColor
510510
backGroundAsReadIndicator && !read -> unreadItemBackgroundColor
511511
else -> regularItemBackgroundColor
@@ -515,8 +515,8 @@ class MessageListAdapter internal constructor(
515515
private fun selectForegroundColor(selected: Boolean, read: Boolean, active: Boolean): Int {
516516
val backGroundAsReadIndicator = appearance.backGroundAsReadIndicator
517517
return when {
518-
active -> activeItemColor
519518
selected -> selectedItemColor
519+
active -> activeItemColor
520520
backGroundAsReadIndicator && read -> readItemColor
521521
backGroundAsReadIndicator && !read -> unreadItemColor
522522
else -> regularItemColor

0 commit comments

Comments
 (0)