mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Added solarized light theme
This commit is contained in:
@@ -33,7 +33,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;
|
||||
@@ -48,7 +47,6 @@ import java.util.List;
|
||||
|
||||
public class FragmentAnswers extends FragmentBase {
|
||||
private boolean cards;
|
||||
private boolean beige;
|
||||
|
||||
private RecyclerView rvAnswer;
|
||||
private ContentLoadingProgressBar pbWait;
|
||||
@@ -64,7 +62,6 @@ public class FragmentAnswers extends FragmentBase {
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
cards = prefs.getBoolean("cards", true);
|
||||
beige = prefs.getBoolean("beige", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -106,12 +103,7 @@ public class FragmentAnswers 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user