Dark L&F and Notifications
"Revivius" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Neil;
> As Graeme stated earlier, this text is wrapped in an <a> tag. so
> shouldn't be impacted by the foreground colour at all should it? Not
> sure what difference that patch would make?
In fact text is wrapped in an <u> tag (please the attachment 1), and so
> Which approach to changing the kit stylesheet did you try? Have you
> tried Dark Nimbus?
I tried both:
Code:
"nb.laf.postinstall.callable", new Callable<Object>() { //NOI18N
@Override
public Object call() throws Exception {
HTMLEditorKit kit = new HTMLEditorKit();
StyleSheet styleSheet = kit.getStyleSheet();
styleSheet.addRule("u {color:#ff0000;}");
return null;
}
}
and
Code:
@Override
public void restored() {
HTMLEditorKit kit = new HTMLEditorKit();
StyleSheet styleSheet = kit.getStyleSheet();
styleSheet.addRule("u {color:#ff0000;}");
}
and color is still blue, please see attachment 2.
Well if there is no action provided to NotificationDisplayer.getDefault().notify(...); text is readable as it can be seen from attachment that a JLabel is returned in that case, please see attachment 3.
What is strange for me is that if you do this in a plain Swing application style sheey approach works, please see attachment 4.
Attachments:
http://forums.netbeans.org//files/3_370.png
http://forums.netbeans.org//files/2_755.png
http://forums.netbeans.org//files/1_515.png