fix(inline_input): wrong colors for focused style

This commit is contained in:
Michael Aaron Murphy 2024-06-20 13:57:58 +02:00
parent d8cb87cae7
commit bd84f1f07d
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 7 additions and 8 deletions

View file

@ -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)