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§
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