GNOME Bugzilla – Bug 684055
widget: set toplevel-relative position style classes on widgets
Last modified: 2018-05-02 15:29:58 UTC
In Adwaita, we currently special case many applications to remove the border from an edge touching the toplevel; it would be nice if GTK added a style class with such a hint automatically.
Created attachment 224373 [details] [review] widget: set toplevel-relative position style classes on widgets During the size allocation cycle, check if the allocated position touches the toplevel edges, and set a style class saying so on the widget. This is very useful for themes that want to hide the edges for e.g. expanded scrolled views to increase the Fitts-ness of the scrollbars.
Niiiiiiiiiiiiiiiiiiice
Review of attachment 224373 [details] [review]: Looks like a potentially expensive hack to me. Also, changing style classes can change size allocation again - live-lock danger. What if a parent adds padding between the widget and the edge - no longer touching ?
The class should just go away. This is a really needed feature to have apps to look nice by default (well at least is a start) w/o custom css.
*** Bug 688201 has been marked as a duplicate of this bug. ***
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Something addressing the double border issue would still be very nice to have, reopening.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/405.