Make label optional for checkbox widget
This commit is contained in:
parent
a2d052982b
commit
0d2aa41dee
15 changed files with 87 additions and 58 deletions
|
|
@ -153,7 +153,8 @@ impl Image {
|
|||
self.rotation.degrees(),
|
||||
Message::RotationChanged
|
||||
),
|
||||
checkbox("Spin!", self.spin)
|
||||
checkbox(self.spin)
|
||||
.label("Spin!")
|
||||
.text_size(12)
|
||||
.on_toggle(Message::SpinToggled)
|
||||
.size(12)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue