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
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); g.setColor(Color.GREEN);
break; break;
case AWAY: case AWAY:
g.setColor(Color.YELLOW); g.setColor(Color.ORANGE);
break; break;
case BUSY: case BUSY:
g.setColor(Color.RED); g.setColor(Color.RED);
@ -200,9 +200,9 @@ public final class StatusTrayIcon implements EventListener {
// Draw total amount of unread messages, if any are present // Draw total amount of unread messages, if any are present
if (Chat.getTotalUnreadAmount().get() > 0) { 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.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, g.drawString(String.valueOf(Chat.getTotalUnreadAmount().get()), size.width / 2,
size.height / 2); size.height / 2);
} }