diff options
| author | pml68 <contact@pml68.dev> | 2025-04-22 14:36:44 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-22 14:36:44 +0200 |
| commit | 44bd09e90a18a14eb53def25702225481760fb78 (patch) | |
| tree | f53cf94564fb56354232ae76e3866e566d1da491 /crates/material_theme/src | |
| parent | fix(material_theme): disabled checkbox border being fully opaque (diff) | |
| download | iced-builder-44bd09e90a18a14eb53def25702225481760fb78.tar.gz | |
fix(material_theme): highlighted text not being visible in `TextInput`
Diffstat (limited to '')
| -rw-r--r-- | crates/material_theme/src/text_input.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/material_theme/src/text_input.rs b/crates/material_theme/src/text_input.rs index 5fa65ef..5de5993 100644 --- a/crates/material_theme/src/text_input.rs +++ b/crates/material_theme/src/text_input.rs @@ -30,7 +30,10 @@ pub fn default(theme: &Theme, status: Status) -> Style { icon: surface.on_surface_variant, placeholder: surface.on_surface_variant, value: surface.on_surface, - selection: surface.on_surface, + selection: Color { + a: DISABLED_TEXT_OPACITY, + ..primary.color + }, }; match status { |
