chore: update iced/libcosmic

This commit is contained in:
Vukašin Vojinović 2024-10-24 00:15:05 +02:00 committed by Victoria Brekenfeld
parent 0d0b89d538
commit 7de52054ff
12 changed files with 502 additions and 549 deletions

View file

@ -38,16 +38,16 @@ impl Program for StackHoverInternal {
.prefer_svg(true)
.icon()
.into(),
horizontal_space(16).into(),
horizontal_space().width(16).into(),
text::title3(fl!("stack-windows")).into(),
])
.align_items(Alignment::Center)
.align_y(Alignment::Center)
.apply(container)
.center_x()
.center_y()
.align_x(Alignment::Center)
.align_y(Alignment::Center)
.padding(16)
.apply(container)
.style(theme::Container::custom(|theme| container::Appearance {
.class(theme::Container::custom(|theme| container::Style {
icon_color: Some(Color::from(theme.cosmic().accent.on)),
text_color: Some(Color::from(theme.cosmic().accent.on)),
background: Some(Background::Color(theme.cosmic().accent_color().into())),
@ -61,10 +61,8 @@ impl Program for StackHoverInternal {
.width(Length::Shrink)
.height(Length::Shrink)
.apply(container)
.width(Length::Fill)
.height(Length::Fill)
.center_x()
.center_y()
.center_x(Length::Fill)
.center_y(Length::Fill)
.into()
}
}