|
|
|
@ -642,10 +642,10 @@ pub const fn loader_lock_icon() -> LoaderStyleSheet {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub const TEXT_NORMAL: TextStyle = TextStyle::new(Font::NORMAL, FG, BG, GREY_LIGHT, GREY_LIGHT);
|
|
|
|
|
pub const TEXT_DEMIBOLD: TextStyle = TextStyle::new(Font::DEMIBOLD, FG, BG, GREY_LIGHT, GREY_LIGHT);
|
|
|
|
|
pub const TEXT_BOLD: TextStyle = TextStyle::new(Font::BOLD, FG, BG, GREY_LIGHT, GREY_LIGHT);
|
|
|
|
|
pub const TEXT_MONO: TextStyle = TextStyle::new(Font::MONO, FG, BG, GREY_LIGHT, GREY_LIGHT)
|
|
|
|
|
pub const TEXT_SUPER: TextStyle = TextStyle::new(Font::BIG, GREY_EXTRA_LIGHT, BG, GREY, GREY);
|
|
|
|
|
pub const TEXT_MAIN: TextStyle = TextStyle::new(Font::NORMAL, GREY_EXTRA_LIGHT, BG, GREY, GREY);
|
|
|
|
|
pub const TEXT_SUB: TextStyle = TextStyle::new(Font::SUB, GREY, BG, GREY, GREY);
|
|
|
|
|
pub const TEXT_MONO: TextStyle = TextStyle::new(Font::MONO, GREY_EXTRA_LIGHT, BG, GREY, GREY)
|
|
|
|
|
.with_line_breaking(LineBreaking::BreakWordsNoHyphen)
|
|
|
|
|
.with_page_breaking(PageBreaking::CutAndInsertEllipsisBoth)
|
|
|
|
|
.with_ellipsis_icon(ICON_PAGE_NEXT, 0)
|
|
|
|
@ -663,6 +663,11 @@ pub const TEXT_MONO_ADDRESS_CHUNKS_SMALLER_X_OFFSET: TextStyle = TEXT_MONO
|
|
|
|
|
.with_line_spacing(5)
|
|
|
|
|
.with_ellipsis_icon(ICON_PAGE_NEXT, -12);
|
|
|
|
|
|
|
|
|
|
// TODO: remove TextStyles below when ui-t3t1 done
|
|
|
|
|
pub const TEXT_NORMAL: TextStyle = TextStyle::new(Font::NORMAL, FG, BG, GREY_LIGHT, GREY_LIGHT);
|
|
|
|
|
pub const TEXT_DEMIBOLD: TextStyle = TextStyle::new(Font::DEMIBOLD, FG, BG, GREY_LIGHT, GREY_LIGHT);
|
|
|
|
|
pub const TEXT_BOLD: TextStyle = TextStyle::new(Font::BOLD, FG, BG, GREY_LIGHT, GREY_LIGHT);
|
|
|
|
|
|
|
|
|
|
/// Decide the text style of chunkified text according to its length.
|
|
|
|
|
pub fn get_chunkified_text_style(character_length: usize) -> &'static TextStyle {
|
|
|
|
|
// Longer addresses have smaller x_offset so they fit even with scrollbar
|
|
|
|
|