From ff7e17988d5868c72cfb39d09ccf4efb05d3ceda Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Sat, 22 Nov 2025 08:30:00 +0100 Subject: feat!: combine `Primary`, `Secondary`, `Tertiary` and `Error` Now only a singular `ColorQuartet` struct exists. Also rename some `Surface` and `Inverse` fields for consistency. --- src/pick_list.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pick_list.rs') diff --git a/src/pick_list.rs b/src/pick_list.rs index 1fe015e..c4d8a68 100644 --- a/src/pick_list.rs +++ b/src/pick_list.rs @@ -23,21 +23,21 @@ pub fn default(theme: &Theme, status: Status) -> Style { let surface = theme.colors().surface; let active = Style { - text_color: surface.on_surface, - placeholder_color: surface.on_surface_variant, - handle_color: surface.on_surface_variant, - background: Background::Color(surface.surface_container.highest), + text_color: surface.text, + placeholder_color: surface.text_variant, + handle_color: surface.text_variant, + background: Background::Color(surface.container.highest), border: border::rounded(4), }; match status { Status::Active => active, Status::Hovered => Style { - background: Background::Color(surface.surface_container.highest), + background: Background::Color(surface.container.highest), ..active }, Status::Opened { .. } => Style { - background: Background::Color(surface.surface_container.highest), + background: Background::Color(surface.container.highest), border: border::rounded(4), ..active }, -- cgit v1.2.3