From 973d4ab2b2fe72078ee0e23143b81beb9ab37aa5 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 31 Dec 2024 16:00:18 +0100 Subject: [PATCH] fix(core): make TT UI homescreen respect screen size [no changelog] --- core/embed/rust/src/ui/model_tt/component/homescreen.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/model_tt/component/homescreen.rs b/core/embed/rust/src/ui/model_tt/component/homescreen.rs index ba49a70083..efdcfece81 100644 --- a/core/embed/rust/src/ui/model_tt/component/homescreen.rs +++ b/core/embed/rust/src/ui/model_tt/component/homescreen.rs @@ -218,7 +218,10 @@ impl Component for Homescreen { } self.label.map(|t| { - let r = Rect::new(Point::new(6, 198), Point::new(234, 233)); + let r = Rect::new( + Point::new(6, LABEL_Y - 24), + Point::new(WIDTH - 6, LABEL_Y + 11), + ); shape::Bar::new(r) .with_bg(Color::black()) .with_alpha(89)