diff --git a/lightgui/inspector.py b/lightgui/inspector.py index 6b2b581..f412d30 100644 --- a/lightgui/inspector.py +++ b/lightgui/inspector.py @@ -287,6 +287,12 @@ class Inspector: self.props_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0) + # One shared side margin for the whole box: the grid rows + # already fill the width, and the Bulk / Colour sections + # below used to butt against the window edge (their hint text + # was clipped). + self.props_box.set_margin_start(6) + self.props_box.set_margin_end(6) scrolled = Gtk.ScrolledWindow() scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) @@ -294,22 +300,18 @@ class Inspector: self.window.add(scrolled) self.selected_label = Gtk.Label(label="Window (Root)", xalign=0) - self.selected_label.set_margin_start(6) self.selected_label.set_margin_top(4) self.props_box.pack_start(self.selected_label, False, False, 0) self.grid = Gtk.Grid() self.grid.set_column_spacing(6) self.grid.set_row_spacing(4) - self.grid.set_margin_start(6) - self.grid.set_margin_end(6) self.grid.set_margin_top(4) self.grid.set_hexpand(True) self.props_box.pack_start(self.grid, False, False, 0) footnote = Gtk.Label( label="* model-only: stored, not live-drawn", xalign=0) - footnote.set_margin_start(6) self.props_box.pack_start(footnote, False, False, 2) self._build_bulk_ui()