Tooltips: Fix docs/theming for custom tooltip windows
- Submitted by Daniel Boles
- Link to original bug (#784421)
The doc for
gtk_widget_set_tooltip_window() refers to "the default, usually yellow, window", which is long outdated: Adwaita uses a dark transparent background in both variants, and HighContrast just uses the main theme bg colour.
Moreover, the same function doc also says this:
If the custom window should have the default theming it needs to have the name “gtk-tooltip”, see
This can't work as the themes never select on this ID. It should be fixed by replacing the reference to
#gtk-tooltip with the class
.tooltip, and ensuring the themes actually use that class to style like real tooltips (if that can be done).
A weird thing is that Adwaita only selects on the widget node named
tooltip right now, but HighContrast already also includes the class
.tooltip in its selectors.