Added Thunderbird label colors

pull/209/head
M66B 2 years ago
parent 486ccfa5f3
commit 9e1d017320

@ -118,4 +118,21 @@ public class TupleKeyword {
return keyword;
}
}
static Integer getDefaultKeywordColor(Context context, String keyword) {
switch (keyword) {
case "$label1": // Important
return Color.parseColor("#FF0000");
case "$label2": // Work
return Color.parseColor("#FF9900");
case "$label3": // Personal
return Color.parseColor("#009900");
case "$label4": // To do
return Color.parseColor("#3333FF");
case "$label5": // Later
return Color.parseColor("#993399");
default:
return null;
}
}
}

@ -114,7 +114,7 @@ public class TupleMessageEx extends EntityMessage {
else if (prefs.contains(keyColor2))
color.add(prefs.getInt(keyColor2, Color.GRAY));
else
color.add(null);
color.add(TupleKeyword.getDefaultKeywordColor(context, keyword));
String keyTitle = "kwtitle." + keyword;
String def = TupleKeyword.getDefaultKeywordAlias(context, keyword);

Loading…
Cancel
Save