pub struct ThemePalette {
pub background: ThemeColor,
pub foreground: ThemeColor,
pub accent: ThemeColor,
pub success: ThemeColor,
pub warning: ThemeColor,
pub danger: ThemeColor,
}Expand description
Theme Palette
Fields§
§background: ThemeColorBackground color
foreground: ThemeColorForeground color
accent: ThemeColorAccent color
success: ThemeColorSuccess color
warning: ThemeColorWarning color
danger: ThemeColorDanger color
Implementations§
Source§impl ThemePalette
impl ThemePalette
Sourcepub fn system_palette(
kind: ThemeKind,
scheme: ThemeScheme,
contrast: ThemeContrast,
) -> Self
pub fn system_palette( kind: ThemeKind, scheme: ThemeScheme, contrast: ThemeContrast, ) -> Self
Get the system palette for the given theme kind, scheme, and contrast.
Trait Implementations§
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 ThemePalette
impl RefUnwindSafe for ThemePalette
impl Send for ThemePalette
impl Sync for ThemePalette
impl Unpin for ThemePalette
impl UnwindSafe for ThemePalette
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