pub struct ThemeContext {
pub theme: Signal<Theme>,
pub resolved_theme: Signal<Theme>,
pub system_theme: Signal<Theme>,
pub set_theme: Callback<Theme>,
pub forced_theme: Option<Theme>,
pub custom_themes: Signal<HashMap<String, Rc<CustomTheme>>>,
pub set_custom_theme: Callback<Rc<CustomTheme>>,
pub reset_to_system: Callback<()>,
pub preview_theme: Signal<Option<Theme>>,
pub apply_preview: Callback<Theme>,
}Available on crate feature
dio only.Fieldsยง
ยงtheme: Signal<Theme>ยงresolved_theme: Signal<Theme>ยงsystem_theme: Signal<Theme>ยงset_theme: Callback<Theme>ยงforced_theme: Option<Theme>ยงcustom_themes: Signal<HashMap<String, Rc<CustomTheme>>>ยงset_custom_theme: Callback<Rc<CustomTheme>>ยงreset_to_system: Callback<()>ยงpreview_theme: Signal<Option<Theme>>ยงapply_preview: Callback<Theme>Trait Implementationsยง
Sourceยงimpl Clone for ThemeContext
impl Clone for ThemeContext
Sourceยงfn clone(&self) -> ThemeContext
fn clone(&self) -> ThemeContext
Returns a duplicate 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 PartialEq for ThemeContext
impl PartialEq for ThemeContext
impl StructuralPartialEq for ThemeContext
Auto Trait Implementationsยง
impl Freeze for ThemeContext
impl !RefUnwindSafe for ThemeContext
impl !Send for ThemeContext
impl !Sync for ThemeContext
impl Unpin for ThemeContext
impl !UnwindSafe for ThemeContext
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.