From d77c53d7b2591bc9feab4fcf0f47a680c209746e Mon Sep 17 00:00:00 2001 From: grdddj Date: Thu, 30 Mar 2023 19:33:17 +0200 Subject: [PATCH] rust: rename display::text into display::text_left --- core/embed/rust/src/ui/model_tt/component/button.rs | 4 ++-- core/embed/rust/src/ui/model_tt/component/keyboard/bip39.rs | 4 ++-- core/embed/rust/src/ui/model_tt/component/keyboard/slip39.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/embed/rust/src/ui/model_tt/component/button.rs b/core/embed/rust/src/ui/model_tt/component/button.rs index f65fe1c0ca..876c6d8a03 100644 --- a/core/embed/rust/src/ui/model_tt/component/button.rs +++ b/core/embed/rust/src/ui/model_tt/component/button.rs @@ -200,7 +200,7 @@ impl Button { let start_of_baseline = self.area.center() + Offset::new(-width / 2, height / 2) + Offset::y(Self::BASELINE_OFFSET); - display::text( + display::text_left( start_of_baseline, text, style.font, @@ -573,7 +573,7 @@ impl IconText { } if use_text { - display::text( + display::text_left( text_pos, self.text, style.font, diff --git a/core/embed/rust/src/ui/model_tt/component/keyboard/bip39.rs b/core/embed/rust/src/ui/model_tt/component/keyboard/bip39.rs index e9feb5be59..5a6e205bd7 100644 --- a/core/embed/rust/src/ui/model_tt/component/keyboard/bip39.rs +++ b/core/embed/rust/src/ui/model_tt/component/keyboard/bip39.rs @@ -110,7 +110,7 @@ impl Component for Bip39Input { // Content starts in the left-center point, offset by 16px to the right and 8px // to the bottom. let text_baseline = area.top_left().center(area.bottom_left()) + Offset::new(16, 8); - display::text( + display::text_left( text_baseline, text, style.font, @@ -121,7 +121,7 @@ impl Component for Bip39Input { // Paint the rest of the suggested dictionary word. if let Some(word) = self.suggested_word.and_then(|w| w.get(text.len()..)) { let word_baseline = text_baseline + Offset::new(width, 0); - display::text( + display::text_left( word_baseline, word, style.font, diff --git a/core/embed/rust/src/ui/model_tt/component/keyboard/slip39.rs b/core/embed/rust/src/ui/model_tt/component/keyboard/slip39.rs index 1bfa346430..47ffb6fb7d 100644 --- a/core/embed/rust/src/ui/model_tt/component/keyboard/slip39.rs +++ b/core/embed/rust/src/ui/model_tt/component/keyboard/slip39.rs @@ -159,7 +159,7 @@ impl Component for Slip39Input { .assert_if_debugging_ui("Text buffer is too small"); } } - display::text( + display::text_left( text_baseline, text.as_str(), style.font,