After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318151 - menu tooltips are hard to read when using HighContrastInverse theme
menu tooltips are hard to read when using HighContrastInverse theme
Status: RESOLVED FIXED
Product: gtk-engines
Classification: Deprecated
Component: highcontrast
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-engines maintainers
gtk-engines maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-06 22:39 UTC by Brian Cameron
Modified: 2006-01-03 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
propsed fix (4.07 KB, patch)
2006-01-03 13:02 UTC, Benjamin Berg
committed Details | Review

Description Brian Cameron 2005-10-06 22:39:28 UTC
A menu tooltip normally has a black boundry so it is easy to see.  However,
when you use the HighContrastInverse theme it is really hard to see the 
Tooltip.  I assume this is because the black boundry doesn't show up well
with the black background used in the HighContrastInverse theme.  It looks 
very messy.

I notice this problem when running gdmlogin and I took a look at other
GNOME programs and it seems hard to find another example of a GNOME program
that uses tooltips in menus.

To see this problem in gdmlogin, do the following:

Edit /etc/gdm/gdm.conf so that "AllowGtkThemeChange=true" and set the
environment variable DOING_GDM_DEVELOPMENT=1.  Then you can run gdmlogin
in test mode from gnome-session.  Using the "Theme" menu, change the theme
it is using to HighContrastInverse, and you can see the problem with the
tooltips being very hard to read.

Should GDM not be using tooltips in menus at all, or should GTK be made 
smarter so that the tooltips are visible even when the theme background is
also black?  Or something else?
Comment 1 Owen Taylor 2005-10-07 12:19:27 UTC
IA tooltip has no clue that it is being used in a menu (and thus, tooltips
on menus don't work very well. Though I doubt they are a good idea to start
with... But that's a different issue.)

Are you saying that this is some problem that doesn't occur with tooltips
not-on-menus with HighContrastInverse?

Presumably the black border should be reversed for that theme... for the
default theme engine, the border is drawn harcoded to black, but the
High-Contrast engine could definitely do something differet 
(draw_flat_box with a detail of "tooltip")
Comment 2 Benjamin Berg 2006-01-03 13:02:20 UTC
Created attachment 56714 [details] [review]
propsed fix

This patch uses gtk_paint_box to draw tooltips. So they are drawn in the same way as menus, etc. are.
That is for the HighContrastInverse theme a white border and dark background.
Comment 3 Thomas Wood 2006-01-03 14:09:18 UTC
Thanks for the patch Benjamin. I had been meaning to get round to doing this for some time.

Please go ahead and commit your patch to the gtk-engines-2-6 branch and to HEAD, then close this bug.
Comment 4 Benjamin Berg 2006-01-03 14:56:21 UTC
OK, commited now.