Update vulnerable dependencies and migrate to Iced 0.14.
This commit is contained in:
@@ -204,7 +204,7 @@ fn theme_accent_background(theme: &StyleTheme) -> Background {
|
||||
}
|
||||
|
||||
fn swatch(background: Background, width_portion: u16) -> Element<'static, Message> {
|
||||
container(Space::new(Length::Fill, Length::Fill))
|
||||
container(Space::new().width(Length::Fill).height(Length::Fill))
|
||||
.width(Length::FillPortion(width_portion))
|
||||
.height(Length::Fixed(30.0))
|
||||
.style(move |_: &Theme| container::Style {
|
||||
@@ -270,7 +270,7 @@ pub fn view<'a>(
|
||||
.map(|theme| theme_button(theme, &state.selected_theme))
|
||||
.collect::<Vec<_>>();
|
||||
while children.len() < 4 {
|
||||
children.push(Space::with_width(Length::FillPortion(1)).into());
|
||||
children.push(Space::new().width(Length::FillPortion(1)).into());
|
||||
}
|
||||
iced::widget::Row::with_children(children)
|
||||
.spacing(8)
|
||||
|
||||
Reference in New Issue
Block a user