elementary / granite

Library that extends GTK with common widgets and utilities
https://elementary.io
GNU Lesser General Public License v3.0
280 stars 61 forks source link

Granite.ButtonBox? #577

Open danirabbit opened 2 years ago

danirabbit commented 2 years ago

Problem

We've lost Gtk.ButtonBox in GTK4 which provided us with some convenient properties.

Proposal

It might be worth seeing how many times we previously used ButtonBox and if it's worth providing either a Granite.ButtonBox widget or a buttonbox style class so we at least don't have to duplicate CSS for setting spacing between children

Prior Art (Optional)

No response

danirabbit commented 1 year ago

Noting that Gtk.ButtonBox also set a min-width of 86px for its children

danirabbit commented 9 months ago

Just wanted to also note that ActionBar might be a better widget here than Box to use for this purpose with a button-box style since it has start, end, and center packing and we wouldn't need spacer widgets. Not sure if it's children are homogeneous so worth checking and comparing