mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Card background color for composer
This commit is contained in:
parent
7b3b5cf9c5
commit
e923f5983a
1 changed files with 5 additions and 0 deletions
|
@ -967,6 +967,11 @@ public class FragmentCompose extends FragmentBase {
|
||||||
setHasOptionsMenu(true);
|
setHasOptionsMenu(true);
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||||
|
|
||||||
|
boolean cards = prefs.getBoolean("cards", true);
|
||||||
|
if (cards && !Helper.isDarkTheme(getContext()))
|
||||||
|
view.setBackgroundColor(Helper.resolveColor(getContext(), R.attr.colorCardBackground));
|
||||||
|
|
||||||
//boolean beige = prefs.getBoolean("beige", true);
|
//boolean beige = prefs.getBoolean("beige", true);
|
||||||
//if (beige && !Helper.isDarkTheme(getContext()))
|
//if (beige && !Helper.isDarkTheme(getContext()))
|
||||||
// view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.lightColorBackground_cards_beige));
|
// view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.lightColorBackground_cards_beige));
|
||||||
|
|
Loading…
Reference in a new issue