pub struct UiTheme {Show 21 fields
pub name: String,
pub primary: Vec4,
pub secondary: Vec4,
pub success: Vec4,
pub warning: Vec4,
pub error: Vec4,
pub background: Vec4,
pub surface: Vec4,
pub on_background: Vec4,
pub on_surface: Vec4,
pub on_primary: Vec4,
pub border_color: Vec4,
pub border_radius: f32,
pub font_family: String,
pub font_size_sm: f32,
pub font_size_md: f32,
pub font_size_lg: f32,
pub spacing_unit: f32,
pub shadow_color: Vec4,
pub focus_ring_color: Vec4,
pub disabled_opacity: f32,
}Fields§
§name: String§primary: Vec4§secondary: Vec4§success: Vec4§warning: Vec4§error: Vec4§background: Vec4§surface: Vec4§on_background: Vec4§on_surface: Vec4§on_primary: Vec4§border_color: Vec4§border_radius: f32§font_family: String§font_size_sm: f32§font_size_md: f32§font_size_lg: f32§spacing_unit: f32§shadow_color: Vec4§focus_ring_color: Vec4§disabled_opacity: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiTheme
impl RefUnwindSafe for UiTheme
impl Send for UiTheme
impl Sync for UiTheme
impl Unpin for UiTheme
impl UnsafeUnpin for UiTheme
impl UnwindSafe for UiTheme
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.