mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Added Thunderbird label colors
This commit is contained in:
parent
486ccfa5f3
commit
9e1d017320
2 changed files with 18 additions and 1 deletions
|
@ -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…
Reference in a new issue