Fix text color for info messages

This commit is contained in:
Alexander Lobas
2018-04-05 16:58:17 +03:00
parent bea9e75fb9
commit 01901029f4
@@ -132,7 +132,9 @@ public class IdeNotificationArea extends JLabel implements UISettingsListener, C
icon.setIcon(getPendingNotificationsIcon(AllIcons.Ide.Notification.NoEvents, type), 0);
if (size > 0) {
//noinspection UseJBColor
Color textColor = type == NotificationType.ERROR ? new JBColor(Color.white, new Color(0xF2F2F2)) : new Color(0x333333);
Color textColor = type == NotificationType.ERROR || type == NotificationType.INFORMATION
? new JBColor(Color.white, new Color(0xF2F2F2))
: new Color(0x333333);
icon.setIcon(new TextIcon(component, size < 10 ? String.valueOf(size) : "9+", textColor), 1);
}
return icon;