Display Current User Status and Unread Message Amount in Status Tray Icon #103

Merged
kske merged 8 commits from f/enhanced-status-tray-icon into develop 2020-10-23 17:19:46 +02:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit aaaf5ef7be - Show all commits

View File

@ -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);
}