mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Added seting for beige card background
This commit is contained in:
@@ -43,6 +43,7 @@ import java.util.List;
|
||||
|
||||
public class FragmentAnswers extends FragmentBase {
|
||||
private boolean cards;
|
||||
private boolean beige;
|
||||
|
||||
private RecyclerView rvAnswer;
|
||||
private ContentLoadingProgressBar pbWait;
|
||||
@@ -57,6 +58,7 @@ public class FragmentAnswers extends FragmentBase {
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
cards = prefs.getBoolean("cards", true);
|
||||
beige = prefs.getBoolean("beige", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -100,7 +102,9 @@ public class FragmentAnswers 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