Dark L&F and Notifications
Peter Hansson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAC55jYOi-Niv3+0TWpX8uUqsRzVtzMwi-K933SF7owsYQ-Zxiw@mail.gmail.com> |
In my RCP application I'm working with a dark L&F. Seems so popular these days. The problem I have is with the standard Notifications, the little things in the lower right hand of the main frame that comes up as a balloon notification: The clickable text is just too hard (if not impossible) to read on a dark background because it is hardcoded to Color.BLUE. I'm thinking that all implementers of a dark'ish L&F must have come across this. The problem is with NotificationImpl in core.ui. If you look into the source you'll see that the clickable text isn't actually a link but is simply some underlined text (<html><u>) inside a JButton and then the implementation does : btn.setForeground(Color.blue); Ouch! So the color is hardcoded. How to solve ? Thanks Peter