Added seting for beige card background

This commit is contained in:
M66B
2020-09-25 09:09:41 +02:00
parent 5be2219435
commit 8268986db6
11 changed files with 74 additions and 9 deletions

View File

@@ -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);