Display Current User Status and Unread Message Amount in Status Tray Icon #103
@ -188,7 +188,7 @@ public final class StatusTrayIcon implements EventListener {
|
||||
g.setColor(Color.GREEN);
|
||||
break;
|
||||
case AWAY:
|
||||
g.setColor(Color.YELLOW);
|
||||
g.setColor(Color.ORANGE);
|
||||
break;
|
||||
case BUSY:
|
||||
g.setColor(Color.RED);
|
||||
@ -200,9 +200,9 @@ public final class StatusTrayIcon implements EventListener {
|
||||
|
||||
// Draw total amount of unread messages, if any are present
|
||||
if (Chat.getTotalUnreadAmount().get() > 0) {
|
||||
g.setColor(Color.RED);
|
||||
g.fillOval(size.width / 2, 0, size.width / 2, size.height / 2);
|
||||
g.setColor(Color.BLACK);
|
||||
g.fillOval(size.width / 2, 0, size.width / 2, size.height / 2);
|
||||
g.setColor(Color.WHITE);
|
||||
g.drawString(String.valueOf(Chat.getTotalUnreadAmount().get()), size.width / 2,
|
||||
size.height / 2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user