mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Added solarized light theme
This commit is contained in:
@@ -24,7 +24,6 @@ import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.Spannable;
|
||||
@@ -49,8 +48,6 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.constraintlayout.widget.Group;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.preference.PreferenceManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
@@ -200,14 +197,7 @@ public class ActivityEML extends ActivityBase {
|
||||
});
|
||||
|
||||
// Initialize
|
||||
if (!Helper.isDarkTheme(this)) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean beige = prefs.getBoolean("beige", true);
|
||||
view.setBackgroundColor(ContextCompat.getColor(this, beige
|
||||
? R.color.lightColorBackground_cards_beige
|
||||
: R.color.lightColorBackground_cards));
|
||||
}
|
||||
|
||||
FragmentDialogTheme.setBackground(this, view, false);
|
||||
vSeparatorAttachments.setVisibility(View.GONE);
|
||||
grpReady.setVisibility(View.GONE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user