← Back to team overview

desktop-packages team mailing list archive

[Bug 540332] Re: eclipse: tooltips unreadable

 

Launchpad has imported 42 comments from the remote bug at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309907.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-04-21T08:11:59+00:00 Zssun wrote:

Build Identifier: M20060629-1905  Version: 3.2.0

The tooltip displays a black bubble when using ToolTip dislay pop-up
description text on os linux Ubuntu 10.04 beta2


Reproducible: Always

Steps to Reproduce:
1.Copy a snippet about ToolTip from eclipse.org
2.Address is http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet225.java?view=co
3.Run the snippet in eclipse 3.2 M20060629-1905

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/12

------------------------------------------------------------------------
On 2010-04-21T13:09:42+00:00 Pinnamur wrote:

I don't think eclipse3.2 is supported anymore. Would it be possible for
you to verify the reported problem on the latest version (3.5 or 3.6) ?

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/13

------------------------------------------------------------------------
On 2010-04-22T03:11:55+00:00 Zssun wrote:

Hi Praveen:
  I tested the snippet again in new version of eclipse(Version: 3.5.2
Build id: 20100218-1602).I found the problem still exist. In addition,I found the tooltip works well when using other themes(except "Appearance") of Ubuntu. Seems, that the text color for tooltips defined in OS theme is not recognized by SWT(theme "Appearance" defines for tooltips a black background and white text -> if you change the background color to yellow, the tooltip in ToolTip will be yellow with black text color),I think it should be caused by ToopTip does not inherit the text color of the  Ambiance Theme.The text color is always "black", so if some theme(like "Ambiance", default of Ubuntu10.04) set the backcolor as black, we can not see text on tooltip any way.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/14

------------------------------------------------------------------------
On 2010-04-26T14:20:08+00:00 Bernhard Schussek wrote:

I can confirm this bug on Ubuntu Lucid Lynx with Eclipse 3.5.2
(M20100211-1343).

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/19

------------------------------------------------------------------------
On 2010-05-07T02:03:25+00:00 Hokamoto wrote:

Created attachment 167428
proposed patch

Please review this patch.

Thanks,
Hiro

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/23

------------------------------------------------------------------------
On 2010-05-11T15:20:16+00:00 Eclipse-felipe wrote:

Praveen, do you have Ubuntu 10.04 ?
Does the problem really happen there ?
does the fix work ?

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/29

------------------------------------------------------------------------
On 2010-05-11T15:29:45+00:00 Pinnamur wrote:

