diff options
author | 2021-07-22 20:13:14 +0700 | |
---|---|---|
committer | 2021-07-22 20:22:32 +0700 | |
commit | 1b3606884747374f1e5599e3c783f36a2f2cac6f (patch) | |
tree | 77f8b39ff3b9ce0f3321cc5f58d10b27d61b96f8 /style | |
parent | 26b2a824a930b8f98f4510aa2d2f3aaef7b669b9 (diff) | |
download | iced-1b3606884747374f1e5599e3c783f36a2f2cac6f.tar.gz iced-1b3606884747374f1e5599e3c783f36a2f2cac6f.tar.bz2 iced-1b3606884747374f1e5599e3c783f36a2f2cac6f.zip |
Introduce `placeholder_color` to `pick_list::Style`
Diffstat (limited to 'style')
-rw-r--r-- | style/src/pick_list.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/style/src/pick_list.rs b/style/src/pick_list.rs index a757ba98..d1801e5f 100644 --- a/style/src/pick_list.rs +++ b/style/src/pick_list.rs @@ -5,6 +5,7 @@ use iced_core::{Background, Color}; #[derive(Debug, Clone, Copy)] pub struct Style { pub text_color: Color, + pub placeholder_color: Color, pub background: Background, pub border_radius: f32, pub border_width: f32, @@ -16,6 +17,7 @@ impl std::default::Default for Style { fn default() -> Self { Self { text_color: Color::BLACK, + placeholder_color: [0.4, 0.4, 0.4].into(), background: Background::Color([0.87, 0.87, 0.87].into()), border_radius: 0.0, border_width: 1.0, |