pub struct SystemTheme { /* private fields */ }Expand description
System theme implementation.
Implementations§
Source§impl SystemTheme
impl SystemTheme
Sourcepub fn get_scheme(&self) -> Result<ThemeScheme, Error>
pub fn get_scheme(&self) -> Result<ThemeScheme, Error>
Get the system theme scheme.
Sourcepub fn get_contrast(&self) -> Result<ThemeContrast, Error>
pub fn get_contrast(&self) -> Result<ThemeContrast, Error>
Get the system theme contrast level.
Sourcepub fn get_accent(&self) -> Result<ThemeColor, Error>
pub fn get_accent(&self) -> Result<ThemeColor, Error>
Get the system theme accent color.
Trait Implementations§
Source§impl AsRef<SystemTheme> for SystemTheme
impl AsRef<SystemTheme> for SystemTheme
Source§fn as_ref(&self) -> &SystemTheme
fn as_ref(&self) -> &SystemTheme
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<&SystemTheme> for ThemePalette
impl From<&SystemTheme> for ThemePalette
Source§fn from(theme: &SystemTheme) -> Self
fn from(theme: &SystemTheme) -> Self
Converts to this type from the input type.
Source§impl From<SystemTheme> for ThemePalette
impl From<SystemTheme> for ThemePalette
Source§fn from(theme: SystemTheme) -> Self
fn from(theme: SystemTheme) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemTheme
impl RefUnwindSafe for SystemTheme
impl Send for SystemTheme
impl Sync for SystemTheme
impl Unpin for SystemTheme
impl UnwindSafe for SystemTheme
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