From 60cf27f6f120d21469141d82b3b967eb72fae6b5 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 6 Feb 2012 15:22:25 +0100 Subject: [PATCH] unread notifications number closer to the icon --- .../com/intellij/notification/impl/IdeNotificationArea.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ae7d7140ab17..99dfd4cea7e8 100644 --- a/platform/platform-impl/src/com/intellij/notification/impl/IdeNotificationArea.java +++ b/platform/platform-impl/src/com/intellij/notification/impl/IdeNotificationArea.java @@ -170,7 +170,7 @@ public class IdeNotificationArea extends JLabel implements CustomStatusBarWidget public TextIcon(IdeNotificationArea component, String str) { myStr = str; myComponent = component; - myWidth = myComponent.getFontMetrics(calcFont()).stringWidth(myStr) + 2; + myWidth = myComponent.getFontMetrics(calcFont()).stringWidth(myStr) + 5; } @Override @@ -181,7 +181,7 @@ public class IdeNotificationArea extends JLabel implements CustomStatusBarWidget y += getIconHeight() - g.getFontMetrics().getDescent(); g.setColor(Color.BLACK); - g.drawString(myStr, x + 1, y); + g.drawString(myStr, x, y); g.setFont(originalFont); g.setColor(originalColor);