mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-28 15:22:14 +00:00
fixup! feat(eckahrt): implement show info UI trait function
This commit is contained in:
parent
83e70dd1ce
commit
8964ed814d
@ -504,7 +504,7 @@ impl FirmwareUI for UIEckhart {
|
|||||||
fn show_info(
|
fn show_info(
|
||||||
title: TString<'static>,
|
title: TString<'static>,
|
||||||
description: TString<'static>,
|
description: TString<'static>,
|
||||||
_button: TString<'static>,
|
button: TString<'static>,
|
||||||
_time_ms: u32,
|
_time_ms: u32,
|
||||||
) -> Result<Gc<LayoutObj>, Error> {
|
) -> Result<Gc<LayoutObj>, Error> {
|
||||||
let content = Paragraphs::new(Paragraph::new(&theme::TEXT_REGULAR, description))
|
let content = Paragraphs::new(Paragraph::new(&theme::TEXT_REGULAR, description))
|
||||||
@ -512,9 +512,7 @@ impl FirmwareUI for UIEckhart {
|
|||||||
|
|
||||||
let screen = TextScreen::new(content)
|
let screen = TextScreen::new(content)
|
||||||
.with_header(Header::new(title))
|
.with_header(Header::new(title))
|
||||||
.with_action_bar(ActionBar::new_single(Button::with_text(
|
.with_action_bar(ActionBar::new_single(Button::with_text(button)));
|
||||||
TR::buttons__continue.into(),
|
|
||||||
)));
|
|
||||||
let obj = LayoutObj::new(screen)?;
|
let obj = LayoutObj::new(screen)?;
|
||||||
Ok(obj)
|
Ok(obj)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user