pub struct Theme {
pub name: String,
pub palette: ThemePalette,
}Expand description
Theme
Fields§
§name: StringTheme name
palette: ThemePaletteTheme palette
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn new(
kind: ThemeKind,
scheme: ThemeScheme,
contrast: ThemeContrast,
accent: Option<ThemeColor>,
) -> Self
pub fn new( kind: ThemeKind, scheme: ThemeScheme, contrast: ThemeContrast, accent: Option<ThemeColor>, ) -> Self
Get the theme for the given theme kind, scheme, contrast, and (optionally) accent color.
Trait Implementations§
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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