mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-03 14:49:25 +00:00
Add Haveno version to password dialog
This commit is contained in:
parent
adcf158a90
commit
ed87b36a76
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue