mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Allow gray settings card background
This commit is contained in:
@@ -335,8 +335,12 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
||||
});
|
||||
|
||||
// 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));
|
||||
}
|
||||
|
||||
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user