1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-28 19:58:45 +00:00

chore(eckhart): add mono light font + remove trailing hyphen from mono styles

This commit is contained in:
Lukas Bielesch 2025-03-28 13:10:43 +01:00 committed by obrusvit
parent 44db238f08
commit 3263abe5fb

View File

@ -65,6 +65,16 @@ pub const TEXT_MONO_MEDIUM: TextStyle = TextStyle::new(
GREY_EXTRA_LIGHT, GREY_EXTRA_LIGHT,
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) /// Roboto Mono Light - 30 (Address, data)
pub const TEXT_MONO_LIGHT: TextStyle = TextStyle::new( pub const TEXT_MONO_LIGHT: TextStyle = TextStyle::new(
fonts::FONT_MONO_LIGHT_30, fonts::FONT_MONO_LIGHT_30,
@ -72,7 +82,8 @@ pub const TEXT_MONO_LIGHT: TextStyle = TextStyle::new(
BG, BG,
GREY_LIGHT, GREY_LIGHT,
GREY_LIGHT, GREY_LIGHT,
); )
.with_line_breaking(LineBreaking::BreakWordsNoHyphen);
pub const TEXT_REGULAR_WARNING: TextStyle = pub const TEXT_REGULAR_WARNING: TextStyle =
TextStyle::new(fonts::FONT_SATOSHI_REGULAR_38, RED, BG, GREY, GREY); TextStyle::new(fonts::FONT_SATOSHI_REGULAR_38, RED, BG, GREY, GREY);