Skip to content

Commit 6f1f498

Browse files
committed
Fix: Alignment for background opacity percentage label
1 parent 886319a commit 6f1f498

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ protected Node createRightNode() {
10071007

10081008
Label textOpacity = new Label();
10091009
FXUtils.setLimitWidth(textOpacity, 50);
1010+
textOpacity.setAlignment(Pos.CENTER);
10101011

10111012
StringBinding valueBinding = Bindings.createStringBinding(() -> ((int) slider.getValue()) + "%", slider.valueProperty());
10121013
textOpacity.textProperty().bind(valueBinding);

0 commit comments

Comments
 (0)