Skip to content

Commit

Permalink
fix: centering on confirmation page
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Feb 2, 2025
1 parent 9084a77 commit 923f053
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/pages/confirmation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ page!(Confirmation:
},
} => { StartInstallation }

gtk::Box {
gtk::CenterBox {
set_orientation: gtk::Orientation::Horizontal,
set_valign: gtk::Align::Center,
set_spacing: 16,
set_vexpand: true,

gtk::Box {
#[wrap(Some)]
set_start_widget = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 2,
set_vexpand: true,
Expand All @@ -46,13 +47,15 @@ page!(Confirmation:
}
},

gtk::Image {
#[wrap(Some)]
set_center_widget = &gtk::Image {
set_icon_name: Some("go-next-symbolic"),
inline_css: "-gtk-icon-size: 64px"
inline_css: "-gtk-icon-size: 64px",
set_margin_horizontal: 16,
},


gtk::Box {
#[wrap(Some)]
set_end_widget = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 2,
set_vexpand: true,
Expand Down

0 comments on commit 923f053

Please sign in to comment.