diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java index 410e3daca9..1b97718aa7 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java @@ -43,6 +43,7 @@ import org.jackhuang.hmcl.ui.animation.AnimationUtils; import org.jackhuang.hmcl.ui.animation.ContainerAnimations; import org.jackhuang.hmcl.ui.animation.TransitionPane; import org.jackhuang.hmcl.ui.construct.MessageDialogPane; +import org.jackhuang.hmcl.ui.construct.RipplerContainer; import org.jackhuang.hmcl.ui.construct.TwoLineListItem; import org.jackhuang.hmcl.ui.decorator.DecoratorPage; import org.jackhuang.hmcl.ui.instances.GameListPopupMenu; @@ -197,7 +198,7 @@ public final class MainPage extends StackPane implements DecoratorPage { StackPane.setMargin(closeUpdateButton, new Insets(5)); closeUpdateButton.setOnAction(e -> closeUpdateBubble()); - updatePane.getChildren().setAll(hBox, closeUpdateButton); + updatePane.getChildren().setAll(new RipplerContainer(hBox), closeUpdateButton); } HBox launchPane = new HBox(); diff --git a/HMCL/src/main/resources/assets/css/root.css b/HMCL/src/main/resources/assets/css/root.css index 6b8d23ec45..0f05af9433 100644 --- a/HMCL/src/main/resources/assets/css/root.css +++ b/HMCL/src/main/resources/assets/css/root.css @@ -372,8 +372,8 @@ -fx-background-radius: 2px; } -.bubble > HBox > .two-line-list-item > .title, -.bubble > HBox > .two-line-list-item > .subtitle { +.bubble > RipplerContainer > HBox > .two-line-list-item > .title, +.bubble > RipplerContainer > HBox > .two-line-list-item > .subtitle { -fx-text-fill: -monet-inverse-on-surface; }