summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-07-22 20:32:43 +0700
committerLibravatar GitHub <noreply@github.com>2021-07-22 20:32:43 +0700
commitf076649fbb575ee036ab0b3f4511690e3379c115 (patch)
tree805377d47609364a579597c1c3966250d4f2e03a /style
parenta2b1ba522a8b90a2e539fff5936c798efc3f3807 (diff)
parenta866f8742e4ddf5714455519790fed0f961fad66 (diff)
downloadiced-f076649fbb575ee036ab0b3f4511690e3379c115.tar.gz
iced-f076649fbb575ee036ab0b3f4511690e3379c115.tar.bz2
iced-f076649fbb575ee036ab0b3f4511690e3379c115.zip
Merge pull request #888 from Ace4896/picklist-placeholder
Add Placeholders to PickList
Diffstat (limited to '')
-rw-r--r--style/src/pick_list.rs2
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,