diff options
author | 2023-04-12 04:34:37 +0200 | |
---|---|---|
committer | 2023-04-12 04:34:37 +0200 | |
commit | 1de794aabfaa651f021ff2e5831397d7ce9fc53c (patch) | |
tree | 89a656f3bc940082dcf3d59638b2c7e97523bdda | |
parent | 6b8548869ea25ad7bb7a49fad77adfa3b43cc87d (diff) | |
download | iced-1de794aabfaa651f021ff2e5831397d7ce9fc53c.tar.gz iced-1de794aabfaa651f021ff2e5831397d7ce9fc53c.tar.bz2 iced-1de794aabfaa651f021ff2e5831397d7ce9fc53c.zip |
Fine-tune built-in styling of disabled `TextInput`
-rw-r--r-- | style/src/theme.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs index e13edb05..6bd82a96 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -1102,21 +1102,19 @@ impl text_input::StyleSheet for Theme { let palette = self.extended_palette(); text_input::Appearance { - background: palette.background.base.color.into(), + background: palette.background.weak.color.into(), border_radius: 2.0, border_width: 1.0, - border_color: palette.background.weak.color, - icon_color: palette.background.weak.color, + border_color: palette.background.strong.color, + icon_color: palette.background.strong.color, } } fn disabled_color(&self, style: &Self::Style) -> Color { if let TextInput::Custom(custom) = style { - return custom.value_color(self); + return custom.disabled_color(self); } - let palette = self.extended_palette(); - - palette.secondary.strong.color + self.placeholder_color(style) } } |