为不同类型的 Dialog 指定相应的默认标题 (#5079)
This commit is contained in:
@@ -87,7 +87,7 @@ public final class MessageDialogPane extends HBox {
|
|||||||
{
|
{
|
||||||
StackPane titlePane = new StackPane();
|
StackPane titlePane = new StackPane();
|
||||||
titlePane.getStyleClass().addAll("jfx-layout-heading", "title");
|
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();
|
StackPane content = new StackPane();
|
||||||
content.getStyleClass().add("jfx-layout-body");
|
content.getStyleClass().add("jfx-layout-body");
|
||||||
|
|||||||
@@ -875,6 +875,7 @@ message.info=Information
|
|||||||
message.success=Operation successfully completed
|
message.success=Operation successfully completed
|
||||||
message.unknown=Unknown
|
message.unknown=Unknown
|
||||||
message.warning=Warning
|
message.warning=Warning
|
||||||
|
message.question=Question
|
||||||
|
|
||||||
modpack=Modpacks
|
modpack=Modpacks
|
||||||
modpack.choose=Choose Modpack
|
modpack.choose=Choose Modpack
|
||||||
|
|||||||
Reference in New Issue
Block a user