chore: update iced

This commit is contained in:
Ashley Wulber 2025-05-19 13:06:09 -04:00 committed by GitHub
parent b7aed0e4d6
commit 2a1af3a24f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 18 deletions

View file

@ -153,13 +153,14 @@ macro_rules! make_button {
($spin_button:expr, $icon:expr, $operation:expr) => {{
#[cfg(target_os = "linux")]
let button = icon::from_name($icon);
#[cfg(not(target_os = "linux"))]
let button = icon::from_svg_bytes(
include_bytes!(concat!["../../res/icons/", $icon ,".svg"])
).symbolic(true);
button.apply(button::icon)
let button =
icon::from_svg_bytes(include_bytes!(concat!["../../res/icons/", $icon, ".svg"]))
.symbolic(true);
button
.apply(button::icon)
.on_press(($spin_button.on_press)($operation(
$spin_button.value,
$spin_button.step,
@ -252,4 +253,4 @@ mod tests {
fn decrement() {
assert_eq!(super::decrement(0i32, 10, 15, 35), 15);
}
}
}