From ed87b36a763195f97471af327af4f3f448921da8 Mon Sep 17 00:00:00 2001 From: phytohydra <144396848+phytohydra@users.noreply.github.com> Date: Thu, 26 Dec 2024 08:56:53 +0000 Subject: [PATCH] Add Haveno version to password dialog --- .../src/main/java/haveno/desktop/app/HavenoAppMain.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java b/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java index b64c5c0d..0656476a 100644 --- a/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java +++ b/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java @@ -29,6 +29,7 @@ import haveno.desktop.setup.DesktopPersistedDataHost; import haveno.desktop.util.ImageUtil; import javafx.application.Application; import javafx.application.Platform; +import javafx.geometry.Pos; import javafx.scene.control.ButtonBar; import javafx.scene.control.ButtonType; import javafx.scene.control.Dialog; @@ -210,9 +211,13 @@ public class HavenoAppMain extends HavenoExecutable { Label errorMessageField = new Label(errorMessage); errorMessageField.setTextFill(Color.color(1, 0, 0)); + // Create the version field + Label versionField = new Label(Version.VERSION); + // Set the dialog content VBox vbox = new VBox(10); - vbox.getChildren().addAll(new ImageView(ImageUtil.getImageByPath("logo_splash.png")), passwordField, errorMessageField); + vbox.getChildren().addAll(new ImageView(ImageUtil.getImageByPath("logo_splash.png")), versionField, passwordField, errorMessageField); + vbox.setAlignment(Pos.TOP_CENTER); getDialogPane().setContent(vbox); // Add OK and Cancel buttons