pub struct LiquidColors {Show 20 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 surface_glass: 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.
surface_glass: ColorResting tint of a glass surface pane (cards, planks): the surface role at pane translucency, so the backdrop transmits through it.
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§
Source§impl LiquidColors
impl LiquidColors
Source§impl LiquidColors
The iOS text-style ramp as ready-to-use TextStyles (colors come from
LiquidColors::label by default at the call site).
impl LiquidColors
The iOS text-style ramp as ready-to-use TextStyles (colors come from
LiquidColors::label by default at the call site).
Sourcepub fn with_more_contrast(self) -> Self
pub fn with_more_contrast(self) -> Self
The palette for a person who asked the system for more contrast: the secondary and tertiary labels, the separator, the fills and the glass edge move toward the label color, and the off toggle darkens.