pub struct MaterialTheme {
pub colors: ColorScheme,
pub typography: Typography,
pub motion: MotionScheme,
pub layout: LayoutPolicy,
}Expand description
Application-owned configuration consumed by the Material rendering layer.
Fields§
§colors: ColorScheme§typography: Typography§motion: MotionScheme§layout: LayoutPolicyImplementations§
Source§impl MaterialTheme
impl MaterialTheme
Sourcepub fn baseline(appearance: Appearance) -> Self
pub fn baseline(appearance: Appearance) -> Self
Creates the baseline theme for an explicit appearance.
Trait Implementations§
Source§impl Clone for MaterialTheme
impl Clone for MaterialTheme
Source§impl Debug for MaterialTheme
impl Debug for MaterialTheme
Source§impl Default for MaterialTheme
impl Default for MaterialTheme
Source§impl PartialEq for MaterialTheme
impl PartialEq for MaterialTheme
impl StructuralPartialEq for MaterialTheme
Auto Trait Implementations§
impl Forget for MaterialTheme
impl Freeze for MaterialTheme
impl Move for MaterialTheme
impl RefUnwindSafe for MaterialTheme
impl Send for MaterialTheme
impl Sync for MaterialTheme
impl Unpin for MaterialTheme
impl UnsafeUnpin for MaterialTheme
impl UnwindSafe for MaterialTheme
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