From 1f33f709387b896b596075301396bc12c1eb8051 Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Fri, 28 Mar 2025 13:10:43 +0100 Subject: [PATCH] chore(eckhart): add mono light font + remove trailing hyphen from mono styles --- .../rust/src/ui/layout_eckhart/theme/firmware.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/layout_eckhart/theme/firmware.rs b/core/embed/rust/src/ui/layout_eckhart/theme/firmware.rs index 0e8e60029f..717a63533f 100644 --- a/core/embed/rust/src/ui/layout_eckhart/theme/firmware.rs +++ b/core/embed/rust/src/ui/layout_eckhart/theme/firmware.rs @@ -65,6 +65,16 @@ pub const TEXT_MONO_MEDIUM: TextStyle = TextStyle::new( GREY_EXTRA_LIGHT, GREY_EXTRA_LIGHT, ); + +pub const TEXT_MONO_MEDIUM_LIGHT: TextStyle = TextStyle::new( + fonts::FONT_MONO_MEDIUM_38, + GREY_LIGHT, + BG, + GREY_LIGHT, + GREY_LIGHT, +) +.with_line_breaking(LineBreaking::BreakWordsNoHyphen); + /// Roboto Mono Light - 30 (Address, data) pub const TEXT_MONO_LIGHT: TextStyle = TextStyle::new( fonts::FONT_MONO_LIGHT_30, @@ -72,7 +82,8 @@ pub const TEXT_MONO_LIGHT: TextStyle = TextStyle::new( BG, GREY_LIGHT, GREY_LIGHT, -); +) +.with_line_breaking(LineBreaking::BreakWordsNoHyphen); pub const TEXT_REGULAR_WARNING: TextStyle = TextStyle::new(fonts::FONT_SATOSHI_REGULAR_38, RED, BG, GREY, GREY);