pub enum Mode {
Dark,
Light,
Unspecified,
}
Expand description
Enum representing dark mode, light mode, or unspecified.
If Mode::Unspecified
is returned, it is expected that the user decides which theme mode to use for their specific use case.
Variants§
Dark
Represents the dark mode option.
Light
Represents the light mode option.
Unspecified
Used when the system theme mode is unspecified.
Trait Implementations§
Source§impl From<ColorScheme> for Mode
impl From<ColorScheme> for Mode
Source§fn from(value: PortalColorScheme) -> Self
fn from(value: PortalColorScheme) -> Self
Converts to this type from the input type.
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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