Eclipse javadoc background color black

My Eclipse javadoc view has a black background that makes it look awful and partially unreadable (e.g. links are dark blue on black). Even worse, the javadoc popup also has a black background. I can not find the appropriate setting.

Sumit Singh's answer showed me how to change the background for a javadoc view. However, I still see no way to change the foreground. Even worse, the background color of the javadoc popup has not changed.

I do not think that this is caused by the plugin, as it happens with a fresh installation. This happens on Ubuntu 10.4. In Windows, colors also cannot be changed, but there is a penalty.

+46
java eclipse background-color
Apr 30 2018-12-12T00:
source share
11 answers

You need to change the color of the β€œTooltip” in Ubuntu at the OS level.

+23
May 01 '12 at 11:51
source share
Window > Preferences > General > Appearance > Colors And Fonts > Java > Javadoc View Background 

enter image description here

+34
Apr 30 '12 at 12:14
source share

None of the answers here worked for me (I have Eclipse Mars and Ubuntu 14.04). I had to edit /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css . I changed tooltip_bg_color to #f5f5bf# and tooltip_fg_color to #000000 . After restarting eclipse, the change takes effect.

+17
Sep 08 '15 at 15:31
source share

As a KDE user, you must change the background color of the tooltip using systemssttings .
Switch to

  Application Apperearence -> Colors -> Colors 

and adjust the colors of Tooltip Background and Tooltip Text .

+8
Sep 12 '13 at 10:11
source share

In ubuntu 12.10 (quantal), you can use the following two commands:

 #foreground white => black sudo sed -is/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc #background black => yellow sudo sed -is/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc 

(Thanks to the other answers and these that helped me figure this out)

+6
Feb 09 '13 at 0:44
source share

Install GNOME Color Picker on Ubuntu (also working on Xubuntu)

There you can set tooltip colors under the Specific tab

+6
Nov 01 '13 at 14:25
source share

Had the same issue with Neon on Ubuntu 16.04 Mate.

To fix this, I created a small custom GTK3 CSS settings file. It is saved as you HOMEDIR / .config / gtk-3.0 / gtk.css

In my case, I compressed the bit interval, the specified font by default, and also set the appearance for pop-ups:

 ##################### * { padding: 1px; font: Liberation Mono 12; } GtkToolbar { padding: 2px; } GtkMenuBar { padding: 2px; } GtkMenuItem { padding: 2px 6px; } .tooltip { background-color: #CAE1FF; color: #EEEEEE; text-shadow: none; } ######################### 
+3
Nov 30 '16 at 1:10
source share

Please note that this issue has been resolved in Eclipse since November 8, 2016. To fix this, download one of the latest integration versions: http://download.eclipse.org/eclipse/downloads/
(There is no patch in maintenance builds at the time of writing 2016-11Nov-09Wed).

I wrote a patch that introduced a new preference in Eclipse "Background / text" under general -> Appearance -> Colors and fonts. This preference generates the correct color in Linux / Gtk (white background, black text).
See: Error 505738. Define the color of the information cover that JDT, CDT or others can use. https://bugs.eclipse.org/bugs/show_bug.cgi?id=505738

Subsequently, I made Javadoc colors inherit its color from this preference. Cm:
Error 501742 - By default, Javadoc text and background color should use colors compatible with the background / foreground of the Java editor. https://bugs.eclipse.org/bugs/show_bug.cgi?id=501742

As an added bonus, it also works on Dark Theme:
Error 505851 - [Dark Theme] HOVER_ color style for the dark theme https://bugs.eclipse.org/bugs/show_bug.cgi?id=505851

+2
Nov 09 '16 at 17:26
source share

Also try this sudo apt-get install libwebkitgtk-1.0-0 after I installed lib, javadoc looks much better

After installing the new Eclipse, you may notice that the hover that shows the javadoc comments, while viewing the Javadoc displays the javadoc comments as plain text. Eclipse simply ignores all @link and @see annotations. Well, actually this is not a problem of the look itself. The problem in this Eclipse browser by default is not working from a window in Ubuntu 12.04. To do this, you need to install the libwebkitgtk-1.0-0 package. Just enter the terminal:

source: http://ubuntu-user-tricks.blogspot.com/2012/09/3-things-to-do-after-installing-eclipse.html

0
Sep 06 '13 at 1:33
source share

I think the answer here is to have the correct tooltip (at least for people who use ubuntu and want to have a good hint tooltip) with html elements like links that work, install libwebkitgtk as it is used by eclipse to display javadoc, It is not pre-installed e.g. Ubuntu does not come with an eclipse .. use:

 sudo apt-get install libwebkitgtk-1.0-0 

and restart eclipse to have attractive tooltips.

0
Feb 27 '15 at 15:18
source share

You can change the color in
Windows-> Settings-> General-> Appearance .

-one
Apr 30 '12 at 12:11
source share



All Articles