summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/theme.rs')
-rw-r--r--style/src/theme.rs12
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)
}
}