Struct freya_hooks::Theme
source · pub struct Theme {Show 14 fields
pub name: &'static str,
pub body: BodyTheme,
pub button: ButtonTheme,
pub switch: SwitchTheme,
pub scrollbar: ScrollbarTheme,
pub slider: SliderTheme,
pub tooltip: TooltipTheme,
pub external_link: ExternalLinkTheme,
pub dropdown: DropdownTheme,
pub dropdown_item: DropdownItemTheme,
pub accordion: AccordionTheme,
pub loader: LoaderTheme,
pub progress_bar: ProgressBarTheme,
pub table: TableTheme,
}
Expand description
Theming properties for Themes.
Fields§
§name: &'static str
§body: BodyTheme
§switch: SwitchTheme
§scrollbar: ScrollbarTheme
§slider: SliderTheme
§tooltip: TooltipTheme
§external_link: ExternalLinkTheme
§dropdown: DropdownTheme
§dropdown_item: DropdownItemTheme
§accordion: AccordionTheme
§loader: LoaderTheme
§progress_bar: ProgressBarTheme
§table: TableTheme
Trait Implementations§
source§impl PartialEq<Theme> for Theme
impl PartialEq<Theme> for Theme
impl Eq for Theme
impl StructuralEq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.