diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/FloatScrollBarSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/FloatScrollBarSkin.java index 1b2c39d7a7..47ee72b5e8 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/FloatScrollBarSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/FloatScrollBarSkin.java @@ -129,12 +129,12 @@ private void setup() { track.heightProperty().unbind(); if (scrollBar.getOrientation() == Orientation.HORIZONTAL) { - track.relocate(0, -8); + track.relocate(0, -4.5); track.widthProperty().bind(scrollBar.widthProperty()); - track.setHeight(8); + track.setHeight(4.5); } else { - track.relocate(-8, 0); - track.setWidth(8); + track.relocate(-4.5, 0); + track.setWidth(4.5); track.heightProperty().bind(scrollBar.heightProperty()); } @@ -144,13 +144,13 @@ private void setup() { thumb.heightProperty().unbind(); if (scrollBar.getOrientation() == Orientation.HORIZONTAL) { - thumb.relocate(0, -8); + thumb.relocate(0, -4.5); thumb.widthProperty().bind(Bindings.max(20, scrollBar.visibleAmountProperty().divide(range).multiply(scrollBar.widthProperty()))); - thumb.setHeight(8); + thumb.setHeight(4.5); thumb.xProperty().bind(Bindings.subtract(scrollBar.widthProperty(), thumb.widthProperty()).multiply(position)); } else { - thumb.relocate(-8, 0); - thumb.setWidth(8); + thumb.relocate(-4.5, 0); + thumb.setWidth(4.5); thumb.heightProperty().bind(Bindings.max(20, scrollBar.visibleAmountProperty().divide(range).multiply(scrollBar.heightProperty()))); thumb.yProperty().bind(Bindings.subtract(scrollBar.heightProperty(), thumb.heightProperty()).multiply(position)); } @@ -162,7 +162,7 @@ protected double computeMaxWidth(double height) { return Double.MAX_VALUE; } - return 8; + return 4.5; } @Override @@ -171,7 +171,7 @@ protected double computeMaxHeight(double width) { return Double.MAX_VALUE; } - return 8; + return 4.5; } }; } diff --git a/HMCL/src/main/resources/assets/css/root.css b/HMCL/src/main/resources/assets/css/root.css index 799882b6d8..87193cc4a1 100644 --- a/HMCL/src/main/resources/assets/css/root.css +++ b/HMCL/src/main/resources/assets/css/root.css @@ -29,8 +29,8 @@ .scroll-bar .thumb { -fx-fill: -monet-surface-tint; - -fx-arc-width: 8; - -fx-arc-height: 8; + -fx-arc-width: 4.5; + -fx-arc-height: 4.5; } .title-label {