pub struct CooljapanTheme { /* private fields */ }Expand description
COOLJAPAN theme implementing Theme: a colour Palette plus a FontSpec.
Construct with cooljapan_default, dark, or light, or build a
custom one directly via CooljapanTheme::new.
Implementations§
Trait Implementations§
Source§impl Clone for CooljapanTheme
impl Clone for CooljapanTheme
Source§fn clone(&self) -> CooljapanTheme
fn clone(&self) -> CooljapanTheme
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 CooljapanTheme
impl Debug for CooljapanTheme
Auto Trait Implementations§
impl Freeze for CooljapanTheme
impl RefUnwindSafe for CooljapanTheme
impl Send for CooljapanTheme
impl Sync for CooljapanTheme
impl Unpin for CooljapanTheme
impl UnsafeUnpin for CooljapanTheme
impl UnwindSafe for CooljapanTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ThemeExt for T
impl<T> ThemeExt for T
Source§fn tokens(&self) -> DesignTokens
fn tokens(&self) -> DesignTokens
The theme’s design-token scale (spacing / radius / elevation / opacity). Read more
Source§fn design_tokens(&self) -> &DesignTokens
fn design_tokens(&self) -> &DesignTokens
Returns a reference to the
DesignTokens for this theme. Read moreSource§fn typography(&self) -> TypographyScale
fn typography(&self) -> TypographyScale
The theme’s typographic scale (returned by value). Read more
Source§fn typography_ref(&self) -> &TypographyScale
fn typography_ref(&self) -> &TypographyScale
Returns a reference to the
TypographyScale for this theme. Read moreSource§fn is_high_contrast(&self) -> bool
fn is_high_contrast(&self) -> bool
Returns
true if this theme is designed for high-contrast display. Read moreSource§fn effective_palette(&self) -> Palette
fn effective_palette(&self) -> Palette
Source§fn extended_palette(&self) -> ExtendedPalette
fn extended_palette(&self) -> ExtendedPalette
The extended semantic palette, derived from
Theme::palette. Read more