From bc83b816872abf3c99fd922278457ea38b0ffd90 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Wed, 15 Nov 2023 08:01:09 -0800 Subject: [PATCH] Add transparent button to buttons example --- examples/buttons.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/buttons.rs b/examples/buttons.rs index 7ebb3f8..12ebd4b 100644 --- a/examples/buttons.rs +++ b/examples/buttons.rs @@ -31,6 +31,13 @@ fn main() -> gooey::Result { })) .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( Button::new("Default Button") .on_click(clicked_label.with_clone(|label| {