pub struct DesignSystem {
pub bg_base: Color,
pub text_base: Color,
pub text_lightness: f32,
pub primary_base: Color,
pub success_base: Color,
pub warning_base: Color,
pub danger_base: Color,
pub is_dark: bool,
pub padding: f32,
pub border_radius: f32,
pub font_size: f64,
}Fields§
§bg_base: Color§text_base: Color§text_lightness: f32§primary_base: Color§success_base: Color§warning_base: Color§danger_base: Color§is_dark: bool§padding: f32§border_radius: f32§font_size: f64Implementations§
Source§impl DesignSystem
impl DesignSystem
pub fn bg_base(&self) -> Color
pub fn bg_elevated(&self) -> Color
pub fn bg_overlay(&self) -> Color
pub fn bg_disabled(&self) -> Color
pub fn border(&self) -> Color
pub fn border_muted(&self) -> Color
pub fn text(&self) -> Color
pub fn text_muted(&self) -> Color
pub fn primary(&self) -> Color
pub fn primary_muted(&self) -> Color
pub fn success(&self) -> Color
pub fn warning(&self) -> Color
pub fn danger(&self) -> Color
pub fn info(&self) -> Color
pub fn padding(&self) -> f32
pub fn border_radius(&self) -> f32
pub fn font_size(&self) -> f64
Trait Implementations§
Source§impl Clone for DesignSystem
impl Clone for DesignSystem
Source§fn clone(&self) -> DesignSystem
fn clone(&self) -> DesignSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DesignSystem
impl Debug for DesignSystem
Source§impl PartialEq for DesignSystem
impl PartialEq for DesignSystem
Source§fn eq(&self, other: &DesignSystem) -> bool
fn eq(&self, other: &DesignSystem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DesignSystem
Source§impl StylePropValue for DesignSystem
impl StylePropValue for DesignSystem
fn debug_view(&self) -> Option<AnyView>
fn interpolate(&self, other: &Self, value: f64) -> Option<Self>
Source§fn content_hash(&self) -> u64
fn content_hash(&self) -> u64
Compute a content-based hash for this value. Read more
Auto Trait Implementations§
impl Freeze for DesignSystem
impl RefUnwindSafe for DesignSystem
impl Send for DesignSystem
impl Sync for DesignSystem
impl Unpin for DesignSystem
impl UnsafeUnpin for DesignSystem
impl UnwindSafe for DesignSystem
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more