pub struct AislingPalette {
pub low: Color,
pub mid: Color,
pub high: Color,
pub pulse: Color,
pub shadow: Color,
}Expand description
The default color system used by Aisling effects and bundled widgets.
Fields§
§low: Color§mid: Color§high: Color§pulse: Color§shadow: ColorImplementations§
Source§impl AislingPalette
impl AislingPalette
Sourcepub const fn cypherpunk() -> Self
pub const fn cypherpunk() -> Self
Electric cyan primary, acid green secondary — cypherpunk terminal core.
Sourcepub const fn phosphor() -> Self
pub const fn phosphor() -> Self
Green phosphor tones for surveillance or terminal-core screens.
Sourcepub const fn theme_tokens(self) -> ThemeTokens
pub const fn theme_tokens(self) -> ThemeTokens
Converts the palette into Scrin’s shared theme tokens.
Sourcepub const fn from_theme_tokens(tokens: ThemeTokens) -> Self
pub const fn from_theme_tokens(tokens: ThemeTokens) -> Self
Creates a palette from Scrin’s shared theme tokens.
Sourcepub const fn from_theme(theme: Theme) -> Self
pub const fn from_theme(theme: Theme) -> Self
Creates a palette from Scrin’s full theme shape.
Trait Implementations§
Source§impl Clone for AislingPalette
impl Clone for AislingPalette
Source§fn clone(&self) -> AislingPalette
fn clone(&self) -> AislingPalette
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 moreimpl Copy for AislingPalette
Source§impl Debug for AislingPalette
impl Debug for AislingPalette
Source§impl Default for AislingPalette
The default color palette — cypherpunk electric tones.
impl Default for AislingPalette
The default color palette — cypherpunk electric tones.
impl Eq for AislingPalette
Source§impl From<AislingPalette> for ThemeTokens
impl From<AislingPalette> for ThemeTokens
Source§fn from(value: AislingPalette) -> Self
fn from(value: AislingPalette) -> Self
Converts to this type from the input type.
Source§impl From<AislingPalette> for Theme
impl From<AislingPalette> for Theme
Source§fn from(value: AislingPalette) -> Self
fn from(value: AislingPalette) -> Self
Converts to this type from the input type.
Source§impl From<Theme> for AislingPalette
impl From<Theme> for AislingPalette
Source§impl From<ThemeTokens> for AislingPalette
impl From<ThemeTokens> for AislingPalette
Source§fn from(value: ThemeTokens) -> Self
fn from(value: ThemeTokens) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AislingPalette
impl PartialEq for AislingPalette
Source§fn eq(&self, other: &AislingPalette) -> bool
fn eq(&self, other: &AislingPalette) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AislingPalette
Auto Trait Implementations§
impl Freeze for AislingPalette
impl RefUnwindSafe for AislingPalette
impl Send for AislingPalette
impl Sync for AislingPalette
impl Unpin for AislingPalette
impl UnsafeUnpin for AislingPalette
impl UnwindSafe for AislingPalette
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