@@ -73,6 +73,10 @@ abstract class ImportPanel extends JPanel {
73
73
ImportPanel (final File latestRelease , final File recentlyUsed , File userdirsRoot ) {
74
74
super (new GridBagLayout ());
75
75
76
+ Color disabledText = UIManager .getLookAndFeel ().getID ().equals ("GTK" ) ? // NOI18N
77
+ UIManager .getColor ("Label.disabledShadow" ) : // NOI18N
78
+ UIManager .getColor ("Label.disabledForeground" ); // NOI18N
79
+
76
80
GridBagConstraints c ;
77
81
78
82
c = new GridBagConstraints ();
@@ -107,7 +111,7 @@ protected void fireItemStateChanged(ItemEvent event) {
107
111
}
108
112
}
109
113
};
110
- latest .setText (getHtmlText (latest , "<nobr>" + latestRelease .getName () + " <span style=\" color:" + getColorText (UIManager . getColor ( "Label.disabledForeground" ) ) + ";\" >" + // NOI18N
114
+ latest .setText (getHtmlText (latest , "<nobr>" + latestRelease .getName () + " <span style=\" color:" + getColorText (disabledText ) + ";\" >" + // NOI18N
111
115
NbBundle .getMessage (ImportPanel .class , "ImportPanel_OptionLatestRelease" ) + "</span>" + "</nobr>" )); // NOI18N
112
116
latest .putClientProperty (KEY_FOLDER , latestRelease );
113
117
latest .setSelected (true );
@@ -130,7 +134,7 @@ protected void fireItemStateChanged(ItemEvent event) {
130
134
}
131
135
}
132
136
};
133
- recent .setText (getHtmlText (recent , "<nobr>" + recentlyUsed .getName () + " <span style=\" color:" + getColorText (UIManager . getColor ( "Label.disabledForeground" ) ) + ";\" >" + // NOI18N
137
+ recent .setText (getHtmlText (recent , "<nobr>" + recentlyUsed .getName () + " <span style=\" color:" + getColorText (disabledText ) + ";\" >" + // NOI18N
134
138
NbBundle .getMessage (ImportPanel .class , "ImportPanel_OptionRecentlyUsed" ) + "</span>" + "</nobr>" )); // NOI18N
135
139
recent .setToolTipText (recentlyUsed .getAbsolutePath ());
136
140
recent .putClientProperty (KEY_FOLDER , recentlyUsed );
0 commit comments