Better icons: device/app icon chains, volume icons, app icon #2

Merged
nandi merged 3 commits from geordi/better-icons into main 2026-11-23 01:07:41 +00:00
Owner

Better icons (feedback: the broken-image placeholders on device rows).

  • Pure model (model/icons.mbt, tested): device chain = device.icon-name/node.icon-name → device.form-factor → HDMI/webcam/Bluetooth/USB hints (also guessed from node.name) → sink/source direction → audio-card-symbolic → audio-x-generic-symbolic → image-missing; symbolic variants first. Stream chain = application.icon-name/media.icon-name → .desktop lookup (portal app id, binary, app name) → binary-named icon → application-x-executable-symbolic → audio-x-generic-symbolic. volume_icon(percent, mute) → audio-volume-high/medium/low/muted-symbolic.
  • WirePlumber layer exposes icon hints, device.form-factor, device.bus, application.process.binary, app id.
  • GTK layer only resolves chains (has_icon) and does the GIO DesktopAppInfo lookup (C stub); needs gio-unix-2.0 in pkg-config flags (tools/pkg-cc).
  • Mute button follows volume/mute live; Default button uses emblem-ok-symbolic/object-select-symbolic; tabs have 16 px symbolic icons; row icons 32 px.
  • App icon org.latha.moonmix (scalable + symbolic SVG in data/icons/hicolor/), set on the window, .desktop updated, README install notes.
  • Smoke test gives the test devices/streams form factors and icon names; screenshots re-rendered (Adwaita icon theme installed).
Playback Output Devices
Playback Output
Recording Input Devices
Recording Input

Checks: moon test --target wasm-gc (25 pass), moon build --target native, tools/smoke-test.sh.

🤖 Generated with Claude Code

Better icons (feedback: the broken-image placeholders on device rows). - **Pure model** (`model/icons.mbt`, tested): device chain = `device.icon-name`/`node.icon-name` → `device.form-factor` → HDMI/webcam/Bluetooth/USB hints (also guessed from `node.name`) → sink/source direction → `audio-card-symbolic` → `audio-x-generic-symbolic` → `image-missing`; symbolic variants first. Stream chain = `application.icon-name`/`media.icon-name` → .desktop lookup (portal app id, binary, app name) → binary-named icon → `application-x-executable-symbolic` → `audio-x-generic-symbolic`. `volume_icon(percent, mute)` → `audio-volume-high/medium/low/muted-symbolic`. - **WirePlumber layer** exposes icon hints, `device.form-factor`, `device.bus`, `application.process.binary`, app id. - **GTK layer** only resolves chains (`has_icon`) and does the GIO `DesktopAppInfo` lookup (C stub); needs `gio-unix-2.0` in pkg-config flags (`tools/pkg-cc`). - Mute button follows volume/mute live; Default button uses `emblem-ok-symbolic`/`object-select-symbolic`; tabs have 16 px symbolic icons; row icons 32 px. - App icon `org.latha.moonmix` (scalable + symbolic SVG in `data/icons/hicolor/`), set on the window, `.desktop` updated, README install notes. - Smoke test gives the test devices/streams form factors and icon names; screenshots re-rendered (Adwaita icon theme installed). | Playback | Output Devices | | --- | --- | | ![Playback](https://git.site.latha.org/geordi/moonmix/raw/branch/geordi/better-icons/docs/screenshots/playback.png) | ![Output](https://git.site.latha.org/geordi/moonmix/raw/branch/geordi/better-icons/docs/screenshots/output-devices.png) | | **Recording** | **Input Devices** | | ![Recording](https://git.site.latha.org/geordi/moonmix/raw/branch/geordi/better-icons/docs/screenshots/recording.png) | ![Input](https://git.site.latha.org/geordi/moonmix/raw/branch/geordi/better-icons/docs/screenshots/input-devices.png) | Checks: `moon test --target wasm-gc` (25 pass), `moon build --target native`, `tools/smoke-test.sh`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nandi added 1 commit 2026-11-23 00:43:45 +00:00
Use real icons: per-device/app icon chains, volume icons, app icon
CI / native (pull_request) Successful in 1m5s
CI / check (pull_request) Failing after 9s
cf8bab0d36
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nandi added 1 commit 2026-11-23 00:48:32 +00:00
Merge origin/main into better-icons
CI / native (pull_request) Successful in 1m9s
CI / check (pull_request) Failing after 10s
3ac96fea35
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nandi added 1 commit 2026-11-23 01:05:16 +00:00
Fix deprecated StringView to_string warning (CI --deny-warn)
CI / native (pull_request) Successful in 1m9s
CI / check (pull_request) Successful in 10s
bc675459d9
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nandi merged commit 02b08cb471 into main 2026-11-23 01:07:41 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: geordi/moonmix#2