Rename pick_list::AccessoryContent to Handle

... and rename `Default` variant to `Arrow`.
This commit is contained in:
Héctor Ramón Jiménez 2022-12-14 03:29:20 +01:00
parent fe5ab1ee87
commit 39f49186ce
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 34 additions and 39 deletions

View file

@ -8,8 +8,8 @@ pub struct Appearance {
pub text_color: Color,
/// The placeholder [`Color`] of the pick list.
pub placeholder_color: Color,
/// The accessory content [`Color`] of the pick list.
pub accessory_content_color: Color,
/// The handle [`Color`] of the pick list.
pub handle_color: Color,
/// The [`Background`] of the pick list.
pub background: Background,
/// The border radius of the pick list.

View file

@ -534,7 +534,7 @@ impl pick_list::StyleSheet for Theme {
text_color: palette.background.weak.text,
background: palette.background.weak.color.into(),
placeholder_color: palette.background.strong.color,
accessory_content_color: palette.background.weak.text,
handle_color: palette.background.weak.text,
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.strong.color,
@ -553,7 +553,7 @@ impl pick_list::StyleSheet for Theme {
text_color: palette.background.weak.text,
background: palette.background.weak.color.into(),
placeholder_color: palette.background.strong.color,
accessory_content_color: palette.background.weak.text,
handle_color: palette.background.weak.text,
border_radius: 2.0,
border_width: 1.0,
border_color: palette.primary.strong.color,