mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 19:30:31 +00:00
Rework
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user