pub struct LiquidTypography {
pub large_title: TextStyle,
pub title1: TextStyle,
pub title2: TextStyle,
pub title3: TextStyle,
pub headline: TextStyle,
pub body: TextStyle,
pub callout: TextStyle,
pub subheadline: TextStyle,
pub footnote: TextStyle,
pub caption1: TextStyle,
pub caption2: TextStyle,
}Expand description
The iOS text-style ramp. The defaults run from 34 sp for large_title down to 11 sp for
caption2.
Fields§
§large_title: TextStyleThe largest title. Default: 34 sp, bold.
title1: TextStyleThe first-level title. Default: 28 sp, bold.
title2: TextStyleThe second-level title. Default: 22 sp, bold.
title3: TextStyleThe third-level title. Default: 20 sp, semi bold.
headline: TextStyleThe heading of a section or a row. Default: 17 sp, semi bold.
body: TextStyleThe text of the main content. Default: 17 sp, regular.
callout: TextStyleText a little smaller than the main content. Default: 16 sp, regular.
subheadline: TextStyleA line under a headline. Default: 15 sp, regular.
footnote: TextStyleNotes under content. Default: 13 sp, regular.
caption1: TextStyleA caption. Default: 12 sp, regular.
caption2: TextStyleThe smallest caption. Default: 11 sp, regular.
Implementations§
Trait Implementations§
Source§impl Clone for LiquidTypography
impl Clone for LiquidTypography
Source§impl Debug for LiquidTypography
impl Debug for LiquidTypography
Source§impl Default for LiquidTypography
impl Default for LiquidTypography
Source§impl PartialEq for LiquidTypography
impl PartialEq for LiquidTypography
impl StructuralPartialEq for LiquidTypography
Auto Trait Implementations§
impl Freeze for LiquidTypography
impl RefUnwindSafe for LiquidTypography
impl Send for LiquidTypography
impl Sync for LiquidTypography
impl Unpin for LiquidTypography
impl UnsafeUnpin for LiquidTypography
impl UnwindSafe for LiquidTypography
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more