chore: update iced
This commit is contained in:
parent
b7aed0e4d6
commit
2a1af3a24f
4 changed files with 18 additions and 18 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue