Use button::danger in bezier_tool example

This commit is contained in:
Héctor Ramón Jiménez 2024-03-08 01:02:57 +01:00
parent 5075d41623
commit fe7ccd5e15
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -49,7 +49,9 @@ impl Sandbox for Example {
column![
text("Bezier tool example").width(Length::Shrink).size(50),
self.bezier.view(&self.curves).map(Message::AddCurve),
button("Clear").padding(8).on_press(Message::Clear),
button("Clear")
.style(button::danger)
.on_press(Message::Clear),
]
.padding(20)
.spacing(20)