add defcom! macro

This commit is contained in:
🪞👃🪞 2025-04-24 00:47:57 +03:00
parent ab37e2e7d4
commit 5db97825cc
2 changed files with 69 additions and 54 deletions

View file

@ -100,7 +100,7 @@ impose!([app: Tek] {
Some(Self::Edit(None)))
("edit" [c: bool]
Some(Self::Edit(c)))
("color" [c: Color]
("color" []
Some(Self::Color(ItemPalette::random())))
("color" [c: Color]
Some(Self::Color(c.map(ItemPalette::from).expect("no color"))))