Add Haveno version to password dialog

This commit is contained in:
phytohydra 2024-12-26 08:56:53 +00:00 committed by woodser
parent adcf158a90
commit ed87b36a76

View file

@ -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