Eclipse, changing the background color of the pop-up text when you hover over the keyword

Ubuntu 10.04.1 new default theme, all background colors for windows are set to black.
I do not want to change this.

In Eclipse, the interface has not changed much due to 10.04.1 - with the exception of one annoying thing:
when the mouse hovers over a keyword - for example, a variable - the type (...) of this keyword is displayed in a small pop-up window.
The problem with 10.04.1 is that the text is black and the background is also black.

Is there a way to change this background color in Eclipse?

+50
eclipse
Aug 26 2018-10-10T00:
source share
4 answers

The entire color of the background image is controlled in Preferences > Java > Editor (for example, the one that appears on the completion list in error 133615 ). <w> Other background colors are in General > Appearance > Colors and Font (enter background in the filter field).

But the type popup looks like a system color, so you see a black background.
If this is true, it is worth reporting an error.




The OP confirms that this is not the case, in fact:

This was in Preferences > C/C++ > Editor > Source hover background , and he had to turn off "System Default" (since the color shown was light gray!)




In Ubuntu 12.04+, the message " How do I change the background color of a tooltip in Unity? " Is also mentioned:

 /usr/share/themes/Ambiance/gtk-2.0/gtkrc 

A recent publication (December 2012), " Eclipse Papercut # 10 - Eclipse on Ubuntu: hover black background color correction " (from Lars Vogel ) confirms:

The corresponding properties are tooltip_fg_color and tooltip_bg_color .
Just search for these values, sometimes they change between versions, they are currently at the very top of the file.

The next setting uses more reasonable colors.

 tooltip_fg_color:#000000 tooltip_bg_color:#f5f5c5 



pointhi adds in the comments :

I also had to set the environment variable SWT_GTK3=0 before running eclipse to make it work.

+75
Aug 26 '10 at 4:17
source share

If you use KDE (Kubuntu), you can fix this by changing the background color of the tooltip in the KDE system settings → Appearance → Colors → Colors and changing the background of the tooltip.

+10
Feb 15 '14 at 22:36
source share

I made a slightly different decision,

First create a new script, eclipse.sh that will run eclipse, my view looks like this:

 #!/bin/bash GTK2_RC_FILES=/usr/share/eclipse/gtkrc-2.0-eclipse /usr/share/eclipse/eclipse 

Then create the gtkrc file (/usr/share/eclipse/gtkrc-2.0-eclipse), my view looks like this (it has other changes to make better use of the screen):

 style "my-tooltips" { bg[NORMAL] = "#FFFFAF" fg[NORMAL] = "#000000" } widget "gtk-tooltip*" style "my-tooltips" style "gtkcompact" { font_name="Ubuntu Light 11" GtkButton::default_border={0,0,0,0} GtkButton::default_outside_border={0,0,0,0} GtkButtonBox::child_min_width=0 GtkButtonBox::child_min_heigth=0 GtkButtonBox::child_internal_pad_x=4 GtkButtonBox::child_internal_pad_y=4 GtkMenu::vertical-padding=1 GtkMenuBar::internal_padding=0 GtkMenuItem::horizontal_padding=4 GtkToolbar::internal-padding=1 GtkToolbar::space-size=1 GtkOptionMenu::indicator_size=0 GtkOptionMenu::indicator_spacing=0 GtkPaned::handle_size=4 GtkRange::trough_border=0 GtkRange::stepper_spacing=0 GtkScale::value_spacing=0 GtkScrolledWindow::scrollbar_spacing=0 GtkExpander::expander_size=10 GtkExpander::expander_spacing=0 GtkTreeView::vertical-separator=0 GtkTreeView::horizontal-separator=0 GtkTreeView::expander-size=10 GtkTreeView::fixed-height-mode=TRUE GtkWidget::focus_padding=0 GtkTreeView::vertical-separator = 0 } class "GtkWidget" style "gtkcompact" style "gtkcompactextra" { xthickness=0 ythickness=0 } class "GtkButton" style "gtkcompactextra" class "GtkToolbar" style "gtkcompactextra" class "GtkPaned" style "gtkcompactextra" class "GtkNotebook" style "gtkcompact" 
+6
Aug 20 '13 at 13:11
source share

window → preferences → general → Appearance → Color & Fonts → Java (required language, java example) → Javadoc text color (or background Javadoc)

+2
Sep 07 '17 at 13:04 on
source share



All Articles