mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
add defcom! macro
This commit is contained in:
parent
ab37e2e7d4
commit
5db97825cc
2 changed files with 69 additions and 54 deletions
|
|
@ -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"))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue