Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Black tooltips on dark background(Eclipse Mars, Ubuntu 14.04, Gnome)
icon8.gif  Black tooltips on dark background [message #1703605] Mon, 03 August 2015 14:53 Go to next message
Mickey Mouse is currently offline Mickey MouseFriend
Messages: 26
Registered: July 2012
Junior Member
Hello,
I upgraded to Eclipse Mars from Luna. In CDT, when pressing CTRL+O to display the list of the functions in the current source file, the entries are black on a dark grey background, making quite hard to read them.
Luna also had the same issue, and I was able to solve it setting the tooltip color through the GNOME Color Chooser tool, while in Mars this solution seems ineffective.

Does anybody else experienced this issue? Any solution?

Mickey Mouse
Re: Black tooltips on dark background [message #1710172 is a reply to message #1703605] Mon, 05 October 2015 07:57 Go to previous messageGo to next message
Gonzalo Bahut is currently offline Gonzalo BahutFriend
Messages: 2
Registered: October 2015
Junior Member
Same problem here.

After the upgrade to Eclipse Mars under Ubuntu 12.04.3, tooltips are unreadable.

The workarounds described in other threads:
* Using the gnome-color-chooser
* editing the /usr/share/themes/Ambiance/gtk-2.0/gtkrc file and changing the tooltip_fg_color and tooltip_bg_color values

are of no use.

Help is very much appreciated.

Re: Black tooltips on dark background [message #1710240 is a reply to message #1710172] Mon, 05 October 2015 13:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/05/2015 04:41 AM, Gonzalo Bahut wrote:
> Same problem here.
>
> After the upgrade to Eclipse Mars under Ubuntu 12.04.3, tooltips are
> unreadable.
>
> The workarounds described in other threads:
> * Using the gnome-color-chooser * editing the
> /usr/share/themes/Ambiance/gtk-2.0/gtkrc file and changing the
> tooltip_fg_color and tooltip_bg_color values
>
> are of no use.
>
> Help is very much appreciated.
>
>

Help -> Eclipse Market Place
Eclipse Color Theme
Re: Black tooltips on dark background [message #1710338 is a reply to message #1710240] Tue, 06 October 2015 07:29 Go to previous messageGo to next message
Gonzalo Bahut is currently offline Gonzalo BahutFriend
Messages: 2
Registered: October 2015
Junior Member
Hi Russell,

Thank you for your response.

Although the list of themes looks nice, I can't (or didn't find) a way to change the tooltips background/foreground colors.
With previous versions of Eclipse running under linux, this was something configurable via unity gtkrc config file or gnome-color-chooser. It is puzzling why both methods have no effect with Mars tooltips.

Gonzalo.
Re: Black tooltips on dark background [message #1710408 is a reply to message #1710338] Tue, 06 October 2015 13:13 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/06/2015 01:29 AM, Gonzalo Bahut wrote:
> Hi Russell,
> Thank you for your response.
>
> Although the list of themes looks nice, I can't (or didn't find) a way
> to change the tooltips background/foreground colors.
> With previous versions of Eclipse running under linux, this was
> something configurable via unity gtkrc config file or
> gnome-color-chooser. It is puzzling why both methods have no effect
> with Mars tooltips.
>
> Gonzalo.

Years ago, before finding the Eclipse Color Scheme, I imposed a theme
under Ubuntu Lucid (then Maverick before fleeing to Mint) named Clear
Looks. If you can find that in some modern form for your distro, it
should solve the problem.

Best I can suggest, sorry.
Re: Black tooltips on dark background [message #1724123 is a reply to message #1710408] Sun, 21 February 2016 13:44 Go to previous messageGo to next message
Kiran Mohan is currently offline Kiran MohanFriend
Messages: 3
Registered: September 2015
Junior Member
I found a way to fix Eclipse tooltip color without falling back to GTK2 and without affecting any other application.

The fix is captured in a script and it can be accessed here.

https://github.com/KiranMohan/eclipse-gtk3-ubuntu

The script makes a copy of the Ambiance theme, modifies the tooltip color and then writes a launcher for eclipse with this new Theme.
Re: Black tooltips on dark background [message #1750881 is a reply to message #1703605] Sat, 31 December 2016 00:34 Go to previous messageGo to next message
John Gehring is currently offline John GehringFriend
Messages: 1
Registered: December 2016
Junior Member
I'm using CentOS 7 and recently installed Eclipse Mars and noticed the same thing. I took the steps below to fix the problem.

From your desktop (not the Eclipse application):

- Menu | System Settings | Application Appearance | Colors
- Select Colors tab
- Select Tooltip background
- Choose desired background color

You probably need to restart Eclipse to see the change.
Re: Black tooltips on dark background [message #1753786 is a reply to message #1750881] Fri, 10 February 2017 08:30 Go to previous messageGo to next message
Fabio Lo Brutto is currently offline Fabio Lo BruttoFriend
Messages: 1
Registered: February 2017
Junior Member
In Fedora 25 using eclipse 4.6.2 gtk3 I solved it with a very strange way.
I use Arc theme and basically if I rename it to ANY name >= 6 characters the tooltip of the javadoc change from #00000 to #5c616c which is one of Arc basic colors.

I still haven't tried with other themes, but still strange...
Re: Black tooltips on dark background [message #1759687 is a reply to message #1753786] Sat, 15 April 2017 07:44 Go to previous messageGo to next message
Philip Lembo is currently offline Philip LemboFriend
Messages: 1
Registered: April 2017
Junior Member
I tried all of the above, as well as this last suggestion, on Fedora 25, without effecting any change.

Also installed separate copy of the Eclipse tarball to eliminate re-packaging by the Fedora project as a factor.

Basically it appears that the Gnome Shell project has figured out a way to hardcode their white on black color scheme for both GTK3 and GTK2 apps. Clever. Am going to try using a different desktop evironment (MATE) next and see if that provides a solution.
Re: Black tooltips on dark background [message #1768640 is a reply to message #1759687] Thu, 20 July 2017 20:38 Go to previous message
Wilfried Philips is currently offline Wilfried PhilipsFriend
Messages: 1
Registered: July 2009
Junior Member
This problem also occurs for the combination
fedora26 + eclipse neon + mate

Here is some information and a workaround:

First a summary of the situation:
-The problem being solved is the black background in the tooltips
which appear when you hover over a variable while using the C++ debugger.
Other popups seem fine.

-There appear to be no settings in eclipse itself with which this can be fixed (or
I could not find any)

-It is not possible to fix this using configuration options in mate.

-The old workaround of setting SWT_GTK3=0 does not work: eclipse hangs forever
at startup in fedora26 although it did work with the previous eclipse on fedora24

-The "simplest" correct solution SHOULD BE to open "system - preferences - appearance.
Then select the desired theme and press customize and "save as". If the name you
select for the customized theme is "foreclipse", a directory will be created called
~/.themes/foreclipse/. In that directory you can edit theme_bg_color in index.theme.
HOWEVER THIS DOES NOT WORK. It is also horrible of course that there is no easier way
to change a simple colour.

The reason it does not work is that eclipse (or perhaps GTK3) does not respect the
value of variables like toolip_bg_color, at least not in the case of tooltips. Ir suspect that something in eclipse or gtk3 reads the theme files, but interprets them incorrectly.


The workaround:

1. Select a theme you like. For me TraditionalOK is a theme with reasoanble defaults
(more or less the opposite of the tablet-themes gtk3 wants everyone to use(

2. In /usr/share/themes/TraditionalOk/gtk-3.0/ (or the equivalent for your theme)
find the file gtk-widgets.css

3. Locate the section like
tooltip,
tooltip.background,
.tooltip,
.tooltip.background {
padding: 4px;
border-style: solid;
border-width: 1px;
border-color: @theme_tooltip_border_color;
border-radius: 0px;
background-color: ;
color: @theme_tooltip_fg_color;
text-shadow: none;
}

and replace @theme_tooltip_fg_color and @theme_tooltip_border_color;
directly with the colours you want. For example:
tooltip,
tooltip.background,
.tooltip,
.tooltip.background {
padding: 4px;
border-style: solid;
border-width: 1px;
border-color: @theme_tooltip_border_color;
border-radius: 0px;
background-color: #f5f5b5;
color: #000000;
text-shadow: none;
}

Note that the problem is with not recognizing the @... defines.
Even entering the definitions such as
@define-color my_bg_color #f5f5b5;
@define-color my_fg_color #000000;
immediately above the css block does not help.


Save the resulting file. This needs to be done as root. There is probably
also a way to save it as a use theme (but don't ask me how)

4. Switch to another theme than the one edited (e.g.. from TraditionalOk to
Delorian) and then back. This is to ensure that the edited theme is not cached.
Perhaps this step is not needed.

5. Restart eclipse, because eclipse seems to read the colours at startup and then
cache them.

This problem has been a true nightmare and has now gone on for many years
At one time, it was so bad (black on black) that eclipse was impossible to use. Then
I spent hours editing config files without success. Finally, I discovered the SWT_GK3
trick. And now this...

Previous Topic:How to use the Eclipse Debugger?
Next Topic:Eclipse Mars stopped opening
Goto Forum:
  


Current Time: Sat Feb 29 03:52:34 GMT 2020

Powered by FUDForum. Page generated in 0.04145 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top