Skip to content

Commit bd812cc

Browse files
authored
优化设置页更新按钮 (#6010)
1 parent dad190f commit bd812cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ public SettingsPage() {
121121
ObjectProperty<UpdateChannel> updateChannel;
122122
{
123123

124-
JFXButton updateButton = new JFXButton();
125-
updateButton.setGraphic(SVG.UPDATE.createIcon(20));
124+
JFXButton updateButton = FXUtils.newToggleButton4(SVG.UPDATE, 20);
126125
updateButton.setOnAction(e -> onUpdate());
127126
updateButton.setPadding(Insets.EMPTY);
128127
FXUtils.installFastTooltip(updateButton, i18n("update.tooltip"));

0 commit comments

Comments
 (0)