dstudio-ui
/dstudio-ui
Work on Device's interface - Slint components in crates/dstudio-app/ui, the controller and panels in crates/dstudio-app/src, wgpu surfaces, design tokens, review states rendered with --state/--screenshot, and the app self-test. Use for any visible change or UI behaviour change.
- Author
- devicedaw ↗
- Repository
- device ↗
- Licence
- AGPL-3.0
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
What it does and when to use it
Work on Device's interface - Slint components in crates/dstudio-app/ui, the controller and panels in crates/dstudio-app/src, wgpu surfaces, design tokens, review states rendered with --state/--screenshot, and the app self-test. Use for any visible change or UI behaviour change.
Original author description
Work on Device's interface - Slint components in crates/dstudio-app/ui, the controller and panels in crates/dstudio-app/src, wgpu surfaces, design tokens, review states rendered with --state/--screenshot, and the app self-test. Use for any visible change or UI behaviour change.
How it works
- Where things are
- Gestures
- Review states and screenshots
- Self-test
- Performance
- Docs
SKILL.md preview
--- name: dstudio-ui description: Work on Device's interface - Slint components in crates/dstudio-app/ui, the controller and panels in crates/dstudio-app/src, wgpu surfaces, design tokens, review states rendered with --state/--screenshot, and the app self-test. Use for any visible change or UI behaviour change. --- # The app and its interface The app (`crates/dstudio-app`, binary `device-studio`) is a Slint shell with custom wgpu surfaces for the timeline, waveforms and meters (ADR `docs/adr/0001-ui-rendering.md`). It holds no authoritative state: it renders from the `Document` and the engine's readouts, and every edit goes through `Controller::execute` with a `Command` (`dstudio-command`). ## Where things are | What | Where | |---|---| | Slint components | `crates/dstudio-app/ui/*.slint` (`app.slint` is the root, `widgets.slint` the shared controls) | | Colours, sizes, type | `crates/dstudio-app/ui/tokens.slint`; use tokens, never literal colours | | State and edits | `crates/dstudio-app/src/controller.rs` | | Panels | one Rust module per area in `crates/dstudio-app/src/` (`timeline.rs`, `mixer.rs`, `pianoroll.rs`, `device_panel.rs`, ...) | | GPU drawing | `crates/dstudio-app/src/gpu/` | | Command-line options and review states | `crates/dstudio-app/src/main.rs` (run with `--help`) | | Self-test | `crates/dstudio-app/src/selftest.rs` | Built-in device cards have their own rules: `dstudio-builtin-device` and `docs/devices.md`. ## Gestures - A drag sends live values straight to the engine (or the view) and commits **one** command on release, so undo takes the whole gesture back. Escape during a gesture restores the values from before it. - Right-click menus, keyboard shortcuts and menu-bar items reach the same commands as the mouse. - The UI thread never blocks: file I/O, decoding and analysis run on workers and send results back. ## Review states and screenshots `--state <name>` opens the app in a prepared state; `--screenshot <png>` saves a frame, and `--offscreen` renders in a hidden window so it doesn't take over the screen. `--exit-after-frames N` quits after N frames. `reference-<device-id>` shows any built-in device at its defaults; the other states are listed in the `--state` match in `main.rs`. When a change is visible, add or reuse a state that shows it, so before and after can be rendered identically on `origin/main` and on the branch: ```sh cargo run --release -p dstudio-app -- --no-audio --state <state> --offscreen --screenshot /tmp/after.png --exit-after-frames 5 ``` Same state, same window size, same zoom for both shots. CI renders on Linux (Xvfb with lavapipe) and Windows (WARP), so a state must not depend on a real audio device or the local library. ## Self-test `--self-test --no-audio` drives the real interface with synthetic pointer and keyboard events through Slint's input path and checks the resulting `Document` and engine state. It prints `self-test: P / N checks passed`; CI requires P = N on every platform. Click targets come from live anchors the panels report, not fixed coordinates, because window sizes differ between machines and CI. A feature with a UI flow gets a short self-test section: add a `<area>_steps()` function next to the others and append it where the sections are collected. Check results in the `Document`, not in pixels. A UI bug fix gets a step that would have failed before the fix. ## Performance Frame time matters (the timeline and meters redraw every frame). `--frame-stats` prints frame timings, `--render-bench N` renders N frames offscreen, and `--drag-bench` measures drags. Use them before and after a change to anything that draws every frame (`dstudio-bench`). ## Docs A visible change to what the README screenshots show means re-rendering the artwork in `docs/assets/art/` (`docs/art/README.md` has the states and the commands).
Versions
The database has no other skills named dstudio-ui.
Database snapshot: 13.11.2026 · package version 5d0757946ecc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100dstudio-builtin-device
Add or rework one of Device's built-in effects or instruments - the DeviceDef in dstudio-core, the BuiltinProcessor kernel in engine/src/devices, the card or custom view in the app, presets, tests, benchmark row and review state. Use for any work on a built-in device, its parameters, DSP or panel. - 100dstudio-engine-abi
Change the boundary between Device's Rust code and its C++ engine (engine/include/dstudio_engine.h, crates/dstudio-engine) or anything that runs on the audio thread - real-time rules, how data crosses threads, layout tests, allocation guards. Use for any engine feature, new se_*… - 90roz-ui
Use for any UI work in the Roz for LSC Electron app (src-renderer/ — chat, Settings, Library, Studio screens, CSS). The app's design conventions, the shared UI primitives, and how to screenshot the running app to check a change before calling it done.