diff options
Diffstat (limited to 'style/src/text_input.rs')
| -rw-r--r-- | style/src/text_input.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/style/src/text_input.rs b/style/src/text_input.rs index c5123b20..1cb72364 100644 --- a/style/src/text_input.rs +++ b/style/src/text_input.rs @@ -33,6 +33,8 @@ pub trait StyleSheet {      fn value_color(&self) -> Color; +    fn selection_color(&self) -> Color; +      /// Produces the style of an hovered text input.      fn hovered(&self) -> Style {          self.focused() @@ -65,6 +67,10 @@ impl StyleSheet for Default {      fn value_color(&self) -> Color {          Color::from_rgb(0.3, 0.3, 0.3)      } + +    fn selection_color(&self) -> Color { +        Color::from_rgb(0.8, 0.8, 1.0) +    }  }  impl std::default::Default for Box<dyn StyleSheet> {  | 
