Skip to content

Commit

Permalink
Change default duration for Transitions.transitContentViews
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Nov 8, 2023
1 parent 8aaa0c5 commit a65df23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/src/main/java/bisq/desktop/common/Transitions.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static Timeline slideOutHorizontal(Region node, Runnable finishedHandler,
}


int duration = DEFAULT_DURATION / 2;
int duration = DEFAULT_DURATION / 4;
ObservableList<KeyFrame> keyFrames = timeline.getKeyFrames();
keyFrames.add(new KeyFrame(Duration.millis(0),
new KeyValue(node.opacityProperty(), 1, Interpolator.LINEAR),
Expand Down Expand Up @@ -449,7 +449,7 @@ public static void transitContentViews(View<? extends Parent, ? extends Model, ?
((TransitionedView) newView).onStartTransition();
}
fadeIn(nodeIn,
DEFAULT_DURATION / 2,
DEFAULT_DURATION / 4,
() -> {
if (newView instanceof TransitionedView) {
((TransitionedView) newView).onTransitionCompleted();
Expand Down

0 comments on commit a65df23

Please sign in to comment.