Draft styling example
This commit is contained in:
parent
bbc8f837d7
commit
2bbd395d5d
5 changed files with 298 additions and 6 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue