mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix text color for info messages
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user