pub struct Theme {
pub body: TextStyle,
pub caption: TextStyle,
pub heading1: TextStyle,
pub heading2: TextStyle,
pub heading3: TextStyle,
pub table_header: TextStyle,
pub muted: TextStyle,
}Expand description
Named TextStyle roles. Theme::default() reproduces exactly the
hardcoded values TextStyle::default()/.heading1()/.heading2()/
.heading3() already used before Theme existed (caption/
table_header/muted are new roles with no prior hardcoded
equivalent, so they can’t break existing output either way).
Fields§
§body: TextStyle§caption: TextStyle§heading1: TextStyle§heading2: TextStyle§heading3: TextStyle§table_header: TextStyle§muted: TextStyleImplementations§
Trait Implementations§
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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