Refactored the frontend to work with static widgets #11

This commit is contained in:
2025-08-01 16:32:56 -05:00
parent 45db1fb774
commit 73e2c214ee
4 changed files with 39 additions and 14 deletions
+5 -2
View File
@@ -2,11 +2,14 @@ use osui::prelude::*;
fn main() -> std::io::Result<()> {
let screen = Screen::new();
screen.extension(VelocityExtension);
let count = use_state(0);
rsx! {
%count // Dependency of count
"Count: {count}"
@Velocity(20, 0);
@Transform::new();
static "Count: {count}"
}
.draw(&screen);