pub struct Typography {Show 13 fields
pub title_font: String,
pub title_size: f64,
pub title_color: Color,
pub heading_font: String,
pub heading_size: f64,
pub heading_color: Color,
pub body_font: String,
pub body_size: f64,
pub body_color: Color,
pub caption_font: String,
pub caption_size: f64,
pub caption_color: Color,
pub line_height: f64,
}Expand description
Typography configuration for dashboard themes
Fields§
§title_font: StringFont for titles
title_size: f64Title font size
title_color: ColorTitle text color
heading_font: StringFont for headings
heading_size: f64Heading font size
heading_color: ColorHeading text color
body_font: StringFont for body text
body_size: f64Body font size
body_color: ColorBody text color
caption_font: StringFont for captions
caption_size: f64Caption font size
caption_color: ColorCaption text color
line_height: f64Line height multiplier
Implementations§
Trait Implementations§
Source§impl Clone for Typography
impl Clone for Typography
Source§fn clone(&self) -> Typography
fn clone(&self) -> Typography
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Typography
impl Debug for Typography
Auto Trait Implementations§
impl Freeze for Typography
impl RefUnwindSafe for Typography
impl Send for Typography
impl Sync for Typography
impl Unpin for Typography
impl UnwindSafe for Typography
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