Swap the parameters to IconButton
This commit is contained in:
parent
47f979d457
commit
6a532af1fd
11 changed files with 37 additions and 37 deletions
|
@ -51,11 +51,11 @@ impl<S: 'static + Send + Sync + Clone> TabBar<S> {
|
|||
.items_center()
|
||||
.gap_px()
|
||||
.child(
|
||||
IconButton::new(Icon::ArrowLeft, "arrow_left")
|
||||
IconButton::new("arrow_left", Icon::ArrowLeft)
|
||||
.state(InteractionState::Enabled.if_enabled(can_navigate_back)),
|
||||
)
|
||||
.child(
|
||||
IconButton::new(Icon::ArrowRight, "arrow_right").state(
|
||||
IconButton::new("arrow_right", Icon::ArrowRight).state(
|
||||
InteractionState::Enabled.if_enabled(can_navigate_forward),
|
||||
),
|
||||
),
|
||||
|
@ -83,8 +83,8 @@ impl<S: 'static + Send + Sync + Clone> TabBar<S> {
|
|||
.flex()
|
||||
.items_center()
|
||||
.gap_px()
|
||||
.child(IconButton::new(Icon::Plus, "plus"))
|
||||
.child(IconButton::new(Icon::Split, "split")),
|
||||
.child(IconButton::new("plus", Icon::Plus))
|
||||
.child(IconButton::new("split", Icon::Split)),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue