From 5ad675c5d33a41ebf3ed541c6e66b707594d9984 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 31 Dec 2024 07:43:57 +0100 Subject: [PATCH] Fixed Material You dark background color --- app/src/main/java/eu/faircode/email/FragmentDialogTheme.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java b/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java index 14fd8b6320..cb0fdca9c9 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java @@ -663,8 +663,8 @@ public class FragmentDialogTheme extends FragmentDialogBase { Integer color = null; if (cards) { - if (you && (!dark || !black) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { - if (beige) + if (you && !black && Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { + if (!dark && beige) color = ContextCompat.getColor(context, R.color.lightColorBackground_cards_beige); else color = ContextCompat.getColor(context, dark