diff --git a/core/embed/rust/src/ui/display/mod.rs b/core/embed/rust/src/ui/display/mod.rs index 898245c48..daa3cc107 100644 --- a/core/embed/rust/src/ui/display/mod.rs +++ b/core/embed/rust/src/ui/display/mod.rs @@ -24,7 +24,9 @@ use crate::ui::component::image::Image; use crate::ui::geometry::Alignment2D; #[cfg(feature = "backlight")] -use crate::{time::Duration, trezorhal::time}; +use crate::time::Duration; +#[cfg(feature = "backlight")] +use crate::trezorhal::time; use crate::{ trezorhal::{buffers, display, uzlib::UzlibContext}, diff --git a/core/embed/rust/src/ui/model_tr/component/frame.rs b/core/embed/rust/src/ui/model_tr/component/frame.rs index 0cdce56ec..2ff5536c3 100644 --- a/core/embed/rust/src/ui/model_tr/component/frame.rs +++ b/core/embed/rust/src/ui/model_tr/component/frame.rs @@ -161,11 +161,8 @@ where (content_area, scrollbar_area, Rect::zero()) } } else { - const TITLE_SPACE: i16 = 2; - let (title_and_scrollbar_area, content_area) = bounds.split_top(theme::FONT_HEADER.line_height()); - let content_area = content_area.inset(Insets::top(TITLE_SPACE)); // When there is only one page, do not allocate anything for scrollbar, // which would reduce the space for title diff --git a/core/embed/rust/src/ui/model_tr/layout.rs b/core/embed/rust/src/ui/model_tr/layout.rs index 3de0cadd7..0ad3e33cd 100644 --- a/core/embed/rust/src/ui/model_tr/layout.rs +++ b/core/embed/rust/src/ui/model_tr/layout.rs @@ -399,9 +399,8 @@ extern "C" fn new_confirm_reset_device(n_args: usize, args: *const Obj, kwargs: let ops = OpTextLayout::::new(theme::TEXT_NORMAL) .text_normal("By continuing you agree to Trezor Company's terms and conditions.".into()) - .newline() - .newline() - .text_normal("More info at".into()) + .next_page() + .text_normal("More info at ".into()) .newline() .text_bold("trezor.io/tos".into()); let formatted = FormattedText::new(ops).vertically_centered(); diff --git a/core/src/apps/management/wipe_device.py b/core/src/apps/management/wipe_device.py index 5a2f3e6ad..6f4a594e4 100644 --- a/core/src/apps/management/wipe_device.py +++ b/core/src/apps/management/wipe_device.py @@ -16,7 +16,7 @@ async def wipe_device(msg: WipeDevice) -> Success: "confirm_wipe", "Wipe device", "All data will be erased.", - "Do you really want to wipe the device?\n", + "Do you really want to wipe the device?", reverse=True, verb="Hold to confirm", hold=True,