This commit is contained in:
Kewbit 2025-06-09 20:14:50 +07:00
commit 648165b368
12 changed files with 20 additions and 8 deletions

View file

@ -406,6 +406,13 @@ public class CurrencyUtil {
removedCryptoCurrency.isPresent() ? removedCryptoCurrency.get().getName() : Res.get("shared.na"); removedCryptoCurrency.isPresent() ? removedCryptoCurrency.get().getName() : Res.get("shared.na");
return getCryptoCurrency(currencyCode).map(TradeCurrency::getName).orElse(xmrOrRemovedAsset); return getCryptoCurrency(currencyCode).map(TradeCurrency::getName).orElse(xmrOrRemovedAsset);
} }
if (isTraditionalNonFiatCurrency(currencyCode)) {
return getTraditionalNonFiatCurrencies().stream()
.filter(currency -> currency.getCode().equals(currencyCode))
.findAny()
.map(TradeCurrency::getName)
.orElse(currencyCode);
}
try { try {
return Currency.getInstance(currencyCode).getDisplayName(); return Currency.getInstance(currencyCode).getDisplayName();
} catch (Throwable t) { } catch (Throwable t) {

View file

@ -216,7 +216,7 @@ public class HavenoAppMain extends HavenoExecutable {
// Set the dialog content // Set the dialog content
VBox vbox = new VBox(10); VBox vbox = new VBox(10);
ImageView logoImageView = new ImageView(ImageUtil.getImageByPath("logo_splash_light.png")); ImageView logoImageView = new ImageView(ImageUtil.getImageByPath("logo_splash_light_mode.png"));
logoImageView.setFitWidth(342); logoImageView.setFitWidth(342);
logoImageView.setPreserveRatio(true); logoImageView.setPreserveRatio(true);
vbox.getChildren().addAll(logoImageView, passwordField, errorMessageField, versionField); vbox.getChildren().addAll(logoImageView, passwordField, errorMessageField, versionField);

View file

@ -2283,6 +2283,7 @@ textfield */
-fx-background-insets: 44; -fx-background-insets: 44;
-fx-background-radius: 15; -fx-background-radius: 15;
-fx-border-radius: 15; -fx-border-radius: 15;
-fx-effect: dropshadow(gaussian, -bs-text-color-dropshadow-light-mode, 44, 0, 0, 0);
} }
.notification-popup-bg, .peer-info-popup-bg { .notification-popup-bg, .peer-info-popup-bg {

View file

@ -305,8 +305,12 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
} }
}); });
// add spacer to center the nav buttons when window is small
Region rightSpacer = new Region();
HBox.setHgrow(rightSpacer, Priority.ALWAYS);
HBox primaryNav = new HBox(getLogoPane(), marketButton, getNavigationSpacer(), buyButton, getNavigationSpacer(), HBox primaryNav = new HBox(getLogoPane(), marketButton, getNavigationSpacer(), buyButton, getNavigationSpacer(),
sellButton, getNavigationSpacer(), portfolioButtonWithBadge, getNavigationSpacer(), fundsButton); sellButton, getNavigationSpacer(), portfolioButtonWithBadge, getNavigationSpacer(), fundsButton, rightSpacer);
primaryNav.setAlignment(Pos.CENTER_LEFT); primaryNav.setAlignment(Pos.CENTER_LEFT);
primaryNav.getStyleClass().add("nav-primary"); primaryNav.getStyleClass().add("nav-primary");

View file

@ -578,15 +578,15 @@
} }
#image-logo-splash { #image-logo-splash {
-fx-image: url("../../images/logo_splash_dark.png"); -fx-image: url("../../images/logo_splash_dark_mode.png");
} }
#image-logo-splash-testnet { #image-logo-splash-testnet {
-fx-image: url("../../images/logo_splash_testnet_dark.png"); -fx-image: url("../../images/logo_splash_testnet_dark_mode.png");
} }
#image-logo-landscape { #image-logo-landscape {
-fx-image: url("../../images/logo_landscape_dark.png"); -fx-image: url("../../images/logo_landscape_dark_mode.png");
} }
.table-view .placeholder { .table-view .placeholder {

View file

@ -144,15 +144,15 @@
} }
#image-logo-splash { #image-logo-splash {
-fx-image: url("../../images/logo_splash_light.png"); -fx-image: url("../../images/logo_splash_light_mode.png");
} }
#image-logo-splash-testnet { #image-logo-splash-testnet {
-fx-image: url("../../images/logo_splash_testnet_light.png"); -fx-image: url("../../images/logo_splash_testnet_light_mode.png");
} }
#image-logo-landscape { #image-logo-landscape {
-fx-image: url("../../images/logo_landscape_light.png"); -fx-image: url("../../images/logo_landscape_light_mode.png");
} }
#charts .default-color0.chart-series-area-fill { #charts .default-color0.chart-series-area-fill {

View file

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB