From 30d44713b5e2c2e1bb1efa4b39f42bb4b1473787 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Feb 2021 17:11:51 +0100 Subject: [PATCH] Use accent color for shadow --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index fa93ccb009..ecfe0a35c1 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1401,7 +1401,9 @@ public class AdapterMessage extends RecyclerView.Adapter 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);