pub struct ThemePreview {
pub meta: ThemeMeta,
pub background: Option<String>,
pub foreground: Option<String>,
pub accent: Option<String>,
pub border: Option<String>,
}Expand description
A four-color preview for theme thumbnails: the representative swatch from each of the principal roles.
Fields§
§meta: ThemeMeta§background: Option<String>Page background (surface.page).
foreground: Option<String>Body text (content.primary).
accent: Option<String>Brand/interactive color (action.primary).
border: Option<String>Divider/outline color (line.border).
Trait Implementations§
Source§impl Clone for ThemePreview
impl Clone for ThemePreview
Source§fn clone(&self) -> ThemePreview
fn clone(&self) -> ThemePreview
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemePreview
impl Debug for ThemePreview
Auto Trait Implementations§
impl Freeze for ThemePreview
impl RefUnwindSafe for ThemePreview
impl Send for ThemePreview
impl Sync for ThemePreview
impl Unpin for ThemePreview
impl UnsafeUnpin for ThemePreview
impl UnwindSafe for ThemePreview
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