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) -> Theme
pub fn from_dark_mode(dark_mode: bool) -> Theme
Chooses between Self::Dark or Self::Light based on a boolean value.
Trait Implementations§
impl Copy for Theme
impl Eq for Theme
Source§impl From<Theme> for ThemePreference
impl From<Theme> for ThemePreference
Source§fn from(value: Theme) -> ThemePreference
fn from(value: Theme) -> ThemePreference
Converts to this type from the input type.
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 UnsafeUnpin 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