Added default receipt titles / colors

pull/214/head
M66B 11 months ago
parent a977992815
commit 6b455ebf6a

@ -119,6 +119,14 @@ public class TupleKeyword {
return context.getString(R.string.title_keyword_label4);
case "$label5": // Later
return context.getString(R.string.title_keyword_label5);
case MessageHelper.FLAG_DISPLAYED:
return context.getString(R.string.title_keyword_displayed);
case MessageHelper.FLAG_DELIVERED:
return context.getString(R.string.title_keyword_delivered);
case MessageHelper.FLAG_NOT_DISPLAYED:
return context.getString(R.string.title_keyword_not_displayed);
case MessageHelper.FLAG_NOT_DELIVERED:
return context.getString(R.string.title_keyword_not_delivered);
default:
return keyword;
}
@ -136,6 +144,14 @@ public class TupleKeyword {
return Color.parseColor("#3333FF");
case "$label5": // Later
return Color.parseColor("#993399");
case MessageHelper.FLAG_DISPLAYED:
case MessageHelper.FLAG_DELIVERED:
return Helper.resolveColor(context, R.attr.colorVerified);
case MessageHelper.FLAG_NOT_DISPLAYED:
case MessageHelper.FLAG_NOT_DELIVERED:
return Helper.resolveColor(context, androidx.appcompat.R.attr.colorError);
default:
return null;
}

@ -17,7 +17,7 @@
<color name="colorHighlightLight">#7fffe000</color>
<color name="colorHighlightDark">#7fffe000</color>
<color name="colorVerifiedLight">#ff00e000</color>
<color name="colorVerifiedLight">#ff00c000</color>
<color name="colorVerifiedDark">#ff00ff00</color>
<color name="colorEncryptLight">#ff00ff00</color>

@ -2408,6 +2408,11 @@
<string name="title_keyword_label4">To do</string>
<string name="title_keyword_label5">Later</string>
<string name="title_keyword_displayed">Displayed</string>
<string name="title_keyword_delivered">Delivered</string>
<string name="title_keyword_not_displayed">Not displayed</string>
<string name="title_keyword_not_delivered">Not delivered</string>
<plurals name="title_accessibility_messages">
<item quantity="one">%1$d message</item>
<item quantity="other">%1$d messages</item>

Loading…
Cancel
Save