mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 02:23:38 +02:00
Added option for wide color stripe
This commit is contained in:
@@ -226,6 +226,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
private boolean suitable;
|
||||
private boolean unmetered;
|
||||
|
||||
private int colorStripeWidth;
|
||||
private int colorAccent;
|
||||
private int textColorPrimary;
|
||||
private int textColorSecondary;
|
||||
@@ -670,6 +671,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
ibHelp = itemView.findViewById(R.id.ibHelp);
|
||||
ibSettings = itemView.findViewById(R.id.ibSettings);
|
||||
|
||||
if (vwColor != null)
|
||||
vwColor.getLayoutParams().width = colorStripeWidth;
|
||||
|
||||
if (tvFrom != null) {
|
||||
if (compact) {
|
||||
boolean full = "full".equals(sender_ellipsize);
|
||||
@@ -5990,6 +5994,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
this.suitable = state.isSuitable();
|
||||
this.unmetered = state.isUnmetered();
|
||||
|
||||
boolean color_stripe_wide = prefs.getBoolean("color_stripe_wide", false);
|
||||
this.colorStripeWidth = Helper.dp2pixels(context, color_stripe_wide ? 12 : 6);
|
||||
this.colorAccent = Helper.resolveColor(context, R.attr.colorAccent);
|
||||
this.textColorPrimary = Helper.resolveColor(context, android.R.attr.textColorPrimary);
|
||||
this.textColorSecondary = Helper.resolveColor(context, android.R.attr.textColorSecondary);
|
||||
|
||||
Reference in New Issue
Block a user