mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-16 08:14:15 -05:00
Add btc network info at splash screen
This commit is contained in:
parent
d6f97c65c4
commit
ffbd991a3f
2 changed files with 15 additions and 1 deletions
|
|
@ -41,6 +41,11 @@ lower gradient color on tab: dddddd
|
||||||
-fx-text-fill: -bs-error-red;
|
-fx-text-fill: -bs-error-red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#splash-bitcoin-network-label {
|
||||||
|
-fx-text-fill: -fx-accent;
|
||||||
|
-fx-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
/* Main UI */
|
/* Main UI */
|
||||||
#base-content-container {
|
#base-content-container {
|
||||||
-fx-background-color: -bs-bg-grey;
|
-fx-background-color: -bs-bg-grey;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
package io.bitsquare.gui.main;
|
package io.bitsquare.gui.main;
|
||||||
|
|
||||||
import io.bitsquare.bank.BankAccount;
|
import io.bitsquare.bank.BankAccount;
|
||||||
|
import io.bitsquare.btc.BitcoinNetwork;
|
||||||
import io.bitsquare.gui.Navigation;
|
import io.bitsquare.gui.Navigation;
|
||||||
import io.bitsquare.gui.OverlayManager;
|
import io.bitsquare.gui.OverlayManager;
|
||||||
import io.bitsquare.gui.ViewCB;
|
import io.bitsquare.gui.ViewCB;
|
||||||
|
|
@ -57,6 +58,7 @@ public class MainViewCB extends ViewCB<MainPM> {
|
||||||
private final OverlayManager overlayManager;
|
private final OverlayManager overlayManager;
|
||||||
private final ToggleGroup navButtonsGroup = new ToggleGroup();
|
private final ToggleGroup navButtonsGroup = new ToggleGroup();
|
||||||
private Transitions transitions;
|
private Transitions transitions;
|
||||||
|
private BitcoinNetwork bitcoinNetwork;
|
||||||
private final String title;
|
private final String title;
|
||||||
|
|
||||||
private BorderPane baseApplicationContainer;
|
private BorderPane baseApplicationContainer;
|
||||||
|
|
@ -76,12 +78,14 @@ public class MainViewCB extends ViewCB<MainPM> {
|
||||||
@Inject
|
@Inject
|
||||||
private MainViewCB(MainPM presentationModel, Navigation navigation, OverlayManager overlayManager,
|
private MainViewCB(MainPM presentationModel, Navigation navigation, OverlayManager overlayManager,
|
||||||
TradeManager tradeManager, Transitions transitions,
|
TradeManager tradeManager, Transitions transitions,
|
||||||
|
BitcoinNetwork bitcoinNetwork,
|
||||||
@Named(TITLE_KEY) String title) {
|
@Named(TITLE_KEY) String title) {
|
||||||
super(presentationModel);
|
super(presentationModel);
|
||||||
|
|
||||||
this.navigation = navigation;
|
this.navigation = navigation;
|
||||||
this.overlayManager = overlayManager;
|
this.overlayManager = overlayManager;
|
||||||
this.transitions = transitions;
|
this.transitions = transitions;
|
||||||
|
this.bitcoinNetwork = bitcoinNetwork;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
|
|
||||||
tradeManager.featureNotImplementedWarningProperty().addListener((ov, oldValue, newValue) -> {
|
tradeManager.featureNotImplementedWarningProperty().addListener((ov, oldValue, newValue) -> {
|
||||||
|
|
@ -307,12 +311,17 @@ public class MainViewCB extends ViewCB<MainPM> {
|
||||||
blockchainSyncIndicator.setManaged(false);
|
blockchainSyncIndicator.setManaged(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Label bitcoinNetworkLabel = new Label();
|
||||||
|
bitcoinNetworkLabel.setText(bitcoinNetwork.toString());
|
||||||
|
bitcoinNetworkLabel.setId("splash-bitcoin-network-label");
|
||||||
|
|
||||||
HBox blockchainSyncBox = new HBox();
|
HBox blockchainSyncBox = new HBox();
|
||||||
blockchainSyncBox.setSpacing(10);
|
blockchainSyncBox.setSpacing(10);
|
||||||
blockchainSyncBox.setAlignment(Pos.CENTER);
|
blockchainSyncBox.setAlignment(Pos.CENTER);
|
||||||
blockchainSyncBox.setPadding(new Insets(60, 0, 0, 0));
|
blockchainSyncBox.setPadding(new Insets(60, 0, 0, 0));
|
||||||
blockchainSyncBox.setPrefHeight(50);
|
blockchainSyncBox.setPrefHeight(50);
|
||||||
blockchainSyncBox.getChildren().addAll(blockchainSyncLabel, blockchainSyncIndicator, blockchainSyncIcon);
|
blockchainSyncBox.getChildren().addAll(blockchainSyncLabel, blockchainSyncIndicator,
|
||||||
|
blockchainSyncIcon, bitcoinNetworkLabel);
|
||||||
|
|
||||||
Label bootstrapStateLabel = new Label();
|
Label bootstrapStateLabel = new Label();
|
||||||
bootstrapStateLabel.setWrapText(true);
|
bootstrapStateLabel.setWrapText(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue