pub struct InheritTheme {
pub palette: Option<Rc<Palette>>,
pub typography_theme: Option<TypographyTheme>,
pub icon_size: Option<IconSize>,
pub icons: Option<HashMap<NamedSvg, Resource<Svg>, RandomState>>,
pub transitions_theme: Option<TransitionTheme>,
pub compose_decorators: Option<ComposeDecorators>,
pub custom_styles: Option<CustomStyles>,
pub font_bytes: Option<Vec<Vec<u8>>>,
pub font_files: Option<Vec<String>>,
}Expand description
Inherit theme override part of parent theme, if anything not found in here,
should query in parent theme until meet a FullTheme.
Fields§
§palette: Option<Rc<Palette>>§typography_theme: Option<TypographyTheme>§icon_size: Option<IconSize>icon size standard
icons: Option<HashMap<NamedSvg, Resource<Svg>, RandomState>>a collection of icons.
transitions_theme: Option<TransitionTheme>§compose_decorators: Option<ComposeDecorators>§custom_styles: Option<CustomStyles>§font_bytes: Option<Vec<Vec<u8>>>§font_files: Option<Vec<String>>Trait Implementations§
Source§impl Default for InheritTheme
impl Default for InheritTheme
Source§fn default() -> InheritTheme
fn default() -> InheritTheme
Returns the “default value” for a type. Read more
Source§impl From<InheritTheme> for Theme
impl From<InheritTheme> for Theme
Source§fn from(value: InheritTheme) -> Self
fn from(value: InheritTheme) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InheritTheme
impl !Send for InheritTheme
impl !Sync for InheritTheme
impl !UnwindSafe for InheritTheme
impl Freeze for InheritTheme
impl Unpin for InheritTheme
impl UnsafeUnpin for InheritTheme
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> 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.