Skip to content

Commit 0d62a12

Browse files
authored
fix: 列表工具栏水波纹溢出 (#6117)
1 parent 880aab0 commit 0d62a12

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public ToolbarListPageSkin(P skinnable) {
5555
toolbar.setAlignment(Pos.CENTER_LEFT);
5656
toolbar.setPickOnBounds(false);
5757
toolbar.getChildren().setAll(toolbarButtons);
58+
FXUtils.setOverflowHidden(toolbar, 8);
5859
root.getContent().add(toolbar);
5960
}
6061

HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameListPage.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
import javafx.scene.control.SkinBase;
3535
import javafx.scene.input.KeyCode;
3636
import javafx.scene.input.KeyEvent;
37-
import javafx.scene.layout.*;
37+
import javafx.scene.layout.HBox;
38+
import javafx.scene.layout.Priority;
39+
import javafx.scene.layout.StackPane;
40+
import javafx.scene.layout.VBox;
3841
import javafx.util.Duration;
3942
import org.jackhuang.hmcl.setting.Profile;
4043
import org.jackhuang.hmcl.setting.Profiles;
@@ -241,6 +244,8 @@ public GameListSkin(GameList skinnable) {
241244

242245
toolbarPane.setContent(toolbarNormal, ContainerAnimations.FADE);
243246

247+
FXUtils.setOverflowHidden(toolbarPane, 8);
248+
244249
root.getContent().add(toolbarPane);
245250
}
246251

HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ final class ModListPageSkin extends SkinBase<ModListPage> {
197197
else
198198
changeToolbar(toolbarSelecting);
199199
});
200+
201+
FXUtils.setOverflowHidden(toolbarPane, 8);
202+
200203
root.getContent().add(toolbarPane);
201204

202205
// Clear selection when pressing ESC

0 commit comments

Comments
 (0)