Swap the parameters to IconButton
This commit is contained in:
parent
47f979d457
commit
6a532af1fd
11 changed files with 37 additions and 37 deletions
|
@ -32,7 +32,7 @@ impl BufferSearch {
|
|||
|
||||
h_stack().bg(color.toolbar).p_2().child(
|
||||
h_stack().child(Input::new("Search")).child(
|
||||
IconButton::<Self>::new(Icon::Replace, "replace")
|
||||
IconButton::<Self>::new("replace", Icon::Replace)
|
||||
.when(self.is_replace_open, |this| this.color(IconColor::Accent))
|
||||
.on_click(|buffer_search, cx| {
|
||||
buffer_search.toggle_replace(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue