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

@@ -473,8 +473,12 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
});
// 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));
}
swAlertOnce.setVisibility(Log.isXiaomi() || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);