From c880e4befb874e5236e4326721462b009374fadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=9E=E5=BA=90?= <109708109+CiiLu@users.noreply.github.com> Date: Wed, 4 Feb 2026 22:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20`large-spinner-pane`=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20(#5405)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java | 1 - .../java/org/jackhuang/hmcl/ui/download/ModpackPage.java | 2 -- .../jackhuang/hmcl/ui/versions/DatapackListPageSkin.java | 1 - .../org/jackhuang/hmcl/ui/versions/ModListPageSkin.java | 1 - .../jackhuang/hmcl/ui/versions/ResourcepackListPage.java | 1 - HMCL/src/main/resources/assets/css/root.css | 8 -------- 6 files changed, 14 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java index 0e9ecb026..317f45f75 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java @@ -46,7 +46,6 @@ public abstract class ToolbarListPageSkin> extends spinnerPane.loadingProperty().bind(skinnable.loadingProperty()); spinnerPane.failedReasonProperty().bind(skinnable.failedReasonProperty()); spinnerPane.onFailedActionProperty().bind(skinnable.onFailedActionProperty()); - spinnerPane.getStyleClass().add("large-spinner-pane"); ComponentList root = new ComponentList(); root.getStyleClass().add("no-padding"); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/ModpackPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/ModpackPage.java index 192e6bc83..9e6602266 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/ModpackPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/ModpackPage.java @@ -33,8 +33,6 @@ public abstract class ModpackPage extends SpinnerPane implements WizardPage { protected ModpackPage(WizardController controller) { this.controller = controller; - this.getStyleClass().add("large-spinner-pane"); - VBox borderPane = new VBox(); borderPane.setAlignment(Pos.CENTER); FXUtils.setLimitWidth(borderPane, 500); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DatapackListPageSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DatapackListPageSkin.java index d77e714de..b74cb17bb 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DatapackListPageSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DatapackListPageSkin.java @@ -183,7 +183,6 @@ final class DatapackListPageSkin extends SkinBase { { SpinnerPane center = new SpinnerPane(); ComponentList.setVgrow(center, Priority.ALWAYS); - center.getStyleClass().add("large-spinner-pane"); center.loadingProperty().bind(skinnable.loadingProperty()); listView.setCellFactory(x -> new DatapackInfoListCell(listView, getSkinnable().readOnly)); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java index d3fea4f1b..ba17e0e2b 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPageSkin.java @@ -199,7 +199,6 @@ final class ModListPageSkin extends SkinBase { { SpinnerPane center = new SpinnerPane(); ComponentList.setVgrow(center, Priority.ALWAYS); - center.getStyleClass().add("large-spinner-pane"); center.loadingProperty().bind(skinnable.loadingProperty()); listView.setCellFactory(x -> new ModInfoListCell(listView)); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ResourcepackListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ResourcepackListPage.java index 075bf4658..bd321b461 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ResourcepackListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ResourcepackListPage.java @@ -156,7 +156,6 @@ public final class ResourcepackListPage extends ListPageBase new ResourcepackListCell(listView, control)); diff --git a/HMCL/src/main/resources/assets/css/root.css b/HMCL/src/main/resources/assets/css/root.css index ff43d3320..8217e7fda 100644 --- a/HMCL/src/main/resources/assets/css/root.css +++ b/HMCL/src/main/resources/assets/css/root.css @@ -1416,14 +1416,6 @@ -fx-stroke-width: 3.0; } -.large-spinner-pane .jfx-spinner { - -jfx-radius: 20; -} - -.large-spinner-pane .jfx-spinner { - -fx-stroke-width: 5.0; -} - .second-spinner { -jfx-radius: 30; }