From 39c70e6faba76287f9db8e359594ca8ff6f8cd81 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 14 Nov 2022 10:33:08 +0100 Subject: [PATCH] WIP - seed backup improvements --- core/embed/rust/src/ui/model_tr/layout.rs | 4 +++- core/src/trezor/ui/layouts/tr/reset.py | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/embed/rust/src/ui/model_tr/layout.rs b/core/embed/rust/src/ui/model_tr/layout.rs index 05d9aff788..8459446c8a 100644 --- a/core/embed/rust/src/ui/model_tr/layout.rs +++ b/core/embed/rust/src/ui/model_tr/layout.rs @@ -537,7 +537,9 @@ extern "C" fn select_word(n_args: usize, args: *const Obj, kwargs: *mut Map) -> let words: Vec = iter_into_vec(words_iterable)?; // TODO: should return int, to be consistent with TT's select_word - let obj = LayoutObj::new(Frame::new(title, SimpleChoice::new(words, true, true)))?; + let obj = LayoutObj::new( + Frame::new(title, SimpleChoice::new(words, true, true)).with_title_center(true), + )?; Ok(obj.into()) }; unsafe { util::try_with_args_and_kwargs(n_args, args, kwargs, block) } diff --git a/core/src/trezor/ui/layouts/tr/reset.py b/core/src/trezor/ui/layouts/tr/reset.py index 219283bf04..d8cdad2057 100644 --- a/core/src/trezor/ui/layouts/tr/reset.py +++ b/core/src/trezor/ui/layouts/tr/reset.py @@ -34,12 +34,13 @@ async def show_share_words( ) ready_to_check = await get_bool( - ctx=ctx, - title="CHECK PHRASE", - data="Select correct words in correct positions.", + ctx, + "backup_words", + "CHECK BACKUP", + None, + "Select correct words in correct positions.", verb_cancel="SEE AGAIN", verb="BEGIN", - br_type="backup_words", br_code=ButtonRequestType.ResetDevice, ) if not ready_to_check: