Skip to content

Commit

Permalink
printer demo: minor tweak
Browse files Browse the repository at this point in the history
Like with regular check boxes, allow clicking on the text to also toggle
  • Loading branch information
tronical committed Jul 23, 2021
1 parent 235ce85 commit 530d47f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/printerdemo/ui/common.60
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ export CheckBox := Rectangle {
horizontal-stretch: 1;
}
}

TouchArea {
clicked => {
checked = !checked;
}
}
}

export PushButton := Rectangle {
Expand Down

0 comments on commit 530d47f

Please sign in to comment.