Add transparent button to buttons example

This commit is contained in:
Jonathan Johnson 2023-11-15 08:01:09 -08:00
parent 577e97908d
commit bc83b81687
No known key found for this signature in database
GPG key ID: A66D6A34D6620579

View file

@ -31,6 +31,13 @@ fn main() -> gooey::Result {
})) }))
.kind(ButtonKind::Outline), .kind(ButtonKind::Outline),
) )
.and(
Button::new("Transparent Button")
.on_click(clicked_label.with_clone(|label| {
move |_| label.set(String::from("Clicked Transparent Button"))
}))
.kind(ButtonKind::Transparent),
)
.and( .and(
Button::new("Default Button") Button::new("Default Button")
.on_click(clicked_label.with_clone(|label| { .on_click(clicked_label.with_clone(|label| {