mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Added seting for beige card background
This commit is contained in:
@@ -73,6 +73,7 @@ public class FragmentRules extends FragmentBase {
|
||||
private String type;
|
||||
|
||||
private boolean cards;
|
||||
private boolean beige;
|
||||
|
||||
private RecyclerView rvRule;
|
||||
private ContentLoadingProgressBar pbWait;
|
||||
@@ -100,6 +101,7 @@ public class FragmentRules extends FragmentBase {
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
cards = prefs.getBoolean("cards", true);
|
||||
beige = prefs.getBoolean("beige", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -151,7 +153,9 @@ public class FragmentRules extends FragmentBase {
|
||||
// Initialize
|
||||
|
||||
if (cards && !Helper.isDarkTheme(getContext()))
|
||||
view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.lightColorBackground_cards));
|
||||
view.setBackgroundColor(ContextCompat.getColor(getContext(), beige
|
||||
? R.color.lightColorBackground_cards_beige
|
||||
: R.color.lightColorBackground_cards));
|
||||
|
||||
grpReady.setVisibility(View.GONE);
|
||||
pbWait.setVisibility(View.VISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user