diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-22 08:30:00 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-11-22 08:30:00 +0100 |
| commit | ff7e17988d5868c72cfb39d09ccf4efb05d3ceda (patch) | |
| tree | 0734e0f409028e203532bfaea2c7372e2c646078 /src/pick_list.rs | |
| parent | chore: add mailmap (diff) | |
| download | iced_material-ff7e17988d5868c72cfb39d09ccf4efb05d3ceda.tar.gz | |
feat!: combine `Primary`, `Secondary`, `Tertiary` and `Error`
Now only a singular `ColorQuartet` struct exists.
Also rename some `Surface` and `Inverse` fields for consistency.
Diffstat (limited to '')
| -rw-r--r-- | src/pick_list.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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 }, |
