diff --git a/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs b/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs index bdca56291a..b67616bee2 100644 --- a/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs +++ b/core/embed/rust/src/ui/model_mercury/component/coinjoin_progress.rs @@ -60,7 +60,7 @@ where Ok(Self { value: 0, indeterminate, - content: Frame::centered( + content: Frame::left_aligned( TR::coinjoin__title_progress.into(), Split::bottom(RECTANGLE_HEIGHT, 0, Empty, inner), ), diff --git a/core/embed/rust/src/ui/model_mercury/component/frame.rs b/core/embed/rust/src/ui/model_mercury/component/frame.rs index 3f7fa384a2..ecc4533a80 100644 --- a/core/embed/rust/src/ui/model_mercury/component/frame.rs +++ b/core/embed/rust/src/ui/model_mercury/component/frame.rs @@ -81,7 +81,6 @@ impl HorizontalSwipe { #[derive(Clone)] pub struct Frame { - border: Insets, bounds: Rect, content: T, header: Header, @@ -105,7 +104,6 @@ where pub const fn new(alignment: Alignment, title: TString<'static>, content: T) -> Self { Self { bounds: Rect::zero(), - border: theme::borders(), content, header: Header::new(alignment, title), header_update_fn: None, @@ -132,12 +130,6 @@ where Self::new(Alignment::Center, title, content) } - #[inline(never)] - pub const fn with_border(mut self, border: Insets) -> Self { - self.border = border; - self - } - #[inline(never)] pub fn with_subtitle(mut self, subtitle: TString<'static>) -> Self { self.header = self.header.with_subtitle(subtitle);