Wire up styling to Slider in iced_native

This commit is contained in:
Héctor Ramón Jiménez 2021-10-20 15:50:42 +07:00
parent e00a2e9b2d
commit 11bcb13427
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
9 changed files with 31 additions and 97 deletions

View file

@ -79,17 +79,8 @@ impl StyleSheet for Default {
}
}
impl std::default::Default for Box<dyn StyleSheet> {
impl std::default::Default for &'static dyn StyleSheet {
fn default() -> Self {
Box::new(Default)
}
}
impl<T> From<T> for Box<dyn StyleSheet>
where
T: 'static + StyleSheet,
{
fn from(style: T) -> Self {
Box::new(style)
&Default
}
}