pub enum Theme {
Light,
Dark,
}
Expand description
Represents a rendering style - dark mode or light mode.
In the event that a new variant is introduced in later versions of
macOS or iOS, calls that use the dynamic color(s) from here will likely
default to the Light
theme.
Variants
Light
The “default” theme on a platform. On macOS/Airyx, this is Aqua. On iOS and tvOS, this is whatever you call the system defined theme.
Dark
Dark mode.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more