1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-19 16:49:02 +00:00

fixup! feat(eckhart): implement homescreen flow

This commit is contained in:
obrusvit 2025-03-21 09:38:28 +01:00
parent 71a9d9ccd0
commit 48a35dee3b
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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 {