pub enum Theme {
Dark,
Light,
}
Expand description
Dark or Light theme.
Variants§
Implementations§
source§impl Theme
impl Theme
sourcepub fn default_visuals(self) -> Visuals
pub fn default_visuals(self) -> Visuals
Default visuals for this theme.
sourcepub fn default_style(self) -> Style
pub fn default_style(self) -> Style
Default style for this theme.
sourcepub fn from_dark_mode(dark_mode: bool) -> Self
pub fn from_dark_mode(dark_mode: bool) -> Self
Chooses between Self::Dark
or Self::Light
based on a boolean value.
Trait Implementations§
source§impl From<Theme> for ThemePreference
impl From<Theme> for ThemePreference
impl Copy for Theme
impl Eq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)