diff options
author | steckbrief <steckbrief@chefmail.de> | 2015-05-26 22:28:31 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2015-06-19 23:11:44 +0200 |
commit | a73ce32e272675d899b5029b63233b4e5ef616c9 (patch) | |
tree | 2cdda057a950d2c1c76c2972c21a478702bdc267 /src/main/java/eu/siacs/conversations/utils | |
parent | b3b4a2902e37fb072e800f5dff0392755f5d4501 (diff) |
Status color added to "create conversation" (refers to ticket #22 in flyspray)
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/UIHelper.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index 0bea6e53..82e950ad 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -357,6 +357,20 @@ public class UIHelper { } } + public static String getStatusColor(int status) { + switch (status) { + case Presences.ONLINE: + case Presences.CHAT: + return "#259B23"; + case Presences.AWAY: + case Presences.XA: + return "#FF9800"; + case Presences.DND: + return "#E51C23"; + } + return "#CCCCCC"; + } + private static String getDisplayedMucCounterpart(final Jid counterpart) { if (counterpart==null) { return ""; |