mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Added settings to disable monospaced typeface
This commit is contained in:
@@ -141,6 +141,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
private boolean compact;
|
||||
private boolean name_email;
|
||||
private boolean subject_italic;
|
||||
private boolean monospaced;
|
||||
private int zoom;
|
||||
private String sort;
|
||||
private boolean duplicates;
|
||||
@@ -796,6 +797,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
btnHtml.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
|
||||
ibQuotes.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
|
||||
ibImages.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
|
||||
|
||||
tvBody.setTypeface(monospaced ? Typeface.MONOSPACE : Typeface.DEFAULT);
|
||||
tvBody.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
|
||||
vwBody.setVisibility(show_html ? View.INVISIBLE : View.GONE);
|
||||
|
||||
@@ -2937,6 +2940,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
this.compact = compact;
|
||||
this.name_email = prefs.getBoolean("name_email", !compact);
|
||||
this.subject_italic = prefs.getBoolean("subject_italic", true);
|
||||
this.monospaced = prefs.getBoolean("monospaced", true);
|
||||
this.zoom = zoom;
|
||||
this.sort = sort;
|
||||
this.duplicates = duplicates;
|
||||
|
||||
Reference in New Issue
Block a user