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
|
@ -40,11 +40,11 @@ impl<S: 'static + Send + Sync + Clone> Terminal<S> {
|
|||
.items_center()
|
||||
.gap_px()
|
||||
.child(
|
||||
IconButton::new(Icon::ArrowLeft).state(
|
||||
IconButton::new(Icon::ArrowLeft, "arrow_left").state(
|
||||
InteractionState::Enabled.if_enabled(can_navigate_back),
|
||||
),
|
||||
)
|
||||
.child(IconButton::new(Icon::ArrowRight).state(
|
||||
.child(IconButton::new(Icon::ArrowRight, "arrow_right").state(
|
||||
InteractionState::Enabled.if_enabled(can_navigate_forward),
|
||||
)),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue