pub struct ThemeBuilder { /* private fields */ }Expand description
Builder avanzato per costruire temi in modo fluido ed ergonomico.
Implementations§
Source§impl ThemeBuilder
impl ThemeBuilder
pub fn new() -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn primary_color(self, color: PrimaryColor) -> Self
pub fn radius_scale(self, radius: RadiusScale) -> Self
pub fn elevation_style(self, elevation: ElevationStyle) -> Self
pub fn glow_mode(self, glow: GlowMode) -> Self
pub fn surface_0(self, val: impl Into<String>) -> Self
pub fn surface_1(self, val: impl Into<String>) -> Self
pub fn surface_2(self, val: impl Into<String>) -> Self
pub fn surface_3(self, val: impl Into<String>) -> Self
Sourcepub fn override_component(
self,
component: impl Into<String>,
config_fn: impl FnOnce(ComponentOverride) -> ComponentOverride,
) -> Self
pub fn override_component( self, component: impl Into<String>, config_fn: impl FnOnce(ComponentOverride) -> ComponentOverride, ) -> Self
Personalizzazione Livello 2 per uno specifico componente.
Sourcepub fn override_class(
self,
target_class: impl Into<String>,
modifier: impl Into<String>,
) -> Self
pub fn override_class( self, target_class: impl Into<String>, modifier: impl Into<String>, ) -> Self
Personalizzazione Livello 2 per una specifica classe target.
pub fn build(self) -> Theme
Trait Implementations§
Source§impl Clone for ThemeBuilder
impl Clone for ThemeBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.