use heapless::Vec; use crate::{ trezorhal::random, ui::{ component::{ label::{Label, LabelStyle}, Child, Component, Event, EventCtx, Never, }, display, geometry::{Grid, Offset, Point, Rect}, }, }; use super::{ button::{Button, ButtonContent, ButtonMsg::Clicked}, theme, }; pub enum PinDialogMsg { Confirmed, Cancelled, } const MAX_LENGTH: usize = 9; const DIGIT_COUNT: usize = 10; // 0..10 pub struct PinDialog { digits: Vec, major_prompt: Label<&'static [u8]>, minor_prompt: Label<&'static [u8]>, dots: Child, reset_btn: Child