diff --git a/src/theme/style/text_input.rs b/src/theme/style/text_input.rs index 3fef3b21..c809961a 100644 --- a/src/theme/style/text_input.rs +++ b/src/theme/style/text_input.rs @@ -328,8 +328,6 @@ impl StyleSheet for crate::Theme { border_width: 0.0, border_offset: None, border_color: Color::TRANSPARENT, - // TODO use regular text color here after text rendering handles multiple colors - // in this case, for selected and unselected text icon_color: None, text_color: None, placeholder_color: { @@ -341,15 +339,13 @@ impl StyleSheet for crate::Theme { label_color: label_color.into(), }, TextInput::Inline => Appearance { - background: Color::from(palette.accent.base).into(), + background: Color::TRANSPARENT.into(), border_radius: corner.radius_0.into(), border_width: 0.0, border_offset: None, border_color: Color::TRANSPARENT, - icon_color: Some(palette.on_accent_color().into()), - // TODO use regular text color here after text rendering handles multiple colors - // in this case, for selected and unselected text - text_color: Some(palette.on_accent_color().into()), + icon_color: None, + text_color: None, placeholder_color: { let color: Color = container.on.into(); color.blend_alpha(background, 0.7) diff --git a/src/widget/text_input/input.rs b/src/widget/text_input/input.rs index a2c42ebe..f088c490 100644 --- a/src/widget/text_input/input.rs +++ b/src/widget/text_input/input.rs @@ -149,7 +149,10 @@ where /// Creates a new inline [`TextInput`]. /// /// [`TextInput`]: widget::TextInput -pub fn inline_input<'a, Message>(placeholder: impl Into>, value: impl Into>) -> TextInput<'a, Message> +pub fn inline_input<'a, Message>( + placeholder: impl Into>, + value: impl Into>, +) -> TextInput<'a, Message> where Message: Clone + 'static, {