Applications menu and Icon Desktop: show each app's .desktop icon
CI / test (push) Failing after 2m56s

The launcher's rows drew a letter circle and the Icon Desktop fell back to
letter tiles for every app that wasn't in the dock: the shell only published
icons for windows' and dock apps. publish_icons now also covers the rows the
open Applications menu lists (only those, so opening it looks up a handful of
icons) and every catalog app when the desktop module imports icons. Lookups
are the dock's (theme chain, absolute Icon= paths, PNG on the native host,
SVG too on the wasm host, generic app icon, then the letter tile) and cached
per id; an unchanged icons table is no longer re-sent every frame.

launcher-widget imports icons; the JS host has an icons stub (always 0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkhaM5djqPXPQNs7QR
This commit is contained in:
Claude committed 2026-11-26 01:56:01 +00:00
1 parent 71f0b858d6
commit ae48cc5bf4
12 files changed
+273 -29

No files matched your search

@@ -3,6 +3,7 @@ import {
"chandra/desktop/interface/chandra/desktop/theme" @theme,
"chandra/desktop/interface/chandra/desktop/app-catalog" @app_catalog,
"chandra/desktop/interface/chandra/desktop/app-launch" @app_launch,
"chandra/desktop/interface/chandra/desktop/icons" @icons,
"chandra/desktop/interface/chandra/desktop/session" @session,
"chandra/desktop/interface/chandra/desktop/power" @power,
"chandra/desktop/lib/launcher" @logic,
@@ -1,6 +1,7 @@
///| Implementation of `chandra:desktop/plasmoid` for the launcher.
/// The state machine lives in lib/launcher; this adapts host capabilities: the app catalog and
/// launch, and for the session row `session` (reload, log out) and `power` (suspend, restart,
/// launch, each app's .desktop icon (`icons`, published by the shell for the rows shown), and for
/// the session row `session` (reload, log out) and `power` (suspend, restart,
/// power off, the same calls as the Settings Power tab).
///|
@@ -30,7 +31,7 @@ pub fn popup() -> PopupSurface? {
let apps = @app_catalog.list_apps()
Some({
size: @logic.popup_size(apps, state),
ops: @logic.render_popup(apps, @theme.get_tokens(), state),
ops: @logic.render_popup(apps, @theme.get_tokens(), state, icon=id => @icons.app_icon(id)),
})
}