diff options
| author | 2023-02-13 11:38:05 +0100 | |
|---|---|---|
| committer | 2023-04-11 05:11:19 +0200 | |
| commit | 7b369842959511f17d5c27941fd0308484bff8ea (patch) | |
| tree | db4bcb9ce1f8770e00a51743e397ad4f89b0be60 /style | |
| parent | 931b30dc5ac17b65b1fb996cb4b87fc946c410e3 (diff) | |
| download | iced-7b369842959511f17d5c27941fd0308484bff8ea.tar.gz iced-7b369842959511f17d5c27941fd0308484bff8ea.tar.bz2 iced-7b369842959511f17d5c27941fd0308484bff8ea.zip  | |
feat: added handle to text_input
Diffstat (limited to '')
| -rw-r--r-- | style/src/text_input.rs | 2 | ||||
| -rw-r--r-- | style/src/theme.rs | 3 | 
2 files changed, 5 insertions, 0 deletions
diff --git a/style/src/text_input.rs b/style/src/text_input.rs index d97016dc..5e703e61 100644 --- a/style/src/text_input.rs +++ b/style/src/text_input.rs @@ -12,6 +12,8 @@ pub struct Appearance {      pub border_width: f32,      /// The border [`Color`] of the text input.      pub border_color: Color, +    /// The handle [`Color`] of the text input. +    pub handle_color: Color,  }  /// A set of rules that dictate the style of a text input. diff --git a/style/src/theme.rs b/style/src/theme.rs index 0ebd82a4..de46d7d4 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -1028,6 +1028,7 @@ impl text_input::StyleSheet for Theme {              border_radius: 2.0,              border_width: 1.0,              border_color: palette.background.strong.color, +            handle_color: palette.background.weak.text,          }      } @@ -1043,6 +1044,7 @@ impl text_input::StyleSheet for Theme {              border_radius: 2.0,              border_width: 1.0,              border_color: palette.background.base.text, +            handle_color: palette.background.weak.text,          }      } @@ -1058,6 +1060,7 @@ impl text_input::StyleSheet for Theme {              border_radius: 2.0,              border_width: 1.0,              border_color: palette.primary.strong.color, +            handle_color: palette.primary.weak.text,          }      }  | 
