Make label optional for checkbox widget
This commit is contained in:
parent
a2d052982b
commit
0d2aa41dee
15 changed files with 87 additions and 58 deletions
|
|
@ -71,7 +71,8 @@ impl Layout {
|
|||
let header = row![
|
||||
text(self.example.title).size(20).font(Font::MONOSPACE),
|
||||
space::horizontal(),
|
||||
checkbox("Explain", self.explain)
|
||||
checkbox(self.explain)
|
||||
.label("Explain")
|
||||
.on_toggle(Message::ExplainToggled),
|
||||
pick_list(Theme::ALL, self.theme.as_ref(), Message::ThemeSelected)
|
||||
.placeholder("Theme"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue