Added solarized light theme

This commit is contained in:
M66B
2021-06-27 08:13:56 +02:00
parent ab4d527d73
commit 513ef8a854
24 changed files with 109 additions and 177 deletions

View File

@@ -39,7 +39,6 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.SearchView;
import androidx.constraintlayout.widget.Group;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Observer;
import androidx.preference.PreferenceManager;
@@ -72,7 +71,6 @@ public class FragmentRules extends FragmentBase {
private String type;
private boolean cards;
private boolean beige;
private RecyclerView rvRule;
private ContentLoadingProgressBar pbWait;
@@ -100,7 +98,6 @@ public class FragmentRules extends FragmentBase {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
cards = prefs.getBoolean("cards", true);
beige = prefs.getBoolean("beige", true);
}
@Override
@@ -151,11 +148,7 @@ public class FragmentRules extends FragmentBase {
// Initialize
if (cards && !Helper.isDarkTheme(getContext()))
view.setBackgroundColor(ContextCompat.getColor(getContext(), beige
? R.color.lightColorBackground_cards_beige
: R.color.lightColorBackground_cards));
FragmentDialogTheme.setBackground(getContext(), view, false);
grpReady.setVisibility(View.GONE);
pbWait.setVisibility(View.VISIBLE);