summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Casper Rogild Storm <2248455+casperstorm@users.noreply.github.com>2022-11-29 12:06:45 +0100
committerLibravatar Casper Rogild Storm <2248455+casperstorm@users.noreply.github.com>2022-11-29 12:06:45 +0100
commitfe5ab1ee87ede2d80212aa58724fd5ed463f58e4 (patch)
tree872d873b228f639d1bc27768e5502d05fadc6fe6 /style
parentf727fa09cd18bb5597094131f106c88ddcdd2ab3 (diff)
downloadiced-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.rs2
-rw-r--r--style/src/theme.rs2
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,