pub struct ThemeBuilder { /* private fields */ }Implementations§
Source§impl ThemeBuilder
impl ThemeBuilder
Sourcepub const fn with_source(source: Argb) -> Self
pub const fn with_source(source: Argb) -> Self
Creates a theme builder with a custom source color.
Sourcepub const fn neutral(self, color: Argb) -> Self
pub const fn neutral(self, color: Argb) -> Self
Sets the neutral color, used for background and surfaces.
Sourcepub const fn neutral_variant(self, color: Argb) -> Self
pub const fn neutral_variant(self, color: Argb) -> Self
Sets the neutral variant color, used for for medium emphasis and variants.
Sourcepub fn custom_colors(self, custom_colors: Vec<CustomColor>) -> Self
pub fn custom_colors(self, custom_colors: Vec<CustomColor>) -> Self
Sets the custom colors, used as complementary tones.
Custom colors are also known as extended colors.
pub const fn color_match(self, enabled: bool) -> Self
pub fn build(self) -> Theme
Auto Trait Implementations§
impl Freeze for ThemeBuilder
impl RefUnwindSafe for ThemeBuilder
impl Send for ThemeBuilder
impl Sync for ThemeBuilder
impl Unpin for ThemeBuilder
impl UnsafeUnpin for ThemeBuilder
impl UnwindSafe for ThemeBuilder
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