feat: added handle to text_input

This commit is contained in:
Casper Storm 2023-02-13 11:38:05 +01:00 committed by Héctor Ramón Jiménez
parent 931b30dc5a
commit 7b36984295
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
8 changed files with 236 additions and 2 deletions

View file

@ -12,6 +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,
}
/// A set of rules that dictate the style of a text input.

View file

@ -1028,6 +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,
}
}
@ -1043,6 +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,
}
}
@ -1058,6 +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.primary.weak.text,
}
}