diff options
| author | 2023-04-17 23:46:18 +0200 | |
|---|---|---|
| committer | 2023-04-17 23:46:18 +0200 | |
| commit | 619ba9294d5e0f7913f82838d78018fc6714d26a (patch) | |
| tree | b0631aa66875e0e9f486665227c306832ac19a5b /style/src/text_input.rs | |
| parent | d206b82ebb7617337cd378bd19542a7abf8a4529 (diff) | |
| parent | e3730106e9d4f75de199e1b83cf285b8ff031968 (diff) | |
| download | iced-619ba9294d5e0f7913f82838d78018fc6714d26a.tar.gz iced-619ba9294d5e0f7913f82838d78018fc6714d26a.tar.bz2 iced-619ba9294d5e0f7913f82838d78018fc6714d26a.zip | |
Merge branch 'advanced-text' into incremental-rendering
Diffstat (limited to '')
| -rw-r--r-- | style/src/text_input.rs | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/style/src/text_input.rs b/style/src/text_input.rs index d97016dc..2616ad5a 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 icon [`Color`] of the text input. +    pub icon_color: Color,  }  /// A set of rules that dictate the style of a text input. @@ -31,6 +33,9 @@ pub trait StyleSheet {      /// Produces the [`Color`] of the value of a text input.      fn value_color(&self, style: &Self::Style) -> Color; +    /// Produces the [`Color`] of the value of a disabled text input. +    fn disabled_color(&self, style: &Self::Style) -> Color; +      /// Produces the [`Color`] of the selection of a text input.      fn selection_color(&self, style: &Self::Style) -> Color; @@ -38,4 +43,7 @@ pub trait StyleSheet {      fn hovered(&self, style: &Self::Style) -> Appearance {          self.focused(style)      } + +    /// Produces the style of a disabled text input. +    fn disabled(&self, style: &Self::Style) -> Appearance;  } | 
