summaryrefslogtreecommitdiffstats
path: root/examples/todos
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-31 16:53:18 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-31 16:53:18 +0700
commitd36ce33a95c277ee8fe45555df17daf21ef02ef8 (patch)
tree57bc16dda40405c33447bb59a78a4ba33adef7f2 /examples/todos
parent661cb5736ecc6e7810591216aa541db582a2fcc0 (diff)
downloadiced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.gz
iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.bz2
iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.zip
Reintroduce `Box` for `style_sheet` in `Button`
Diffstat (limited to 'examples/todos')
-rw-r--r--examples/todos/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index 1734772d..5ad8c208 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -304,7 +304,7 @@ impl Task {
Button::new(edit_button, edit_icon())
.on_press(TaskMessage::Edit)
.padding(10)
- .style(&style::Button::Icon),
+ .style(style::Button::Icon),
)
.into()
}
@@ -335,7 +335,7 @@ impl Task {
)
.on_press(TaskMessage::Delete)
.padding(10)
- .style(&style::Button::Destructive),
+ .style(style::Button::Destructive),
)
.into()
}
@@ -364,9 +364,9 @@ impl Controls {
let label = Text::new(label).size(16);
let button =
Button::new(state, label).style(if filter == current_filter {
- &style::Button::FilterSelected
+ style::Button::FilterSelected
} else {
- &style::Button::FilterActive
+ style::Button::FilterActive
});
button.on_press(Message::FilterChanged(filter)).padding(8)