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.
This commit is contained in:
cnmcdee committed 2026-12-01 03:00:14 +00:00
1 parent 0cd61a3578
commit 9383299f8b
1 file changed
+6 -4
+6 -4
View File
@@ -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()