mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-04 03:40:32 +00:00
Rework
This commit is contained in:
@@ -58,7 +58,6 @@ public class RemoteDesktopDockComp extends SimpleRegionBuilder {
|
||||
if (target == null || (target.getProperties().get("entry") != null &&
|
||||
target.getProperties().get("entry").equals(w.getSelected().getValue()))) {
|
||||
Platform.runLater(() -> {
|
||||
content.requestFocus();
|
||||
w.focus();
|
||||
});
|
||||
}
|
||||
@@ -160,11 +159,19 @@ public class RemoteDesktopDockComp extends SimpleRegionBuilder {
|
||||
}
|
||||
|
||||
if (entry != null && entry.isInternal()) {
|
||||
stack.getChildren().add(map.get(entry));
|
||||
Region r = map.get(entry);
|
||||
stack.getChildren().add(r);
|
||||
r.requestFocus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
stack.focusedProperty().subscribe(focus -> {
|
||||
if (focus && stack.getChildren().size() > 1) {
|
||||
stack.getChildren().getLast().requestFocus();
|
||||
}
|
||||
});
|
||||
|
||||
return stack;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,3 +49,12 @@
|
||||
-fx-border-width: 1 0 1 0;
|
||||
-fx-border-color: -color-border-default;
|
||||
}
|
||||
|
||||
.remote-desktop-dock .internal-content {
|
||||
-fx-border-color: -color-border-default;
|
||||
-fx-border-width: 1 1 1 1;
|
||||
}
|
||||
|
||||
.remote-desktop-dock .internal-content:focused {
|
||||
-fx-border-color: -color-accent-emphasis;
|
||||
}
|
||||
Reference in New Issue
Block a user