Add 'disabled' style for text-input, instead of panicking with todo!
This commit is contained in:
parent
f77bd443d7
commit
da9b6345d8
1 changed files with 6 additions and 3 deletions
|
|
@ -1191,11 +1191,14 @@ impl text_input::StyleSheet for Theme {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn disabled_color(&self, _style: &Self::Style) -> Color {
|
fn disabled_color(&self, _style: &Self::Style) -> Color {
|
||||||
todo!()
|
let palette = self.cosmic();
|
||||||
|
let mut neutral_9 = palette.palette.neutral_9;
|
||||||
|
neutral_9.alpha = 0.5;
|
||||||
|
neutral_9.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn disabled(&self, _style: &Self::Style) -> text_input::Appearance {
|
fn disabled(&self, style: &Self::Style) -> text_input::Appearance {
|
||||||
todo!()
|
self.active(style)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue