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
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "chandra/desktop/lib/launcher"
|
|
|
|
import {
|
|
"chandra/desktop/interface/chandra/desktop/theme",
|
|
"chandra/desktop/interface/chandra/desktop/types",
|
|
}
|
|
|
|
// Values
|
|
pub fn close(State) -> Unit
|
|
|
|
pub fn filter(Array[@types.AppEntry], String) -> Array[@types.AppEntry]
|
|
|
|
pub fn handle_event(Array[@types.AppEntry], State, Target, @types.InputEvent, (String) -> Result[Unit, String]) -> Bool
|
|
|
|
pub fn popup_size(Array[@types.AppEntry], State) -> @types.Size
|
|
|
|
pub let popup_w : Int32
|
|
|
|
pub fn render_button(@types.Size, @theme.Tokens, State) -> Array[@types.DrawOp]
|
|
|
|
pub fn render_popup(Array[@types.AppEntry], @theme.Tokens, State, icon? : (String) -> UInt) -> Array[@types.DrawOp]
|
|
|
|
pub fn row_at(Array[@types.AppEntry], State, @types.Point) -> Int32
|
|
|
|
pub fn shown_rows(Array[@types.AppEntry], State) -> Array[@types.AppEntry]
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub struct State {
|
|
mut open : Bool
|
|
mut query : String
|
|
mut hover : Int32
|
|
mut error : String
|
|
}
|
|
pub fn State::new() -> Self
|
|
|
|
pub(all) enum Target {
|
|
Widget
|
|
Popup
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|