From 38373b39b4b3d1716262eb28084ce85d9c8f5b3d Mon Sep 17 00:00:00 2001 From: Ben Westgate Date: Tue, 29 Sep 2026 21:21:17 -0500 Subject: [PATCH 1/2] gui: Let the home window choose its height --- src/codex32_gui/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/codex32_gui/app.py b/src/codex32_gui/app.py index 6674015e..0242e1e2 100644 --- a/src/codex32_gui/app.py +++ b/src/codex32_gui/app.py @@ -26,9 +26,7 @@ def do_activate(self) -> None: ) view = Adw.NavigationView() view.push(pages.home(view)) - window = Adw.ApplicationWindow( - application=self, title="codex32", default_width=880, default_height=620, content=view - ) + window = Adw.ApplicationWindow(application=self, title="codex32", default_width=880, content=view) window.present() From b347792ea66a086a0a54b1ee907aa7657d5ae823 Mon Sep 17 00:00:00 2001 From: Ben Westgate Date: Sat, 24 Oct 2026 02:40:52 -0500 Subject: [PATCH 2/2] gui: Propagate only home natural height Let the home page scroller contribute its natural height to the initial window size. Other workflow pages still scroll without requesting their full height. refs #75 --- src/codex32_gui/pages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/codex32_gui/pages.py b/src/codex32_gui/pages.py index 2ff0c35e..45946626 100644 --- a/src/codex32_gui/pages.py +++ b/src/codex32_gui/pages.py @@ -104,8 +104,10 @@ def _page( *, actions: Gtk.Widget | None = None, can_pop: bool = True, + natural_height: bool = False, ) -> Adw.NavigationPage: scroller = Gtk.ScrolledWindow(hscrollbar_policy=Gtk.PolicyType.NEVER, vexpand=True) + scroller.set_propagate_natural_height(natural_height) scroller.set_child(Adw.Clamp(maximum_size=700, child=content, margin_start=18, margin_end=18)) bars = Adw.ToolbarView() bars.add_top_bar(Adw.HeaderBar()) @@ -400,7 +402,7 @@ def home(view: Adw.NavigationView) -> Adw.NavigationPage: group, _note("Everything happens on this computer. codex32 never connects to the internet."), ) - return _page("codex32", content) + return _page("codex32", content, natural_height=True) # --- Bitcoin Core preflight ------------------------------------------------