Center content vertically in user and welcome pages

This commit is contained in:
2026-02-02 15:26:03 +01:00
parent 52897a1dd0
commit 931f701591
2 changed files with 2 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ class UserPage(Adw.Bin):
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_spacing(24) box.set_spacing(24)
box.set_valign(Gtk.Align.CENTER)
box.set_margin_top(24) box.set_margin_top(24)
box.set_margin_bottom(24) box.set_margin_bottom(24)
clamp.set_child(box) clamp.set_child(box)

View File

@@ -18,6 +18,7 @@ class WelcomePage(Adw.Bin):
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_spacing(12) box.set_spacing(12)
box.set_halign(Gtk.Align.CENTER) box.set_halign(Gtk.Align.CENTER)
box.set_valign(Gtk.Align.CENTER)
lbl = Gtk.Label(label="Select your language:") lbl = Gtk.Label(label="Select your language:")
lbl.add_css_class("heading") lbl.add_css_class("heading")