Fix bundling of header bar icons

This commit is contained in:
Jeremy Soller 2025-07-01 09:30:27 -06:00
parent 52b802a11a
commit aaa4b83577
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -454,10 +454,14 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
#[cfg(not(target_os = "linux"))]
let icon = {
widget::icon::from_path(concat!("../../res/icons/", $name, ".svg").into())
.symbolic(true)
.apply(widget::button::icon)
.padding(8)
widget::icon::from_svg_bytes(include_bytes!(concat!(
"../../res/icons/",
$name,
".svg"
)))
.symbolic(true)
.apply(widget::button::icon)
.padding(8)
};
icon.class(crate::theme::Button::HeaderBar)