mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-07-30 19:46:16 +00:00
improve appearance of app notifications after controlsfx upgrade
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user