From aaa4b83577a70c15af8b91d1fb161e2a2931596b Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 1 Jul 2025 09:30:27 -0600 Subject: [PATCH] Fix bundling of header bar icons --- src/widget/header_bar.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/widget/header_bar.rs b/src/widget/header_bar.rs index 53c14e0b..3603cc68 100644 --- a/src/widget/header_bar.rs +++ b/src/widget/header_bar.rs @@ -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)