为不同类型的 Dialog 指定相应的默认标题 (#5079)

This commit is contained in:
neveler
2026-01-02 16:15:27 +08:00
committed by GitHub
parent fadd9580a2
commit 3842b6df32
2 changed files with 2 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ public final class MessageDialogPane extends HBox {
{
StackPane titlePane = new StackPane();
titlePane.getStyleClass().addAll("jfx-layout-heading", "title");
titlePane.getChildren().setAll(new Label(title != null ? title : i18n("message.info")));
titlePane.getChildren().setAll(new Label(title != null ? title : i18n(type.getDisplayName())));
StackPane content = new StackPane();
content.getStyleClass().add("jfx-layout-body");

View File

@@ -875,6 +875,7 @@ message.info=Information
message.success=Operation successfully completed
message.unknown=Unknown
message.warning=Warning
message.question=Question
modpack=Modpacks
modpack.choose=Choose Modpack