Draft styling example

This commit is contained in:
Héctor Ramón Jiménez 2020-01-06 18:44:45 +01:00
parent bbc8f837d7
commit 2bbd395d5d
5 changed files with 298 additions and 6 deletions

View file

@ -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;