Change variable hover window background while debugging on Eclipse - eclipse

I've been changing thousands of different preferences on Eclipse and I still cannot change hover window background while debugging on Eclipse.
Here is a photo of the black background I want to change the color to: http://img208.imageshack.us/img208/7126/blackbackgrounds.png
Thanks in advance.

In Fedora 18 using KDE as desktop you have by default a oxygen-gtk for GTK applications.
You can also change the setting of this color under the following file:
/usr/share/themes/oxygen-gtk/gtk-2.0/kdeglobals
[Colors:Tooltip]
BackgroundNormal=
Hope this helps

Windows->Preferences.
Java->Editor->Appearance color options->Source hover background. I have check-box System default set and it is working fine for me.

For Fedora18 KDE, go to System Settings -> Application Appearance -> Color
Select the tab "Colors" and edit the entry "Tooltip Background"

If you're using gnome, change the system wide tooltip background color:
System > Preferences > Appearance
Theme > Customize…
Colors > Tooltips
(source)

Related

Dark mode in Eclipse changes the color of the drop down menu text making it unreadable. How do I fix this?

I'm new to using Eclipse and programming softwares in general, so more thorough explanations would be appreciated!
How do I change the text back to a dark color to read it, and is it possible to make the background grey and keep the text white?
Depending on the Eclipse version you are using, Dark theme may differ:
Under Eclipse Bar Menu Window, select Preferences
From the Preferences Window, Select General -> Appearance
From the drop down Theme, select one of the available "Dark" themes
You could also click here on the Restore Default button to revert all changes you have tried then Click on Apply button
Must restart Eclipse to be effective.
Following is the Default Dark Theme when using Old Eclipse 2019-09
Following is the Default Dark Theme when using New Eclipse 2020-12
I had the same issue of having light background and light text in the menu dropdowns.
Fixed by cycling the Windows theme from custom to "Windows" then back to a dark these. This was done in Personalization -> Themes in Windows 10. Now, the dropdowns are dark with legible text.

How to change the color of black focus box in eclipse?

I am working with Eclipse. When clicking on a method, it usually asks us to p press F2 on to view the method details. However the text is black in color and so is the background. I have to end up selecting all of the contents to view them each time. Is there a way to make the background plain white instead.
You can change the focus window background color from
Window -> Preferences -> C/C++ -> Editor -> Source Hover Background
I found that the background color of that popup cannot be configured via the eclipse preference as it uses the operation system 's ToolTip 's background color .
For the widows OS , you can refer this to change the Tool Tip background color
Found another solution for this Go to Eclipse -> Window -> Preferences -> General->Appearance ->Colors and Fonts
Change the Javadoc Background Color and the Javadoc text Color as per your requirements , no need to change both though
Please find the attached screenshots for the same
ScreenShot1 : Eclipse Settings
ScreenShot2 : Impact of the Eclipse Settings Before and After

Eclipse in Ubuntu: hover background color property, where?

I changed the background color that is visible when hovering code (to black). For example when you hover over a method, you see its signature in a box; I mean the background color of that box.
I want to rechange it but I don't find the property anywhere. Do you know which property it is?
(It should be a global property, because other boxes use the same background color, even the heap status box).
It might be too late. But I think you need to change this from your OS.
System->Preference->Appearance->Customise->Colors->Tooltips
solved my problem.
I am using Ubuntu 10.04.
Preferences -> Java -> Editor -> "Source hover background"?
Edit: OK, do you mean the tooltip type popup window? The background color of the View to show Javadoc can be set in Preferences "General -> Appearance -> Colrs and Fonts -> Javadoc view background" but if you mean a tooltip type popup then you might have to set this in your OS.
In KDE 11.10, System Settings->Application Appearance->Colors(on left)->Colors(tab)->Color Set->Tooltop->Normal Background. Mine was set to black, resulting in black on black in Eclipse.
If you want to change the colour of the hover over for a method that indicates you can click through to its declaration:
Preferences > General > Editors > Text Editors
There is a list of options in 'Appearance Color Options' in the right panel. Select the 'Hyperlink' option and change its colour.
In ubuntu (software center) find and Install GNOME Color Chooser application and set Tool Tip Background color (yellow). Set foreground color to black if you find color viewing problem on other tooltips.
Just go to:
Preferences -> Appearance
and choose a Theme other than GTK
There is no setting for this within Eclipse that works for all cases. You will have to set this on an OS level as recommended by several other answers and it will vary depending on your OS and desktop environment.
However, on some versions of Ubuntu (specifically 14.04), none of the methods mentioned in the answers so far work correctly.
In that case, refer to this this answer on AskUbuntu, which lists the files that need to be edited in order to change the tooltip foreground/background colors to black and white OS wide for the built-in themes. In addition to those, I had to edit one more file (gtk-main.css).
The files that need to be edited are:
/usr/share/themes/Ambiance/gtk-3.0/settings.ini
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-3.0/gtk-main.css
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
Set all instances of tooltip bg colors to #ffffff (white) and tooltip bg colors to #000000 or any other color combination you like. If you use the Radiance (light) theme instead of the default Ambiance theme edit the files in the corresponding Radiance folder.
For me, no proposed solution did work.
I ended up adding the following to eclipse.ini:
--launcher.GTK_version
2
Preferences -> General -> Appearance -> Colors and Fonts -> Java -> Colored labels (or anything in here)

