Allow gray settings card background

This commit is contained in:
M66B
2021-05-12 18:32:19 +02:00
parent 01869a4fe8
commit 88d1d4cb09
11 changed files with 64 additions and 21 deletions

View File

@@ -317,8 +317,12 @@ public class FragmentOptionsEncryption extends FragmentBase implements SharedPre
});
// Initialize
if (!Helper.isDarkTheme(getContext()))
view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.lightColorBackground_cards_beige));
if (!Helper.isDarkTheme(getContext())) {
boolean beige = prefs.getBoolean("beige", true);
view.setBackgroundColor(ContextCompat.getColor(getContext(), beige
? R.color.lightColorBackground_cards_beige
: R.color.lightColorBackground_cards));
}
try {
int maxKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength("AES");