mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-30 02:18:16 +00:00
feat(eckhart): external menu on confirm_value
[no changelog]
This commit is contained in:
parent
5c1ef7516c
commit
8ac353cd7c
@ -429,8 +429,10 @@ impl FirmwareUI for UIEckhart {
|
|||||||
_prompt_screen: bool,
|
_prompt_screen: bool,
|
||||||
cancel: bool,
|
cancel: bool,
|
||||||
warning_footer: Option<TString<'static>>,
|
warning_footer: Option<TString<'static>>,
|
||||||
_external_menu: bool,
|
external_menu: bool,
|
||||||
) -> Result<Gc<LayoutObj>, Error> {
|
) -> Result<Gc<LayoutObj>, Error> {
|
||||||
|
debug_assert!(!(info && external_menu));
|
||||||
|
|
||||||
let paragraphs = ConfirmValueParams {
|
let paragraphs = ConfirmValueParams {
|
||||||
description: description.unwrap_or("".into()),
|
description: description.unwrap_or("".into()),
|
||||||
extra: extra.unwrap_or("".into()),
|
extra: extra.unwrap_or("".into()),
|
||||||
@ -471,6 +473,9 @@ impl FirmwareUI for UIEckhart {
|
|||||||
let header = if info {
|
let header = if info {
|
||||||
Header::new(title)
|
Header::new(title)
|
||||||
.with_right_button(Button::with_icon(theme::ICON_INFO), HeaderMsg::Menu)
|
.with_right_button(Button::with_icon(theme::ICON_INFO), HeaderMsg::Menu)
|
||||||
|
} else if external_menu {
|
||||||
|
Header::new(title)
|
||||||
|
.with_right_button(Button::with_icon(theme::ICON_MENU), HeaderMsg::Menu)
|
||||||
} else {
|
} else {
|
||||||
Header::new(title)
|
Header::new(title)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user