This commit is contained in:
crschnick
2026-03-11 22:46:17 +00:00
parent 230969ec4a
commit 346937a252
4 changed files with 25 additions and 14 deletions
@@ -161,7 +161,6 @@ public class StoreCreationDialog {
comp.prefWidth(650);
var nameKey = model.isQuickConnect() ? "quickConnect" : model.storeTypeNameKey() + "Add";
var modal = ModalOverlay.of(nameKey, comp);
var queueEntry = StoreCreationQueueEntry.of(model, modal);
comp.apply(struc -> {
struc.addEventHandler(KeyEvent.KEY_PRESSED, e -> {
if (e.getCode() == KeyCode.ESCAPE) {
@@ -173,16 +172,21 @@ public class StoreCreationDialog {
}
});
});
modal.hideable(queueEntry);
AppLayoutModel.get().getSelected().addListener((observable, oldValue, newValue) -> {
if (model.getFinished().get() || !modal.isShowing()) {
return;
}
modal.hide();
AppLayoutModel.get().getQueueEntries().add(queueEntry);
});
modal.setRequireCloseButtonForClose(true);
if (!model.isQuickConnect()) {
var queueEntry = StoreCreationQueueEntry.of(model, modal);
modal.hideable(queueEntry);
AppLayoutModel.get().getSelected().addListener((observable, oldValue, newValue) -> {
if (model.getFinished().get() || !modal.isShowing()) {
return;
}
modal.hide();
AppLayoutModel.get().getQueueEntries().add(queueEntry);
});
modal.setRequireCloseButtonForClose(true);
}
var loadingLabel = new LabelComp(Bindings.createStringBinding(
() -> {
return model.getBusy().get() ? AppI18n.get("testingConnection") : null;
@@ -51,8 +51,6 @@ public class StoreFilterFieldComp extends SimpleRegionBuilder {
field.focusedProperty().subscribe(focus -> {
if (focus) {
popover.hide();
} else {
state.open();
}
});
@@ -39,6 +39,10 @@
-fx-background-radius: 0 6 0 0;
}
.root:seamless-frame:nord .modal-overlay-stack-element:loaded > .modal-overlay-comp.modal-pane > .scroll-pane > .viewport > * > .scrollable-content {
-fx-background-radius: 0;
}
.modal-overlay-stack-element > .modal-overlay-comp.modal-pane > .scroll-pane > .viewport > * > .scrollable-content {
-color-modal-pane-overlay: transparent
}
@@ -36,14 +36,19 @@
-fx-border-width: 1;
-fx-border-radius: 4px;
-fx-padding: 1px;
-fx-background-color: -color-bg-default-transparent;
-fx-border-color: -color-neutral-emphasis;
-fx-background-color: -color-bg-muted;
-fx-border-color: -color-border-default;
}
.scan-list .list-content {
-fx-padding: 0.7em 1px 1em 1em;
}
.root:nord .scan-list {
-fx-background-radius: 0;
-fx-border-radius: 0;
}
.root:windows .text {
-fx-font-smoothing-type: gray;
}