Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368161 - [hovering] Javadoc view and Javadoc hovers not readable using Ubuntu 10.10 (white-on-black tooltips)
Summary: [hovering] Javadoc view and Javadoc hovers not readable using Ubuntu 10.10 (w...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 391886 393621 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-09 09:09 EST by Lars Vogel CLA
Modified: 2014-06-10 12:15 EDT (History)
13 users (show)

See Also:


Attachments
Screenshot (295.19 KB, image/png)
2012-01-09 09:09 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2012-01-09 09:09:57 EST
Created attachment 209204 [details]
Screenshot

This might be similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=313943 but I have this again on Ubuntu 11.10.

Please see attached screenshot.
Comment 1 Lars Vogel CLA 2012-01-09 09:14:51 EST
Using Ecipse 3.7
Comment 2 Lars Vogel CLA 2012-01-10 02:22:16 EST
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?
Comment 3 Dani Megert CLA 2012-01-10 02:44:31 EST
(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.
Comment 4 Lars Vogel CLA 2012-01-10 02:48:35 EST
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.
Comment 5 Markus Keller CLA 2012-02-21 04:41:24 EST
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.
Comment 6 Lars Vogel CLA 2012-02-21 04:49:14 EST
@Markus: Thanks, that will be helpful.
Comment 7 Markus Keller CLA 2012-02-21 20:16:24 EST
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.
Comment 8 Dani Megert CLA 2012-05-04 03:20:13 EDT
*** Bug 378394 has been marked as a duplicate of this bug. ***
Comment 9 Chris Bainbridge CLA 2012-05-04 03:50:33 EDT
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?
Comment 10 Chris Bainbridge CLA 2012-05-04 03:52:25 EDT
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.
Comment 11 Dani Megert CLA 2012-05-04 04:03:52 EDT
(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.
Comment 12 Dani Megert CLA 2012-10-16 06:16:57 EDT
*** Bug 391886 has been marked as a duplicate of this bug. ***
Comment 13 Nobody - feel free to take it CLA 2012-11-05 04:07:43 EST
*** Bug 393409 has been marked as a duplicate of this bug. ***
Comment 14 Dani Megert CLA 2012-11-06 04:18:37 EST
*** Bug 393621 has been marked as a duplicate of this bug. ***
Comment 15 George Van Treeck CLA 2012-11-06 11:52:55 EST
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?
Comment 16 Deepak Azad CLA 2012-11-06 14:13:32 EST
(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
Comment 17 Chris Bainbridge CLA 2012-11-06 14:44:28 EST
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"
Comment 18 Em Recio CLA 2014-05-09 14:33:57 EDT
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.
Comment 19 Em Recio CLA 2014-05-09 14:55:44 EDT
(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?
Comment 20 Jakub Kotowski CLA 2014-06-10 12:15:18 EDT
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