| Summary: | [hovering] Javadoc view and Javadoc hovers not readable using Ubuntu 10.10 (white-on-black tooltips) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Lars Vogel <Lars.Vogel> | ||||
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> | ||||
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | chris.bainbridge, daniel_megert, deepakazad, emrecio, georgevt, jakubkotowski, kkazmierczyk+eclipse, Lars.Vogel, markus.kell.r, remy.suen, sifedeut, sverre.moe, thatnitind | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Lars Vogel
Using Ecipse 3.7 Looks like this can be changed in Ubuntu: http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity I think it would be nice if Eclipse uses some defaults, e.g. f5f5b5 for the background color. I also could not find any settings for the font color in the Javadoc view. Is this available? (In reply to comment #2) > Looks like this can be changed in Ubuntu: > http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity > > I think it would be nice if Eclipse uses some defaults, e.g. f5f5b5 for the > background color. Eclipse uses OS LAF whenever possible. If your OS settings are stupid, then you need to change it there, e.g. if your OS font is 1000 pixel, then Eclipse won't fight against that either. > I also could not find any settings for the font color in the Javadoc view. Is > this available? No, only the background can be adjusted to "fix" bad OS setup. Thanks Dani. I don't think the settings of Ubuntu are "stupid" (for other applications then Eclipse) but I think your point is valid that this should be handled by the OS. The hover colors are up to the OS and need to be adjusted there. But the Javadoc view indeed looks problematic. JavadocView#getJavadocHtml(..) sets an explicit background color (by default the info bg color) but doesn't set an fg color. Out of the box, it's therefore unreadable with a dark info bg color. I guess we also need to tweak the default "Javadoc view background" color, similar to bug 313943. @Markus: Thanks, that will be helpful. Sorry, that was a misconception on my part. I freshly set up an Ubuntu box, saw the black Javadoc view, and remembered this bug report. A quick look at the source seemed to confirm that we only set the bg color of the Javadoc view. But on closer look, everything is alright (unless we want to fight the OS, which we don't). JavadocView#getJavadocHtml(..) doesn't set the text color, but that doesn't mean it's black -- we set the info foreground color somewhere else. The Javadoc view in my case and in the attached screenshot was mostly black because the item at the caret location just doesn't have any Javadoc. Closing again. *** Bug 378394 has been marked as a duplicate of this bug. *** Hello bug #378394 has been marked as a duplicate of this bug. Can someone tell me whether that is the case? Javadoc tooltips work okay for me. What does not work is the "class explorer" tooltip in the debugger. I have included example code to reproduce in bug #378394. Run it in the debugger, then hover over the class variable. The pop up is black on black. Is this actually the same bug/cause or not? Example jpg: https://bugs.eclipse.org/bugs/attachment.cgi?id=215015 I do not know how eclipse creates these internally, whether it uses the same tooltip as for javadoc popups, but like I said, javadoc tooltips are ok (white on black), it is just the debugger class explorer tooltips that appear black on black. Other tooltips in the debugger are fine. (In reply to comment #10) > Example jpg: https://bugs.eclipse.org/bugs/attachment.cgi?id=215015 > > I do not know how eclipse creates these internally, whether it uses the same > tooltip as for javadoc popups, but like I said, javadoc tooltips are ok (white > on black), it is just the debugger class explorer tooltips that appear black on > black. Other tooltips in the debugger are fine. It's the same problem in the sense that it uses the OS hover background which is black in your case. On the other hand, the Debug value hover shows a tree widget, which I assume uses the foreground color black on your system. Bug 329720 is closer to your bug, so I marked it as duplicate of said. *** Bug 391886 has been marked as a duplicate of this bug. *** *** Bug 393409 has been marked as a duplicate of this bug. *** *** Bug 393621 has been marked as a duplicate of this bug. *** If you are not going to fix a usability problem that lot of people are running into, then at least provide work-around steps that people who are not Linux or Eclipse internals experts. For example, where in the Eclipse preferences are the Javadoc color settings? How does one change the OS hover background for Fedora and Ubuntu? (In reply to comment #15) > If you are not going to fix a usability problem that lot of people are > running into, then at least provide work-around steps that people who are > not Linux or Eclipse internals experts. For example, where in the Eclipse > preferences are the Javadoc color settings? How does one change the OS hover > background for Fedora and Ubuntu? Essentially you need to change the tooltip color in your OS. (You should be able to Google for answers for your specific OS) A couple of links I found for you.. http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity http://wiki.eclipse.org/IRC_FAQ#Black_background_color_for_tooltips_on_Linux.2FUbuntu.2FGTK You can workaround it by using a gtk rc file which contains tooltip settings:
style "gnome-color-chooser-tooltips"
{
bg[NORMAL] = "#FFFFAF"
fg[NORMAL] = "#000000"
}
widget "gtk-tooltip*" style "gnome-color-chooser-tooltips"
To start eclipse: GTK2_RC_FILES=~/gtkrc-eclipse eclipse
You can add other stuff to your gtkrc to make eclipse look better, see for example https://help.ubuntu.com/community/EclipseIDE "Using a custom theme to make eclipse look better" and https://www.davidandrzejewski.com/2012/08/03/make-eclipse-less-ugly-in-linux-mint/ "Make Eclipse Less Ugly in Linux Mint 13 with MATE"
Is there any fix for this. I am using fedora, and I can't see the JavaDoc view. All solutions point to Ubuntu which is gnome based, but I am running KDE. (In reply to Dani Megert from comment #3) > (In reply to comment #2) > > Looks like this can be changed in Ubuntu: > > http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity > > > > I think it would be nice if Eclipse uses some defaults, e.g. f5f5b5 for the > > background color. > Eclipse uses OS LAF whenever possible. If your OS settings are stupid, then > you need to change it there, e.g. if your OS font is 1000 pixel, then > Eclipse won't fight against that either. > > > > I also could not find any settings for the font color in the Javadoc view. Is > > this available? > No, only the background can be adjusted to "fix" bad OS setup. Couldn't there be an override? If there's an override for background color, why not an override for foreground color? This is very frustrating, and difficult to see. Further, I wouldn't want to change /all/ the tooltips across applications, or even in KDE Apps. Is there a work around for this bug? I agree with Em Recio. It would make a lot of sense to be able to set both Javadoc view background and Javadoc display font color. It is still a problem even now in Ubuntu 14.04 |