pub struct LiquidColors {Show 19 fields
pub is_dark: bool,
pub label: Color,
pub secondary_label: Color,
pub tertiary_label: Color,
pub separator: Color,
pub fill: Color,
pub secondary_fill: Color,
pub background: Color,
pub surface: Color,
pub surface_pressed: Color,
pub accent: Color,
pub on_accent: Color,
pub destructive: Color,
pub success: Color,
pub toggle_on: Color,
pub toggle_off: Color,
pub warning: Color,
pub glass_tint: Color,
pub glass_stroke: Color,
}Expand description
Semantic color palette mirroring the iOS system palette.
Fields§
§is_dark: boolTrue when this is the dark palette (drives glass exposure/tints).
label: ColorPrimary text.
secondary_label: ColorSecondary text (subtitles, captions).
tertiary_label: ColorTertiary text (placeholders, disabled).
separator: ColorHairline separators.
fill: ColorFilled control track (chips, search fields).
secondary_fill: ColorLighter fill for nested controls.
background: ColorWindow background (grouped style).
surface: ColorElevated surface (cards, list sections).
surface_pressed: ColorPressed surface wash.
accent: ColorAccent (interactive) color.
on_accent: ColorContent on accent fills.
destructive: ColorDestructive action color.
success: ColorSuccess color.
toggle_on: ColorActive switch track.
toggle_off: ColorInactive switch track.
warning: ColorWarning color.
glass_tint: ColorTint mixed over glass materials.
glass_stroke: ColorHairline stroke drawn around glass shapes.
Implementations§
Trait Implementations§
Source§impl Clone for LiquidColors
impl Clone for LiquidColors
Source§fn clone(&self) -> LiquidColors
fn clone(&self) -> LiquidColors
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 LiquidColors
Source§impl Debug for LiquidColors
impl Debug for LiquidColors
Source§impl PartialEq for LiquidColors
impl PartialEq for LiquidColors
impl StructuralPartialEq for LiquidColors
Auto Trait Implementations§
impl Freeze for LiquidColors
impl RefUnwindSafe for LiquidColors
impl Send for LiquidColors
impl Sync for LiquidColors
impl Unpin for LiquidColors
impl UnsafeUnpin for LiquidColors
impl UnwindSafe for LiquidColors
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