Skip to content

Commit

Permalink
Add Haveno version to password dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
phytohydra authored and woodser committed Dec 27, 2024
1 parent adcf158 commit ed87b36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
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;
Expand Down Expand Up @@ -210,9 +211,13 @@ public PasswordDialog(String errorMessage) {
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
Expand Down

0 comments on commit ed87b36

Please sign in to comment.