From a105c495005ba715883a6e9a53fbdde93e7741ae Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Thu, 31 Oct 2024 12:29:48 +0000 Subject: [PATCH] gui(installer): add space at bottom of pages The space height in all cases will be 70.0 when combined with the existing vertical spacing between elements. --- gui/src/installer/view/editor/template/custom.rs | 1 + gui/src/installer/view/editor/template/inheritance.rs | 1 + .../installer/view/editor/template/multisig_security_wallet.rs | 1 + gui/src/installer/view/mod.rs | 2 ++ 4 files changed, 5 insertions(+) diff --git a/gui/src/installer/view/editor/template/custom.rs b/gui/src/installer/view/editor/template/custom.rs index 30703929..ed58bbb9 100644 --- a/gui/src/installer/view/editor/template/custom.rs +++ b/gui/src/installer/view/editor/template/custom.rs @@ -46,6 +46,7 @@ pub fn custom_template_description(progress: (usize, usize)) -> Element<'static, .horizontal_alignment(alignment::Horizontal::Left) ).align_x(alignment::Horizontal::Left).width(Length::Fill)) .push(Row::new().push(Space::with_width(Length::Fill)).push(button::primary(None, "Select").width(Length::Fixed(200.0)).on_press(Message::Next))) + .push(Space::with_height(50.0)) .spacing(20), true, Some(Message::Previous), diff --git a/gui/src/installer/view/editor/template/inheritance.rs b/gui/src/installer/view/editor/template/inheritance.rs index dddc76b6..ce8d5db0 100644 --- a/gui/src/installer/view/editor/template/inheritance.rs +++ b/gui/src/installer/view/editor/template/inheritance.rs @@ -57,6 +57,7 @@ After a period of inactivity (but not before that) your Inheritance Key will bec ).align_x(alignment::Horizontal::Left).width(Length::Fill)) .push(image::inheritance_template_description().width(Length::Fill)) .push(Row::new().push(Space::with_width(Length::Fill)).push(button::primary(None, "Select").width(Length::Fixed(200.0)).on_press(Message::Next))) + .push(Space::with_height(50.0)) .spacing(20), true, Some(Message::Previous), diff --git a/gui/src/installer/view/editor/template/multisig_security_wallet.rs b/gui/src/installer/view/editor/template/multisig_security_wallet.rs index e675b5ca..e7360c53 100644 --- a/gui/src/installer/view/editor/template/multisig_security_wallet.rs +++ b/gui/src/installer/view/editor/template/multisig_security_wallet.rs @@ -67,6 +67,7 @@ pub fn multisig_security_template_description( ).align_x(alignment::Horizontal::Left).width(Length::Fill)) .push(image::multisig_security_template_description().width(Length::Fill)) .push(Row::new().push(Space::with_width(Length::Fill)).push(button::primary(None, "Select").width(Length::Fixed(200.0)).on_press(Message::Next))) + .push(Space::with_height(50.0)) .spacing(20), true, Some(Message::Previous), diff --git a/gui/src/installer/view/mod.rs b/gui/src/installer/view/mod.rs index 9f5818ab..ccf1c422 100644 --- a/gui/src/installer/view/mod.rs +++ b/gui/src/installer/view/mod.rs @@ -758,6 +758,7 @@ pub fn backup_descriptor<'a>( } else { button::secondary(None, "Next").width(Length::Fixed(200.0)) }) + .push(Space::with_height(20.0)) .spacing(50), true, Some(Message::Previous), @@ -1682,6 +1683,7 @@ pub fn backup_mnemonic<'a>( } else { button::secondary(None, "Next").width(Length::Fixed(200.0)) }) + .push(Space::with_height(20.0)) .spacing(50), true, Some(Message::Previous),