pub trait StyleSheet {
    type Style: Default;

    fn active(&self, style: &Self::Style) -> Appearance;
    fn focused(&self, style: &Self::Style) -> Appearance;
    fn placeholder_color(&self, style: &Self::Style) -> Color;
    fn value_color(&self, style: &Self::Style) -> Color;
    fn selection_color(&self, style: &Self::Style) -> Color;

    fn hovered(&self, style: &Self::Style) -> Appearance { ... }
}
Expand description

A set of rules that dictate the style of a text input.

Required Associated Types

The supported style of the StyleSheet.

Required Methods

Produces the style of an active text input.

Produces the style of a focused text input.

Produces the Color of the placeholder of a text input.

Produces the Color of the value of a text input.

Produces the Color of the selection of a text input.

Provided Methods

Produces the style of an hovered text input.

Implementors