widget view
This commit is contained in:
@@ -18,7 +18,7 @@ impl DefaultAppState for State {
|
||||
ctx.task.update(move |_, rsc| {
|
||||
let rect = rect(rsc);
|
||||
if rect.color == Color::RED {
|
||||
rect.color = Color::GREEN;
|
||||
rect.color = Color::BLUE;
|
||||
} else {
|
||||
rect.color = Color::RED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user