diff options
Diffstat (limited to '')
| -rw-r--r-- | src/text_input.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/text_input.rs b/src/text_input.rs index 4db220b..51bbb89 100644 --- a/src/text_input.rs +++ b/src/text_input.rs @@ -21,34 +21,34 @@ pub fn default(theme: &Theme, status: Status) -> Style { let primary = theme.colors().primary; let active = Style { - background: Background::Color(surface.surface_container.highest), + background: Background::Color(surface.container.highest), border: Border { color: theme.colors().outline.color, width: 1.0, radius: 4.into(), }, - icon: surface.on_surface_variant, - placeholder: surface.on_surface_variant, - value: surface.on_surface, + icon: surface.text_variant, + placeholder: surface.text_variant, + value: surface.text, selection: disabled_text(primary.color), }; match status { Status::Active => active, Status::Hovered => Style { - border: active.border.color(surface.on_surface), + border: active.border.color(surface.text), ..active }, Status::Disabled => Style { background: Color::TRANSPARENT.into(), border: Border { - color: disabled_container(surface.on_surface), + color: disabled_container(surface.text), ..active.border }, - icon: disabled_text(surface.on_surface), - placeholder: disabled_text(surface.on_surface), - value: disabled_text(surface.on_surface), - selection: disabled_text(surface.on_surface), + icon: disabled_text(surface.text), + placeholder: disabled_text(surface.text), + value: disabled_text(surface.text), + selection: disabled_text(surface.text), }, Status::Focused { .. } => Style { border: Border { |
