Added accessory_content_color to appreance.
This commit is contained in:
parent
f727fa09cd
commit
fe5ab1ee87
3 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue