mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-26 08:29:26 +00:00
refactor(core): eckhart: add close button to THP pairing UI
[no changelog]
This commit is contained in:
parent
a5ede47c0b
commit
c16d375abc
@ -1085,9 +1085,13 @@ impl FirmwareUI for UIEckhart {
|
|||||||
.add_newline()
|
.add_newline()
|
||||||
.add_alignment(Alignment::Center)
|
.add_alignment(Alignment::Center)
|
||||||
.add_text(code, fonts::FONT_SATOSHI_EXTRALIGHT_72);
|
.add_text(code, fonts::FONT_SATOSHI_EXTRALIGHT_72);
|
||||||
let mut screen = TextScreen::new(FormattedText::new(ops)).with_header(Header::new(title));
|
let mut screen = TextScreen::new(FormattedText::new(ops));
|
||||||
if button {
|
if button {
|
||||||
screen = screen.with_action_bar(ActionBar::new_cancel_confirm());
|
screen = screen
|
||||||
|
.with_header(Header::new(title))
|
||||||
|
.with_action_bar(ActionBar::new_cancel_confirm());
|
||||||
|
} else {
|
||||||
|
screen = screen.with_header(Header::new(title).with_close_button());
|
||||||
}
|
}
|
||||||
#[cfg(feature = "ble")]
|
#[cfg(feature = "ble")]
|
||||||
let screen = crate::ui::component::BLEHandler::new(screen, false);
|
let screen = crate::ui::component::BLEHandler::new(screen, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user