From b2344a852e98af734e9d8f7fe3d493f9e82ca80c Mon Sep 17 00:00:00 2001 From: FabianLars Date: Sat, 22 Feb 2020 21:33:45 +0100 Subject: inital patch by Finnerale --- style/src/text_input.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'style') 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 { -- cgit