pub struct Theme {Show 16 fields
pub background: Color,
pub surface: Color,
pub text: Color,
pub muted: Color,
pub accent: Color,
pub on_accent: Color,
pub success: Color,
pub warning: Color,
pub danger: Color,
pub type_scale: TypeScale,
pub space: Scale,
pub radius: Scale,
pub shadow_sm: ShadowSpec,
pub shadow_md: ShadowSpec,
pub shadow_lg: ShadowSpec,
pub motion: Motion,
}Expand description
Colors, type, space, radii, shadows and motion for one look.
Fields§
§background: ColorPage background. Project::theme copies this onto the project.
surface: ColorCards and panels.
text: ColorPrimary text.
muted: ColorSecondary text.
accent: ColorBrand color, readable on the background.
on_accent: ColorText on top of the accent.
success: ColorPositive.
warning: ColorCaution.
danger: ColorFailure.
type_scale: TypeScaleType roles.
space: ScalePadding, gap and margin, in pixels.
radius: ScaleCorner radii, in pixels.
shadow_sm: ShadowSpec§shadow_md: ShadowSpecMedium shadow.
shadow_lg: ShadowSpecLarge shadow.
motion: MotionDurations and eases.
Implementations§
Trait Implementations§
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