From 48a35dee3b450c2ade904d11a69c479c4c46600d Mon Sep 17 00:00:00 2001 From: obrusvit Date: Fri, 21 Mar 2025 09:38:28 +0100 Subject: [PATCH] fixup! feat(eckhart): implement homescreen flow --- .../src/ui/layout_eckhart/firmware/vertical_menu.rs | 2 +- .../rust/src/ui/layout_eckhart/flow/homescreen.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/embed/rust/src/ui/layout_eckhart/firmware/vertical_menu.rs b/core/embed/rust/src/ui/layout_eckhart/firmware/vertical_menu.rs index 99ae244bec..fb2949f621 100644 --- a/core/embed/rust/src/ui/layout_eckhart/firmware/vertical_menu.rs +++ b/core/embed/rust/src/ui/layout_eckhart/firmware/vertical_menu.rs @@ -39,7 +39,7 @@ pub enum VerticalMenuMsg { } impl VerticalMenu { - const SIDE_INSETS: Insets = Insets::sides(12); + const SIDE_INSETS: Insets = theme::SIDE_INSETS; const DEFAULT_PADDING: i16 = 28; const MIN_PADDING: i16 = 2; diff --git a/core/embed/rust/src/ui/layout_eckhart/flow/homescreen.rs b/core/embed/rust/src/ui/layout_eckhart/flow/homescreen.rs index 24186ce552..0e0afa8028 100644 --- a/core/embed/rust/src/ui/layout_eckhart/flow/homescreen.rs +++ b/core/embed/rust/src/ui/layout_eckhart/flow/homescreen.rs @@ -7,7 +7,7 @@ use crate::{ base::{Decision, DecisionBuilder as _}, FlowController, FlowMsg, SwipeFlow, }, - geometry::Direction, + geometry::{Alignment, Direction}, }, }; @@ -66,10 +66,10 @@ pub fn new_home( }); let menu = VerticalMenu::empty() - .item(Button::with_text("Bluetooth management".into())) - .item(Button::with_text("Device".into())) - .item(Button::with_text("Check backup".into())) - .item(Button::with_text("About".into())); + .item(Button::with_text("Bluetooth management".into()).with_text_align(Alignment::Start)) + .item(Button::with_text("Device".into()).with_text_align(Alignment::Start)) + .item(Button::with_text("Check backup".into()).with_text_align(Alignment::Start)) + .item(Button::with_text("About".into()).with_text_align(Alignment::Start)); let content_device_menu = VerticalMenuScreen::new(menu) .with_header(Header::new("Device menu".into()).with_close_button()) .map(|msg| match msg {