diff options
author | 2020-01-06 18:44:45 +0100 | |
---|---|---|
committer | 2020-01-06 18:44:45 +0100 | |
commit | 2bbd395d5dcdf9c92ffb354b8b05444478e4b344 (patch) | |
tree | b63a6251e132b3dcd39372dd5d84eb1b3d972eff /style/src/text_input.rs | |
parent | bbc8f837d72b9bc5f6a0b3125b54c246fb3b2b94 (diff) | |
download | iced-2bbd395d5dcdf9c92ffb354b8b05444478e4b344.tar.gz iced-2bbd395d5dcdf9c92ffb354b8b05444478e4b344.tar.bz2 iced-2bbd395d5dcdf9c92ffb354b8b05444478e4b344.zip |
Draft `styling` example
Diffstat (limited to 'style/src/text_input.rs')
-rw-r--r-- | style/src/text_input.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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; |