Skip to content

Commit

Permalink
Add version number to splash screen, update version in pw dialog to h…
Browse files Browse the repository at this point in the history
…ave a leading "v"
  • Loading branch information
phytohydra authored and woodser committed Dec 29, 2024
1 parent fc1388d commit 6a79831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ public PasswordDialog(String errorMessage) {
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);
Expand Down
5 changes: 4 additions & 1 deletion desktop/src/main/java/haveno/desktop/main/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
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;
Expand Down Expand Up @@ -510,6 +511,8 @@ private VBox createSplashScreen() {
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());
Expand Down Expand Up @@ -621,7 +624,7 @@ private VBox createSplashScreen() {
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;
}

Expand Down

0 comments on commit 6a79831

Please sign in to comment.