Adjust toplevel label style

This commit is contained in:
Ian Douglas Scott 2023-12-14 16:56:05 -08:00
parent 88fa8eecd1
commit 5a69aff778

View file

@ -171,8 +171,8 @@ pub(crate) fn toplevel_preview(toplevel: &Toplevel) -> cosmic::Element<Msg> {
) )
.style(cosmic::theme::Button::Image) .style(cosmic::theme::Button::Image)
.on_press(Msg::ActivateToplevel(toplevel.handle.clone())), .on_press(Msg::ActivateToplevel(toplevel.handle.clone())),
widget::text(&toplevel.info.title) widget::button(widget::text(&toplevel.info.title))
.horizontal_alignment(iced::alignment::Horizontal::Center) .on_press(Msg::ActivateToplevel(toplevel.handle.clone()))
] ]
.width(iced::Length::Fill) .width(iced::Length::Fill)
.into() .into()