Changed Handle to Icon to be consistent

This commit is contained in:
Casper Storm 2023-02-16 14:32:59 +01:00 committed by Héctor Ramón Jiménez
parent bfc5db9009
commit d24a4a4689
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 59 additions and 58 deletions

View file

@ -12,8 +12,8 @@ pub struct Appearance {
pub border_width: f32,
/// The border [`Color`] of the text input.
pub border_color: Color,
/// The handle [`Color`] of the text input.
pub handle_color: Color,
/// The icon [`Color`] of the text input.
pub icon_color: Color,
}
/// A set of rules that dictate the style of a text input.

View file

@ -1028,7 +1028,7 @@ impl text_input::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.strong.color,
handle_color: palette.background.weak.text,
icon_color: palette.background.weak.text,
}
}
@ -1044,7 +1044,7 @@ impl text_input::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.base.text,
handle_color: palette.background.weak.text,
icon_color: palette.background.weak.text,
}
}
@ -1060,7 +1060,7 @@ impl text_input::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.primary.strong.color,
handle_color: palette.background.weak.text,
icon_color: palette.background.weak.text,
}
}