pub enum ThemeMode {
System,
Light,
Dark,
}Expand description
Describes which theme will be used by MaterialApp.
Variants§
System
Use either the light or dark theme based on what the user has selected in the system settings.
Light
Always use the light mode regardless of system preference.
Dark
Always use the dark mode (if available) regardless of system preference.
Implementations§
Trait Implementations§
impl Copy for ThemeMode
impl Eq for ThemeMode
impl StructuralPartialEq for ThemeMode
Auto Trait Implementations§
impl Forget for ThemeMode
impl Freeze for ThemeMode
impl Move for ThemeMode
impl RefUnwindSafe for ThemeMode
impl Send for ThemeMode
impl Sync for ThemeMode
impl Unpin for ThemeMode
impl UnsafeUnpin for ThemeMode
impl UnwindSafe for ThemeMode
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.