Add dock module: dock-style quick launcher with magnifying app tiles
CI / test (push) Failing after 23s

- lib/dock: tile layout, hit-testing, magnification, per-app colours (tested)
- components/dock: plasmoid module (imports only app-catalog + app-launch)
- shell: panel widgets now get pointer-move / pointer-leave while hovered

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 00:14:29 -08:00
1 parent 79321790a1
commit 6fc921b431
15 files changed
+930

No files matched your search

+20
View File
@@ -677,3 +677,23 @@ test "an xdg_popup (right-click menu) is placed, drawn, clickable and dismissed
}
assert_eq(comp.popups.length(), 0)
}
///|
test "the dock module magnifies the tile under the pointer and shows nothing when the pointer leaves" {
let comp = new_comp("dock")
assert_true(comp.shell.load_path("build/components/dock.wasm") is Some(_))
ignore(comp.compose_frame())
let slot = comp.shell.slots()[comp.shell.slots().length() - 1]
let r = comp.shell.slot_rect(slot)
assert_true(r.w > 0)
let frame = fn() {
ignore(comp.compose_frame())
}
// Pointer over the dock: it becomes the hovered widget.
comp.handle_input(@nested.InputEvent::PointerMove((r.x + 14).to_double(), (r.y + r.h / 2).to_double()), 1U)
frame()
assert_eq(comp.shell.hover_slot, slot)
// Off the panel: the dock gets a leave.
comp.handle_input(@nested.InputEvent::PointerMove(640.0, 300.0), 2U)
assert_eq(comp.shell.hover_slot, "")
}