Added accessory_content_color to appreance.

This commit is contained in:
Casper Rogild Storm 2022-11-29 12:06:45 +01:00
parent f727fa09cd
commit fe5ab1ee87
No known key found for this signature in database
GPG key ID: 8F52569F9DDB2ECC
3 changed files with 5 additions and 1 deletions

View file

@ -615,7 +615,7 @@ pub fn draw<T, Renderer>(
content: &content,
size,
font,
color: style.text_color,
color: style.accessory_content_color,
bounds: Rectangle {
x: bounds.x + bounds.width - f32::from(padding.horizontal()),
y: bounds.center_y() - size / 2.0,

View file

@ -8,6 +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 [`Background`] of the pick list.
pub background: Background,
/// The border radius of the pick list.

View file

@ -534,6 +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,
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.strong.color,
@ -552,6 +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,
border_radius: 2.0,
border_width: 1.0,
border_color: palette.primary.strong.color,