From ce9194057a8c1e3e925f33426a1d8af10ce88e7d Mon Sep 17 00:00:00 2001 From: neveler <55753029+neveler@users.noreply.github.com> Date: Sat, 3 Jan 2026 20:51:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C=0D=20(#5114)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为字体重置操作按钮添加 tooltip - 为游戏图标重置操作按钮添加 tooltip 并将按钮图标切换为 SVG.RESTORE --- .../java/org/jackhuang/hmcl/ui/construct/ImagePickerItem.java | 3 ++- .../java/org/jackhuang/hmcl/ui/main/PersonalizationPage.java | 2 ++ HMCL/src/main/resources/assets/lang/I18N.properties | 1 + HMCL/src/main/resources/assets/lang/I18N_zh.properties | 1 + HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/ImagePickerItem.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/ImagePickerItem.java index c22ad5859..203e6fc18 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/ImagePickerItem.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/ImagePickerItem.java @@ -58,11 +58,12 @@ public final class ImagePickerItem extends BorderPane { selectButton.getStyleClass().add("toggle-icon4"); JFXButton deleteButton = new JFXButton(); - deleteButton.setGraphic(SVG.CLOSE.createIcon(20)); + deleteButton.setGraphic(SVG.RESTORE.createIcon(20)); deleteButton.onActionProperty().bind(onDeleteButtonClicked); deleteButton.getStyleClass().add("toggle-icon4"); FXUtils.installFastTooltip(selectButton, i18n("button.edit")); + FXUtils.installFastTooltip(deleteButton, i18n("button.reset")); HBox hBox = new HBox(); hBox.getChildren().setAll(imageView, selectButton, deleteButton); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/PersonalizationPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/PersonalizationPage.java index 54a3fb60b..cc8ffd88e 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/PersonalizationPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/PersonalizationPage.java @@ -287,6 +287,8 @@ public class PersonalizationPage extends StackPane { clearButton.setGraphic(SVG.RESTORE.createIcon()); clearButton.setOnAction(e -> cboFont.setValue(null)); + FXUtils.installFastTooltip(clearButton, i18n("button.reset")); + hBox.getChildren().setAll(cboFont, clearButton); borderPane.setRight(hBox); diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index de027b3b5..e4bf02391 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -187,6 +187,7 @@ button.export=Export button.no=No button.ok=OK button.ok.countdown=OK (%d) +button.reset=Reset button.reveal_dir=Reveal button.refresh=Refresh button.remove=Remove diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties index 1e3816780..5f39568b3 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties @@ -182,6 +182,7 @@ button.export=匯出 button.no=否 button.ok=確定 button.ok.countdown=確定 (%d) +button.reset=重設 button.reveal_dir=開啟目錄 button.refresh=重新整理 button.remove=刪除 diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties index 955844f6a..fddd5f71b 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -184,6 +184,7 @@ button.export=导出 button.no=否 button.ok=确定 button.ok.countdown=确定 (%d) +button.reset=重置 button.reveal_dir=打开文件夹 button.refresh=刷新 button.remove=删除