diff -r 6f3c4219e6e6 uihandler/src/org/netbeans/modules/uihandler/ConnectionErrorDlg.java
--- a/uihandler/src/org/netbeans/modules/uihandler/ConnectionErrorDlg.java Sat Aug 02 14:40:01 2014 -0500
+++ b/uihandler/src/org/netbeans/modules/uihandler/ConnectionErrorDlg.java Sat Aug 02 14:55:52 2014 -0500
@@ -41,6 +41,7 @@
*/
package org.netbeans.modules.uihandler;
+import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
@@ -206,8 +207,8 @@
break;
case LINK:
// use lighter blue for dark themes
- String linkColor = UIManager.getBoolean("nb.dark.theme") ? "#A4A4FF" : "#0000FF";
- c = new JLabel(""+segment.text+""); // NOI18N
+ Color htmlLinkForeground = UIManager.getColor("nb.html.link.foreground") == null ? Color.BLUE : UIManager.getColor("nb.html.link.foreground");
+ c = new JLabel(""+segment.text+""); // NOI18N
preferredSize = c.getPreferredSize();
c.setMinimumSize(preferredSize);
c.setMaximumSize(preferredSize);
@@ -239,6 +240,17 @@
FIELD, // A non-editable field with a text, which is possible to copy
}
+ private 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
+ }
+
static final class Segment {
final SegmentKind kind;