Shell 20: fluxer-platform tray trait, icons, fake #812

Closed
opened 2026-11-17 23:02:57 +00:00 by charles · 0 comments
Owner

Task 20 of the Desktop shell plan (docs/superpowers/plans/2026-11-17-desktop-shell.md, section "### Task 20:"). The plan on the shell branch is the source of truth; this copy is for reading.

Closes: — Depends on: 8

Files:

  • Create: crates/fluxer-platform/src/tray/{mod.rs,icon.rs,fake.rs} · Modify: lib.rs, README · Test: crates/fluxer-platform/tests/tray_icon.rs

Interfaces:

  • Produces: Tray trait { set(&TrayModel) -> Result<(), TrayError>, remove() }, TrayEvent::{Activate { token }, ShowRequested, Item(TrayAction), Availability(TrayAvailability)} delivered to a TraySink (Arc<dyn Fn(TrayEvent) + Send + Sync>), system_tray(sink) -> Box<dyn Tray> (Unsupported until Tasks 21 and 22), FakeTray recording models and able to emit events; icon::render(Appearance::{Colored, White, Black}, indicator, size) -> RgbaImage from the packaged logo (rasterised with the SVG renderer already in the tree), the monochrome cut-out and the dot as D/TrayIconImage.ts:14-123, sizes 16, 22, 24, 32, 48, 64.

  • Step 1: failing tests: mono_is_single_colour_with_alpha, dot_is_top_right_red_with_gap, no_dot_without_indicator, sizes_render, fake_records_and_emits, menu_flattening_keeps_order_and_ids (the id ↔ TrayAction table both back ends use).

  • Step 2–5: FAIL → implement → PASS → commit feat(platform): tray trait and icons.

Task 20 of the Desktop shell plan (`docs/superpowers/plans/2026-11-17-desktop-shell.md`, section "### Task 20:"). The plan on the `shell` branch is the source of truth; this copy is for reading. **Closes:** — **Depends on:** 8 **Files:** - Create: `crates/fluxer-platform/src/tray/{mod.rs,icon.rs,fake.rs}` · Modify: `lib.rs`, README · Test: `crates/fluxer-platform/tests/tray_icon.rs` **Interfaces:** - Produces: `Tray` trait `{ set(&TrayModel) -> Result<(), TrayError>, remove() }`, `TrayEvent::{Activate { token }, ShowRequested, Item(TrayAction), Availability(TrayAvailability)}` delivered to a `TraySink` (`Arc<dyn Fn(TrayEvent) + Send + Sync>`), `system_tray(sink) -> Box<dyn Tray>` (`Unsupported` until Tasks 21 and 22), `FakeTray` recording models and able to emit events; `icon::render(Appearance::{Colored, White, Black}, indicator, size) -> RgbaImage` from the packaged logo (rasterised with the SVG renderer already in the tree), the monochrome cut-out and the dot as `D/TrayIconImage.ts:14-123`, sizes 16, 22, 24, 32, 48, 64. - [ ] **Step 1: failing tests**: `mono_is_single_colour_with_alpha`, `dot_is_top_right_red_with_gap`, `no_dot_without_indicator`, `sizes_render`, `fake_records_and_emits`, `menu_flattening_keeps_order_and_ids` (the id ↔ `TrayAction` table both back ends use). - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(platform): tray trait and icons`.
charles added this to the Desktop shell milestone 2026-11-17 23:02:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#812
No description provided.