improv: get window control icons from icon theme

This commit is contained in:
Michael Aaron Murphy 2024-07-22 07:23:17 +02:00
parent 5474232796
commit 1e5828e01c
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
6 changed files with 31 additions and 51 deletions

View file

@ -46,15 +46,8 @@ where
button::text(&action.description).on_press(action.message.clone())
}))
.push(
button::icon(
//TODO: include this in one place
icon::from_svg_bytes(
&include_bytes!("../../../res/icons/window-close-symbolic.svg")[..],
)
.symbolic(true),
)
.icon_size(16)
.on_press(ToastMessage(toast.id).into()),
button::icon(icon::from_name("window-close-symbolic"))
.on_press(ToastMessage(toast.id).into()),
)
.align_items(iced::Alignment::Center)
.spacing(space_xxs),