From 9383299f8b3c117be8177a47b92f4b050673c14a Mon Sep 17 00:00:00 2001 From: cnmcdee Date: Tue, 1 Dec 2026 03:00:14 +0000 Subject: [PATCH] Phase 3 fix: shared 6px side margin on Inspector box Bulk / Colour sections butted against the window edge and the palette hint text was clipped at the left. One margin on the props_box instead of per-widget margins. --- lightgui/inspector.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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()