From 2bbd395d5dcdf9c92ffb354b8b05444478e4b344 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 6 Jan 2020 18:44:45 +0100 Subject: Draft `styling` example --- style/src/text_input.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'style/src/text_input.rs') 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; -- cgit