pub enum ThemePreset {
Show 18 variants
Baseline,
TonalSpot,
Vibrant,
Expressive,
Fidelity,
Content,
Monochrome,
Neutral,
HighContrast,
Ocean,
Forest,
Spring,
Sunset,
Desert,
Summer,
BrownBeige,
SageIvory,
TealCaramel,
}Expand description
Bundled palette recipes, with seed colors inspired by md3.io.
Variants§
Baseline
Standard Material 3 baseline purple palette (default).
TonalSpot
Tonal Spot dynamic scheme derived from the baseline seed.
Vibrant
Vibrant dynamic scheme derived from the baseline seed.
Expressive
Expressive dynamic scheme derived from the baseline seed.
Fidelity
Fidelity dynamic scheme derived from the baseline seed.
Content
Content dynamic scheme derived from the baseline seed.
Monochrome
Monochrome grayscale dynamic scheme.
Neutral
Low-chroma neutral dynamic scheme.
HighContrast
High-contrast (contrast = 1.0) Tonal Spot scheme derived from the baseline seed.
Ocean
Deep ocean blue Tonal Spot palette.
Forest
Forest green Tonal Spot palette.
Spring
Bright spring green Tonal Spot palette.
Sunset
Warm sunset orange Tonal Spot palette.
Desert
Earthy desert ochre Tonal Spot palette.
Summer
Clear summer sky blue Tonal Spot palette.
BrownBeige
Warm brown and beige Tonal Spot palette.
SageIvory
Muted sage and ivory Tonal Spot palette.
TealCaramel
Deep teal and caramel Tonal Spot palette.
Implementations§
Source§impl ThemePreset
impl ThemePreset
Sourcepub fn colors(self, appearance: Appearance) -> ColorScheme
pub fn colors(self, appearance: Appearance) -> ColorScheme
Resolves the preset for the requested appearance.
Sourcepub fn theme(self, appearance: Appearance) -> MaterialTheme
pub fn theme(self, appearance: Appearance) -> MaterialTheme
Builds a complete MaterialTheme using this preset’s colors and default typography, motion, and layout.
Trait Implementations§
Source§impl Clone for ThemePreset
impl Clone for ThemePreset
impl Copy for ThemePreset
Source§impl Debug for ThemePreset
impl Debug for ThemePreset
Source§impl Default for ThemePreset
impl Default for ThemePreset
Source§impl<'de> Deserialize<'de> for ThemePreset
impl<'de> Deserialize<'de> for ThemePreset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ThemePreset
Source§impl PartialEq for ThemePreset
impl PartialEq for ThemePreset
Source§impl Serialize for ThemePreset
impl Serialize for ThemePreset
impl StructuralPartialEq for ThemePreset
Auto Trait Implementations§
impl Forget for ThemePreset
impl Freeze for ThemePreset
impl Move for ThemePreset
impl RefUnwindSafe for ThemePreset
impl Send for ThemePreset
impl Sync for ThemePreset
impl Unpin for ThemePreset
impl UnsafeUnpin for ThemePreset
impl UnwindSafe for ThemePreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.