Fix bundling of header bar icons
This commit is contained in:
parent
52b802a11a
commit
aaa4b83577
1 changed files with 8 additions and 4 deletions
|
|
@ -454,10 +454,14 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
|
||||||
|
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
let icon = {
|
let icon = {
|
||||||
widget::icon::from_path(concat!("../../res/icons/", $name, ".svg").into())
|
widget::icon::from_svg_bytes(include_bytes!(concat!(
|
||||||
.symbolic(true)
|
"../../res/icons/",
|
||||||
.apply(widget::button::icon)
|
$name,
|
||||||
.padding(8)
|
".svg"
|
||||||
|
)))
|
||||||
|
.symbolic(true)
|
||||||
|
.apply(widget::button::icon)
|
||||||
|
.padding(8)
|
||||||
};
|
};
|
||||||
|
|
||||||
icon.class(crate::theme::Button::HeaderBar)
|
icon.class(crate::theme::Button::HeaderBar)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue