mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-13 14:46:06 +00:00
chore(core/rust): improve vertical centering in some screens
[no changelog]
This commit is contained in:
parent
d2f67d48fa
commit
623e0ce468
@ -399,8 +399,7 @@ extern "C" fn new_confirm_reset_device(n_args: usize, args: *const Obj, kwargs:
|
||||
|
||||
let ops = OpTextLayout::<StrBuffer>::new(theme::TEXT_NORMAL)
|
||||
.text_normal("By continuing you agree to Trezor Company's terms and conditions.".into())
|
||||
.newline()
|
||||
.newline()
|
||||
.next_page()
|
||||
.text_normal("More info at".into())
|
||||
.newline()
|
||||
.text_bold("trezor.io/tos".into());
|
||||
@ -762,7 +761,7 @@ extern "C" fn new_confirm_address(n_args: usize, args: *const Obj, kwargs: *mut
|
||||
let ops = OpTextLayout::new(theme::TEXT_MONO)
|
||||
.line_breaking(LineBreaking::BreakWordsNoHyphen)
|
||||
.text_mono(address.clone());
|
||||
let formatted = FormattedText::new(ops);
|
||||
let formatted = FormattedText::new(ops).vertically_centered();
|
||||
Page::new(btn_layout, btn_actions, formatted).with_title(title.clone())
|
||||
};
|
||||
let pages = FlowPages::new(get_page, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user