pub enum ThemeMode {
System,
Light,
Dark,
}Expand description
Whether the active theme should follow the OS light/dark setting, or is
pinned by the app/user. Mirrors rosace_core::platform’s enum+atom shape.
Variants§
System
Follow rosace_core::media_query().is_dark — the default. Every
native env-push call site calls sync_system_theme after updating
the media query, which swaps in dark_theme()/light_theme().
Light
Locked to light regardless of the OS setting.
Dark
Locked to dark regardless of the OS setting.
Trait Implementations§
impl Copy for ThemeMode
impl Eq for ThemeMode
impl StructuralPartialEq for ThemeMode
Auto Trait Implementations§
impl Freeze 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> 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