Added bookmark color

pull/215/head
M66B 3 months ago
parent 38b3f113ea
commit 73201f7e81

@ -248,6 +248,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private int colorVerified;
private int colorEncrypt;
private int colorSeparator;
private int colorBookmark;
private int colorWarning;
private int colorError;
private int colorControlNormal;
@ -1610,7 +1611,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvCount.setText(NF.format(message.visible));
if (selected)
ivThread.setColorFilter(colorAccent);
ivThread.setColorFilter(colorBookmark);
else
ivThread.clearColorFilter();
}
@ -8237,6 +8238,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.colorVerified = Helper.resolveColor(context, R.attr.colorVerified);
this.colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt);
this.colorSeparator = Helper.resolveColor(context, R.attr.colorSeparator);
this.colorBookmark = Helper.resolveColor(context, R.attr.colorBookmark);
this.colorError = Helper.resolveColor(context, androidx.appcompat.R.attr.colorError);
this.colorWarning = Helper.resolveColor(context, R.attr.colorWarning);
this.colorControlNormal = Helper.resolveColor(context, androidx.appcompat.R.attr.colorControlNormal);

@ -11,6 +11,7 @@
<attr name="colorThumb" format="reference" />
<attr name="colorWarning" format="reference" />
<attr name="colorBadge" format="reference" />
<attr name="colorBookmark" format="reference" />
<attr name="colorAccept" format="reference" />
<attr name="colorDecline" format="reference" />
<attr name="colorDrawerScrim" format="reference" />
@ -68,6 +69,7 @@
<item name="colorThumb">@color/lightColorThumb</item>
<item name="colorWarning">@color/lightColorWarning</item>
<item name="colorBadge">@color/red</item>
<item name="colorBookmark">?attr/colorAccent</item>
<item name="colorAccept">@color/colorEncryptDark</item>
<item name="colorDecline">@color/red</item>
@ -140,6 +142,7 @@
<item name="colorThumb">@color/darkColorThumb</item>
<item name="colorWarning">@color/darkColorWarning</item>
<item name="colorBadge">@color/red</item>
<item name="colorBookmark">?attr/colorAccent</item>
<item name="colorAccept">@color/colorEncryptLight</item>
<item name="colorDecline">@color/red</item>
@ -498,6 +501,8 @@
<item name="colorUnread">@color/white</item>
<item name="colorUnreadHighlight">@color/white</item>
<item name="colorBookmark">@color/lightBluePrimary</item>
<item name="colorFabForeground">@color/white</item>
<item name="colorFabBackground">@color/blackAndWhitePrimaryLight</item>

Loading…
Cancel
Save