How to change the way eclipse showing suggestion?

As you can see in the picture, I don't want the blue color suggestions. How do I change that?
Also I don't want that black color background.
You can use this guide to change the tooltip colours just for Eclipse, rather than changing them for the whole desktop environment.
Ach. Unfortunately that's pretty difficult. The background color of that pop-up is set by the operating system. It looks like you're running on Ubuntu with a darker theme. You have two choices:
Choose a different theme.
Live with the semi-illegible colors. If you click on the error marker on the left, it'll show up with a more tollerable black-on-white window.
Select "Change Desktop Background"
Select "Theme" from the tabs.
Click
"Customize"
Select "Colors" from the
tabs.
Change the "Background" of the
"Tooltips" as you like .
The change
will be visible at eclipse.
(On basis
of Ubuntu 10.10)
eclipse Preferences
-> General
-> Appereance
-> "Colors and Fonts"
-> Java
-> "Javadoc background"
go to sourcehover foreground and change the color
to windows
Click on Editor tab
you will see source hover background, parameter hint foreground change the color

Eclipse, change popup text background color when hovering the mouse on a keyword

Ubuntu 10.04.1 new theme has by default all windows background colors set to black.
I don't want to change that.
In Eclipse, the interface didn't change much due to 10.04.1 - except for one annoying thing:
when the mouse hovers over a keyword - a variable for instance - the type (...) of that keyword is displayed in a small pop-up window.
The problem since 10.04.1, is that the text is in black color while the background is also black.
Is there a way to change that background color in Eclipse?
Update Dec. 2018: as mentioned in howlger's answer, Eclipse Oxygen 4.7 (June 2017) does now include a way to configure the background color in popups:
See "Colors in interactive popups"
Interactive popups like JDT's Quick Outline don't use the platform's tooltip colors any more, since those were sometimes hard to read.
Old style:
New style:
Go to Window > Preferences: General > Appearance > Colors and Fonts
and change the Basic > Information background color.
In that same Colors and Fonts section, you will find:
Code assist
Basic > Content Assist background color -> change
Basic > Content Assist foreground color -> change
java doc
Java > Javadoc background ( overrides default: information background color) -> change
Original answer (2010-2012)
All the various popup background color are managed in Preferences > Java > Editor (like the one for the completion list popup in bug 133615).
Other background colors are in General > Appearance > Colors and Font (type background in the filter field).
But the type popup seems to stick to a system color, which is why you see a black background.
If this is truly the case, it is worth reporting as a bug.
The OP confirms it is not the case, actually:
It was in Preferences > C/C++ > Editor > Source hover background, and had to untick the "System default" (because the shown color was light-gray!)
On Ubuntu 12.04+, the post "How to change tooltip background color in Unity?" also mentions:
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
The recent post (December 2012) "Eclipse Papercut #10 – Eclipse on Ubuntu: Fixing the black background color in hover" (from Lars Vogel) confirms:
The relevant properties are tooltip_fg_color and tooltip_bg_color.
Just search for these values, the position changes sometimes between releases, currently they are at the very top of the file.
The following 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 starting eclipse to get it working.
If you use KDE (Kubuntu) you can fix that by changing the Tooltip Background color in KDE System Settings -> Application Appearance -> Colors -> Colors, and change the Tooltip Background.
I've adopted a slightly different solution;
First create a new script, eclipse.sh, that starts eclipse, mine look 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), mine look like this (it have some other changes as well 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"
window -> preferences -> general -> Appearance -> Color&Fonts -> Java (necessary language, example java) -> Javadoc text color (or Javadoc background)
Since Eclipse Oxygen (4.7) this color can be configured in Window > Preferences: General > Appearance > Colors and Fonts by changing the Basic > Information background color.