From 925fa219adea3779111166b2537445f53cd3834b Mon Sep 17 00:00:00 2001 From: obrusvit Date: Mon, 15 Apr 2024 10:39:07 +0200 Subject: [PATCH] WIP - use upper font on more places --- core/embed/rust/src/ui/model_tr/component/homescreen.rs | 2 +- core/embed/rust/src/ui/model_tr/layout.rs | 8 ++++---- core/translations/signatures.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/embed/rust/src/ui/model_tr/component/homescreen.rs b/core/embed/rust/src/ui/model_tr/component/homescreen.rs index f3f2f6b43..b8069ec29 100644 --- a/core/embed/rust/src/ui/model_tr/component/homescreen.rs +++ b/core/embed/rust/src/ui/model_tr/component/homescreen.rs @@ -313,7 +313,7 @@ impl ConfirmHomescreen { pub fn new(title: TString<'static>, buffer_func: F) -> Self { let btn_layout = ButtonLayout::cancel_none_text(TR::buttons__change.into()); ConfirmHomescreen { - title: Child::new(Label::centered(title, theme::TEXT_BOLD)), + title: Child::new(Label::centered(title, theme::TEXT_BOLD_UPPER)), buffer_func, buttons: Child::new(ButtonController::new(btn_layout)), } diff --git a/core/embed/rust/src/ui/model_tr/layout.rs b/core/embed/rust/src/ui/model_tr/layout.rs index 5753e44e6..cc826904d 100644 --- a/core/embed/rust/src/ui/model_tr/layout.rs +++ b/core/embed/rust/src/ui/model_tr/layout.rs @@ -671,7 +671,7 @@ extern "C" fn new_confirm_total(n_args: usize, args: *const Obj, kwargs: *mut Ma let fee_rate_amount = fee_rate_amount.unwrap_or("".into()); let ops = OpTextLayout::new(theme::TEXT_MONO) - .text_bold(TR::confirm_total__title_fee) + .text_bold_upper(TR::confirm_total__title_fee) .newline() .newline() .newline_half() @@ -692,7 +692,7 @@ extern "C" fn new_confirm_total(n_args: usize, args: *const Obj, kwargs: *mut Ma // TODO: include wallet info when available let ops = OpTextLayout::new(theme::TEXT_MONO) - .text_bold(TR::confirm_total__title_sending_from) + .text_bold_upper(TR::confirm_total__title_sending_from) .newline() .newline() .newline_half() @@ -1072,7 +1072,7 @@ extern "C" fn new_show_warning(n_args: usize, args: *const Obj, kwargs: *mut Map let mut ops = OpTextLayout::new(theme::TEXT_NORMAL); ops = ops.alignment(geometry::Alignment::Center); if !warning.is_empty() { - ops = ops.text_bold(warning).newline(); + ops = ops.text_bold_upper(warning).newline(); } if !description.is_empty() { ops = ops.text_normal(description); @@ -1144,7 +1144,7 @@ extern "C" fn new_show_mismatch(n_args: usize, args: *const Obj, kwargs: *mut Ma let btn_layout = ButtonLayout::arrow_none_text(TR::buttons__quit.into()); let btn_actions = ButtonActions::cancel_none_confirm(); let ops = OpTextLayout::new(theme::TEXT_NORMAL) - .text_bold(title) + .text_bold_upper(title) .newline() .newline_half() .text_normal(TR::addr_mismatch__contact_support_at) diff --git a/core/translations/signatures.json b/core/translations/signatures.json index b53e8b66f..e4c9ffff0 100644 --- a/core/translations/signatures.json +++ b/core/translations/signatures.json @@ -1,8 +1,8 @@ { "current": { - "merkle_root": "83f62541670df59f347bfdf577f36c1ef504f769fd8a498c0f76aa78f9021cda", - "datetime": "2024-03-30T11:28:31.004037", - "commit": "1c36c0927c33fd05b4eff4b3a020940e33074b54" + "merkle_root": "ea593a1199706af111d475c6b294b5e97ae72b8a1f2d7428cb4ee825f50ffce3", + "datetime": "2024-04-14T21:39:39.458051", + "commit": "a599953e686cb0b428c4e3b1e3b1deb0603294f4" }, "history": [ {