diff options
author | 2020-01-06 18:44:45 +0100 | |
---|---|---|
committer | 2020-01-06 18:44:45 +0100 | |
commit | 2bbd395d5dcdf9c92ffb354b8b05444478e4b344 (patch) | |
tree | b63a6251e132b3dcd39372dd5d84eb1b3d972eff /style | |
parent | bbc8f837d72b9bc5f6a0b3125b54c246fb3b2b94 (diff) | |
download | iced-2bbd395d5dcdf9c92ffb354b8b05444478e4b344.tar.gz iced-2bbd395d5dcdf9c92ffb354b8b05444478e4b344.tar.bz2 iced-2bbd395d5dcdf9c92ffb354b8b05444478e4b344.zip |
Draft `styling` example
Diffstat (limited to 'style')
-rw-r--r-- | style/src/button.rs | 2 | ||||
-rw-r--r-- | style/src/text_input.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/style/src/button.rs b/style/src/button.rs index 03c9ab32..93c27860 100644 --- a/style/src/button.rs +++ b/style/src/button.rs @@ -75,7 +75,7 @@ impl StyleSheet for Default { border_radius: 5, border_width: 0, border_color: Color::TRANSPARENT, - text_color: Color::BLACK, + text_color: Color::WHITE, } } } diff --git a/style/src/text_input.rs b/style/src/text_input.rs index 269b28db..c5123b20 100644 --- a/style/src/text_input.rs +++ b/style/src/text_input.rs @@ -29,14 +29,14 @@ pub trait StyleSheet { /// Produces the style of a focused text input. fn focused(&self) -> Style; + fn placeholder_color(&self) -> Color; + + fn value_color(&self) -> Color; + /// Produces the style of an hovered text input. fn hovered(&self) -> Style { self.focused() } - - fn placeholder_color(&self) -> Color; - - fn value_color(&self) -> Color; } struct Default; |