feat(fx): add resizable split groups and asynchronous tab close

This commit is contained in:
2026-11-15 21:07:15 +01:00
parent af5a4278fd
commit 1a3aea6e09
40 changed files with 2724 additions and 93 deletions
+17 -2
View File
@@ -5,6 +5,18 @@ a tab strip inserts at the displayed marker, including when reordering within
the same group. The tab's text/icon bindings and its live content stay intact.
All four tab sides are supported.
Dropping near a content edge creates an adjacent group and previews the half
that will receive the tab. The target group's allowed split directions,
minimum dimensions and application placement rule determine whether the split
is available. A rejected edge split falls back to joining that group. Moving
the sole tab to its own group's edge is an explicit no-change operation.
The tab strip always retains its insertion behavior.
Persistent empty groups remain drop destinations. When they release their
space, a narrow drop indicator appears at their configured outer edge during
the gesture. Their content remains hidden until a tab is actually placed there.
An invisible group that keeps its space accepts drops in its reserved area.
The move preview uses the same `checkMove` rules as an application command.
Placement is checked again on release. A rejected location has no marker;
a move that would leave the tab where it is uses a muted marker. Escape
@@ -15,13 +27,16 @@ Every tab also provides a **Move to** context submenu. It lists the currently
available groups and the selected content's current title. Rejected targets
are disabled with their reason; selecting an enabled item invokes the same
manager move operation and rechecks the destination.
The **Split** submenu offers the four directions for the tab's current group,
with unavailable directions disabled and explained. These explicit commands
request a split without the pointer gesture's join fallback.
The preview is mouse-transparent and has CSS class `dock-drop-indicator`.
Its `no-change` pseudo-class identifies a preview that leaves the current
placement intact. Applications may style its fill and stroke using JavaFX CSS.
This slice covers the main window. Splitting, floating, cross-window pointer
delivery and edge overlays extend these gestures in their respective tickets.
This slice covers the main window. Floating and cross-window pointer delivery
extend these gestures in their respective tickets.
The gesture regression tests fire JavaFX events at visible tab headers and
observe the public manager state. Those tests do not by themselves establish
native mouse delivery across windows; that has a separate desktop acceptance