From 01901029f4b1e92a526c514e567759f804b6cc59 Mon Sep 17 00:00:00 2001 From: Alexander Lobas Date: Thu, 5 Apr 2018 16:56:28 +0300 Subject: [PATCH] Fix text color for info messages --- .../com/intellij/notification/impl/IdeNotificationArea.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/notification/impl/IdeNotificationArea.java b/platform/platform-impl/src/com/intellij/notification/impl/IdeNotificationArea.java index dab775268261..9c1e6821fdf5 100644 --- a/platform/platform-impl/src/com/intellij/notification/impl/IdeNotificationArea.java +++ b/platform/platform-impl/src/com/intellij/notification/impl/IdeNotificationArea.java @@ -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;