|
49 | 49 | import org.jackhuang.hmcl.task.TaskExecutor; |
50 | 50 | import org.jackhuang.hmcl.ui.account.AccountListPage; |
51 | 51 | import org.jackhuang.hmcl.ui.animation.AnimationUtils; |
| 52 | +import org.jackhuang.hmcl.ui.animation.Motion; |
52 | 53 | import org.jackhuang.hmcl.ui.construct.*; |
53 | 54 | import org.jackhuang.hmcl.ui.construct.MessageDialogPane.MessageType; |
54 | 55 | import org.jackhuang.hmcl.ui.decorator.DecoratorController; |
@@ -328,16 +329,16 @@ public static void initialize(Stage stage) { |
328 | 329 | if (AnimationUtils.playWindowAnimation()) { |
329 | 330 | Timeline timeline = new Timeline( |
330 | 331 | new KeyFrame(Duration.millis(0), |
331 | | - new KeyValue(decorator.getDecorator().opacityProperty(), 0, FXUtils.EASE), |
332 | | - new KeyValue(decorator.getDecorator().scaleXProperty(), 0.8, FXUtils.EASE), |
333 | | - new KeyValue(decorator.getDecorator().scaleYProperty(), 0.8, FXUtils.EASE), |
334 | | - new KeyValue(decorator.getDecorator().scaleZProperty(), 0.8, FXUtils.EASE) |
| 332 | + new KeyValue(decorator.getDecorator().opacityProperty(), 0, Motion.EASE), |
| 333 | + new KeyValue(decorator.getDecorator().scaleXProperty(), 0.8, Motion.EASE), |
| 334 | + new KeyValue(decorator.getDecorator().scaleYProperty(), 0.8, Motion.EASE), |
| 335 | + new KeyValue(decorator.getDecorator().scaleZProperty(), 0.8, Motion.EASE) |
335 | 336 | ), |
336 | 337 | new KeyFrame(Duration.millis(600), |
337 | | - new KeyValue(decorator.getDecorator().opacityProperty(), 1, FXUtils.EASE), |
338 | | - new KeyValue(decorator.getDecorator().scaleXProperty(), 1, FXUtils.EASE), |
339 | | - new KeyValue(decorator.getDecorator().scaleYProperty(), 1, FXUtils.EASE), |
340 | | - new KeyValue(decorator.getDecorator().scaleZProperty(), 1, FXUtils.EASE) |
| 338 | + new KeyValue(decorator.getDecorator().opacityProperty(), 1, Motion.EASE), |
| 339 | + new KeyValue(decorator.getDecorator().scaleXProperty(), 1, Motion.EASE), |
| 340 | + new KeyValue(decorator.getDecorator().scaleYProperty(), 1, Motion.EASE), |
| 341 | + new KeyValue(decorator.getDecorator().scaleZProperty(), 1, Motion.EASE) |
341 | 342 | ) |
342 | 343 | ); |
343 | 344 | timeline.play(); |
|
0 commit comments