diff -r 570d38db7845 -r 441dfac540de notifications/src/org/netbeans/modules/notifications/NotificationImpl.java --- a/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java Fri Aug 01 13:19:25 2014 +0200 +++ b/notifications/src/org/netbeans/modules/notifications/NotificationImpl.java Sat Aug 02 14:19:35 2014 -0500 @@ -60,6 +60,7 @@ import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; +import javax.swing.UIManager; import org.netbeans.modules.notifications.center.NotificationCenterManager; import org.openide.awt.Notification; import org.openide.awt.NotificationDisplayer.Category; @@ -238,8 +239,11 @@ } private JComponent createDetails(String text, ActionListener action) { + + Color c = UIManager.getColor("nb.html.link.foreground") == null ? Color.BLUE : UIManager.getColor("nb.html.link.foreground"); + try { - text = (action == null ? "" : "") + XMLUtil.toElementContent(text); //NOI18N + text = (action == null ? "" : "") + XMLUtil.toElementContent(text); //NOI18N } catch (CharConversionException ex) { throw new IllegalArgumentException(ex); } @@ -281,4 +285,13 @@ private JComponent createDate(Calendar dateCreated) { return new JLabel(Utils.getFullFormatedDate(dateCreated)); } + + private static String toRgbText(int rgb) { + if (rgb > 0xFFFFFF) + rgb = 0xFFFFFF; + if (rgb < 0) + rgb = 0; + String str = "000000" + Integer.toHexString(rgb); //NOI18N + return "#" + str.substring(str.length() - 6); //NOI18N + } }