Add disabled state and on_toggle handler to Toggler
Co-authored-by: Your Name here only <krishnsundaram@gmail.com>
This commit is contained in:
parent
770176a4e1
commit
c741688b4c
5 changed files with 57 additions and 30 deletions
|
|
@ -150,11 +150,8 @@ impl Editor {
|
|||
self.is_dirty.then_some(Message::SaveFile)
|
||||
),
|
||||
horizontal_space(),
|
||||
toggler(
|
||||
Some("Word Wrap"),
|
||||
self.word_wrap,
|
||||
Message::WordWrapToggled
|
||||
),
|
||||
toggler(Some("Word Wrap"), self.word_wrap)
|
||||
.on_toggle(Message::WordWrapToggled),
|
||||
pick_list(
|
||||
highlighter::Theme::ALL,
|
||||
Some(self.theme),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue