splash screen shows "test network" if not mainnet

This commit is contained in:
woodser 2023-02-23 10:00:31 -05:00
parent 1d46818732
commit c7080f3dbc
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,12 @@
/* splash screen */
/*noinspection CssUnknownTarget*/
#image-splash-logo {
-fx-image: url("../../images/logo_splash.png");
}
/* splash screen testnet */
/*noinspection CssUnknownTarget*/
#image-splash-testnet-logo {
-fx-image: url("../../images/logo_splash_testnet.png");
}

View File

@ -50,6 +50,8 @@ import bisq.core.provider.price.MarketPrice;
import bisq.common.HavenoException;
import bisq.common.Timer;
import bisq.common.UserThread;
import bisq.common.config.BaseCurrencyNetwork;
import bisq.common.config.Config;
import bisq.common.util.Tuple2;
import bisq.common.util.Utilities;
@ -522,8 +524,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
vBox.setId("splash");
ImageView logo = new ImageView();
logo.setId("image-splash-logo");
logo.setId(Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_MAINNET ? "image-splash-logo" : "image-splash-testnet-logo");
// createBitcoinInfoBox
btcSplashInfo = new AutoTooltipLabel();