Struct raui_material::theme::ThemeProps
source · pub struct ThemeProps {
pub active_colors: ThemeColorsBundle,
pub background_colors: ThemeColorsBundle,
pub content_backgrounds: HashMap<String, ThemedImageMaterial>,
pub button_backgrounds: HashMap<String, ThemedButtonMaterial>,
pub icons_level_sizes: Vec<Scalar>,
pub text_variants: HashMap<String, ThemedTextMaterial>,
pub switch_variants: HashMap<String, ThemedSwitchMaterial>,
pub modal_shadow_variants: HashMap<String, Color>,
}Fields§
§active_colors: ThemeColorsBundle§background_colors: ThemeColorsBundle§content_backgrounds: HashMap<String, ThemedImageMaterial>§icons_level_sizes: Vec<Scalar>§text_variants: HashMap<String, ThemedTextMaterial>§switch_variants: HashMap<String, ThemedSwitchMaterial>§modal_shadow_variants: HashMap<String, Color>Trait Implementations§
source§impl Clone for ThemeProps
impl Clone for ThemeProps
source§fn clone(&self) -> ThemeProps
fn clone(&self) -> ThemeProps
Returns a copy of the value. Read more
1.0.0 · 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 ThemeProps
impl Debug for ThemeProps
source§impl Default for ThemeProps
impl Default for ThemeProps
source§fn default() -> ThemeProps
fn default() -> ThemeProps
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ThemeProps
impl<'de> Deserialize<'de> for ThemeProps
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Prefab for ThemeProps
impl Prefab for ThemeProps
fn from_prefab(data: Value) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
source§impl PropsData for ThemePropswhere
Self: Clone,
impl PropsData for ThemePropswhere Self: Clone,
Auto Trait Implementations§
impl RefUnwindSafe for ThemeProps
impl Send for ThemeProps
impl Sync for ThemeProps
impl Unpin for ThemeProps
impl UnwindSafe for ThemeProps
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<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more