mirror of
https://github.com/danbulant/cushy
synced 2026-06-09 09:31:02 +00:00
Add transparent button to buttons example
This commit is contained in:
parent
577e97908d
commit
bc83b81687
1 changed files with 7 additions and 0 deletions
|
|
@ -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| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue