mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Use accent color for shadow
This commit is contained in:
@@ -1401,7 +1401,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
private void bindSeen(TupleMessageEx message) {
|
||||
if (cards && shadow_unread) {
|
||||
int color = (message.unseen > 0 ? colorSeparator : Color.TRANSPARENT);
|
||||
int color = (message.unseen > 0
|
||||
? ColorUtils.setAlphaComponent(colorAccent, 127)
|
||||
: Color.TRANSPARENT);
|
||||
if (!Objects.equals(itemView.getTag(), color)) {
|
||||
itemView.setTag(color);
|
||||
itemView.setBackgroundColor(color);
|
||||
|
||||
Reference in New Issue
Block a user