improve appearance of app notifications after controlsfx upgrade

This commit is contained in:
Craig Raw
2026-04-08 12:38:01 +02:00
parent 58ca52e4c7
commit 3068ba3988
2 changed files with 8 additions and 2 deletions
@@ -24,6 +24,7 @@ public class DialogImage extends StackPane {
public ObjectProperty<DialogImage.Type> typeProperty = new SimpleObjectProperty<>();
public DialogImage() {
getStyleClass().add("dialog-image");
setPrefSize(WIDTH, HEIGHT);
this.typeProperty.addListener((observable, oldValue, type) -> {
refresh(type);
@@ -1,6 +1,7 @@
.notification-bar > .pane {
-fx-padding: 0 7 7 7;
-fx-min-height: 80;
}
.notification-bar .close-button {
@@ -11,7 +12,7 @@
-fx-font-size: 15px;
-fx-text-fill: -fx-text-inner-color;
-fx-padding: 5 0 0 68;
-fx-translate-y: 10;
-fx-translate-y: 5;
}
.notification-bar > .pane .label {
@@ -22,6 +23,10 @@
-fx-graphic-text-gap: 8;
}
.notification-bar > .pane .label .dialog-image {
-fx-translate-y: -10;
}
.notification-bar > .pane .label .text {
-fx-translate-y: 12;
-fx-translate-y: 6;
}