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 636709 - Wrong style in tooltip
Wrong style in tooltip
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-12-07 15:52 UTC by Guillaume Desmottes
Modified: 2014-08-04 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (16.04 KB, image/jpeg)
2010-12-07 15:52 UTC, Guillaume Desmottes
Details
screenshot (8.71 KB, image/jpeg)
2011-01-12 13:45 UTC, Guillaume Desmottes
Details
new screenshot (8.03 KB, image/jpeg)
2012-01-05 11:14 UTC, Guillaume Desmottes
Details

Description Guillaume Desmottes 2010-12-07 15:52:25 UTC
Created attachment 176014 [details]
screenshot

Here is a screenshot of a contact tooltip with Empathy and GTK+ master. This uses to work fine few days ago so I guess that's a regression from the style refactoring.
Comment 1 Guillaume Desmottes 2011-01-12 13:45:57 UTC
Created attachment 178132 [details]
screenshot

New look using current GTK3 master. It's better but there should not have an extra rectangle inside the tooltip.
Comment 2 Cosimo Cecchi 2011-03-22 18:03:22 UTC
I think this is fixed with latest GTK+ and gnome-themes-standard. Please reopen if you can still reproduce, thanks.
Comment 3 Guillaume Desmottes 2012-01-05 11:14:16 UTC
Created attachment 204677 [details]
new screenshot

Doesn't seem fixed actually. Here is a screenshot with GTK+ and gnome-theme-standard master (why is it green btw?!).
Comment 4 anomie 2014-02-02 03:24:07 UTC
I'm seeing the same issue as in comment 1, in 3.8.6. It seems to me that the problem is coming from this rule in gtk/resources/theme/gtk-default.css:

  .tooltip,
  .tooltip * {
    background-color: @tooltip_bg_color;
    color: @tooltip_fg_color;
    border-color: @tooltip_fg_color;
    border-width: 1px;
    border-style: solid;
  }

Why are the border styles being applied to ".tooltip *"?

If I add a rule to ~/.config/gtk-3.0/gtk.css overriding border-width and border-style for ".tooltip *", the problem goes away.
Comment 5 Lapo Calamandrei 2014-08-02 12:04:14 UTC
Does this still apply with latest 3.13.x?
Comment 6 Jakub Steiner 2014-08-04 11:52:04 UTC
Empathy tooltips are white text over semi-opaque black bg in gtk+ 3.13.x. Feel free to reopen if I missed something.