Add version number to splash screen, update version in pw dialog to have a leading "v"

This commit is contained in:
phytohydra 2024-12-27 16:56:44 -08:00 committed by woodser
parent fc1388d2f4
commit 6a798312fe
2 changed files with 6 additions and 3 deletions

View file

@ -212,8 +212,8 @@ public class HavenoAppMain extends HavenoExecutable {
errorMessageField.setTextFill(Color.color(1, 0, 0));
// Create the version field
Label versionField = new Label(Version.VERSION);
Label versionField = new Label("v" + Version.VERSION);
// Set the dialog content
VBox vbox = new VBox(10);
vbox.getChildren().addAll(new ImageView(ImageUtil.getImageByPath("logo_splash.png")), versionField, passwordField, errorMessageField);

View file

@ -20,6 +20,7 @@ package haveno.desktop.main;
import com.google.inject.Inject;
import com.jfoenix.controls.JFXBadge;
import com.jfoenix.controls.JFXComboBox;
import haveno.common.app.Version;
import haveno.common.HavenoException;
import haveno.common.Timer;
import haveno.common.UserThread;
@ -510,6 +511,8 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
ImageView logo = new ImageView();
logo.setId(Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_MAINNET ? "image-splash-logo" : "image-splash-testnet-logo");
Label versionLabel = new Label("v" + Version.VERSION);
// createBitcoinInfoBox
xmrSplashInfo = new AutoTooltipLabel();
xmrSplashInfo.textProperty().bind(model.getXmrInfo());
@ -621,7 +624,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
splashP2PNetworkBox.setPrefHeight(40);
splashP2PNetworkBox.getChildren().addAll(splashP2PNetworkLabel, splashP2PNetworkBusyAnimation, splashP2PNetworkIcon, showTorNetworkSettingsButton);
vBox.getChildren().addAll(logo, blockchainSyncBox, xmrSyncIndicator, splashP2PNetworkBox);
vBox.getChildren().addAll(logo, versionLabel, blockchainSyncBox, xmrSyncIndicator, splashP2PNetworkBox);
return vBox;
}