CI / test (push) Failing after 16s
moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
30 lines
678 B
MoonBit
30 lines
678 B
MoonBit
///| Implementation of `chandra:desktop/plasmoid` for the digital clock.
|
|
/// All logic lives in lib/clock; this file only adapts host capabilities.
|
|
|
|
///|
|
|
pub fn info() -> PlasmoidInfo {
|
|
let (id, name, w, h, min_w) = @logic.digital_info()
|
|
{
|
|
id,
|
|
name,
|
|
preferred: { w: w.reinterpret_as_uint(), h: h.reinterpret_as_uint() },
|
|
min_width: min_w.reinterpret_as_uint(),
|
|
stretch: false,
|
|
}
|
|
}
|
|
|
|
///|
|
|
pub fn render(size : @types.Size) -> Array[@types.DrawOp] {
|
|
@logic.render_digital(size, @theme.get_tokens(), @clock.now())
|
|
}
|
|
|
|
///|
|
|
pub fn popup() -> PopupSurface? {
|
|
None
|
|
}
|
|
|
|
///|
|
|
pub fn on_event(_target : Surface, _event : @types.InputEvent) -> Bool {
|
|
false
|
|
}
|