update workflow

This commit is contained in:
Chance 2024-12-01 18:06:27 -05:00 committed by BitSyndicate
parent ecbfce64ed
commit 422a852f50
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
3 changed files with 26 additions and 25 deletions

View file

@ -4,4 +4,4 @@ version = "0.1.0"
edition = "2021"
[dependencies]
floem = "0.2.0"

View file

@ -1,18 +1,3 @@
use floem::{prelude::*, style::Style};
fn main() {
floem::launch(counter_view);
}
fn counter_view() -> impl IntoView {
let mut counter = RwSignal::new(20);
v_stack({
label("test")
}).style(Style::d);
h_stack((
button("Increment").action(move || counter += 1),
label(move || format!("Value: {counter}")),
button("Decrement").action(move || counter -= 1),
))
.style(|s| s.size_full().items_center().justify_center().gap(10))
println!("editor")
}