Scrollbars cause GTK rendering issues with specific combinations of widgets and themes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
overlay-scrollbar |
New
|
Undecided
|
Unassigned |
Bug Description
The attached Python3 example uses GtkOverlay to put a GtkTextView over a GtkLayout containing a GtkScrolledWindow. If you run this example with the overlay scrollbars active and under the Adwaita or HighContrast theme, you will notice that the GtkTextView is not being rendered properly. Hovering the cursor over the region where the GtkTextView changes it to a text cursor, so it's a rendering issue rather than a Z-index issue.
The issue does NOT happen if:
- You are using Ambiance or Radiance. (regardless of overlay scrollbars being active or not)
- You are not using the overlay scrollbars. (regardless of theme)
One clue to the cause of this issue is the fact that Adwaita and HighContrast set a background color for either GtkScrolledWindow or GtkViewport (which GtkScrolledWindow uses), whereas the light-themes do not. However, it seems strange that the issue requires the GtkScrolledWindow being inside a GtkLayout.
This also causes issues when using Numix and Iris Dark themes.
http:// thevirtualdrago n.deviantart. com/art/ Iris-Dark- Gtk-Theme- v1-65-429628194
Check the comments section where one user attached screenshots and the author of the theme replied that this is caused by overlay-scrollbars.
http:// comments. deviantart. com/1/429628194 /3495976745