diff options
author | 2020-02-22 21:33:45 +0100 | |
---|---|---|
committer | 2020-02-22 21:33:45 +0100 | |
commit | b2344a852e98af734e9d8f7fe3d493f9e82ca80c (patch) | |
tree | 3a585c0684c088049eacc2817dcad8d16b55cca6 /style | |
parent | d6c2b1121c9592826e1cc25eeecbf3fa8d982ee8 (diff) | |
download | iced-b2344a852e98af734e9d8f7fe3d493f9e82ca80c.tar.gz iced-b2344a852e98af734e9d8f7fe3d493f9e82ca80c.tar.bz2 iced-b2344a852e98af734e9d8f7fe3d493f9e82ca80c.zip |
inital patch by Finnerale
Diffstat (limited to 'style')
-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> { |