|
|
|
@ -1,29 +1,12 @@
|
|
|
|
|
use crate::{
|
|
|
|
|
strutil::hexlify,
|
|
|
|
|
trezorhal::io::io_touch_read,
|
|
|
|
|
ui::{
|
|
|
|
|
component::{Component, Event, EventCtx, Label, Never},
|
|
|
|
|
display::{self, Font},
|
|
|
|
|
event::TouchEvent,
|
|
|
|
|
geometry::Point,
|
|
|
|
|
model_tt::{component::WelcomeScreen, constant},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
use heapless::String;
|
|
|
|
|
use num_traits::ToPrimitive;
|
|
|
|
|
|
|
|
|
|
pub mod confirm;
|
|
|
|
|
mod connect;
|
|
|
|
|
pub mod intro;
|
|
|
|
|
pub mod menu;
|
|
|
|
|
pub mod theme;
|
|
|
|
|
pub mod welcome;
|
|
|
|
|
|
|
|
|
|
use crate::{
|
|
|
|
|
strutil::hexlify,
|
|
|
|
|
ui::{
|
|
|
|
|
constant::screen,
|
|
|
|
|
display::{Color, Icon},
|
|
|
|
|
geometry::{Alignment, TOP_CENTER},
|
|
|
|
|
display::{self, Color, Font, Icon},
|
|
|
|
|
event::TouchEvent,
|
|
|
|
|
geometry::{Alignment, Point, TOP_CENTER},
|
|
|
|
|
model_tt::{
|
|
|
|
|
bootloader::{
|
|
|
|
|
confirm::ConfirmTitle,
|
|
|
|
@ -35,12 +18,23 @@ use crate::{
|
|
|
|
|
},
|
|
|
|
|
welcome::Welcome,
|
|
|
|
|
},
|
|
|
|
|
component::{Button, ResultScreen},
|
|
|
|
|
component::{Button, ResultScreen, WelcomeScreen},
|
|
|
|
|
constant,
|
|
|
|
|
theme::{BACKLIGHT_DIM, BACKLIGHT_NORMAL, BLACK, FG, WHITE},
|
|
|
|
|
},
|
|
|
|
|
util::{from_c_array, from_c_str},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
use heapless::String;
|
|
|
|
|
use num_traits::ToPrimitive;
|
|
|
|
|
|
|
|
|
|
pub mod confirm;
|
|
|
|
|
mod connect;
|
|
|
|
|
pub mod intro;
|
|
|
|
|
pub mod menu;
|
|
|
|
|
pub mod theme;
|
|
|
|
|
pub mod welcome;
|
|
|
|
|
|
|
|
|
|
use confirm::Confirm;
|
|
|
|
|
use intro::Intro;
|
|
|
|
|
use menu::Menu;
|
|
|
|
|