diff options
author | 2022-11-29 12:06:45 +0100 | |
---|---|---|
committer | 2022-11-29 12:06:45 +0100 | |
commit | fe5ab1ee87ede2d80212aa58724fd5ed463f58e4 (patch) | |
tree | 872d873b228f639d1bc27768e5502d05fadc6fe6 /style | |
parent | f727fa09cd18bb5597094131f106c88ddcdd2ab3 (diff) | |
download | iced-fe5ab1ee87ede2d80212aa58724fd5ed463f58e4.tar.gz iced-fe5ab1ee87ede2d80212aa58724fd5ed463f58e4.tar.bz2 iced-fe5ab1ee87ede2d80212aa58724fd5ed463f58e4.zip |
Added accessory_content_color to appreance.
Diffstat (limited to 'style')
-rw-r--r-- | style/src/pick_list.rs | 2 | ||||
-rw-r--r-- | style/src/theme.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/style/src/pick_list.rs b/style/src/pick_list.rs index 103cc026..877a58da 100644 --- a/style/src/pick_list.rs +++ b/style/src/pick_list.rs @@ -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. diff --git a/style/src/theme.rs b/style/src/theme.rs index 3b38c2c1..81bcfa67 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -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, |