feat: build functional Endor start page and balance compact tabs

This commit is contained in:
2026-10-24 20:12:02 +08:00
parent 3cb44b96eb
commit 952fc2eff2
11 changed files with 205 additions and 82 deletions
+9 -1
View File
@@ -273,7 +273,15 @@ create additional managed Pages; Cmd/Ctrl+W closes the active Page. New tabs exp
from left to right while existing tabs interpolate to their new bounds when space
becomes limited. Hover and selection use the same capsule geometry, and animated
pointer hits use the rendered bounds. Source and page identity remain in the VM;
chrome animation retains only projected scalar IDs and rectangles.
chrome animation retains only projected scalar IDs and rectangles. Tabs are capped at
208 logical pixels wide, with a 40-pixel strip and equal 4-pixel vertical insets.
The leading page symbol and close control have matching slots and edge spacing.
The default page is implemented in `src/ui_bridge/start_page.endor`, compiled once
per VM into a private namespace. Its buttons create a Page, open a working shared
counter, or show composed Blocks. `ui.newTab()` constructs the same ordinary Page
used by native + and the keyboard shortcut. Layout, callbacks, state and bindings
are Endor objects; the host does not paint an introduction over the guest page.
Console, Sources, Network and Settings are independent managed Pages with separate
view modules and window-local input/focus/scroll/selection state. They are not