use light and dark splash logos

This commit is contained in:
woodser 2025-06-01 20:15:21 -04:00
parent 6f56c0b003
commit 102718cad2
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
11 changed files with 25 additions and 27 deletions

View file

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

View file

@ -1,16 +1,3 @@
/* 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");
}
/* shared*/
#image-info {
-fx-image: url("../../images/info.png");
}
@ -326,10 +313,7 @@
-fx-image: url("../../images/settings.png");
}
/**
* Crypto logos.
*/
#image-btc-logo {
#image-btc-logo {
-fx-image: url("../../images/btc_logo.png");
}

View file

@ -540,7 +540,10 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
vBox.setId("splash");
ImageView logo = new ImageView();
logo.setId(Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_MAINNET ? "image-splash-logo" : "image-splash-testnet-logo");
logo.setId(Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_MAINNET ? "image-logo-splash" : "image-logo-splash-testnet");
logo.setFitWidth(400);
logo.setPreserveRatio(true);
logo.setSmooth(true);
// createBitcoinInfoBox
xmrSplashInfo = new AutoTooltipLabel();

View file

@ -577,6 +577,14 @@
-fx-background-color: -bs-color-gray-bbb;
}
#image-logo-splash {
-fx-image: url("../../images/logo_splash_dark.png");
}
#image-logo-splash-testnet {
-fx-image: url("../../images/logo_splash_testnet_dark.png");
}
#image-logo-landscape {
-fx-image: url("../../images/logo_landscape_dark.png");
}
@ -635,11 +643,3 @@
.regular-text-color {
-fx-text-fill: -bs-text-color;
}
#image-splash-logo {
-fx-image: url("../../images/logo_splash.png");
}
#image-splash-testnet-logo {
-fx-image: url("../../images/logo_splash_testnet.png");
}

View file

@ -143,6 +143,14 @@
-fx-background-color: -bs-color-gray-3;
}
#image-logo-splash {
-fx-image: url("../../images/logo_splash_light.png");
}
#image-logo-splash-testnet {
-fx-image: url("../../images/logo_splash_testnet_light.png");
}
#image-logo-landscape {
-fx-image: url("../../images/logo_landscape_light.png");
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before After
Before After