Pass IDs to IconButton
s instead of generating them
This commit is contained in:
parent
7719ed0d6c
commit
47f979d457
11 changed files with 40 additions and 39 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)
|
||||
IconButton::<Self>::new(Icon::Replace, "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