GTK 3.22 button outline and bottom image border overlap
When upgrading from GTK 3.14 to GTK 3.22, we observed that with our theme the bottom border and outline of buttons overlap on GTK 3.22. This was not the case on GTK 3.14.
To reproduce, the theme contents consist of gtk.css
, border.svg
, settings.ini
and the application consists of button.cpp
. The contents of these are:
-
gtk.css
: gtk.css -
border.svg
: -
settings.ini
: settings.ini - GTK3 button hello world tutorial: button.cpp
Here is our background:
We have an Eclipse 4.x based product which runs on a RHEL 7.x environment. We use the Clearlook Phenix theme, see https://github.com/jpfleury/clearlooks-phenix, where the actual theme variation we use can be found here: https://github.com/iloveeclipse/clearlooks-phenix/tree/eclipse-patches.
Recently we upgraded from RHEL 7.2 (GTK 3.14.13) to RHEL 7.4 (GTK 3.22.10). We observed the problem after upgrading.
We are not sure if this is an actual GTK 3.22 bug, or if GTK 3.14 happened to render the image border as it did and therefore the Clearlook Phenix theme provides border.svg
as it does. If this is a theme problem and not a GTK3 problem, hints on what the theme does wrong would be greatly appreciated.
Regardless of the outcome in this ticket, we will try to adapt our theme to get some normal looking buttons.