(In reply to comment #5)
> Praveen, do you have Ubuntu 10.04 ?
I do not have a Ubuntu 10.04 machine to reproduce the reported problem. However, I'm sure that this does not until Ubuntu9.10. I am trying to get the 10.04 installable, and will try to reproduce it after that.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/30

------------------------------------------------------------------------
On 2010-05-11T21:52:57+00:00 Hokamoto wrote:

Created attachment 168053
updated patch

Here is my updated proposed patch.

Thanks,
Hiro

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/31

------------------------------------------------------------------------
On 2010-05-11T22:09:00+00:00 Hokamoto wrote:

Created attachment 168056
Screenshot - Black bubble ToolTip on Snippet225

This is a screenshot which shows black bubble Tooltip displayed on
Snippet225.

OS: Ubuntu 10.04 LTS
GTK2: 2.20.0-0ubuntu4

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/32

------------------------------------------------------------------------
On 2010-05-12T12:51:49+00:00 Eclipse-felipe wrote:

silenio, do you have ubuntu 10.04 ?

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/34

------------------------------------------------------------------------
On 2010-05-12T22:41:38+00:00 Silenio-quarti wrote:

Yes, the patch is good. We should consider this for 3.6 RC2

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/35

------------------------------------------------------------------------
On 2010-05-13T13:01:39+00:00 Eclipse-felipe wrote:

Right, in ToolTip#createHandle() we set the background of the window to
COLOR_INFO_BACKGROUND, so it does make sense to set the foreground of
the PangoLayouts to COLOR_INFO_FOREGROUND.

But I don't think gtk_expose_event is the right place, the foreground
should be set in setText() and setMessage() where the layout was created
and initialized.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/36

------------------------------------------------------------------------
On 2010-05-13T16:23:17+00:00 Hokamoto wrote:

(In reply to comment #11)
> But I don't think gtk_expose_event is the right place, the foreground should be
> set in setText() and setMessage() where the layout was created and initialized.

I tried calling gtk_widget_modify_fg() with the text/message color in
setText() and setMessage(), but it rendered black text/message, so did
not work.

So, that's why Im usng gdk_gc_setforeground().
gdk_gc_set_foreground() needs a GdkGC. So I don't think we can call it in setText() and in setMessage(). But I think we can call display.getSystemColor() in setText() and in setMessage() at least.  
I will update the patch soon.

Thanks,
Hro

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/37

------------------------------------------------------------------------
On 2010-05-13T16:33:43+00:00 Hokamoto wrote:

Created attachment 168411
another patch

I modified a patch in comment #7 slightly. This patch calls
display.getSystemColor() in setMessage() and in setText() and remembers
it, and set it in gtk_expose_event().

Actually ExpandBar widget is doing the same as a patch in comment #7.
So, either this patch or the patch in comment #7 would be ok for me.

Thanks,
Hiro

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/38

------------------------------------------------------------------------
On 2010-05-13T17:02:28+00:00 Eclipse-felipe wrote:

I see, the patch is setting the color in the GC, that is fine.
I read it too fast and I thought the color was being set in the pangolayout.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/39

------------------------------------------------------------------------
On 2010-05-16T15:33:58+00:00 Daniel-megert wrote:

*** Bug 309334 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/40

------------------------------------------------------------------------
On 2010-05-16T15:34:09+00:00 Daniel-megert wrote:

*** Bug 312966 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/41

------------------------------------------------------------------------
On 2010-05-17T17:03:54+00:00 Eclipse-felipe wrote:

Please review the the patch in comment 7.

The info color background in ubuntu is black (and foreground is white).
Currently the code only sets the background of the tooltip to info background (==black), but it leaves the default foregorund set (also black).

I have the testcase set in SSQ's machine if you need a demo.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/42

------------------------------------------------------------------------
On 2010-05-17T18:04:22+00:00 Eclipse-felipe wrote:

Note: the emulated tooltip has the same problem (not setting the
foreground), but the problem will never be seeing because the platforms
using the emulated tooltip (motif/carbon/cocoa) hardcode the color for
info background and foreground(always black on yellow).

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/43

------------------------------------------------------------------------
On 2010-05-17T20:15:45+00:00 Eclipse-felipe wrote:

Fixed in HEAD > 20100517

Thank you for the patch

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/44

------------------------------------------------------------------------
On 2010-05-26T06:48:31+00:00 Pinnamur wrote:

*** Bug 314384 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/50

------------------------------------------------------------------------
On 2010-05-30T21:57:46+00:00 Michele Costantino Soccio wrote:

Just tried Eclipse 3.6RC2 on Ubuntu Lucid Lynx (64bits) and still having the problem using a new profile (deleted the .eclipse folder) and a new workspace.
I did not try any workaround in the past, so you could consider my install "clean".

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/54

------------------------------------------------------------------------
On 2010-05-31T07:46:56+00:00 Damien Lecan wrote:

Issue is not fixed for me too with Eclipse 3.6RC2 on Ubuntu 10.04.

.eclipse folder was deleted and I was using a fresh workspace.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/56

------------------------------------------------------------------------
On 2010-05-31T15:02:57+00:00 Bokowski wrote:

Michele, Damien, could you please attach screenshots so that it's clear
which tooltip you refer to? Thanks!

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/57

------------------------------------------------------------------------
On 2010-06-02T15:53:20+00:00 Damien Lecan wrote:

My comment wasn't true, it's working perfectly.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/58

------------------------------------------------------------------------
On 2010-06-04T18:50:44+00:00 Mdlepage wrote:

For me, the bug still exists in Eclipse 3.6 RC3 : following deletion of
the .eclipse folder and using an new workspace, in the C++ editor, the
popups that show up when hovering over any c++ object in the editor are
always black background and normal colored text (which often means black
text). I'm running Eclipse on Ubuntu 10.04 with the default 'Ambiance'
theme.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/59

------------------------------------------------------------------------
On 2010-06-04T18:51:42+00:00 Mdlepage wrote:

Created attachment 171148
Pop-up tooltip with black text & background

This image shows how a dark gtk theme can render Eclipse pop-ups
useless.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/60

------------------------------------------------------------------------
On 2010-06-04T19:05:42+00:00 Bokowski wrote:

Martin, you are seeing a variant of bug 312966 which was filed against
JDT. This bug (at the SWT level) has indeed been fixed, but we have
these other cases that result in similar black-text-on-black-background
situations. You should probably file a new bug against CDT (and
reference the existing bugs for context) to make them aware of the
problem.

As a workaround, you could try to set a different "Source hover
background" color, for the Java editor that's under Preferences > Java >
Editor. I hope CDT has an equivalent preference page for their editors.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/61

------------------------------------------------------------------------
On 2010-07-14T12:51:14+00:00 Eclipse-felipe wrote:

*** Bug 318964 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/77

------------------------------------------------------------------------
On 2010-08-04T18:21:40+00:00 Eclipse-felipe wrote:

Created attachment 175866
patch for 3.5.2

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/82

------------------------------------------------------------------------
On 2010-08-04T18:29:43+00:00 Eclipse-felipe wrote:

Created attachment 175869
patch for 3.4.2

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/83

------------------------------------------------------------------------
On 2010-08-04T19:37:29+00:00 Raji-2 wrote:

Can this be included in 3.6.1?

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/84

------------------------------------------------------------------------
On 2010-08-04T19:45:06+00:00 Eclipse-felipe wrote:

(In reply to comment #31)
> Can this be included in 3.6.1?

No need, this bug was fixed in 3.6 RC2

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/85

------------------------------------------------------------------------
On 2010-08-04T20:00:34+00:00 Raji-2 wrote:

Thanks for the clarification!

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/86

------------------------------------------------------------------------
On 2010-08-05T13:12:19+00:00 Ralf-7 wrote:

If you're still seeing this on Ubuntu 10.04 and Eclipse 3.6: Check the
System > Preferences > Appearance > Theme > Colours > tooltip setting.
The default color scheme of the 'Radiance' theme for tooltips is white
text on black background (which came unexpected to me given that
Radiance is a very light theme)

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/88

------------------------------------------------------------------------
On 2011-11-29T13:44:07+00:00 Germano-massullo wrote:

Hi, I am still having this problem.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365051
Okay, it's corregible through the options, but the bug should not be market as fixed becase if you do a fresh install of Version: 3.7.1 Build id: R3_7_1 you will still have it.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/99

------------------------------------------------------------------------
On 2011-11-29T13:44:59+00:00 Germano-massullo wrote:

*** Bug 365051 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/100

------------------------------------------------------------------------
On 2011-11-29T13:52:23+00:00 Remy Chi Jian Suen wrote:

(In reply to comment #35)
> Hi, I am still having this problem.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=365051
> Okay, it's corregible through the options, but the bug should not be market as
> fixed becase if you do a fresh install of Version: 3.7.1 Build id: R3_7_1 you
> will still have it.

See comment 26, 27, and 28. I suggest you open a new bug against CDT.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/101

------------------------------------------------------------------------
On 2011-11-29T13:52:59+00:00 Remy Chi Jian Suen wrote:

(In reply to comment #37)
> See comment 26, 27, and 28. I suggest you open a new bug against CDT.

That should be comment 25, comment 26, and comment 27.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/102

------------------------------------------------------------------------
On 2011-11-29T14:09:19+00:00 Germano-massullo wrote:

I've reopened my previous bugreport as CDT bug

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/103

------------------------------------------------------------------------
On 2015-01-11T23:30:43+00:00 Philipp C. Heckel wrote:

This problem re-appeared with GTK3. There is a description and
screenshot here: https://github.com/syncany/syncany/issues/339

It can be reproduced with this code:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet225.java

Tested systems:
- Linux Mint 17
- Arch Linux
- Both SWT 4.4 (without SWT_GTK3=0)

By setting SWT_GTK3=0, the tooltip/bubble has the correct color.

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/107

------------------------------------------------------------------------
On 2015-01-11T23:31:25+00:00 Philipp C. Heckel wrote:

Created attachment 249850
Reproduced with SWT 4.4

Reply at: https://bugs.launchpad.net/ubuntu/+source/light-
themes/+bug/540332/comments/108


** Changed in: light-themes
       Status: Unknown => Fix Released

** Changed in: light-themes
   Importance: Unknown => Medium

** Bug watch added: Eclipse bugs #365051
   https://bugs.eclipse.org/bugs/show_bug.cgi?id=365051

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to light-themes in Ubuntu.
https://bugs.launchpad.net/bugs/540332

Title:
  eclipse: tooltips unreadable

Status in Light Themes:
  Fix Released
Status in eclipse package in Ubuntu:
  Fix Released
Status in light-themes package in Ubuntu:
  Invalid
Status in eclipse source package in Lucid:
  Fix Released
Status in light-themes source package in Lucid:
  Invalid

Bug description:
  Binary package hint: light-themes

  the tooltip that appears when you hover with the mouse over some code
  uses black font on black background..

  ProblemType: Bug
  Architecture: i386
  Date: Wed Mar 17 16:39:00 2010
  DistroRelease: Ubuntu 10.04
  Package: light-themes 0.1.5.8
  PackageArchitecture: all
  ProcEnviron:
   LANG=de_DE.utf8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
  SourcePackage: light-themes
  Uname: Linux 2.6.32-16-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/540332/+subscriptions