Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

Port the Slint editor window into the engine, and rename the crates to Concat

Jareer5201150a66e3
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 12a1148c..5b0dcfd4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,6 +1,6 @@
name: Build App
-# Compiles the WolfCut desktop app for macOS, Windows and Linux.
+# Compiles the Concat desktop app for macOS, Windows and Linux.
#
# Every build stages the static FFmpeg pair into desktop/src-tauri/ffmpeg/
# first - the release guard in build.rs refuses to build without it, because a
@@ -34,6 +34,13 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: engine
+ # The concat crate builds Slint with its Skia renderer, which links
+ # fontconfig and freetype on Linux; winit and glutin dlopen the rest at
+ # run time, so only these headers are needed to compile the workspace.
+ - name: Slint build dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libxkbcommon-dev libgl1-mesa-dev
- run: cargo test --workspace
working-directory: engine
# -D warnings covers rustc lints too (missing_docs among them), so a
@@ -250,7 +257,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
- name: WolfCut-${{ matrix.platform }}
+ name: Concat-${{ matrix.platform }}
path: |
desktop/src-tauri/target/release/bundle/dmg/*.dmg
desktop/src-tauri/target/release/bundle/msi/*.msi
@@ -307,7 +314,7 @@ jobs:
with:
tag_name: ${{ steps.tag.outputs.name }}
target_commitish: ${{ github.sha }}
- name: WolfCut ${{ steps.tag.outputs.name }}
+ name: Concat ${{ steps.tag.outputs.name }}
# A hyphen in the tag (v0.2.0-alpha.3) marks a pre-release.
prerelease: ${{ contains(steps.tag.outputs.name, '-') }}
generate_release_notes: true
diff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.yml
index 5cb2c6bf..c23a4f91 100644
--- a/.github/workflows/ffmpeg.yml
+++ b/.github/workflows/ffmpeg.yml
@@ -1,6 +1,6 @@
name: Build FFmpeg
-# Builds the cut-down FFmpeg that WolfCut ships.
+# Builds the cut-down FFmpeg that Concat ships.
#
# Run by hand, not on every push. The output only changes when the version or
# the feature list below changes, which is roughly never - so this produces an
@@ -54,7 +54,7 @@ jobs:
run: |
cd ffmpeg
#
- # Everything off, then only what WolfCut actually invokes turned back
+ # Everything off, then only what Concat actually invokes turned back
# on. This is where the size comes from: a full avcodec carries some
# five hundred codecs, and an editor opens perhaps a dozen.
#
@@ -70,7 +70,7 @@ jobs:
# silently stops working without zlib.
#
# `rawvideo` (decoder *and* encoder) is what the exporter pipes: see
- # wolfcut-media/src/encode.rs, which feeds frames in as
+ # concat-media/src/encode.rs, which feeds frames in as
# `-f rawvideo -pix_fmt rgba -i -`. Enabling only the demuxer of that
# name is not enough, and the failure reads as "no decoder found".
./configure \
@@ -125,7 +125,7 @@ jobs:
head -c 9216000 /dev/zero > frames.raw # 30 frames of 320x240 rgba
head -c 384000 /dev/zero > tone.pcm # 2s of 48k stereo s16
- # Picture: exactly how wolfcut-media/src/encode.rs drives the exporter.
+ # Picture: exactly how concat-media/src/encode.rs drives the exporter.
"$BIN/ffmpeg.exe" -hide_banner -loglevel error -y \
-f rawvideo -pix_fmt rgba -s 320x240 -r 30 -i frames.raw \
-c:v libx264 -preset veryfast -crf 20 -pix_fmt yuv420p \
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index 72fe9b1b..a9651085 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -27,4 +27,4 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- name: Build the flake package
- run: nix build .#wolfcut --print-build-logs
+ run: nix build .#concat --print-build-logs
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 5ba9d2e8..641eda4e 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -1,9 +1,21 @@
-# WolfCut Architecture
+# Concat Architecture
A study map of the system as it stands (August 2026): what each layer owns, how
they talk, where the sharp edges are, and what deserves attention next. File
references are current as of this writing.
+> **September 2026:** the UI layer described below is being replaced. The
+> Slint editor window now lives in the engine workspace as the `concat` crate
+> (`engine/crates/concat`), ported from the wc-ui-rnd research tree, and
+> `desktop/` — both the React UI and the Tauri host — is deprecated. The
+> engine doctrine in §1 is unchanged and is the whole reason the swap is
+> possible: the engine owns the project, the render path and the document, so
+> the UI is the replaceable part. Everything from §2 on describes the Tauri
+> app, which still ships until `concat` is wired to the engine. The IPC
+> surface in §5 and the chains mirror in §6.1 go away with it: a Rust window
+> calls the engine crates directly, in-process, and has no reason to
+> re-author FFmpeg filter strings in a second language.
+
---
## 1. The three layers and the one rule
@@ -19,11 +31,11 @@ flowchart LR
SESSION["Session<br/>(one Mutex&lt;Option&lt;Session&gt;&gt;)"]
end
subgraph ENGINE["engine/crates — the product"]
- CORE[wolfcut-core]
- MEDIA[wolfcut-media]
- PROJECT[wolfcut-project]
- RENDER[wolfcut-render]
- EXPORT[wolfcut-export]
+ CORE[concat-core]
+ MEDIA[concat-media]
+ PROJECT[concat-project]
+ RENDER[concat-render]
+ EXPORT[concat-export]
end
UI -- "invoke() — JSON + ArrayBuffer" --> HOST
HOST -- events --> UI
@@ -39,19 +51,19 @@ document format. When a feature is being designed, the first question is
genuinely owns (layout, selection, in-flight gestures).
The engine crates keep a strict dependency arrow (see `engine/README.md`):
-`core` depends on nothing, everything else depends inward, and `wolfcut-project`
+`core` depends on nothing, everything else depends inward, and `concat-project`
knows nothing about rendering. The desktop crate consumes the engine as path
dependencies — deliberately *not* one workspace, so the engine builds, tests
and versions alone.
| Crate | LOC | Owns |
|---|---|---|
-| `wolfcut-core` | ~1.4k | Rational time, frame model, arena handles, timeline model. Zero dependencies. |
-| `wolfcut-media` | ~3.0k | Everything FFmpeg: probe, subprocess decode/encode, reader pool with byte-budgeted LRU frame cache, waveform peaks. Optional `ffi` feature links FFmpeg for exact seeks. |
-| `wolfcut-project` | ~3.3k | The document: model, every edit command (`commands.rs`, ~1.3k), undo `Editor`, wolfcut.json round-trip. |
-| `wolfcut-render` | ~1.3k | Compositing. `CpuCompositor` is the reference; `WgpuCompositor` behind the `gpu` feature, falls back cleanly when no GPU. |
-| `wolfcut-export` | ~2.2k | Timeline → file: flatten, filtergraph builders (`chains.rs`), the frame-by-frame render loop. |
-| `wolfcut-cli` | ~0.2k | Probe/render vertical slice for testing the engine without the app. |
+| `concat-core` | ~1.4k | Rational time, frame model, arena handles, timeline model. Zero dependencies. |
+| `concat-media` | ~3.0k | Everything FFmpeg: probe, subprocess decode/encode, reader pool with byte-budgeted LRU frame cache, waveform peaks. Optional `ffi` feature links FFmpeg for exact seeks. |
+| `concat-project` | ~3.3k | The document: model, every edit command (`commands.rs`, ~1.3k), undo `Editor`, concat.json round-trip. |
+| `concat-render` | ~1.3k | Compositing. `CpuCompositor` is the reference; `WgpuCompositor` behind the `gpu` feature, falls back cleanly when no GPU. |
+| `concat-export` | ~2.2k | Timeline → file: flatten, filtergraph builders (`chains.rs`), the frame-by-frame render loop. |
+| `concat-cli` | ~0.2k | Probe/render vertical slice for testing the engine without the app. |
---
@@ -65,7 +77,7 @@ sequenceDiagram
participant UI as React component
participant Q as useEngineSession queue
participant H as editor_api.rs
- participant E as Editor (wolfcut-project)
+ participant E as Editor (concat-project)
UI->>Q: dispatch({op:"splitClips", ...})
Note over Q: commands serialise through one<br/>promise chain, seeded with editorOpen<br/>so nothing races the session install
@@ -138,7 +150,7 @@ flowchart TB
## 4. Export
-Hybrid pipeline in `wolfcut-export`:
+Hybrid pipeline in `concat-export`:
- **Picture:** flattened timeline → per-frame composition in-process
(CPU or wgpu) → raw frames piped into one `ffmpeg` encode subprocess.
@@ -174,7 +186,7 @@ several are traps waiting for a contributor who doesn't know the invariant.
### 6.1 The chains mirror (highest-leverage debt)
`desktop/src/lib/effects.ts` + `filters.ts` are **hand-maintained TS mirrors**
-of `engine/crates/wolfcut-export/src/chains.rs`. Both sides emit FFmpeg filter
+of `engine/crates/concat-export/src/chains.rs`. Both sides emit FFmpeg filter
strings; the only thing keeping them identical is a corpus of pinned-string
tests on each side (`chains.rs:523+` vs `effects.test.ts` / `filters.test.ts`).
This is the largest deliberate violation of "the engine owns it": the TS side
@@ -200,7 +212,7 @@ carry on, since every cache here is rebuildable).
- `redo: Vec<Project>` in the engine editor has **no cap** (undo is capped at
200) — each entry is a deep clone of the whole project
- (`wolfcut-project/src/editor.rs:28`).
+ (`concat-project/src/editor.rs:28`).
- `desktop/src/lib/assets.ts` — the `peaks`/`strips`/`stripFrames` maps grow
per media id with no eviction, and no `ImageBitmap.close()` is ever called;
GPU-backed bitmaps wait for GC. A long session with many imports leaks
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a7f31dcf..f35e4550 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,11 @@ behaviour.
## Unreleased
+- The editor window is being rebuilt in Slint as the `concat` crate inside
+ the engine workspace: a native Rust window with no web view, embedding its
+ own fonts and effect previews. It is not what releases ship yet — the
+ Tauri + React app in `desktop/` is deprecated but still the release build
+ until the Slint window is wired to the engine.
- Text to speech: File → Text to speech turns typed narration into an audio
clip at the playhead, spoken by one of 36 Kokoro voices (American and
British English, Chinese) at a chosen pace. Generation runs entirely on
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index dd976d50..3b2fd1de 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -31,8 +31,17 @@ nix develop # shell with ffmpeg, whisper and the Rust/Node toolchains
npm run app # run the editor
```
-Without Nix you will need Rust (see `rust-version` in `engine/Cargo.toml`),
-Node, and `ffmpeg`/`ffprobe` on `PATH`. Then:
+Without Nix you will need Rust (see `rust-version` in `engine/Cargo.toml`)
+and `ffmpeg`/`ffprobe` on `PATH`. Then:
+
+```sh
+cd engine && cargo run -p concat
+```
+
+That is the Slint editor window, which is where new UI work goes. The Tauri +
+React app in `desktop/` is deprecated: it is what releases still ship until
+the Slint window can do everything it did, so bug fixes there are welcome,
+but features are not. Running it additionally needs Node:
```sh
cd desktop && npm install && npm run app
@@ -42,9 +51,9 @@ cd desktop && npm install && npm run app
| Path | What lives there |
|---|---|
-| `engine/crates/` | The Rust engine — core, media, render, export, project, cli |
-| `desktop/src/` | The React editor UI |
-| `desktop/src-tauri/` | Tauri host: commands, session lifecycle, IPC |
+| `engine/crates/` | The Rust engine — core, media, render, export, project, cli — and `concat`, the Slint editor window |
+| `desktop/src/` | The React editor UI (deprecated) |
+| `desktop/src-tauri/` | Tauri host: commands, session lifecycle, IPC (deprecated) |
| `test/` | Media and analysis fixtures |
[`ARCHITECTURE.md`](ARCHITECTURE.md) explains how these fit together and where
@@ -55,8 +64,8 @@ the sharp edges are. Read it before touching the engine.
Run these before opening a PR:
```sh
-cd desktop && npm run typecheck && npm run lint && npm test
cd engine && cargo fmt --check && cargo clippy --all-targets && cargo test
+cd desktop && npm run typecheck && npm run lint && npm test # only if you touched desktop/
```
New source files need a licence header — see below. Match the style of the code
diff --git a/README.md b/README.md
index b42290c3..e622486b 100644
--- a/README.md
+++ b/README.md
@@ -23,10 +23,15 @@
<a href="https://trendshift.io/repositories/191379?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-191379" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/191379/daily?language=TypeScript" alt="jub0t%2FConcat | Trendshift" width="250" height="55"/></a>
Concat is everything you use CapCut for — without the watermarks, paywalls,
-or subscriptions. A native Rust engine does the heavy lifting, a clean React
+or subscriptions. A native Rust engine does the heavy lifting, a native
interface does the editing, and it all runs on your machine: install it and
start cutting, no account, no extra downloads, no setup.
+> [!NOTE]
+> The interface is moving from Tauri + React (`desktop/`) to Slint, as the
+> `concat` crate in `engine/`. Releases still ship the Tauri app while the
+> Slint window catches up; see [`engine/README.md`](./engine/README.md).
+
## Highlights
- Free and local Text-to-Speech features.
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 59336096..7ff91b52 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -15,11 +15,58 @@ FFmpeg is licensed under the LGPL-2.1-or-later, with the bundled builds
compiled as GPL-2.0-or-later (they include x264). FFmpeg source code:
https://ffmpeg.org/download.html
+## Slint — used under GPL-3.0-only
+
+The `concat` crate (`engine/crates/concat`) builds against
+[Slint](https://github.com/slint-ui/slint), which its authors offer under
+**any one** of three licences, at the user's choice: a Royalty-free licence, a
+paid commercial licence, or **GNU GPL-3.0-only**.
+
+**Concat uses Slint under the GPL-3.0-only option.** That choice is deliberate
+and it is recorded here because nothing in the source tree would otherwise say
+which of the three applies. The Royalty-free and commercial options are not
+used: both are aimed at shipping proprietary applications, and neither can
+grant downstream recipients the freedoms Concat's own licence promises them.
+
+Section 13 of the GPL-3.0 exists for exactly this combination:
+
+> Notwithstanding any other provision of this License, you have permission to
+> link or combine any covered work with a work licensed under version 3 of the
+> GNU Affero General Public License into a single combined work, and to convey
+> the resulting work.
+
+So the combined binary is conveyable. Slint's portion remains GPL-3.0-only,
+Concat's portion remains AGPL-3.0-or-later, and the AGPL's section 13 network
+requirement applies to the combination as a whole. Anyone forking Concat who
+would rather not be bound by the GPL must take Slint under one of its other
+two licences and remove or replace Concat's AGPL-licensed code accordingly;
+the two cannot be mixed.
+
+Slint pulls in the renderer selected by the feature flags in
+`engine/crates/concat/Cargo.toml` — Skia by default, FemtoVG over wgpu under
+`--features wgpu` — along with winit and their transitive crates, which are
+predominantly MIT/Apache-2.0/BSD licensed. `cargo tree -p concat` gives the
+resolved set of any given build.
+
## Fonts
Cabinet Grotesk and Synonym are bundled under the ITF Free Font License; the
full texts ship beside the font files in `desktop/src/assets/fonts/`.
+The Slint window embeds its fonts into the binary
+(`engine/crates/concat/build.rs`, `EmbedResourcesKind::EmbedFiles`), so a
+distributed binary carries them and their licences travel with it. Full texts
+are in `engine/crates/concat/ui/fonts/`.
+
+- **Inter** — SIL Open Font License 1.1. Copyright (c) 2016 The Inter Project
+ Authors, https://github.com/rsms/inter. See `ui/fonts/LICENSE.txt`.
+- **Synonym** — ITF Free Font License 2.0, Indian Type Foundry, distributed
+ via https://www.fontshare.com. See `ui/fonts/LICENSE-Synonym.txt`.
+
+Neither licence permits selling the fonts on their own, and the OFL requires
+that Inter's copyright notice and licence travel with any redistribution. Both
+are satisfied by shipping the `fonts/` directory as it stands.
+
## Whisper models (optional download)
Auto-captions can download ggml Whisper models from
@@ -49,4 +96,5 @@ The effect catalogue thumbnails are rendered from a photograph by
Vitaly Gariev on Unsplash (https://unsplash.com/@silverkblack), used
under the Unsplash License. The source still lives at
`assets/effect-preview-source.jpg`; regenerate the tiles with
-`scripts/generate-effect-previews.mjs`.
+`scripts/generate-effect-previews.mjs`. The Slint window embeds its own copy
+of the tiles from `engine/crates/concat/ui/assets/effect-previews/`.
diff --git a/TRANSLATING.md b/TRANSLATING.md
index f18298f2..40749201 100644
--- a/TRANSLATING.md
+++ b/TRANSLATING.md
@@ -1,6 +1,6 @@
-# Translating WolfCut
+# Translating Concat
-WolfCut's interface speaks whatever your system speaks, when a translation
+Concat's interface speaks whatever your system speaks, when a translation
exists. Adding one takes a text editor and nothing else — no build tools, no
code beyond two registry lines.
diff --git a/assets/wolfcut_logo.af b/assets/concat_logo.af
similarity index 100%
rename from assets/wolfcut_logo.af
rename to assets/concat_logo.af
diff --git a/assets/wolfcut_logo_draft.af b/assets/concat_logo_draft.af
similarity index 100%
rename from assets/wolfcut_logo_draft.af
rename to assets/concat_logo_draft.af
diff --git a/desktop/README.md b/desktop/README.md
index 5f8d1880..0dfce30b 100644
--- a/desktop/README.md
+++ b/desktop/README.md
@@ -4,6 +4,13 @@
# Concat Desktop
+> [!WARNING]
+> **Deprecated.** Concat is moving from Tauri + React to Slint. The
+> replacement is the `concat` crate in [`../engine/crates/concat`](../engine/crates/concat),
+> and that is where UI work goes now. This tree stays only until the Slint
+> window can do everything it does, because it is still what releases ship:
+> bug fixes are welcome, features are not.
+
The editor front end. Tauri v2 + React 19 + Tailwind v4, talking to the Rust
engine in [`../engine`](../engine).
diff --git a/desktop/package-lock.json b/desktop/package-lock.json
index ef9ae59f..5f248a7e 100644
--- a/desktop/package-lock.json
+++ b/desktop/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "wolfcut-desktop",
+ "name": "concat-desktop",
"version": "0.2.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "wolfcut-desktop",
+ "name": "concat-desktop",
"version": "0.2.0",
"license": "AGPL-3.0-or-later",
"dependencies": {
diff --git a/desktop/package.json b/desktop/package.json
index a8504a83..0c24ff5a 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -1,5 +1,5 @@
{
- "name": "wolfcut-desktop",
+ "name": "concat-desktop",
"private": true,
"version": "0.2.0",
"type": "module",
diff --git a/desktop/src-tauri/Cargo.lock b/desktop/src-tauri/Cargo.lock
index 251f50a7..93e5d20d 100644
--- a/desktop/src-tauri/Cargo.lock
+++ b/desktop/src-tauri/Cargo.lock
@@ -593,6 +593,73 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "concat-core"
+version = "0.2.0"
+
+[[package]]
+name = "concat-desktop"
+version = "0.2.0"
+dependencies = [
+ "bzip2 0.6.1",
+ "concat-core",
+ "concat-export",
+ "concat-media",
+ "concat-project",
+ "concat-render",
+ "cpal",
+ "memmap2",
+ "serde",
+ "serde_json",
+ "sherpa-onnx",
+ "tar",
+ "tauri",
+ "tauri-build",
+ "tauri-plugin-dialog",
+ "tauri-plugin-opener",
+ "ts-rs",
+ "ureq",
+]
+
+[[package]]
+name = "concat-export"
+version = "0.2.0"
+dependencies = [
+ "concat-core",
+ "concat-media",
+ "concat-project",
+ "concat-render",
+ "serde",
+]
+
+[[package]]
+name = "concat-media"
+version = "0.2.0"
+dependencies = [
+ "concat-core",
+ "serde_json",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "concat-project"
+version = "0.2.0"
+dependencies = [
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+ "ts-rs",
+]
+
+[[package]]
+name = "concat-render"
+version = "0.2.0"
+dependencies = [
+ "concat-core",
+ "pollster",
+ "wgpu",
+]
+
[[package]]
name = "concurrent-queue"
version = "2.5.0"
@@ -5841,73 +5908,6 @@ version = "0.57.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
-[[package]]
-name = "wolfcut-core"
-version = "0.2.0"
-
-[[package]]
-name = "wolfcut-desktop"
-version = "0.2.0"
-dependencies = [
- "bzip2 0.6.1",
- "cpal",
- "memmap2",
- "serde",
- "serde_json",
- "sherpa-onnx",
- "tar",
- "tauri",
- "tauri-build",
- "tauri-plugin-dialog",
- "tauri-plugin-opener",
- "ts-rs",
- "ureq",
- "wolfcut-core",
- "wolfcut-export",
- "wolfcut-media",
- "wolfcut-project",
- "wolfcut-render",
-]
-
-[[package]]
-name = "wolfcut-export"
-version = "0.2.0"
-dependencies = [
- "serde",
- "wolfcut-core",
- "wolfcut-media",
- "wolfcut-project",
- "wolfcut-render",
-]
-
-[[package]]
-name = "wolfcut-media"
-version = "0.2.0"
-dependencies = [
- "serde_json",
- "thiserror 2.0.20",
- "wolfcut-core",
-]
-
-[[package]]
-name = "wolfcut-project"
-version = "0.2.0"
-dependencies = [
- "serde",
- "serde_json",
- "thiserror 2.0.20",
- "ts-rs",
-]
-
-[[package]]
-name = "wolfcut-render"
-version = "0.2.0"
-dependencies = [
- "pollster",
- "wgpu",
- "wolfcut-core",
-]
-
[[package]]
name = "writeable"
version = "0.6.4"
diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml
index 0062b057..a4ab5b5e 100644
--- a/desktop/src-tauri/Cargo.toml
+++ b/desktop/src-tauri/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "wolfcut-desktop"
+name = "concat-desktop"
version = "0.2.0"
license = "AGPL-3.0-or-later" # + plugin exception, see LICENSE-EXCEPTIONS.md
description = "WolfCut video editor"
@@ -8,7 +8,7 @@ edition = "2021"
[lib]
# The `_lib` suffix keeps the library name distinct from the binary name, which
# otherwise collides on Windows. See rust-lang/cargo#8519.
-name = "wolfcut_desktop_lib"
+name = "concat_desktop_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
@@ -24,11 +24,11 @@ serde_json = "1"
# The engine. Path dependencies rather than a shared workspace on purpose: the
# engine builds, tests and versions on its own, and nothing about it should
# depend on there being a desktop app.
-wolfcut-core = { path = "../../engine/crates/wolfcut-core" }
-wolfcut-media = { path = "../../engine/crates/wolfcut-media" }
-wolfcut-project = { path = "../../engine/crates/wolfcut-project" }
-wolfcut-render = { path = "../../engine/crates/wolfcut-render", features = ["gpu"] }
-wolfcut-export = { path = "../../engine/crates/wolfcut-export", features = ["gpu"] }
+concat-core = { path = "../../engine/crates/concat-core" }
+concat-media = { path = "../../engine/crates/concat-media" }
+concat-project = { path = "../../engine/crates/concat-project" }
+concat-render = { path = "../../engine/crates/concat-render", features = ["gpu"] }
+concat-export = { path = "../../engine/crates/concat-export", features = ["gpu"] }
# Engine-owned audio playback: cpal talks to the output device, memmap2 keeps
# decoded PCM disk-backed instead of resident.
@@ -54,7 +54,7 @@ bzip2 = "0.6"
ts-rs = { version = "12", optional = true }
[features]
-types = ["dep:ts-rs", "wolfcut-project/types"]
+types = ["dep:ts-rs", "concat-project/types"]
[lints.clippy]
# Same stance as the engine workspace: a Tauri command's arguments are its
diff --git a/desktop/src-tauri/build.rs b/desktop/src-tauri/build.rs
index 95b5165e..ffb4c707 100644
--- a/desktop/src-tauri/build.rs
+++ b/desktop/src-tauri/build.rs
@@ -10,8 +10,8 @@ fn main() {
// A packager whose launcher guarantees the tools on the app's PATH - the
// Nix wrapper puts ffmpeg, ffprobe and whisper-cli there - opts out
// explicitly instead of staging copies it is not allowed to ship.
- println!("cargo:rerun-if-env-changed=WOLFCUT_SYSTEM_TOOLS");
- let system_tools = std::env::var_os("WOLFCUT_SYSTEM_TOOLS").is_some();
+ println!("cargo:rerun-if-env-changed=CONCAT_SYSTEM_TOOLS");
+ let system_tools = std::env::var_os("CONCAT_SYSTEM_TOOLS").is_some();
if !system_tools && std::env::var("PROFILE").as_deref() == Ok("release") {
let suffix = if cfg!(target_os = "windows") { ".exe" } else { "" };
diff --git a/desktop/src-tauri/src/editor_api.rs b/desktop/src-tauri/src/editor_api.rs
index 3da2f8a7..bc1db713 100644
--- a/desktop/src-tauri/src/editor_api.rs
+++ b/desktop/src-tauri/src/editor_api.rs
@@ -4,7 +4,7 @@
//! The engine-owned editing session, exposed to the UI.
//!
//! One session at a time, held in managed state: open a project and the
-//! engine holds the edit; every mutation arrives as a `wolfcut_project`
+//! engine holds the edit; every mutation arrives as a `concat_project`
//! [`Command`], is applied with undo recorded, and the new state goes back
//! over the wire. This is the API `lib/editor.ts` mirrors; the provisional
//! TypeScript model it replaced is gone - see
@@ -15,7 +15,7 @@
use std::sync::Mutex;
-use wolfcut_project::{Command, DocumentSettings, Editor};
+use concat_project::{Command, DocumentSettings, Editor};
use serde::Serialize;
use crate::projects;
@@ -37,7 +37,7 @@ pub struct Session {
#[cfg_attr(feature = "types", ts(export))]
#[serde(rename_all = "camelCase")]
pub struct EditorView {
- project: wolfcut_project::Project,
+ project: concat_project::Project,
can_undo: bool,
can_redo: bool,
/// The settings as the session holds them - the document's own output
@@ -92,10 +92,10 @@ fn view(session: &Session, created_id: Option<String>) -> EditorView {
/// titles).
pub fn flattened_clips(
state: &EditorState,
-) -> Result<(Vec<wolfcut_export::ExportClip>, DocumentSettings), String> {
+) -> Result<(Vec<concat_export::ExportClip>, DocumentSettings), String> {
with_session(state, |session| {
Ok((
- wolfcut_export::flatten::flatten_timeline(session.editor.project(), None),
+ concat_export::flatten::flatten_timeline(session.editor.project(), None),
session.settings.clone(),
))
})
diff --git a/desktop/src-tauri/src/export.rs b/desktop/src-tauri/src/export.rs
index 5c63f6c4..0024d033 100644
--- a/desktop/src-tauri/src/export.rs
+++ b/desktop/src-tauri/src/export.rs
@@ -5,7 +5,7 @@
//!
//! Rendering used to live in this file - transitions, timeline conversion,
//! the frame loop, the paused-monitor composite. All of it is
-//! `wolfcut-export` now, where the CLI and any other frontend render the
+//! `concat-export` now, where the CLI and any other frontend render the
//! same way and the doctrine holds: the host converts wire formats and
//! reports progress, nothing more. What remains here is exactly that -
//! turning the engine's progress callback into `export://progress` events.
@@ -15,7 +15,7 @@ use std::sync::atomic::AtomicBool;
use serde::Serialize;
use tauri::Emitter;
-pub use wolfcut_export::{
+pub use concat_export::{
ClipKind, ExportClip, ExportRequest, PreviewFrameRequest, Reporter, TransitionSpec,
preview_frame, preview_prefetch, render,
};
@@ -31,7 +31,7 @@ struct Progress {
/// Renders `request` and returns the path written. Tauri-facing wrapper that
/// reports through the `export://progress` event; the logic is in
-/// [`wolfcut_export::render`].
+/// [`concat_export::render`].
pub fn run(
app: &tauri::AppHandle,
request: ExportRequest,
diff --git a/desktop/src-tauri/src/lib.rs b/desktop/src-tauri/src/lib.rs
index d7dbe375..e4bd68bc 100644
--- a/desktop/src-tauri/src/lib.rs
+++ b/desktop/src-tauri/src/lib.rs
@@ -6,8 +6,8 @@
//! Deliberately thin. Every command here does two things: call into the engine
//! crates, and convert the result to something `serde` can put on the wire.
//! No editing logic lives on this side of the bridge - if a command starts
-//! making decisions about the edit, that logic belongs in `wolfcut-core` or
-//! `wolfcut-render` where it can be unit-tested without a window.
+//! making decisions about the edit, that logic belongs in `concat-core` or
+//! `concat-render` where it can be unit-tested without a window.
// Public so the integration tests can drive a real export; see tests/.
pub mod export;
@@ -72,7 +72,7 @@ const IMAGE_EXTENSIONS: &[&str] = &[
/// GIF or WebP reports a duration; a single image does not. It is a heuristic,
/// and a deliberately conservative one - misreading an animation as a still
/// shows its first frame rather than failing.
-fn classify(info: &wolfcut_media::MediaInfo) -> &'static str {
+fn classify(info: &concat_media::MediaInfo) -> &'static str {
if info.video.is_none() {
return "audio";
}
@@ -91,8 +91,8 @@ fn classify(info: &wolfcut_media::MediaInfo) -> &'static str {
}
}
-impl From<wolfcut_media::MediaInfo> for MediaSummary {
- fn from(info: wolfcut_media::MediaInfo) -> Self {
+impl From<concat_media::MediaInfo> for MediaSummary {
+ fn from(info: concat_media::MediaInfo) -> Self {
Self {
kind: classify(&info),
path: info.path.to_string_lossy().into_owned(),
@@ -135,7 +135,7 @@ impl From<wolfcut_media::MediaInfo> for MediaSummary {
#[tauri::command]
async fn probe_media(app: tauri::AppHandle, path: String) -> Result<MediaSummary, String> {
let summary = tauri::async_runtime::spawn_blocking(move || {
- wolfcut_media::probe(&path).map(MediaSummary::from).map_err(describe)
+ concat_media::probe(&path).map(MediaSummary::from).map_err(describe)
})
.await
.map_err(|error| format!("probe task failed: {error}"))??;
@@ -240,7 +240,7 @@ fn peaks_bytes(path: &str, project: Option<&str>) -> Result<Vec<u8>, String> {
}
}
- let peaks = wolfcut_media::peaks::extract(std::path::Path::new(path), PEAKS_BUCKETS_PER_SECOND)
+ let peaks = concat_media::peaks::extract(std::path::Path::new(path), PEAKS_BUCKETS_PER_SECOND)
.map_err(describe)?;
let bytes = peaks.encode();
@@ -356,14 +356,14 @@ fn filmstrip(path: &str, count: u32, height: u32) -> Result<Vec<u8>, String> {
let count = count.clamp(1, 60);
let height = height.clamp(16, 240);
- let info = wolfcut_media::probe(path).map_err(describe)?;
+ let info = concat_media::probe(path).map_err(describe)?;
let duration = info
.duration
.map(|duration| duration.as_f64())
.filter(|seconds| *seconds > 0.0)
.ok_or_else(|| format!("{path} reports no duration"))?;
- let output = wolfcut_media::command(wolfcut_media::ffmpeg())
+ let output = concat_media::command(concat_media::ffmpeg())
.args(["-hide_banner", "-nostdin", "-loglevel", "error"])
.args(["-i", path])
.args([
@@ -432,7 +432,7 @@ fn poster_frame(project: &str) -> Result<Vec<u8>, String> {
// Typed access through the engine's own reader, not hand-parsed JSON -
// a schema change breaks this at compile time now, not silently at the
// next launch screen.
- let Some(project) = wolfcut_project::from_document(&document) else {
+ let Some(project) = concat_project::from_document(&document) else {
return Err("the project has no timeline to preview".to_owned());
};
let timeline = project
@@ -446,7 +446,7 @@ fn poster_frame(project: &str) -> Result<Vec<u8>, String> {
// The earliest clip with a picture is the poster - exactly the frame
// the user last saw open.
- use wolfcut_project::model::ClipKind;
+ use concat_project::model::ClipKind;
let mut poster: Option<(f64, String, f64, bool)> = None;
for clip in &timeline.clips {
if clip.kind != ClipKind::Video && clip.kind != ClipKind::Image {
@@ -470,7 +470,7 @@ fn poster_frame(project: &str) -> Result<Vec<u8>, String> {
return Err("nothing on the timeline to preview".to_owned());
};
- let mut command = wolfcut_media::command(wolfcut_media::ffmpeg());
+ let mut command = concat_media::command(concat_media::ffmpeg());
command.args(["-hide_banner", "-nostdin", "-loglevel", "error"]);
// Seeking a still means seeking a one-frame stream to nowhere.
if !is_still && source_start > 0.0 {
@@ -660,7 +660,7 @@ struct ExportState(std::sync::Arc<jobs::SingleFlight>);
/// The reader pool behind the paused monitor's true frames. One pool for the
/// app's lifetime: its whole value is what stays warm between scrubs.
-struct PoolState(std::sync::Arc<std::sync::Mutex<wolfcut_media::ReaderPool>>);
+struct PoolState(std::sync::Arc<std::sync::Mutex<concat_media::ReaderPool>>);
/// What the UI sends for one true frame: an instant and a resolution. The
/// clips come from the engine's own session - the UI no longer serialises
@@ -802,7 +802,7 @@ fn cancel_export(state: tauri::State<'_, ExportState>) {
///
/// `Display` on a `thiserror` enum prints only the outermost message, and the
/// useful half - what FFmpeg or the OS actually said - is in the source chain.
-fn describe(error: wolfcut_media::Error) -> String {
+fn describe(error: concat_media::Error) -> String {
use std::error::Error;
let mut message = error.to_string();
@@ -849,7 +849,7 @@ fn use_bundled_ffmpeg(app: &tauri::App) {
let ffprobe = directory.join(format!("ffprobe{suffix}"));
if ffmpeg.is_file() && ffprobe.is_file() {
- wolfcut_media::set_binaries(ffmpeg, ffprobe);
+ concat_media::set_binaries(ffmpeg, ffprobe);
return;
}
}
@@ -876,7 +876,7 @@ pub fn run() {
app.manage(tts::TtsState::new());
app.manage(editor_api::EditorState(std::sync::Mutex::new(None)));
app.manage(PoolState(std::sync::Arc::new(std::sync::Mutex::new(
- wolfcut_media::ReaderPool::with_defaults(),
+ concat_media::ReaderPool::with_defaults(),
))));
Ok(())
})
diff --git a/desktop/src-tauri/src/main.rs b/desktop/src-tauri/src/main.rs
index 981929d7..4944dd39 100644
--- a/desktop/src-tauri/src/main.rs
+++ b/desktop/src-tauri/src/main.rs
@@ -5,5 +5,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
- wolfcut_desktop_lib::run()
+ concat_desktop_lib::run()
}
diff --git a/desktop/src-tauri/src/playback.rs b/desktop/src-tauri/src/playback.rs
index 8f3aeb23..b72af01f 100644
--- a/desktop/src-tauri/src/playback.rs
+++ b/desktop/src-tauri/src/playback.rs
@@ -580,7 +580,7 @@ fn decode_key(spec: &ClipSpec) -> String {
/// speed, so what the preview mixes is what the export renders. A file
/// already in the cache is reused as is - that is the point of the cache.
fn decode(spec: &ClipSpec, project: &Path, key: &str) -> Result<Pcm, String> {
- wolfcut_media::audio::validate_chain(&spec.chain).map_err(|error| error.to_string())?;
+ concat_media::audio::validate_chain(&spec.chain).map_err(|error| error.to_string())?;
let directory = project.join("cache").join("audio");
// `.wav`, and `.pcm` before the muxer change - old raw caches are simply
@@ -596,7 +596,7 @@ fn decode(spec: &ClipSpec, project: &Path, key: &str) -> Result<Pcm, String> {
// graph applies, because these are one definition, not two. The engine
// owns what speed *means*; this function only decodes.
let mut filters: Vec<String> =
- wolfcut_media::audio::speed_filters(spec.speed, spec.preserve_pitch);
+ concat_media::audio::speed_filters(spec.speed, spec.preserve_pitch);
if !spec.chain.is_empty() {
filters.push(spec.chain.clone());
}
@@ -606,13 +606,13 @@ fn decode(spec: &ClipSpec, project: &Path, key: &str) -> Result<Pcm, String> {
// A sped-up clip reads further into the file than it occupies on the
// timeline: the source window is `duration * speed`, exactly the window
// the exporter trims.
- let window = spec.duration * wolfcut_media::audio::clamp_speed(spec.speed);
+ let window = spec.duration * concat_media::audio::clamp_speed(spec.speed);
let temporary = directory.join(format!("{key}.wav.decoding"));
let file = std::fs::File::create(&temporary)
.map_err(|error| format!("could not create {}: {error}", temporary.display()))?;
- let status = wolfcut_media::command(wolfcut_media::ffmpeg())
+ let status = concat_media::command(concat_media::ffmpeg())
.args(["-hide_banner", "-nostdin", "-loglevel", "error"])
.args(["-ss", &format!("{:.6}", spec.source_start)])
.args(["-t", &format!("{window:.6}")])
diff --git a/desktop/src-tauri/src/projects.rs b/desktop/src-tauri/src/projects.rs
index ea500c66..0c5b6341 100644
--- a/desktop/src-tauri/src/projects.rs
+++ b/desktop/src-tauri/src/projects.rs
@@ -58,7 +58,9 @@ pub struct ProjectInfo {
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
struct Manifest {
- #[serde(alias = "relay")]
+ // `concat` is what the engine writes now (concat-project doc.rs); the
+ // two aliases are what every project saved before the renames carries.
+ #[serde(alias = "relay", alias = "concat")]
wolfcut: String,
name: String,
video: Video,
@@ -137,7 +139,7 @@ pub fn create(
/// Writes the whole project document to `wolfcut.json`.
///
/// The document is passed through as opaque JSON rather than being mirrored
-/// into Rust types: the engine (`wolfcut-project`) owns the canonical model and
+/// into Rust types: the engine (`concat-project`) owns the canonical model and
/// produced this document, and the host has no decisions to make about its
/// contents beyond writing it safely.
///
diff --git a/desktop/src-tauri/src/templates.rs b/desktop/src-tauri/src/templates.rs
index d92229ca..27248103 100644
--- a/desktop/src-tauri/src/templates.rs
+++ b/desktop/src-tauri/src/templates.rs
@@ -15,12 +15,12 @@
//! Saving packs the open project into a bundle; instantiating unpacks one
//! into a fresh project folder and fills every slot with the user's media
//! *through the engine* (`Command::FillSlot` in a batch), so what a fill
-//! means is defined in exactly one place - `wolfcut-project` - and the editor
+//! means is defined in exactly one place - `concat-project` - and the editor
//! never opens on a slot with a dead path.
use std::path::{Path, PathBuf};
-use wolfcut_project::{Command, DocumentSettings, Editor};
+use concat_project::{Command, DocumentSettings, Editor};
use serde::{Deserialize, Serialize};
use serde_json::Value;
@@ -63,7 +63,7 @@ pub struct SlotInfo {
#[serde(rename_all = "camelCase")]
pub struct SlotFill {
pub media_id: String,
- pub item: wolfcut_project::commands::NewMedia,
+ pub item: concat_project::commands::NewMedia,
}
pub fn templates_dir(config: &Path) -> PathBuf {
@@ -78,7 +78,7 @@ pub fn templates_dir(config: &Path) -> PathBuf {
pub fn save(
config: &Path,
document: &Value,
- settings: &wolfcut_project::DocumentSettings,
+ settings: &concat_project::DocumentSettings,
project_path: &str,
name: &str,
) -> Result<TemplateInfo, String> {
@@ -93,7 +93,7 @@ pub fn save(
// Typed through the engine's reader and writer, not hand-edited JSON:
// the manifest is written by the same code path every save uses, and a
// schema change breaks this at compile time.
- let Some(mut project) = wolfcut_project::from_document(document) else {
+ let Some(mut project) = concat_project::from_document(document) else {
return Err("the open project is not a document this build can read".to_owned());
};
@@ -113,7 +113,7 @@ pub fn save(
let mut settings = settings.clone();
settings.name = name.to_owned();
- let document = wolfcut_project::to_document(&settings, &project);
+ let document = concat_project::to_document(&settings, &project);
let encoded = serde_json::to_vec_pretty(&document)
.map_err(|error| format!("could not encode the template: {error}"))?;
@@ -213,7 +213,7 @@ fn read_info(root: &Path) -> Result<TemplateInfo, String> {
/// Typed through the engine's own reader: a schema change breaks this at
/// compile time, not as a gallery that silently shows no slots.
fn slots_of(document: &Value) -> Vec<SlotInfo> {
- let Some(project) = wolfcut_project::from_document(document) else {
+ let Some(project) = concat_project::from_document(document) else {
return Vec::new();
};
let clips = project
@@ -243,9 +243,9 @@ fn slots_of(document: &Value) -> Vec<SlotInfo> {
media_id: item.id.clone(),
name: item.name.clone(),
kind: match item.kind {
- wolfcut_project::model::MediaKind::Video => "video",
- wolfcut_project::model::MediaKind::Audio => "audio",
- wolfcut_project::model::MediaKind::Image => "image",
+ concat_project::model::MediaKind::Video => "video",
+ concat_project::model::MediaKind::Audio => "audio",
+ concat_project::model::MediaKind::Image => "image",
}
.to_owned(),
seconds,
@@ -259,7 +259,7 @@ fn slots_of(document: &Value) -> Vec<SlotInfo> {
/// Unpacks a template into a fresh project with every slot filled.
///
/// The fills go through the engine as one `Batch` of `FillSlot` commands, so
-/// the semantics live in `wolfcut-project` and a half-fillable set of media
+/// the semantics live in `concat-project` and a half-fillable set of media
/// leaves no half-made project behind.
pub fn instantiate(
template: &str,
@@ -440,7 +440,7 @@ mod tests {
media[1]["kind"] = Value::String("audio".to_owned());
}
- let settings = wolfcut_project::DocumentSettings {
+ let settings = concat_project::DocumentSettings {
name: "Beat Intro".to_owned(),
width: 1920,
height: 1080,
@@ -481,11 +481,11 @@ mod tests {
"From bundle",
vec![SlotFill {
media_id: "m1".to_owned(),
- item: wolfcut_project::commands::NewMedia {
+ item: concat_project::commands::NewMedia {
path: "/mine/clip.mp4".to_owned(),
name: "clip.mp4".to_owned(),
duration: Some(6.0),
- kind: wolfcut_project::model::MediaKind::Video,
+ kind: concat_project::model::MediaKind::Video,
width: Some(1920),
height: Some(1080),
frame_rate: Some(30.0),
@@ -523,11 +523,11 @@ mod tests {
let fill = |media_id: &str, path: &str| SlotFill {
media_id: media_id.to_owned(),
- item: wolfcut_project::commands::NewMedia {
+ item: concat_project::commands::NewMedia {
path: path.to_owned(),
name: path.rsplit('/').next().unwrap_or(path).to_owned(),
duration: Some(9.0),
- kind: wolfcut_project::model::MediaKind::Video,
+ kind: concat_project::model::MediaKind::Video,
width: Some(1920),
height: Some(1080),
frame_rate: Some(30.0),
diff --git a/desktop/src-tauri/src/transcribe.rs b/desktop/src-tauri/src/transcribe.rs
index f778edbb..4819a5f7 100644
--- a/desktop/src-tauri/src/transcribe.rs
+++ b/desktop/src-tauri/src/transcribe.rs
@@ -23,7 +23,7 @@
//! as 16 kHz mono WAV - the input whisper wants - then `whisper-cli`
//! writes JSON, which is parsed into segments relative to the window.
//!
-//! This lives in the host rather than `wolfcut-media` for now: the engine has
+//! This lives in the host rather than `concat-media` for now: the engine has
//! no caption concept, and model downloads certainly do not belong there. If
//! the engine grows an audio-analysis seam, the runner half graduates.
@@ -456,7 +456,7 @@ fn extract_wav(
destination: &Path,
slot: &Arc<Mutex<Option<Child>>>,
) -> Result<(), String> {
- let mut command = wolfcut_media::command(wolfcut_media::ffmpeg());
+ let mut command = concat_media::command(concat_media::ffmpeg());
command
.args(["-hide_banner", "-nostdin", "-loglevel", "error", "-y"])
.args(["-ss", &format!("{start:.6}")])
@@ -561,7 +561,7 @@ fn run_transcription(
.map(|count| count.get().min(8))
.unwrap_or(4);
- let mut command = wolfcut_media::command(&binary);
+ let mut command = concat_media::command(&binary);
command
.arg("-m")
.arg(&model)
diff --git a/desktop/src-tauri/tests/export_integration.rs b/desktop/src-tauri/tests/export_integration.rs
index fb238979..cd2e62d1 100644
--- a/desktop/src-tauri/tests/export_integration.rs
+++ b/desktop/src-tauri/tests/export_integration.rs
@@ -18,7 +18,7 @@ use std::path::{Path, PathBuf};
use std::process::Command;
use std::sync::atomic::AtomicBool;
-use wolfcut_desktop_lib::export::{ClipKind, ExportClip, ExportRequest, Reporter, render};
+use concat_desktop_lib::export::{ClipKind, ExportClip, ExportRequest, Reporter, render};
/// Points the engine at the staged bundle exactly once, before anything runs.
fn use_bundled_pair() {
@@ -27,7 +27,7 @@ fn use_bundled_pair() {
let ffmpeg = staged.join(format!("ffmpeg{suffix}"));
let ffprobe = staged.join(format!("ffprobe{suffix}"));
if ffmpeg.is_file() && ffprobe.is_file() {
- wolfcut_media::set_binaries(ffmpeg, ffprobe);
+ concat_media::set_binaries(ffmpeg, ffprobe);
}
}
@@ -148,7 +148,7 @@ fn exports_survive_the_shapes_that_have_actually_broken() {
let output = directory.join("plain.mp4");
export(&request(&output, vec![media_clip(&with_sound, "video", 0.0, 2.0, 0)]))
.expect("plain export");
- let info = wolfcut_media::probe(&output).expect("probe plain");
+ let info = concat_media::probe(&output).expect("probe plain");
assert!(info.video.is_some() && info.audio.is_some());
let duration = info.duration.expect("has duration").as_f64();
assert!((duration - 2.0).abs() < 0.15, "expected ~2s, got {duration}");
@@ -164,7 +164,7 @@ fn exports_survive_the_shapes_that_have_actually_broken() {
],
))
.expect("export with an audioless clip");
- let info = wolfcut_media::probe(&output).expect("probe mixed-mute");
+ let info = concat_media::probe(&output).expect("probe mixed-mute");
assert!(info.audio.is_some(), "the sounded clip still reaches the mix");
// Retiming: a 2x clip consumes 2s of source in 1s of timeline, and
@@ -173,7 +173,7 @@ fn exports_survive_the_shapes_that_have_actually_broken() {
let mut fast = media_clip(&with_sound, "video", 0.0, 1.0, 0);
fast.speed = 2.0;
export(&request(&output, vec![fast])).expect("2x export");
- let info = wolfcut_media::probe(&output).expect("probe fast");
+ let info = concat_media::probe(&output).expect("probe fast");
let duration = info.duration.expect("has duration").as_f64();
assert!((duration - 1.0).abs() < 0.15, "expected ~1s at 2x, got {duration}");
assert!(info.audio.is_some(), "the sped-up sound made it through the graph");
@@ -188,7 +188,7 @@ fn exports_survive_the_shapes_that_have_actually_broken() {
vec![media_clip(&with_sound, "video", 0.0, 2.0, 0), overlay],
))
.expect("overlay export");
- let info = wolfcut_media::probe(&output).expect("probe overlay");
+ let info = concat_media::probe(&output).expect("probe overlay");
assert!(info.video.is_some() && info.audio.is_some());
// A clip whose filter chain tries to escape its slot is refused, not run.
diff --git a/engine/.cargo/config.toml b/engine/.cargo/config.toml
index 7aefecf1..c15e7156 100644
--- a/engine/.cargo/config.toml
+++ b/engine/.cargo/config.toml
@@ -1,7 +1,7 @@
# Where the FFmpeg development build lives - machine configuration, not
# repository configuration.
#
-# Only the optional `ffi` feature of wolfcut-media needs FFmpeg headers and
+# Only the optional `ffi` feature of concat-media needs FFmpeg headers and
# libraries at build time. A normal build - which talks to FFmpeg as a
# subprocess - needs nothing here. Do not commit machine paths into this
# file: rusty_ffmpeg panics on an FFMPEG_INCLUDE_DIR that does not exist,
diff --git a/engine/Cargo.lock b/engine/Cargo.lock
index f8b5aba5..6ae92d21 100644
--- a/engine/Cargo.lock
+++ b/engine/Cargo.lock
@@ -2,6 +2,149 @@
# It is not intended for manual editing.
version = 4
+[[package]]
+name = "ab_glyph"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
+dependencies = [
+ "ab_glyph_rasterizer",
+ "owned_ttf_parser",
+]
+
+[[package]]
+name = "ab_glyph_rasterizer"
+version = "0.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
+
+[[package]]
+name = "accesskit"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320"
+dependencies = [
+ "uuid",
+]
+
+[[package]]
+name = "accesskit_atspi_common"
+version = "0.19.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "023da0e5097f46df7092d5280b02efb9bbf8d93298daeced42652463e357d636"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer",
+ "atspi-common",
+ "phf",
+ "serde",
+ "zvariant",
+]
+
+[[package]]
+name = "accesskit_consumer"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d10a236f96f87d70732e44520046785431ef01d5bcd6b041317bfadd2f88245"
+dependencies = [
+ "accesskit",
+ "hashbrown 0.16.1",
+]
+
+[[package]]
+name = "accesskit_ios"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "750c4e9f6ce888dfe8a10c0f1b5ceb646a7854fd46579d74919219d1bb314083"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer",
+ "hashbrown 0.16.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+ "objc2-ui-kit 0.2.2",
+]
+
+[[package]]
+name = "accesskit_macos"
+version = "0.26.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce02dc63b43f0c9296af9ac946312a2dc8814427d7a64d2d600971dac55b6076"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer",
+ "hashbrown 0.16.1",
+ "objc2 0.5.2",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "accesskit_unix"
+version = "0.22.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03e156ed3802e35eefe894ef2671bc6c889303d8a7e110b5e1b48f504b91362f"
+dependencies = [
+ "accesskit",
+ "accesskit_atspi_common",
+ "async-channel",
+ "async-executor",
+ "async-task",
+ "atspi",
+ "futures-lite",
+ "futures-util",
+ "serde",
+ "zbus",
+]
+
+[[package]]
+name = "accesskit_windows"
+version = "0.34.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "106c2b961215864d1c2e703ee63269c25c4e80a577ffb2c1017b9c17dcdf83a1"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer",
+ "hashbrown 0.16.1",
+ "static_assertions",
+ "windows",
+ "windows-core",
+]
+
+[[package]]
+name = "accesskit_winit"
+version = "0.33.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5b41e63a69f36d9f1f41e70464c7e5f72eee485ef26aab19f0b4f86e6c0a84c"
+dependencies = [
+ "accesskit",
+ "accesskit_ios",
+ "accesskit_macos",
+ "accesskit_unix",
+ "accesskit_windows",
+ "raw-window-handle",
+ "winit",
+]
+
+[[package]]
+name = "adler2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+
+[[package]]
+name = "ahash"
+version = "0.8.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
+dependencies = [
+ "cfg-if",
+ "getrandom 0.3.4",
+ "once_cell",
+ "version_check",
+ "zerocopy",
+]
+
[[package]]
name = "aho-corasick"
version = "1.1.5"
@@ -11,12 +154,55 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "aligned"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee4508988c62edf04abd8d92897fca0c2995d907ce1dfeaf369dac3716a40685"
+dependencies = [
+ "as-slice",
+]
+
+[[package]]
+name = "aligned-vec"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b"
+dependencies = [
+ "equator",
+]
+
[[package]]
name = "allocator-api2"
version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+[[package]]
+name = "android-activity"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd"
+dependencies = [
+ "android-properties",
+ "bitflags 2.13.1",
+ "cc",
+ "jni",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-sys",
+ "num_enum",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "android-properties"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
+
[[package]]
name = "android_system_properties"
version = "0.1.6"
@@ -26,6 +212,17 @@ dependencies = [
"libc",
]
+[[package]]
+name = "annotate-snippets"
+version = "0.12.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1"
+dependencies = [
+ "anstyle",
+ "memchr",
+ "unicode-width",
+]
+
[[package]]
name = "anstream"
version = "1.0.0"
@@ -62,7 +259,7 @@ version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows-sys",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -73,907 +270,1000 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "arrayvec"
-version = "0.7.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
-
-[[package]]
-name = "ash"
-version = "0.38.0+1.3.281"
+name = "anyhow"
+version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
-dependencies = [
- "libloading",
-]
+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
[[package]]
-name = "autocfg"
-version = "1.5.1"
+name = "arbitrary"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
[[package]]
-name = "bindgen"
-version = "0.72.1"
+name = "arg_enum_proc_macro"
+version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
+checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
dependencies = [
- "bitflags",
- "cexpr",
- "clang-sys",
- "itertools",
- "log",
- "prettyplease",
"proc-macro2",
"quote",
- "regex",
- "rustc-hash 2.1.3",
- "shlex",
"syn 2.0.119",
]
[[package]]
-name = "bit-set"
-version = "0.10.0"
+name = "arrayref"
+version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d"
-dependencies = [
- "bit-vec",
-]
+checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
[[package]]
-name = "bit-vec"
-version = "0.9.1"
+name = "arrayvec"
+version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
+checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
[[package]]
-name = "bitflags"
-version = "2.13.1"
+name = "as-raw-xcb-connection"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
+checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
[[package]]
-name = "block2"
-version = "0.6.2"
+name = "as-slice"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
+checksum = "516b6b4f0e40d50dcda9365d53964ec74560ad4284da2e7fc97122cd83174516"
dependencies = [
- "objc2",
+ "stable_deref_trait",
]
[[package]]
-name = "bumpalo"
-version = "3.20.3"
+name = "ash"
+version = "0.38.0+1.3.281"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
+checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
+dependencies = [
+ "libloading",
+]
[[package]]
-name = "bytemuck"
-version = "1.25.2"
+name = "async-broadcast"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
dependencies = [
- "bytemuck_derive",
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
]
[[package]]
-name = "bytemuck_derive"
-version = "1.12.0"
+name = "async-channel"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0e56a716f1e132ff6bf4bdac1c944a3fcdc1cae65f70a4a2a1ac3b401d2d1f"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 3.0.4",
+ "concurrent-queue",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
]
[[package]]
-name = "camino"
-version = "1.2.5"
+name = "async-executor"
+version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
[[package]]
-name = "cexpr"
-version = "0.6.0"
+name = "async-io"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
dependencies = [
- "nom",
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix 1.1.4",
+ "slab",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "cfg-if"
-version = "1.0.4"
+name = "async-lock"
+version = "3.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
[[package]]
-name = "cfg_aliases"
-version = "0.2.2"
+name = "async-process"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix 1.1.4",
+]
[[package]]
-name = "clang-sys"
-version = "1.9.1"
+name = "async-recursion"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
+checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
- "glob",
- "libc",
- "libloading",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
]
[[package]]
-name = "clap"
-version = "4.6.6"
+name = "async-signal"
+version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
dependencies = [
- "clap_builder",
- "clap_derive",
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix 1.1.4",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "clap_builder"
-version = "4.6.6"
+name = "async-task"
+version = "4.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
-dependencies = [
- "anstream",
- "anstyle",
- "clap_lex",
- "strsim",
-]
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
[[package]]
-name = "clap_derive"
-version = "4.6.4"
+name = "async-trait"
+version = "0.1.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061"
+checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
dependencies = [
- "heck",
"proc-macro2",
"quote",
"syn 3.0.4",
]
[[package]]
-name = "clap_lex"
-version = "1.1.0"
+name = "atomic-waker"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]]
-name = "codespan-reporting"
-version = "0.13.1"
+name = "atspi"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"
+checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d"
dependencies = [
- "serde",
- "termcolor",
- "unicode-width",
+ "atspi-common",
+ "atspi-proxies",
]
[[package]]
-name = "colorchoice"
-version = "1.0.5"
+name = "atspi-common"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
+checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d"
+dependencies = [
+ "enumflags2",
+ "serde",
+ "static_assertions",
+ "zbus",
+ "zbus-lockstep",
+ "zbus-lockstep-macros",
+ "zbus_names",
+ "zvariant",
+]
[[package]]
-name = "crunchy"
-version = "0.2.4"
+name = "atspi-proxies"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
+checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc"
+dependencies = [
+ "atspi-common",
+ "serde",
+ "zbus",
+]
[[package]]
-name = "dispatch2"
-version = "0.3.1"
+name = "auto_enums"
+version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
+checksum = "3091d68264354f211516b91dce6f71046e444fab1867716035f736667243affb"
dependencies = [
- "bitflags",
- "objc2",
+ "derive_utils",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
]
[[package]]
-name = "dlib"
-version = "0.5.3"
+name = "autocfg"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"
-dependencies = [
- "libloading",
-]
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
-name = "document-features"
-version = "0.2.12"
+name = "av-scenechange"
+version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
+checksum = "0f321d77c20e19b92c39e7471cf986812cbb46659d2af674adc4331ef3f18394"
dependencies = [
- "litrs",
+ "aligned",
+ "anyhow",
+ "arg_enum_proc_macro",
+ "arrayvec",
+ "log",
+ "num-rational",
+ "num-traits",
+ "pastey 0.1.1",
+ "rayon",
+ "thiserror 2.0.20",
+ "v_frame",
+ "y4m",
]
[[package]]
-name = "either"
-version = "1.18.0"
+name = "av1-grain"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
+checksum = "8cfddb07216410377231960af4fcab838eaa12e013417781b78bd95ee22077f8"
+dependencies = [
+ "anyhow",
+ "arrayvec",
+ "log",
+ "nom 8.0.0",
+ "num-rational",
+ "v_frame",
+]
[[package]]
-name = "equivalent"
-version = "1.0.2"
+name = "avif-serialize"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+checksum = "e7178fe5f7d460b13895ebb9dcb28a3a6216d2df2574a0806cb51b555d297f38"
+dependencies = [
+ "arrayvec",
+]
[[package]]
-name = "foldhash"
-version = "0.2.0"
+name = "base64"
+version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
-name = "futures-core"
-version = "0.3.34"
+name = "bincode"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740"
+dependencies = [
+ "serde",
+ "unty",
+]
[[package]]
-name = "futures-task"
-version = "0.3.34"
+name = "bindgen"
+version = "0.72.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
+dependencies = [
+ "bitflags 2.13.1",
+ "cexpr",
+ "clang-sys",
+ "itertools 0.13.0",
+ "log",
+ "prettyplease",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "rustc-hash 2.1.3",
+ "shlex 1.3.0",
+ "syn 2.0.119",
+]
[[package]]
-name = "futures-util"
-version = "0.3.34"
+name = "bit-set"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd"
dependencies = [
- "futures-core",
- "futures-task",
- "pin-project-lite",
- "slab",
+ "bit-vec",
]
[[package]]
-name = "gl_generator"
-version = "0.14.0"
+name = "bit-set"
+version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d"
+checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d"
dependencies = [
- "khronos_api",
- "log",
- "xml-rs",
+ "bit-vec",
]
[[package]]
-name = "glob"
-version = "0.3.4"
+name = "bit-vec"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
[[package]]
-name = "glow"
-version = "0.17.0"
+name = "bit_field"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5"
-dependencies = [
- "js-sys",
- "slotmap",
- "wasm-bindgen",
- "web-sys",
-]
+checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
[[package]]
-name = "glutin_wgl_sys"
-version = "0.6.1"
+name = "bitflags"
+version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e"
-dependencies = [
- "gl_generator",
-]
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
-name = "gpu-allocator"
-version = "0.28.0"
+name = "bitflags"
+version = "2.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795"
+checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
dependencies = [
- "ash",
- "hashbrown 0.16.1",
- "log",
- "presser",
- "thiserror",
- "windows",
+ "serde_core",
]
[[package]]
-name = "half"
-version = "2.7.1"
+name = "bitstream-io"
+version = "4.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
+checksum = "7eff00be299a18769011411c9def0d827e8f2d7bf0c3dbf53633147a8867fd1f"
dependencies = [
- "cfg-if",
- "crunchy",
- "num-traits",
- "zerocopy",
+ "no_std_io2",
]
[[package]]
-name = "hashbrown"
-version = "0.16.1"
+name = "block2"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
+checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"
dependencies = [
- "allocator-api2",
- "equivalent",
- "foldhash",
+ "objc2 0.5.2",
]
[[package]]
-name = "hashbrown"
-version = "0.17.1"
+name = "block2"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
dependencies = [
- "foldhash",
+ "objc2 0.6.4",
]
[[package]]
-name = "heck"
-version = "0.5.0"
+name = "blocking"
+version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
[[package]]
-name = "indexmap"
-version = "2.14.0"
+name = "borsh"
+version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
+checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a"
dependencies = [
- "equivalent",
- "hashbrown 0.17.1",
+ "bytes",
+ "cfg_aliases",
]
[[package]]
-name = "is_terminal_polyfill"
-version = "1.70.2"
+name = "built"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
+checksum = "5c0e531d93d39c34eef561e929e8a7f86d77a5af08aac4f6d6e39976c51858e9"
[[package]]
-name = "itertools"
-version = "0.13.0"
+name = "bumpalo"
+version = "3.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
-dependencies = [
- "either",
-]
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
[[package]]
-name = "itoa"
-version = "1.0.18"
+name = "by_address"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
+checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06"
[[package]]
-name = "jni-sys"
-version = "0.3.1"
+name = "bytemuck"
+version = "1.25.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
dependencies = [
- "jni-sys 0.4.1",
+ "bytemuck_derive",
]
[[package]]
-name = "jni-sys"
-version = "0.4.1"
+name = "bytemuck_derive"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+checksum = "fc0e56a716f1e132ff6bf4bdac1c944a3fcdc1cae65f70a4a2a1ac3b401d2d1f"
dependencies = [
- "jni-sys-macros",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
]
[[package]]
-name = "jni-sys-macros"
-version = "0.4.1"
+name = "byteorder-lite"
+version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
-dependencies = [
- "quote",
- "syn 2.0.119",
-]
+checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
[[package]]
-name = "js-sys"
-version = "0.3.104"
+name = "bytes"
+version = "1.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a"
-dependencies = [
- "cfg-if",
- "futures-util",
- "wasm-bindgen",
-]
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
[[package]]
-name = "khronos-egl"
-version = "6.0.0"
+name = "calloop"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
+checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec"
dependencies = [
- "libc",
- "libloading",
- "pkg-config",
+ "bitflags 2.13.1",
+ "log",
+ "polling",
+ "rustix 0.38.44",
+ "slab",
+ "thiserror 1.0.69",
]
[[package]]
-name = "khronos_api"
-version = "3.1.0"
+name = "calloop"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
+checksum = "4dbf9978365bac10f54d1d4b04f7ce4427e51f71d61f2fe15e3fed5166474df7"
+dependencies = [
+ "bitflags 2.13.1",
+ "polling",
+ "rustix 1.1.4",
+ "slab",
+ "tracing",
+]
[[package]]
-name = "libc"
-version = "0.2.189"
+name = "calloop-wayland-source"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
+dependencies = [
+ "calloop 0.13.0",
+ "rustix 0.38.44",
+ "wayland-backend",
+ "wayland-client",
+]
[[package]]
-name = "libloading"
-version = "0.8.9"
+name = "calloop-wayland-source"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
+checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
dependencies = [
- "cfg-if",
- "windows-link",
+ "calloop 0.14.4",
+ "rustix 1.1.4",
+ "wayland-backend",
+ "wayland-client",
]
[[package]]
-name = "libm"
-version = "0.2.16"
+name = "camino"
+version = "1.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
+checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d"
[[package]]
-name = "litrs"
-version = "1.0.0"
+name = "cc"
+version = "1.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
+checksum = "0ad534f4357a5264cce5019c989cf66a4f0dc4e0d1b1d15f8aacec0ff7360273"
+dependencies = [
+ "find-msvc-tools",
+ "jobserver",
+ "libc",
+ "shlex 2.0.1",
+]
[[package]]
-name = "lock_api"
-version = "0.4.14"
+name = "cexpr"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
dependencies = [
- "scopeguard",
+ "nom 7.1.3",
]
[[package]]
-name = "log"
-version = "0.4.34"
+name = "cfg-if"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
-name = "memchr"
-version = "2.8.3"
+name = "cfg_aliases"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
[[package]]
-name = "minimal-lexical"
-version = "0.2.1"
+name = "cgl"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff"
+dependencies = [
+ "libc",
+]
[[package]]
-name = "naga"
-version = "30.0.1"
+name = "chrono"
+version = "0.4.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a616d2fb8c89516ac2723a581f69d6c18576046bed761bd6b305e5618e6ae130"
+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
dependencies = [
- "arrayvec",
- "bit-set",
- "bitflags",
- "cfg-if",
- "cfg_aliases",
- "codespan-reporting",
- "half",
- "hashbrown 0.17.1",
- "indexmap",
- "libm",
- "log",
- "naga-types",
+ "iana-time-zone",
+ "js-sys",
"num-traits",
- "once_cell",
- "rustc-hash 1.1.0",
- "spirv",
- "thiserror",
- "unicode-ident",
+ "wasm-bindgen",
+ "windows-link",
]
[[package]]
-name = "naga-types"
-version = "30.0.1"
+name = "clang-sys"
+version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "590afbf58a6f4f62873cd5cff4468061844bafa1cdf399cc954537c22d768d49"
+checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
dependencies = [
- "hashbrown 0.17.1",
- "indexmap",
- "rustc-hash 1.1.0",
- "thiserror",
+ "glob",
+ "libc",
+ "libloading",
]
[[package]]
-name = "ndk-sys"
-version = "0.6.0+11769913"
+name = "clap"
+version = "4.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
dependencies = [
- "jni-sys 0.3.1",
+ "clap_builder",
+ "clap_derive",
]
[[package]]
-name = "nom"
-version = "7.1.3"
+name = "clap_builder"
+version = "4.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
+checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
dependencies = [
- "memchr",
- "minimal-lexical",
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
]
[[package]]
-name = "num-traits"
-version = "0.2.19"
+name = "clap_derive"
+version = "4.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061"
dependencies = [
- "autocfg",
- "libm",
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
]
[[package]]
-name = "objc2"
-version = "0.6.4"
+name = "clap_lex"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
+
+[[package]]
+name = "clipboard-win"
+version = "5.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"
dependencies = [
- "objc2-encode",
+ "error-code",
]
[[package]]
-name = "objc2-core-foundation"
-version = "0.3.2"
+name = "clru"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+checksum = "197fd99cb113a8d5d9b6376f3aa817f32c1078f2343b714fff7d2ca44fdf67d5"
dependencies = [
- "bitflags",
- "dispatch2",
- "objc2",
+ "hashbrown 0.16.1",
]
[[package]]
-name = "objc2-core-graphics"
-version = "0.3.2"
+name = "codespan-reporting"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"
dependencies = [
- "dispatch2",
- "objc2",
- "objc2-core-foundation",
- "objc2-io-surface",
+ "serde",
+ "termcolor",
+ "unicode-width",
]
[[package]]
-name = "objc2-encode"
-version = "4.1.0"
+name = "color_quant"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
[[package]]
-name = "objc2-foundation"
-version = "0.3.2"
+name = "colorchoice"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
-dependencies = [
- "bitflags",
- "objc2",
- "objc2-core-foundation",
-]
+checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
[[package]]
-name = "objc2-io-surface"
-version = "0.3.2"
+name = "combine"
+version = "4.6.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e"
dependencies = [
- "bitflags",
- "objc2",
- "objc2-core-foundation",
+ "bytes",
+ "memchr",
]
[[package]]
-name = "objc2-metal"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"
+name = "concat"
+version = "0.2.0"
dependencies = [
- "bitflags",
- "block2",
- "objc2",
- "objc2-foundation",
+ "slint",
+ "slint-build",
]
[[package]]
-name = "objc2-quartz-core"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+name = "concat-cli"
+version = "0.2.0"
dependencies = [
- "bitflags",
- "objc2",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation",
- "objc2-metal",
+ "clap",
+ "concat-core",
+ "concat-media",
+ "concat-render",
]
[[package]]
-name = "once_cell"
-version = "1.21.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+name = "concat-core"
+version = "0.2.0"
[[package]]
-name = "once_cell_polyfill"
-version = "1.70.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+name = "concat-export"
+version = "0.2.0"
+dependencies = [
+ "concat-core",
+ "concat-media",
+ "concat-project",
+ "concat-render",
+ "serde",
+ "ts-rs",
+]
[[package]]
-name = "ordered-float"
-version = "5.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0"
+name = "concat-media"
+version = "0.2.0"
dependencies = [
- "num-traits",
+ "concat-core",
+ "rusty_ffmpeg",
+ "serde_json",
+ "thiserror 2.0.20",
]
[[package]]
-name = "parking_lot"
-version = "0.12.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+name = "concat-project"
+version = "0.2.0"
dependencies = [
- "lock_api",
- "parking_lot_core",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+ "ts-rs",
]
[[package]]
-name = "parking_lot_core"
-version = "0.9.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+name = "concat-render"
+version = "0.2.0"
dependencies = [
- "cfg-if",
- "libc",
- "redox_syscall",
- "smallvec",
- "windows-link",
+ "concat-core",
+ "pollster",
+ "wgpu 30.0.1",
]
[[package]]
-name = "pin-project-lite"
-version = "0.2.17"
+name = "concurrent-queue"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
+dependencies = [
+ "crossbeam-utils",
+]
[[package]]
-name = "pkg-config"
-version = "0.3.34"
+name = "const-field-offset"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+checksum = "d535c69e75b4e3c69e17205b5b37a91936c54086cecd339b70071500786acb9c"
+dependencies = [
+ "const-field-offset-macro",
+ "field-offset",
+]
[[package]]
-name = "pollster"
-version = "0.4.0"
+name = "const-field-offset-macro"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
+checksum = "93d5848843a221ac268cfdd6bfd14e68d5d3dfa79d52c880aafab93f9517fb74"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
+]
[[package]]
-name = "portable-atomic"
-version = "1.15.0"
+name = "convert_case"
+version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9"
+dependencies = [
+ "unicode-segmentation",
+]
[[package]]
-name = "portable-atomic-util"
-version = "0.2.7"
+name = "copypasta"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
+checksum = "3e6811e17f81fe246ef2bc553f76b6ee6ab41a694845df1d37e52a92b7bbd38a"
dependencies = [
- "portable-atomic",
+ "clipboard-win",
+ "objc2 0.5.2",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+ "smithay-clipboard",
+ "x11-clipboard",
]
[[package]]
-name = "presser"
-version = "0.3.1"
+name = "core-foundation"
+version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
[[package]]
-name = "prettyplease"
-version = "0.2.37"
+name = "core-foundation-sys"
+version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
-dependencies = [
- "proc-macro2",
- "syn 2.0.119",
-]
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
-name = "proc-macro2"
-version = "1.0.107"
+name = "core-graphics"
+version = "0.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
dependencies = [
- "unicode-ident",
+ "bitflags 1.3.2",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types",
+ "libc",
]
[[package]]
-name = "profiling"
-version = "1.0.18"
+name = "core-graphics-types"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5"
+checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation",
+ "libc",
+]
[[package]]
-name = "quote"
-version = "1.0.47"
+name = "core_maths"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30"
dependencies = [
- "proc-macro2",
+ "libm",
]
[[package]]
-name = "range-alloc"
-version = "0.1.5"
+name = "countme"
+version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08"
+checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636"
[[package]]
-name = "raw-window-handle"
-version = "0.6.2"
+name = "crc32fast"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550"
+dependencies = [
+ "cfg-if",
+]
[[package]]
-name = "raw-window-metal"
-version = "1.1.0"
+name = "critical-section"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135"
-dependencies = [
- "objc2",
- "objc2-core-foundation",
- "objc2-foundation",
- "objc2-quartz-core",
-]
+checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"
[[package]]
-name = "redox_syscall"
-version = "0.5.18"
+name = "crossbeam-channel"
+version = "0.5.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e"
dependencies = [
- "bitflags",
+ "crossbeam-utils",
]
[[package]]
-name = "regex"
-version = "1.13.1"
+name = "crossbeam-deque"
+version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
dependencies = [
- "aho-corasick",
- "memchr",
- "regex-automata",
- "regex-syntax",
+ "crossbeam-epoch",
+ "crossbeam-utils",
]
[[package]]
-name = "regex-automata"
-version = "0.4.18"
+name = "crossbeam-epoch"
+version = "0.9.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
dependencies = [
- "aho-corasick",
- "memchr",
- "regex-syntax",
+ "crossbeam-utils",
]
[[package]]
-name = "regex-syntax"
-version = "0.8.11"
+name = "crossbeam-utils"
+version = "0.8.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
[[package]]
-name = "renderdoc-sys"
-version = "1.1.0"
+name = "crunchy"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
+checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
-name = "rustc-hash"
-version = "1.1.0"
+name = "ctor"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
+checksum = "83cf0d42651b16c6dfe68685716d18480d18a9c39c62d76e8cf3eb6ed5d8bcbf"
+dependencies = [
+ "dtor",
+]
[[package]]
-name = "rustc-hash"
-version = "2.1.3"
+name = "cursor-icon"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
[[package]]
-name = "rustversion"
-version = "1.0.23"
+name = "data-url"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
[[package]]
-name = "rusty_ffmpeg"
-version = "0.17.0+ffmpeg.8.1"
+name = "derive_more"
+version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2af9fcc780549d620ddedd4d9f26d62c523f221c0db882ea75e8a5ffe2fff9a"
+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"
dependencies = [
- "bindgen",
- "camino",
- "once_cell",
- "pkg-config",
+ "derive_more-impl",
]
[[package]]
-name = "scopeguard"
-version = "1.2.0"
+name = "derive_more-impl"
+version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
+dependencies = [
+ "convert_case",
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "syn 2.0.119",
+ "unicode-xid",
+]
[[package]]
-name = "serde"
-version = "1.0.229"
+name = "derive_utils"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+checksum = "dc05a5d33db20c784f873e84934ad94bb209a090987ac5f62fede2c178234f23"
dependencies = [
- "serde_core",
- "serde_derive",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
]
[[package]]
-name = "serde_core"
-version = "1.0.229"
+name = "dispatch"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
+
+[[package]]
+name = "dispatch2"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
dependencies = [
- "serde_derive",
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
]
[[package]]
-name = "serde_derive"
-version = "1.0.229"
+name = "displaydoc"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
@@ -981,624 +1271,5777 @@ dependencies = [
]
[[package]]
-name = "serde_json"
-version = "1.0.151"
+name = "dlib"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"
dependencies = [
- "itoa",
- "memchr",
- "serde",
- "serde_core",
- "zmij",
+ "libloading",
]
[[package]]
-name = "shlex"
-version = "1.3.0"
+name = "document-features"
+version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
+dependencies = [
+ "litrs",
+]
[[package]]
-name = "slab"
-version = "0.4.12"
+name = "downcast-rs"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
[[package]]
-name = "slotmap"
-version = "1.1.1"
+name = "dpi"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"
-dependencies = [
- "version_check",
-]
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
[[package]]
-name = "smallvec"
-version = "1.15.2"
+name = "drm"
+version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
+checksum = "80bc8c5c6c2941f70a55c15f8d9f00f9710ebda3ffda98075f996a0e6c92756f"
+dependencies = [
+ "bitflags 2.13.1",
+ "bytemuck",
+ "drm-ffi",
+ "drm-fourcc",
+ "libc",
+ "rustix 0.38.44",
+]
[[package]]
-name = "spirv"
-version = "0.4.0+sdk-1.4.341.0"
+name = "drm-ffi"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f"
+checksum = "51a91c9b32ac4e8105dec255e849e0d66e27d7c34d184364fb93e469db08f690"
dependencies = [
- "bitflags",
+ "drm-sys",
+ "rustix 1.1.4",
]
[[package]]
-name = "static_assertions"
-version = "1.1.0"
+name = "drm-fourcc"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4"
[[package]]
-name = "strsim"
-version = "0.11.1"
+name = "drm-sys"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+checksum = "ecc8e1361066d91f5ffccff060a3c3be9c3ecde15be2959c1937595f7a82a9f8"
+dependencies = [
+ "libc",
+ "linux-raw-sys 0.9.4",
+]
[[package]]
-name = "syn"
-version = "2.0.119"
+name = "dtor"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
+checksum = "edf234dd1594d6dd434a8fb8cada51ddbbc593e40e4a01556a0b31c62da2775b"
[[package]]
-name = "syn"
-version = "3.0.4"
+name = "either"
+version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
+checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
[[package]]
-name = "termcolor"
-version = "1.4.1"
+name = "endi"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
-dependencies = [
- "winapi-util",
-]
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
[[package]]
-name = "thiserror"
-version = "2.0.20"
+name = "enumflags2"
+version = "0.7.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
dependencies = [
- "thiserror-impl",
+ "enumflags2_derive",
+ "serde",
]
[[package]]
-name = "thiserror-impl"
-version = "2.0.20"
+name = "enumflags2_derive"
+version = "0.7.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 2.0.119",
]
[[package]]
-name = "ts-rs"
-version = "12.0.1"
+name = "equator"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8"
+checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc"
dependencies = [
- "thiserror",
- "ts-rs-macros",
+ "equator-macro",
]
[[package]]
-name = "ts-rs-macros"
-version = "12.0.1"
+name = "equator-macro"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa"
+checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.119",
- "termcolor",
]
[[package]]
-name = "unicode-ident"
-version = "1.0.24"
+name = "equivalent"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
-name = "unicode-width"
-version = "0.2.2"
+name = "errno"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
[[package]]
-name = "utf8parse"
-version = "0.2.2"
+name = "error-code"
+version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7"
[[package]]
-name = "version_check"
-version = "0.9.5"
+name = "euclid"
+version = "0.22.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06"
+dependencies = [
+ "num-traits",
+]
[[package]]
-name = "wasm-bindgen"
-version = "0.2.127"
+name = "event-listener"
+version = "5.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70"
+checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
dependencies = [
- "cfg-if",
- "once_cell",
- "rustversion",
- "wasm-bindgen-macro",
- "wasm-bindgen-shared",
+ "parking",
+ "pin-project-lite",
]
[[package]]
-name = "wasm-bindgen-futures"
-version = "0.4.77"
+name = "event-listener-strategy"
+version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950"
+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
dependencies = [
- "js-sys",
- "wasm-bindgen",
+ "event-listener",
+ "pin-project-lite",
]
[[package]]
-name = "wasm-bindgen-macro"
-version = "0.2.127"
+name = "exr"
+version = "1.74.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1"
+checksum = "711fe42c9964295e01ee3fba3f9fe0e1d24b98886950d68efe81b1c76e21adf3"
dependencies = [
- "quote",
- "wasm-bindgen-macro-support",
+ "bit_field",
+ "half",
+ "lebe",
+ "miniz_oxide 0.8.9",
+ "num-complex",
+ "pulp",
+ "rayon-core",
+ "smallvec",
+ "zune-inflate",
]
[[package]]
-name = "wasm-bindgen-macro-support"
-version = "0.2.127"
+name = "fastrand"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284"
-dependencies = [
- "bumpalo",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
- "wasm-bindgen-shared",
-]
+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
[[package]]
-name = "wasm-bindgen-shared"
-version = "0.2.127"
+name = "fax"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf"
+checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
dependencies = [
- "unicode-ident",
+ "simd-adler32",
]
[[package]]
-name = "wayland-sys"
-version = "0.31.11"
+name = "femtovg"
+version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
+checksum = "f43d05da42e81724c16d34a150fb7fda53d3f786e5a94673ee526ff8602f0f6a"
dependencies = [
- "dlib",
+ "bitflags 2.13.1",
+ "bytemuck",
+ "fnv",
+ "glow",
+ "imgref",
+ "itertools 0.14.0",
"log",
- "once_cell",
- "pkg-config",
+ "rgb",
+ "slotmap",
+ "swash",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu 29.0.4",
]
[[package]]
-name = "web-sys"
-version = "0.3.104"
+name = "field-offset"
+version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30"
+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"
dependencies = [
- "js-sys",
- "wasm-bindgen",
+ "memoffset",
+ "rustc_version",
]
[[package]]
-name = "wgpu"
-version = "30.0.1"
+name = "filetime"
+version = "0.2.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "527ccdf43dd5b2e8676eed9984ce00e2bbb0a1b85b70c1969dcb6cd2eb55ab9e"
+checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"
dependencies = [
- "arrayvec",
- "bitflags",
- "bytemuck",
"cfg-if",
- "cfg_aliases",
- "document-features",
- "hashbrown 0.17.1",
- "js-sys",
- "log",
- "naga",
- "parking_lot",
- "portable-atomic",
- "profiling",
- "raw-window-handle",
- "smallvec",
- "static_assertions",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "web-sys",
- "wgpu-core",
- "wgpu-hal",
- "wgpu-types",
+ "libc",
]
[[package]]
-name = "wgpu-core"
-version = "30.0.1"
+name = "find-msvc-tools"
+version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14c018fce9b6270aa203c2fdd56f3cce996713534bd757e4ea58c8560b121f14"
+checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890"
+
+[[package]]
+name = "fixed_decimal"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "79c3c892f121fff406e5dd6b28c1b30096b95111c30701a899d4f2b18da6d1bd"
+dependencies = [
+ "displaydoc",
+ "smallvec",
+ "writeable",
+]
+
+[[package]]
+name = "flate2"
+version = "1.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide 0.9.1",
+ "zlib-rs",
+]
+
+[[package]]
+name = "float-cmp"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
+
+[[package]]
+name = "fnv"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
+[[package]]
+name = "foldhash"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+
+[[package]]
+name = "font-types"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b38ad915f6dadd993ced50848a8291a543bd41ca62bc10740d5e64e2ab4cfd7"
dependencies = [
- "arrayvec",
- "bit-set",
- "bit-vec",
- "bitflags",
"bytemuck",
- "cfg_aliases",
- "document-features",
+]
+
+[[package]]
+name = "font-types"
+version = "0.12.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e64eb721ca85a34323425f4041adc5d82704d3782d5f8f03793bc012419dce23"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "fontdb"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "457e789b3d1202543297a350643cf459f836cade38934e7a4cf6a39e7cde2905"
+dependencies = [
+ "log",
+ "slotmap",
+ "tinyvec",
+ "ttf-parser",
+]
+
+[[package]]
+name = "fontique"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "274fa4f0f0a926ae182c7c076c078cce8a38471d15e61a102a02cac984be9813"
+dependencies = [
"hashbrown 0.17.1",
- "indexmap",
+ "linebender_resource_handle",
+ "memmap2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-text",
+ "objc2-foundation 0.3.2",
+ "parlance",
+ "read-fonts 0.39.2",
+ "roxmltree",
+ "smallvec",
+ "windows",
+ "windows-core",
+ "yeslogic-fontconfig-sys",
+]
+
+[[package]]
+name = "foreign-types"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
+dependencies = [
+ "foreign-types-macros",
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-macros"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "futures"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-io",
+ "futures-sink",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
+dependencies = [
+ "futures-core",
+ "futures-sink",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-executor"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
+dependencies = [
+ "futures-core",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
+
+[[package]]
+name = "futures-task"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+
+[[package]]
+name = "futures-util"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-sink",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "gbm"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce852e998d3ca5e4a97014fb31c940dc5ef344ec7d364984525fd11e8a547e6a"
+dependencies = [
+ "bitflags 2.13.1",
+ "drm",
+ "drm-fourcc",
+ "gbm-sys",
+ "libc",
+]
+
+[[package]]
+name = "gbm-sys"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c13a5f2acc785d8fb6bf6b7ab6bfb0ef5dad4f4d97e8e70bb8e470722312f76f"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "gethostname"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8"
+dependencies = [
+ "rustix 1.1.4",
+ "windows-link",
+]
+
+[[package]]
+name = "getopts"
+version = "0.2.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
+dependencies = [
+ "unicode-width",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 5.3.0",
+ "wasip2",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 6.0.0",
+]
+
+[[package]]
+name = "gif"
+version = "0.14.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159"
+dependencies = [
+ "color_quant",
+ "weezl",
+]
+
+[[package]]
+name = "gl_generator"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d"
+dependencies = [
+ "khronos_api",
"log",
- "naga",
- "naga-types",
+ "xml-rs",
+]
+
+[[package]]
+name = "glob"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+
+[[package]]
+name = "glow"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5"
+dependencies = [
+ "js-sys",
+ "slotmap",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "glutin"
+version = "0.32.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325"
+dependencies = [
+ "bitflags 2.13.1",
+ "cfg_aliases",
+ "cgl",
+ "dispatch2",
+ "glutin_egl_sys",
+ "glutin_glx_sys",
+ "glutin_wgl_sys",
+ "libloading",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
"once_cell",
- "parking_lot",
- "portable-atomic",
- "profiling",
"raw-window-handle",
- "rustc-hash 1.1.0",
- "smallvec",
- "thiserror",
- "wgpu-core-deps-apple",
- "wgpu-core-deps-emscripten",
- "wgpu-core-deps-windows-linux-android",
- "wgpu-hal",
- "wgpu-naga-bridge",
- "wgpu-types",
+ "wayland-sys",
+ "windows-sys 0.52.0",
+ "x11-dl",
+]
+
+[[package]]
+name = "glutin-winit"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f"
+dependencies = [
+ "cfg_aliases",
+ "glutin",
+ "raw-window-handle",
+ "winit",
]
[[package]]
-name = "wgpu-core-deps-apple"
-version = "30.0.1"
+name = "glutin_egl_sys"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2"
+dependencies = [
+ "gl_generator",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "glutin_glx_sys"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185"
+dependencies = [
+ "gl_generator",
+ "x11-dl",
+]
+
+[[package]]
+name = "glutin_wgl_sys"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e"
+dependencies = [
+ "gl_generator",
+]
+
+[[package]]
+name = "gpu-allocator"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795"
+dependencies = [
+ "ash",
+ "hashbrown 0.16.1",
+ "log",
+ "presser",
+ "thiserror 2.0.20",
+ "windows",
+]
+
+[[package]]
+name = "gpu-descriptor"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
+dependencies = [
+ "bitflags 2.13.1",
+ "gpu-descriptor-types",
+ "hashbrown 0.15.5",
+]
+
+[[package]]
+name = "gpu-descriptor-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
+dependencies = [
+ "bitflags 2.13.1",
+]
+
+[[package]]
+name = "grid"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b40ca9252762c466af32d0b1002e91e4e1bc5398f77455e55474deb466355ff5"
+
+[[package]]
+name = "half"
+version = "2.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
+dependencies = [
+ "cfg-if",
+ "crunchy",
+ "num-traits",
+ "zerocopy",
+]
+
+[[package]]
+name = "harfrust"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d12c7c642d4ce8c2e784b4751a6634bd89583912265add4a679a8882d123fbcd"
+dependencies = [
+ "bitflags 2.13.1",
+ "bytemuck",
+ "read-fonts 0.39.2",
+ "smallvec",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.14.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
+
+[[package]]
+name = "hashbrown"
+version = "0.15.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+dependencies = [
+ "foldhash 0.1.5",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash 0.2.0",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+dependencies = [
+ "foldhash 0.2.0",
+]
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hermit-abi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
+
+[[package]]
+name = "hermit-abi"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
+
+[[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
+[[package]]
+name = "hexf-parse"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
+
+[[package]]
+name = "htmlparser"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "48ce8546b993eaf241d69ded33b1be6d205dd9857ec879d9d18bd05d3676e144"
+
+[[package]]
+name = "i-slint-backend-linuxkms"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68e76f2b13846ca54bba6b8eb3b5454b26879ad987396d0a2d8abedc31a6c469"
+dependencies = [
+ "bytemuck",
+ "calloop 0.14.4",
+ "cfg_aliases",
+ "drm",
+ "gbm",
+ "glutin",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-renderer-femtovg",
+ "i-slint-renderer-skia",
+ "i-slint-renderer-software",
+ "input",
+ "memmap2",
+ "nix",
+ "raw-window-handle",
+ "xkbcommon",
+]
+
+[[package]]
+name = "i-slint-backend-selector"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2247a4590a02a466b2f4916cc789dfe66247f6af826f00eb84a2685259a45c1c"
+dependencies = [
+ "cfg-if",
+ "cfg_aliases",
+ "i-slint-backend-linuxkms",
+ "i-slint-backend-testing",
+ "i-slint-backend-winit",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-core-macros",
+ "i-slint-renderer-femtovg",
+ "i-slint-renderer-skia",
+]
+
+[[package]]
+name = "i-slint-backend-testing"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521e901e3d47ab829c0ef500c63155776208707cd93259e6a7803ed627fa2786"
+dependencies = [
+ "cfg_aliases",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-renderer-skia",
+ "i-slint-renderer-software",
+ "vtable",
+]
+
+[[package]]
+name = "i-slint-backend-winit"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a27c7e8f53418d3017362465367b6612b6e439a68097d627d1b91c94b885f0a6"
+dependencies = [
+ "accesskit",
+ "accesskit_winit",
+ "block2 0.6.2",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "copypasta",
+ "derive_more",
+ "futures",
+ "glutin",
+ "glutin-winit",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-core-macros",
+ "i-slint-renderer-femtovg",
+ "i-slint-renderer-skia",
+ "i-slint-renderer-software",
+ "imgref",
+ "lyon_path",
+ "muda",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "objc2-ui-kit 0.3.2",
+ "pin-weak",
+ "raw-window-handle",
+ "rgb",
+ "scoped-tls-hkt",
+ "scopeguard",
+ "softbuffer",
+ "strum",
+ "vtable",
+ "wasm-bindgen",
+ "web-sys",
+ "webbrowser",
+ "windows",
+ "winit",
+ "zbus",
+]
+
+[[package]]
+name = "i-slint-common"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52e63f8ea55ba21e44567ae67d2b01a4f5d09bb1fab693b1e6c79d96bef9e456"
+dependencies = [
+ "derive_more",
+ "fontique",
+ "htmlparser",
+ "icu_decimal",
+ "icu_locale_core",
+ "icu_provider",
+ "pulldown-cmark",
+ "resvg",
+ "skrifa 0.42.1",
+]
+
+[[package]]
+name = "i-slint-compiler"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "45ea275b15a425c7f2f77481151e1f5f8f1ea83feae580273090ef6b9e192218"
+dependencies = [
+ "annotate-snippets",
+ "by_address",
+ "data-url",
+ "derive_more",
+ "i-slint-common",
+ "icu_normalizer",
+ "image",
+ "itertools 0.14.0",
+ "linked_hash_set",
+ "lyon_extra",
+ "lyon_path",
+ "num_enum",
+ "proc-macro2",
+ "quote",
+ "rayon",
+ "resvg",
+ "rowan",
+ "rspolib",
+ "skrifa 0.42.1",
+ "smol_str 0.3.6",
+ "strum",
+ "swash",
+ "typed-index-collections",
+ "unicode-segmentation",
+ "url",
+]
+
+[[package]]
+name = "i-slint-core"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e407dc2bd5385dcbdd9c1cf927213d2e4bacda667545abf8839c60f8290f754"
+dependencies = [
+ "async-channel",
+ "auto_enums",
+ "bitflags 2.13.1",
+ "cfg-if",
+ "chrono",
+ "clru",
+ "const-field-offset",
+ "derive_more",
+ "euclid",
+ "i-slint-common",
+ "i-slint-core-macros",
+ "icu_normalizer",
+ "image",
+ "ksni",
+ "lyon_algorithms",
+ "lyon_extra",
+ "lyon_geom",
+ "lyon_path",
+ "num-traits",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "once_cell",
+ "parley",
+ "pin-project",
+ "pin-weak",
+ "portable-atomic",
+ "raw-window-handle",
+ "resvg",
+ "rgb",
+ "scopeguard",
+ "skrifa 0.42.1",
+ "slab",
+ "strum",
+ "swash",
+ "sys-locale",
+ "taffy",
+ "unicode-linebreak",
+ "unicode-script",
+ "unicode-segmentation",
+ "vtable",
+ "wasm-bindgen",
+ "web-sys",
+ "web-time",
+ "wgpu 29.0.4",
+ "windows",
+]
+
+[[package]]
+name = "i-slint-core-macros"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a842640da4c4d0909d25cc5a51e1f9cde02bd48f7fdfa94df10d595d4e3c80a"
+dependencies = [
+ "quote",
+ "serde_json",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "i-slint-renderer-femtovg"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78d0d99a18d66738b684758fe8460743a0aa0f64a96e05940942231a340085b1"
+dependencies = [
+ "cfg-if",
+ "const-field-offset",
+ "derive_more",
+ "femtovg",
+ "glow",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-core-macros",
+ "imgref",
+ "lyon_path",
+ "pin-weak",
+ "rgb",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu 29.0.4",
+]
+
+[[package]]
+name = "i-slint-renderer-skia"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b6eed7f3f0a9a3d3ca6e8b9d4ca233371d989351fdb2a7ab88ec368b99e7b57"
+dependencies = [
+ "ash",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "clru",
+ "const-field-offset",
+ "derive_more",
+ "glow",
+ "glutin",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-core-macros",
+ "lyon_path",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "pin-weak",
+ "raw-window-handle",
+ "raw-window-metal",
+ "read-fonts 0.39.2",
+ "scoped-tls-hkt",
+ "skia-safe",
+ "softbuffer",
+ "spin_on",
+ "unicode-segmentation",
+ "vtable",
+ "wgpu 29.0.4",
+ "windows",
+ "windows-core",
+ "write-fonts",
+]
+
+[[package]]
+name = "i-slint-renderer-software"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73496f164f8e471877c35e0fadb996dcc674922712abd9c2be2cbe80c58859bd"
+dependencies = [
+ "bytemuck",
+ "clru",
+ "derive_more",
+ "euclid",
+ "i-slint-common",
+ "i-slint-core",
+ "integer-sqrt",
+ "lyon_path",
+ "num-traits",
+ "skrifa 0.42.1",
+ "swash",
+ "zeno",
+]
+
+[[package]]
+name = "iana-time-zone"
+version = "0.1.65"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
+dependencies = [
+ "android_system_properties",
+ "core-foundation-sys",
+ "iana-time-zone-haiku",
+ "js-sys",
+ "log",
+ "wasm-bindgen",
+ "windows-core",
+]
+
+[[package]]
+name = "iana-time-zone-haiku"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "icu_collections"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
+dependencies = [
+ "displaydoc",
+ "potential_utf",
+ "utf8_iter",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_decimal"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9eb8f655bba2d0c0459e43a5b0e6cd3cd388109898fb3d85d048165e8b0abd08"
+dependencies = [
+ "displaydoc",
+ "fixed_decimal",
+ "icu_decimal_data",
+ "icu_locale_core",
+ "icu_locale_fallback",
+ "icu_plurals",
+ "icu_provider",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_decimal_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4c887fc7d4c297cf3f9436864af9e3dba7f8be9415a6c2a7f392f3b1636298c"
+
+[[package]]
+name = "icu_locale_core"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "serde",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_fallback"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "251af8e57c9400e3eb58242fe5b8b1152b2a64fdf4cf632f923c38ccee6f2fa9"
+dependencies = [
+ "icu_locale_core",
+ "icu_locale_fallback_data",
+ "icu_provider",
+ "potential_utf",
+ "tinystr",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_fallback_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "decf2a22ec8fa68f1a0c1129a3f8583f8f8bc24e8b9ccbe98ead99f62a4dc3a8"
+
+[[package]]
+name = "icu_normalizer"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
+dependencies = [
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
+
+[[package]]
+name = "icu_plurals"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e475e6766ef87b1d3c1f97be6363995b0bfaeddbc789671615df598a97ff0593"
+dependencies = [
+ "fixed_decimal",
+ "icu_locale_fallback",
+ "icu_plurals_data",
+ "icu_provider",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_plurals_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1251aa39a95e1333888e499b1263e1c196447a28948acf5bdabd82c046f153bf"
+
+[[package]]
+name = "icu_properties"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_properties_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
+
+[[package]]
+name = "icu_provider"
+version = "2.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "serde",
+ "stable_deref_trait",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_segmenter"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82d07aafccd67af15d02512a6adf5896fbc5ed00f2e99b471d2efa14016db3db"
+dependencies = [
+ "icu_collections",
+ "icu_locale_fallback",
+ "icu_provider",
+ "icu_segmenter_data",
+ "potential_utf",
+ "smallvec",
+ "utf8_iter",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_segmenter_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae293c039020f9ec10710af98d29ce6aa2051486638b49c9a6409f3b4a9e98ad"
+
+[[package]]
+name = "idna"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+dependencies = [
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
+]
+
+[[package]]
+name = "idna_adapter"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
+dependencies = [
+ "icu_normalizer",
+ "icu_properties",
+]
+
+[[package]]
+name = "image"
+version = "0.25.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"
+dependencies = [
+ "bytemuck",
+ "byteorder-lite",
+ "color_quant",
+ "exr",
+ "gif",
+ "image-webp",
+ "moxcms",
+ "num-traits",
+ "png",
+ "qoi",
+ "ravif",
+ "rayon",
+ "rgb",
+ "tiff",
+ "zune-core",
+ "zune-jpeg",
+]
+
+[[package]]
+name = "image-webp"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3"
+dependencies = [
+ "byteorder-lite",
+ "quick-error",
+]
+
+[[package]]
+name = "imagesize"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09e54e57b4c48b40f7aec75635392b12b3421fa26fe8b4332e63138ed278459c"
+
+[[package]]
+name = "imgref"
+version = "1.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e44b0a4eaa4c82f441d50a963f2d5f05a787240aeee097597033e72accfd22f"
+
+[[package]]
+name = "indexmap"
+version = "2.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
+dependencies = [
+ "equivalent",
+ "hashbrown 0.17.1",
+]
+
+[[package]]
+name = "input"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9793345a65d71317763a33066b5d8351f8760dde8d4930fe9e39b5f14a7959d"
+dependencies = [
+ "bitflags 2.13.1",
+ "input-sys",
+ "libc",
+ "log",
+ "udev",
+]
+
+[[package]]
+name = "input-sys"
+version = "1.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36eee07d8e02bd95bf52b2e642cf13d33701b94c6e4b04fbf1d1fb07e9cb19e7"
+
+[[package]]
+name = "integer-sqrt"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "interpolate_name"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "io-lifetimes"
+version = "1.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
+dependencies = [
+ "hermit-abi 0.3.9",
+ "libc",
+ "windows-sys 0.48.0",
+]
+
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
+
+[[package]]
+name = "itertools"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itertools"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itoa"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
+
+[[package]]
+name = "jni"
+version = "0.22.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498"
+dependencies = [
+ "cfg-if",
+ "combine",
+ "jni-macros",
+ "jni-sys 0.4.1",
+ "log",
+ "simd_cesu8",
+ "thiserror 2.0.20",
+ "walkdir",
+ "windows-link",
+]
+
+[[package]]
+name = "jni-macros"
+version = "0.22.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "simd_cesu8",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+dependencies = [
+ "jni-sys 0.4.1",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+dependencies = [
+ "jni-sys-macros",
+]
+
+[[package]]
+name = "jni-sys-macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jobserver"
+version = "0.1.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
+dependencies = [
+ "getrandom 0.4.3",
+ "libc",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.104"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "keyboard-types"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"
+dependencies = [
+ "bitflags 2.13.1",
+ "serde",
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "khronos-egl"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
+dependencies = [
+ "libc",
+ "libloading",
+ "pkg-config",
+]
+
+[[package]]
+name = "khronos_api"
+version = "3.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
+
+[[package]]
+name = "ksni"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "814b44c24cd2cb236c3b8a41c7f08237b452a8e76ecaa81f1cec40b5b678215b"
+dependencies = [
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "futures-channel",
+ "futures-lite",
+ "futures-util",
+ "pastey 0.2.3",
+ "serde",
+ "task-local",
+ "zbus",
+]
+
+[[package]]
+name = "kurbo"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b60dfc32f652b926df6192e55525b16d186c69d47876c3ead4da5cc9f8450e2"
+dependencies = [
+ "arrayvec",
+ "euclid",
+ "polycool",
+ "smallvec",
+]
+
+[[package]]
+name = "lazy_static"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
+
+[[package]]
+name = "lebe"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8"
+
+[[package]]
+name = "libc"
+version = "0.2.189"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+
+[[package]]
+name = "libfuzzer-sys"
+version = "0.4.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9fd2f41a1cba099f79a0b6b6c35656cf7c03351a7bae8ff0f28f25270f929d2"
+dependencies = [
+ "arbitrary",
+ "cc",
+]
+
+[[package]]
+name = "libloading"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
+dependencies = [
+ "cfg-if",
+ "windows-link",
+]
+
+[[package]]
+name = "libm"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
+
+[[package]]
+name = "libredox"
+version = "0.1.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d8f1ea3f21fd3405dcaf6c9b5c1630af9afc422d9073ea39c5f6d6c772e08ed"
+dependencies = [
+ "bitflags 2.13.1",
+ "libc",
+ "plain",
+ "redox_syscall 0.9.3",
+]
+
+[[package]]
+name = "libudev-sys"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "linebender_resource_handle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
+
+[[package]]
+name = "linked-hash-map"
+version = "0.5.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
+
+[[package]]
+name = "linked_hash_set"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "984fb35d06508d1e69fc91050cceba9c0b748f983e6739fa2c7a9237154c52c8"
+dependencies = [
+ "linked-hash-map",
+]
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
+
+[[package]]
+name = "litemap"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
+
+[[package]]
+name = "litrs"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
+
+[[package]]
+name = "loop9"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062"
+dependencies = [
+ "imgref",
+]
+
+[[package]]
+name = "lyon_algorithms"
+version = "1.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdfa8785f95e57914ddb35e3b59994aeba6f5e79e9cfd03da1c269f010f36009"
+dependencies = [
+ "lyon_path",
+ "num-traits",
+]
+
+[[package]]
+name = "lyon_extra"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7755f08423275157ad1680aaecc9ccb7e0cc633da3240fea2d1522935cc15c72"
+dependencies = [
+ "lyon_path",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "lyon_geom"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4336502e29e32af93cf2dad2214ed6003c17ceb5bd499df77b1de663b9042b92"
+dependencies = [
+ "arrayvec",
+ "euclid",
+ "num-traits",
+]
+
+[[package]]
+name = "lyon_path"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e"
+dependencies = [
+ "lyon_geom",
+ "num-traits",
+]
+
+[[package]]
+name = "maybe-rayon"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"
+dependencies = [
+ "cfg-if",
+ "rayon",
+]
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "memmap2"
+version = "0.9.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "memoffset"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "minimal-lexical"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "miniz_oxide"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "moxcms"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
+[[package]]
+name = "muda"
+version = "0.19.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "keyboard-types",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "once_cell",
+ "png",
+ "thiserror 2.0.20",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "naga"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2bf919621e7975acb27d881bae2fb993e0d45c8e0446e85e6272971e00dc8df"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.9.1",
+ "bitflags 2.13.1",
+ "cfg-if",
+ "cfg_aliases",
+ "codespan-reporting",
+ "half",
+ "hashbrown 0.16.1",
+ "hexf-parse",
+ "indexmap",
+ "libm",
+ "log",
+ "num-traits",
+ "once_cell",
+ "rustc-hash 1.1.0",
+ "spirv",
+ "thiserror 2.0.20",
+ "unicode-ident",
+]
+
+[[package]]
+name = "naga"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a616d2fb8c89516ac2723a581f69d6c18576046bed761bd6b305e5618e6ae130"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.10.0",
+ "bitflags 2.13.1",
+ "cfg-if",
+ "cfg_aliases",
+ "codespan-reporting",
+ "half",
+ "hashbrown 0.17.1",
+ "indexmap",
+ "libm",
+ "log",
+ "naga-types",
+ "num-traits",
+ "once_cell",
+ "rustc-hash 1.1.0",
+ "spirv",
+ "thiserror 2.0.20",
+ "unicode-ident",
+]
+
+[[package]]
+name = "naga-types"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "590afbf58a6f4f62873cd5cff4468061844bafa1cdf399cc954537c22d768d49"
+dependencies = [
+ "hashbrown 0.17.1",
+ "indexmap",
+ "rustc-hash 1.1.0",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "natord"
+version = "1.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c"
+
+[[package]]
+name = "ndk"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+dependencies = [
+ "bitflags 2.13.1",
+ "jni-sys 0.3.1",
+ "log",
+ "ndk-sys",
+ "num_enum",
+ "raw-window-handle",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
+[[package]]
+name = "ndk-sys"
+version = "0.6.0+11769913"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+dependencies = [
+ "jni-sys 0.3.1",
+]
+
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+
+[[package]]
+name = "nix"
+version = "0.31.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"
+dependencies = [
+ "bitflags 2.13.1",
+ "cfg-if",
+ "cfg_aliases",
+ "libc",
+]
+
+[[package]]
+name = "no_std_io2"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "418abd1b6d34fbf6cae440dc874771b0525a604428704c76e48b29a5e67b8003"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "nom"
+version = "7.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
+dependencies = [
+ "memchr",
+ "minimal-lexical",
+]
+
+[[package]]
+name = "nom"
+version = "8.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "noop_proc_macro"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"
+
+[[package]]
+name = "num-bigint"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-complex"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
+dependencies = [
+ "bytemuck",
+ "num-traits",
+]
+
+[[package]]
+name = "num-derive"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "num-integer"
+version = "0.1.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-rational"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
+dependencies = [
+ "num-bigint",
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+ "libm",
+]
+
+[[package]]
+name = "num_enum"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
+dependencies = [
+ "num_enum_derive",
+ "rustversion",
+]
+
+[[package]]
+name = "num_enum_derive"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
+dependencies = [
+ "proc-macro-crate",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "objc-sys"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
+
+[[package]]
+name = "objc2"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"
+dependencies = [
+ "objc-sys",
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+dependencies = [
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "libc",
+ "objc2 0.5.2",
+ "objc2-core-data 0.2.2",
+ "objc2-core-image 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-quartz-core 0.2.2",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "libc",
+ "objc2 0.6.4",
+ "objc2-cloud-kit 0.3.2",
+ "objc2-core-data 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-core-image 0.3.2",
+ "objc2-core-text",
+ "objc2-core-video",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-core-location",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-contacts"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+dependencies = [
+ "bitflags 2.13.1",
+ "dispatch2",
+ "objc2 0.6.4",
+]
+
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.13.1",
+ "dispatch2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+ "objc2-metal 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-contacts",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-core-video"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-foundation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "dispatch",
+ "libc",
+ "objc2 0.5.2",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-link-presentation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+ "objc2-metal 0.2.2",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+]
+
+[[package]]
+name = "objc2-symbols"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
+dependencies = [
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-cloud-kit 0.2.2",
+ "objc2-core-data 0.2.2",
+ "objc2-core-image 0.2.2",
+ "objc2-core-location",
+ "objc2-foundation 0.2.2",
+ "objc2-link-presentation",
+ "objc2-quartz-core 0.2.2",
+ "objc2-symbols",
+ "objc2-uniform-type-identifiers",
+ "objc2-user-notifications",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
+[[package]]
+name = "objc2-uniform-type-identifiers"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-core-location",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+dependencies = [
+ "critical-section",
+ "portable-atomic",
+]
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+
+[[package]]
+name = "orbclient"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747"
+dependencies = [
+ "libc",
+ "libredox",
+]
+
+[[package]]
+name = "ordered-float"
+version = "5.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "owned_ttf_parser"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b"
+dependencies = [
+ "ttf-parser",
+]
+
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall 0.5.18",
+ "smallvec",
+ "windows-link",
+]
+
+[[package]]
+name = "parlance"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b6937eda350acc1a5d05872c3cbf99fe78619c269096e2be3d4a350058639d5"
+
+[[package]]
+name = "parley"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1cfcf399c774719fb1fa51bc6b91e86bdf003b03202a0902f1827ba6750746"
+dependencies = [
+ "fontique",
+ "harfrust",
+ "hashbrown 0.17.1",
+ "icu_normalizer",
+ "icu_properties",
+ "icu_segmenter",
+ "linebender_resource_handle",
+ "parlance",
+ "parley_data",
+ "skrifa 0.42.1",
+]
+
+[[package]]
+name = "parley_data"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d1d3755e2cc12c0625b0cd2f2773c6a37dd11d1531940c945ade4aeb78f2b145"
+dependencies = [
+ "icu_properties",
+]
+
+[[package]]
+name = "paste"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+
+[[package]]
+name = "pastey"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "35fb2e5f958ec131621fdd531e9fc186ed768cbe395337403ae56c17a74c68ec"
+
+[[package]]
+name = "pastey"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
+
+[[package]]
+name = "percent-encoding"
+version = "2.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+
+[[package]]
+name = "phf"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+dependencies = [
+ "phf_macros",
+ "phf_shared",
+ "serde",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+dependencies = [
+ "fastrand",
+ "phf_shared",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "pico-args"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315"
+
+[[package]]
+name = "pin-project"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924"
+dependencies = [
+ "pin-project-internal",
+]
+
+[[package]]
+name = "pin-project-internal"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "pin-utils"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+
+[[package]]
+name = "pin-weak"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b330c9d1b92dfe68442ca20b009c717d5f0b1e3cf4965e62f704c3c6e95a1305"
+
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plain"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
+
+[[package]]
+name = "png"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+dependencies = [
+ "bitflags 2.13.1",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "polling"
+version = "3.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+dependencies = [
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi 0.5.3",
+ "pin-project-lite",
+ "rustix 1.1.4",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "pollster"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
+
+[[package]]
+name = "polycool"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6"
+dependencies = [
+ "arrayvec",
+]
+
+[[package]]
+name = "portable-atomic"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+dependencies = [
+ "critical-section",
+]
+
+[[package]]
+name = "portable-atomic-util"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+dependencies = [
+ "serde_core",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
+dependencies = [
+ "zerocopy",
+]
+
+[[package]]
+name = "presser"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
+
+[[package]]
+name = "prettyplease"
+version = "0.2.37"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
+dependencies = [
+ "proc-macro2",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
+dependencies = [
+ "toml_edit",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "profiling"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5"
+dependencies = [
+ "profiling-procmacros",
+]
+
+[[package]]
+name = "profiling-procmacros"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4488a4a36b9a4ba6b9334a32a39971f77c1436ec82c38707bce707699cc3bbcb"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "pulldown-cmark"
+version = "0.13.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e"
+dependencies = [
+ "bitflags 2.13.1",
+ "getopts",
+ "memchr",
+ "pulldown-cmark-escape",
+ "unicase",
+]
+
+[[package]]
+name = "pulldown-cmark-escape"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"
+
+[[package]]
+name = "pulp"
+version = "0.22.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "046aa45b989642ec2e4717c8e72d677b13edd831a4d3b6cf37d9a3e54912496a"
+dependencies = [
+ "bytemuck",
+ "cfg-if",
+ "libm",
+ "num-complex",
+ "paste",
+ "pulp-wasm-simd-flag",
+ "raw-cpuid",
+ "reborrow",
+ "version_check",
+]
+
+[[package]]
+name = "pulp-wasm-simd-flag"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d8f70e07b9c3962945a74e59ca1c511bba65b6419468acc217c457d93f3c740"
+
+[[package]]
+name = "pxfm"
+version = "0.1.30"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
+
+[[package]]
+name = "qoi"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "quick-error"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
+
+[[package]]
+name = "quick-xml"
+version = "0.41.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
+[[package]]
+name = "r-efi"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "rand"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
+dependencies = [
+ "rand_chacha",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
+dependencies = [
+ "getrandom 0.3.4",
+]
+
+[[package]]
+name = "range-alloc"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08"
+
+[[package]]
+name = "rav1e"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43b6dd56e85d9483277cde964fd1bdb0428de4fec5ebba7540995639a21cb32b"
+dependencies = [
+ "aligned-vec",
+ "arbitrary",
+ "arg_enum_proc_macro",
+ "arrayvec",
+ "av-scenechange",
+ "av1-grain",
+ "bitstream-io",
+ "built",
+ "cfg-if",
+ "interpolate_name",
+ "itertools 0.14.0",
+ "libc",
+ "libfuzzer-sys",
+ "log",
+ "maybe-rayon",
+ "new_debug_unreachable",
+ "noop_proc_macro",
+ "num-derive",
+ "num-traits",
+ "paste",
+ "profiling",
+ "rand",
+ "rand_chacha",
+ "simd_helpers",
+ "thiserror 2.0.20",
+ "v_frame",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "ravif"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e52310197d971b0f5be7fe6b57530dcd27beb35c1b013f29d66c1ad73fbbcc45"
+dependencies = [
+ "avif-serialize",
+ "imgref",
+ "loop9",
+ "quick-error",
+ "rav1e",
+ "rayon",
+ "rgb",
+]
+
+[[package]]
+name = "raw-cpuid"
+version = "11.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "498cd0dc59d73224351ee52a95fee0f1a617a2eae0e7d9d720cc622c73a54186"
+dependencies = [
+ "bitflags 2.13.1",
+]
+
+[[package]]
+name = "raw-window-handle"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+
+[[package]]
+name = "raw-window-metal"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
+[[package]]
+name = "rayon"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
+dependencies = [
+ "either",
+ "rayon-core",
+]
+
+[[package]]
+name = "rayon-core"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
+dependencies = [
+ "crossbeam-deque",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "read-fonts"
+version = "0.39.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4ed38b89c2c77ff968c524145ad65fb010f38af5c7a224b53b81d47ac2daa81"
+dependencies = [
+ "bytemuck",
+ "font-types 0.11.3",
+]
+
+[[package]]
+name = "read-fonts"
+version = "0.41.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709"
+dependencies = [
+ "bytemuck",
+ "font-types 0.12.4",
+ "once_cell",
+]
+
+[[package]]
+name = "reborrow"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03251193000f4bd3b042892be858ee50e8b3719f2b08e5833ac4353724632430"
+
+[[package]]
+name = "redox_syscall"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
+dependencies = [
+ "bitflags 1.3.2",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.13.1",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d678d17679829e73d371e96880897e98fee2ded7acc0a50bdf8af2affa4b2fe5"
+dependencies = [
+ "bitflags 2.13.1",
+]
+
+[[package]]
+name = "regex"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-automata"
+version = "0.4.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+
+[[package]]
+name = "renderdoc-sys"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
+
+[[package]]
+name = "resvg"
+version = "0.47.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9be183ad6a216aa96f33e4c8033b0988b8b3ea6fd2359d19af5bac4643fd8e81"
+dependencies = [
+ "gif",
+ "image-webp",
+ "log",
+ "pico-args",
+ "rgb",
+ "svgtypes",
+ "tiny-skia 0.12.0",
+ "usvg",
+ "zune-jpeg",
+]
+
+[[package]]
+name = "rgb"
+version = "0.8.53"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "rowan"
+version = "0.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "417a3a9f582e349834051b8a10c8d71ca88da4211e4093528e36b9845f6b5f21"
+dependencies = [
+ "countme",
+ "hashbrown 0.14.5",
+ "rustc-hash 1.1.0",
+ "text-size",
+]
+
+[[package]]
+name = "roxmltree"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1964b10c76125c36f8afe190065a4bf9a87bf324842c05701330bba9f1cacbb"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "rspolib"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fda9a7796aff63a7b1b39ccc93fffaaf65e20042984b4843041a49ca4677535"
+dependencies = [
+ "lazy_static",
+ "natord",
+ "snafu",
+ "unicode-linebreak",
+ "unicode-width",
+]
+
+[[package]]
+name = "rustc-hash"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
+
+[[package]]
+name = "rustc-hash"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+
+[[package]]
+name = "rustc_version"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
+
+[[package]]
+name = "rustix"
+version = "0.38.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
+dependencies = [
+ "bitflags 2.13.1",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.4.15",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
+dependencies = [
+ "bitflags 2.13.1",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.12.1",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+
+[[package]]
+name = "rusty_ffmpeg"
+version = "0.17.0+ffmpeg.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2af9fcc780549d620ddedd4d9f26d62c523f221c0db882ea75e8a5ffe2fff9a"
+dependencies = [
+ "bindgen",
+ "camino",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "rustybuzz"
+version = "0.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702"
+dependencies = [
+ "bitflags 2.13.1",
+ "bytemuck",
+ "core_maths",
+ "log",
+ "smallvec",
+ "ttf-parser",
+ "unicode-bidi-mirroring",
+ "unicode-ccc",
+ "unicode-properties",
+ "unicode-script",
+]
+
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "scoped-tls"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
+
+[[package]]
+name = "scoped-tls-hkt"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e9603871ffe5df3ac39cb624790c296dbd47a400d202f56bf3e414045099524d"
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "sctk-adwaita"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec"
+dependencies = [
+ "ab_glyph",
+ "log",
+ "memmap2",
+ "smithay-client-toolkit 0.19.2",
+ "tiny-skia 0.11.4",
+]
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+
+[[package]]
+name = "serde"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.151"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+dependencies = [
+ "itoa",
+ "memchr",
+ "serde",
+ "serde_core",
+ "zmij",
+]
+
+[[package]]
+name = "serde_repr"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "shlex"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "simd-adler32"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
+
+[[package]]
+name = "simd_cesu8"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520"
+dependencies = [
+ "rustc_version",
+ "simdutf8",
+]
+
+[[package]]
+name = "simd_helpers"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6"
+dependencies = [
+ "quote",
+]
+
+[[package]]
+name = "simdutf8"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
+
+[[package]]
+name = "simplecss"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a9c6883ca9c3c7c90e888de77b7a5c849c779d25d74a1269b0218b14e8b136c"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "siphasher"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
+
+[[package]]
+name = "skia-bindings"
+version = "0.99.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e2d1c3ebd697c0cbded0145e9204a38fa6b268446051b7196d0a096414ea7f3"
+dependencies = [
+ "bindgen",
+ "cc",
+ "flate2",
+ "heck",
+ "pkg-config",
+ "regex",
+ "serde_json",
+ "tar",
+ "toml",
+]
+
+[[package]]
+name = "skia-safe"
+version = "0.99.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f512ac418a64194842dd05566320805dad1c957c521039db2486fd6368865bc"
+dependencies = [
+ "bitflags 2.13.1",
+ "skia-bindings",
+ "windows",
+]
+
+[[package]]
+name = "skrifa"
+version = "0.42.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c34617370ae968efb7161bb2beb517d9084659aae19e24b89e3db25b46e4564"
+dependencies = [
+ "bytemuck",
+ "read-fonts 0.39.2",
+]
+
+[[package]]
+name = "skrifa"
+version = "0.44.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68"
+dependencies = [
+ "bytemuck",
+ "read-fonts 0.41.0",
+]
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "slint"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce12038f57f8f3a423564b0c9301a2ab3fda4246e4cbadd6b97acf9124bdc315"
+dependencies = [
+ "const-field-offset",
+ "i-slint-backend-selector",
+ "i-slint-backend-winit",
+ "i-slint-common",
+ "i-slint-core",
+ "i-slint-core-macros",
+ "i-slint-renderer-femtovg",
+ "i-slint-renderer-skia",
+ "i-slint-renderer-software",
+ "num-traits",
+ "once_cell",
+ "pin-weak",
+ "slint-macros",
+ "unicode-segmentation",
+ "vtable",
+]
+
+[[package]]
+name = "slint-build"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76684c11441f775b10bbc7b0e6b3016a39f17efdd659ffca112f17cfd6bdaed1"
+dependencies = [
+ "derive_more",
+ "fontique",
+ "i-slint-compiler",
+ "spin_on",
+ "toml_edit",
+]
+
+[[package]]
+name = "slint-macros"
+version = "1.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f2a763e72e1e53c496f571d36327e777da1eb0d9e58fceb83890c2a83ee7223"
+dependencies = [
+ "i-slint-compiler",
+ "proc-macro2",
+ "quote",
+ "spin_on",
+]
+
+[[package]]
+name = "slotmap"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"
+dependencies = [
+ "version_check",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.15.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
+dependencies = [
+ "bitflags 2.13.1",
+ "calloop 0.13.0",
+ "calloop-wayland-source 0.3.0",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2",
+ "rustix 0.38.44",
+ "thiserror 1.0.69",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
+dependencies = [
+ "bitflags 2.13.1",
+ "calloop 0.14.4",
+ "calloop-wayland-source 0.4.1",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2",
+ "rustix 1.1.4",
+ "thiserror 2.0.20",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-experimental",
+ "wayland-protocols-misc",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-clipboard"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
+dependencies = [
+ "libc",
+ "smithay-client-toolkit 0.20.0",
+ "wayland-backend",
+]
+
+[[package]]
+name = "smol_str"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "smol_str"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4aaa7368fcf4852a4c2dd92df0cace6a71f2091ca0a23391ce7f3a31833f1523"
+dependencies = [
+ "borsh",
+ "serde_core",
+]
+
+[[package]]
+name = "snafu"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2"
+dependencies = [
+ "snafu-derive",
+]
+
+[[package]]
+name = "snafu-derive"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "softbuffer"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
+dependencies = [
+ "as-raw-xcb-connection",
+ "bytemuck",
+ "drm",
+ "fastrand",
+ "js-sys",
+ "memmap2",
+ "ndk",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "raw-window-handle",
+ "redox_syscall 0.5.18",
+ "rustix 1.1.4",
+ "tiny-xlib",
+ "tracing",
+ "wasm-bindgen",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-sys",
+ "web-sys",
+ "windows-sys 0.61.2",
+ "x11rb",
+]
+
+[[package]]
+name = "spin_on"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "076e103ed41b9864aa838287efe5f4e3a7a0362dd00671ae62a212e5e4612da2"
+dependencies = [
+ "pin-utils",
+]
+
+[[package]]
+name = "spirv"
+version = "0.4.0+sdk-1.4.341.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f"
+dependencies = [
+ "bitflags 2.13.1",
+]
+
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
+[[package]]
+name = "strict-num"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
+dependencies = [
+ "float-cmp",
+]
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "strum"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd"
+dependencies = [
+ "strum_macros",
+]
+
+[[package]]
+name = "strum_macros"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "svgtypes"
+version = "0.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "695b5790b3131dafa99b3bbfd25a216edb3d216dad9ca208d4657bfb8f2abc3d"
+dependencies = [
+ "kurbo",
+ "siphasher",
+]
+
+[[package]]
+name = "swash"
+version = "0.2.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e"
+dependencies = [
+ "skrifa 0.44.0",
+ "yazi",
+ "zeno",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "sys-locale"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4"
+dependencies = [
+ "js-sys",
+ "libc",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "taffy"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aea22054047c16c3f34d3ac473a2170be1424b1115b2a3adcf28cfb067c88859"
+dependencies = [
+ "arrayvec",
+ "grid",
+ "serde",
+ "slotmap",
+]
+
+[[package]]
+name = "tar"
+version = "0.4.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
+dependencies = [
+ "filetime",
+ "libc",
+ "xattr",
+]
+
+[[package]]
+name = "task-local"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2972044a9e5e448a506a7ff6f0d03b566d8ef4cd6918a58fc59835a0f8666626"
+dependencies = [
+ "pin-project-lite",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+dependencies = [
+ "fastrand",
+ "getrandom 0.4.3",
+ "once_cell",
+ "rustix 1.1.4",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "termcolor"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "text-size"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f18aa187839b2bdb1ad2fa35ead8c4c2976b64e4363c386d45ac0f7ee85c9233"
+
+[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl 1.0.69",
+]
+
+[[package]]
+name = "thiserror"
+version = "2.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
+dependencies = [
+ "thiserror-impl 2.0.20",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
+]
+
+[[package]]
+name = "tiff"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52"
+dependencies = [
+ "fax",
+ "flate2",
+ "half",
+ "quick-error",
+ "weezl",
+ "zune-jpeg",
+]
+
+[[package]]
+name = "tiny-skia"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
+dependencies = [
+ "arrayref",
+ "arrayvec",
+ "bytemuck",
+ "cfg-if",
+ "log",
+ "tiny-skia-path 0.11.4",
+]
+
+[[package]]
+name = "tiny-skia"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47ffee5eaaf5527f630fb0e356b90ebdec84d5d18d937c5e440350f88c5a91ea"
+dependencies = [
+ "arrayref",
+ "arrayvec",
+ "bytemuck",
+ "cfg-if",
+ "log",
+ "png",
+ "tiny-skia-path 0.12.0",
+]
+
+[[package]]
+name = "tiny-skia-path"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
+dependencies = [
+ "arrayref",
+ "bytemuck",
+ "strict-num",
+]
+
+[[package]]
+name = "tiny-skia-path"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "edca365c3faccca67d06593c5980fa6c57687de727a03131735bb85f01fdeeb9"
+dependencies = [
+ "arrayref",
+ "bytemuck",
+ "strict-num",
+]
+
+[[package]]
+name = "tiny-xlib"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a90a0ca3ee6a69f2ad28fd11621a4c3f03b371f366be500b64df260c4ffbafb4"
+dependencies = [
+ "as-raw-xcb-connection",
+ "ctor",
+ "libloading",
+ "pkg-config",
+ "tracing",
+]
+
+[[package]]
+name = "tinystr"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
+dependencies = [
+ "displaydoc",
+ "serde_core",
+ "zerovec",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"
+dependencies = [
+ "tinyvec_macros",
+]
+
+[[package]]
+name = "tinyvec_macros"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
+
+[[package]]
+name = "toml"
+version = "1.1.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12c0ba9680044b4ce98d391a62094047eada0d64860b80166c39f4a6b5640785"
+dependencies = [
+ "indexmap",
+ "serde_core",
+ "serde_spanned",
+ "toml_datetime",
+ "toml_parser",
+ "toml_writer",
+ "winnow",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.1+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.25.13+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b"
+dependencies = [
+ "indexmap",
+ "toml_datetime",
+ "toml_parser",
+ "toml_writer",
+ "winnow",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
+dependencies = [
+ "winnow",
+]
+
+[[package]]
+name = "toml_writer"
+version = "1.1.2+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"
+
+[[package]]
+name = "tracing"
+version = "0.1.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
+dependencies = [
+ "log",
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
+dependencies = [
+ "once_cell",
+]
+
+[[package]]
+name = "ts-rs"
+version = "12.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8"
+dependencies = [
+ "thiserror 2.0.20",
+ "ts-rs-macros",
+]
+
+[[package]]
+name = "ts-rs-macros"
+version = "12.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "termcolor",
+]
+
+[[package]]
+name = "ttf-parser"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
+dependencies = [
+ "core_maths",
+]
+
+[[package]]
+name = "typed-index-collections"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "898160f1dfd383b4e92e17f0512a7d62f3c51c44937b23b6ffc3a1614a8eaccd"
+dependencies = [
+ "bincode",
+ "serde",
+]
+
+[[package]]
+name = "udev"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af4e37e9ea4401fc841ff54b9ddfc9be1079b1e89434c1a6a865dd68980f7e9f"
+dependencies = [
+ "io-lifetimes",
+ "libc",
+ "libudev-sys",
+ "pkg-config",
+]
+
+[[package]]
+name = "uds_windows"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
+dependencies = [
+ "memoffset",
+ "tempfile",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "unicase"
+version = "2.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"
+
+[[package]]
+name = "unicode-bidi"
+version = "0.3.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5"
+
+[[package]]
+name = "unicode-bidi-mirroring"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5dfa6e8c60bb66d49db113e0125ee8711b7647b5579dc7f5f19c42357ed039fe"
+
+[[package]]
+name = "unicode-ccc"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e"
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+
+[[package]]
+name = "unicode-linebreak"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
+
+[[package]]
+name = "unicode-properties"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d"
+
+[[package]]
+name = "unicode-script"
+version = "0.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "383ad40bb927465ec0ce7720e033cb4ca06912855fc35db31b5755d0de75b1ee"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
+
+[[package]]
+name = "unicode-vo"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
+
+[[package]]
+name = "unty"
+version = "0.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae"
+
+[[package]]
+name = "url"
+version = "2.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "percent-encoding",
+ "serde",
+]
+
+[[package]]
+name = "usvg"
+version = "0.47.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d46cf96c5f498d36b7a9693bc6a7075c0bb9303189d61b2249b0dc3d309c07de"
+dependencies = [
+ "base64",
+ "data-url",
+ "flate2",
+ "fontdb",
+ "imagesize",
+ "kurbo",
+ "log",
+ "pico-args",
+ "roxmltree",
+ "rustybuzz",
+ "simplecss",
+ "siphasher",
+ "strict-num",
+ "svgtypes",
+ "tiny-skia-path 0.12.0",
+ "ttf-parser",
+ "unicode-bidi",
+ "unicode-script",
+ "unicode-vo",
+ "xmlwriter",
+]
+
+[[package]]
+name = "utf8_iter"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
+[[package]]
+name = "uuid"
+version = "1.26.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b5772d71c9be8a8a6ac2117d949c5b224c1b72241bb611d9a3012edcf8af7812"
+dependencies = [
+ "js-sys",
+ "serde_core",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "v_frame"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2"
+dependencies = [
+ "aligned-vec",
+ "num-traits",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "vtable"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ea953f65593feb5287b022b83c35046d1ff49c7417b6f5851a079d8a231fe31"
+dependencies = [
+ "const-field-offset",
+ "portable-atomic",
+ "stable_deref_trait",
+ "vtable-macro",
+]
+
+[[package]]
+name = "vtable-macro"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "482a37f9777480673d3a99c80ac2edc69f92382230440946855fa27ebc47cba6"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "walkdir"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
+dependencies = [
+ "same-file",
+ "winapi-util",
+]
+
+[[package]]
+name = "wasip2"
+version = "1.0.4+wasi-0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.127"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70"
+dependencies = [
+ "cfg-if",
+ "once_cell",
+ "rustversion",
+ "wasm-bindgen-macro",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.77"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.127"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.127"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284"
+dependencies = [
+ "bumpalo",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.127"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "wayland-backend"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078"
+dependencies = [
+ "cc",
+ "downcast-rs",
+ "rustix 1.1.4",
+ "scoped-tls",
+ "smallvec",
+ "wayland-sys",
+]
+
+[[package]]
+name = "wayland-client"
+version = "0.31.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073"
+dependencies = [
+ "bitflags 2.13.1",
+ "rustix 1.1.4",
+ "wayland-backend",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-csd-frame"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
+dependencies = [
+ "bitflags 2.13.1",
+ "cursor-icon",
+ "wayland-backend",
+]
+
+[[package]]
+name = "wayland-cursor"
+version = "0.31.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d"
+dependencies = [
+ "rustix 1.1.4",
+ "wayland-client",
+ "xcursor",
+]
+
+[[package]]
+name = "wayland-protocols"
+version = "0.32.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6"
+dependencies = [
+ "bitflags 2.13.1",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-experimental"
+version = "20250721.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"
+dependencies = [
+ "bitflags 2.13.1",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-misc"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
+dependencies = [
+ "bitflags 2.13.1",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-plasma"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91"
+dependencies = [
+ "bitflags 2.13.1",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-wlr"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234"
+dependencies = [
+ "bitflags 2.13.1",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-scanner"
+version = "0.31.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0"
+dependencies = [
+ "proc-macro2",
+ "quick-xml",
+ "quote",
+]
+
+[[package]]
+name = "wayland-sys"
+version = "0.31.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
+dependencies = [
+ "dlib",
+ "log",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "web-sys"
+version = "0.3.104"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "webbrowser"
+version = "1.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62c35be770821a214dbc362fc26908c853e776c0004294d0b10b8a6bad582f94"
+dependencies = [
+ "jni",
+ "log",
+ "ndk-context",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "url",
+ "web-sys",
+]
+
+[[package]]
+name = "weezl"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
+
+[[package]]
+name = "wgpu"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76e8840e1ba2881d4cbb18d2147627a56af426ff064c0401eb0c8410c6325d07"
+dependencies = [
+ "arrayvec",
+ "bitflags 2.13.1",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "log",
+ "naga 29.0.4",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "smallvec",
+ "static_assertions",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "wgpu-core 29.0.4",
+ "wgpu-hal 29.0.4",
+ "wgpu-types 29.0.4",
+]
+
+[[package]]
+name = "wgpu"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "527ccdf43dd5b2e8676eed9984ce00e2bbb0a1b85b70c1969dcb6cd2eb55ab9e"
+dependencies = [
+ "arrayvec",
+ "bitflags 2.13.1",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.17.1",
+ "js-sys",
+ "log",
+ "naga 30.0.1",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "smallvec",
+ "static_assertions",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "wgpu-core 30.0.1",
+ "wgpu-hal 30.0.1",
+ "wgpu-types 30.0.1",
+]
+
+[[package]]
+name = "wgpu-core"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f519832254e56965a9940c4af57dcb75f702b6f6fa4a0b172f685395843a4d7"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.9.1",
+ "bit-vec",
+ "bitflags 2.13.1",
+ "bytemuck",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "indexmap",
+ "log",
+ "naga 29.0.4",
+ "once_cell",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "rustc-hash 1.1.0",
+ "smallvec",
+ "thiserror 2.0.20",
+ "wgpu-core-deps-apple 29.0.4",
+ "wgpu-core-deps-emscripten 29.0.4",
+ "wgpu-core-deps-windows-linux-android 29.0.4",
+ "wgpu-hal 29.0.4",
+ "wgpu-naga-bridge 29.0.4",
+ "wgpu-types 29.0.4",
+]
+
+[[package]]
+name = "wgpu-core"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "14c018fce9b6270aa203c2fdd56f3cce996713534bd757e4ea58c8560b121f14"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.10.0",
+ "bit-vec",
+ "bitflags 2.13.1",
+ "bytemuck",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.17.1",
+ "indexmap",
+ "log",
+ "naga 30.0.1",
+ "naga-types",
+ "once_cell",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "rustc-hash 1.1.0",
+ "smallvec",
+ "thiserror 2.0.20",
+ "wgpu-core-deps-apple 30.0.1",
+ "wgpu-core-deps-emscripten 30.0.1",
+ "wgpu-core-deps-windows-linux-android 30.0.1",
+ "wgpu-hal 30.0.1",
+ "wgpu-naga-bridge 30.0.1",
+ "wgpu-types 30.0.1",
+]
+
+[[package]]
+name = "wgpu-core-deps-apple"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f5e39e26c4c0e07589e67d18546cf79ff45383659fc72fca4dd293358a0347f3"
+dependencies = [
+ "wgpu-hal 29.0.4",
+]
+
+[[package]]
+name = "wgpu-core-deps-apple"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "061f3d319a40d39d00b1ecc2c33b89fe21d4e6fe01859df3500a3a8ecccd6b68"
+dependencies = [
+ "wgpu-hal 30.0.1",
+]
+
+[[package]]
+name = "wgpu-core-deps-emscripten"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01e09be551dc939498bdd5f6b2c66e55ab275dad25825267a08605a80fc9f0af"
+dependencies = [
+ "wgpu-hal 29.0.4",
+]
+
+[[package]]
+name = "wgpu-core-deps-emscripten"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d98b86cf4abf524a902dd35f18ca6a3f08fc2ae9847c8f10b48e30491b1f0b86"
+dependencies = [
+ "wgpu-hal 30.0.1",
+]
+
+[[package]]
+name = "wgpu-core-deps-windows-linux-android"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e592c1bbef6ad047647ae6e666ebd8cee7a32bb4544d9700ec96cbf73230257"
+dependencies = [
+ "wgpu-hal 29.0.4",
+]
+
+[[package]]
+name = "wgpu-core-deps-windows-linux-android"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7586165fd5f6d881cb9ce4bb71f40d6caab2c0f1837e3fc1d9788a197fb6004f"
+dependencies = [
+ "wgpu-hal 30.0.1",
+]
+
+[[package]]
+name = "wgpu-hal"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97ace1c17727311c22a46e4e3faf56ea6de81af99dcc839bdfb54857b94d448d"
+dependencies = [
+ "android_system_properties",
+ "arrayvec",
+ "ash",
+ "bit-set 0.9.1",
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "glow",
+ "glutin_wgl_sys",
+ "gpu-allocator",
+ "gpu-descriptor",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "khronos-egl",
+ "libc",
+ "libloading",
+ "log",
+ "naga 29.0.4",
+ "ndk-sys",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "once_cell",
+ "ordered-float",
+ "parking_lot",
+ "portable-atomic",
+ "portable-atomic-util",
+ "profiling",
+ "range-alloc",
+ "raw-window-handle",
+ "raw-window-metal",
+ "renderdoc-sys",
+ "smallvec",
+ "thiserror 2.0.20",
+ "wasm-bindgen",
+ "wayland-sys",
+ "web-sys",
+ "wgpu-naga-bridge 29.0.4",
+ "wgpu-types 29.0.4",
+ "windows",
+ "windows-core",
+ "windows-result",
+]
+
+[[package]]
+name = "wgpu-hal"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58"
+dependencies = [
+ "android_system_properties",
+ "arrayvec",
+ "ash",
+ "bit-set 0.10.0",
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "glow",
+ "glutin_wgl_sys",
+ "gpu-allocator",
+ "hashbrown 0.17.1",
+ "js-sys",
+ "khronos-egl",
+ "libc",
+ "libloading",
+ "log",
+ "naga 30.0.1",
+ "naga-types",
+ "ndk-sys",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "once_cell",
+ "ordered-float",
+ "parking_lot",
+ "portable-atomic",
+ "portable-atomic-util",
+ "profiling",
+ "range-alloc",
+ "raw-window-handle",
+ "raw-window-metal",
+ "renderdoc-sys",
+ "smallvec",
+ "static_assertions",
+ "thiserror 2.0.20",
+ "wasm-bindgen",
+ "wayland-sys",
+ "web-sys",
+ "wgpu-naga-bridge 30.0.1",
+ "wgpu-types 30.0.1",
+ "windows",
+ "windows-core",
+ "windows-result",
+]
+
+[[package]]
+name = "wgpu-naga-bridge"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95226013f547544b223281cd16a4fb549aa9dcb562adbda0faae4c73ffbbc161"
+dependencies = [
+ "naga 29.0.4",
+ "wgpu-types 29.0.4",
+]
+
+[[package]]
+name = "wgpu-naga-bridge"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2f62e73117bb7a62bfd9c5a5841438a823f6566c6442a808ee269d2d055c081"
+dependencies = [
+ "naga 30.0.1",
+ "wgpu-types 30.0.1",
+]
+
+[[package]]
+name = "wgpu-types"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "84bf84cd9ca8ca45e2b223a3868f1adf9bfc0c66aeac212e76ee7e40fdadf8f5"
+dependencies = [
+ "bitflags 2.13.1",
+ "bytemuck",
+ "js-sys",
+ "log",
+ "raw-window-handle",
+ "web-sys",
+]
+
+[[package]]
+name = "wgpu-types"
+version = "30.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286"
+dependencies = [
+ "bitflags 2.13.1",
+ "bytemuck",
+ "js-sys",
+ "log",
+ "naga-types",
+ "raw-window-handle",
+ "static_assertions",
+ "web-sys",
+]
+
+[[package]]
+name = "winapi-util"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "windows"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
+dependencies = [
+ "windows-collections",
+ "windows-core",
+ "windows-future",
+ "windows-numerics",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
+dependencies = [
+ "windows-core",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link",
+ "windows-result",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
+dependencies = [
+ "windows-core",
+ "windows-link",
+ "windows-threading",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
+dependencies = [
+ "windows-core",
+ "windows-link",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.48.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
+dependencies = [
+ "windows-targets 0.48.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
+dependencies = [
+ "windows_aarch64_gnullvm 0.48.5",
+ "windows_aarch64_msvc 0.48.5",
+ "windows_i686_gnu 0.48.5",
+ "windows_i686_msvc 0.48.5",
+ "windows_x86_64_gnu 0.48.5",
+ "windows_x86_64_gnullvm 0.48.5",
+ "windows_x86_64_msvc 0.48.5",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm 0.52.6",
+ "windows_aarch64_msvc 0.52.6",
+ "windows_i686_gnu 0.52.6",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc 0.52.6",
+ "windows_x86_64_gnu 0.52.6",
+ "windows_x86_64_gnullvm 0.52.6",
+ "windows_x86_64_msvc 0.52.6",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "winit"
+version = "0.30.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"
+dependencies = [
+ "ahash",
+ "android-activity",
+ "atomic-waker",
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "bytemuck",
+ "calloop 0.13.0",
+ "cfg_aliases",
+ "concurrent-queue",
+ "core-foundation",
+ "core-graphics",
+ "cursor-icon",
+ "dpi",
+ "js-sys",
+ "libc",
+ "memmap2",
+ "ndk",
+ "objc2 0.5.2",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-ui-kit 0.2.2",
+ "orbclient",
+ "percent-encoding",
+ "pin-project",
+ "raw-window-handle",
+ "redox_syscall 0.4.1",
+ "rustix 0.38.44",
+ "sctk-adwaita",
+ "smithay-client-toolkit 0.19.2",
+ "smol_str 0.2.2",
+ "tracing",
+ "unicode-segmentation",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-protocols-plasma",
+ "web-sys",
+ "web-time",
+ "windows-sys 0.52.0",
+ "x11-dl",
+ "x11rb",
+ "xkbcommon-dl",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "wit-bindgen"
+version = "0.57.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
+
+[[package]]
+name = "write-fonts"
+version = "0.48.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "061f3d319a40d39d00b1ecc2c33b89fe21d4e6fe01859df3500a3a8ecccd6b68"
+checksum = "cb731d4c4d93eacc69a1ad2f270f905788a98e4a3438267bcafbe08d3431c8d8"
dependencies = [
- "wgpu-hal",
+ "font-types 0.11.3",
+ "indexmap",
+ "kurbo",
+ "log",
+ "read-fonts 0.39.2",
]
[[package]]
-name = "wgpu-core-deps-emscripten"
-version = "30.0.1"
+name = "writeable"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d98b86cf4abf524a902dd35f18ca6a3f08fc2ae9847c8f10b48e30491b1f0b86"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
+
+[[package]]
+name = "x11-clipboard"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "662d74b3d77e396b8e5beb00b9cad6a9eccf40b2ef68cc858784b14c41d535a3"
dependencies = [
- "wgpu-hal",
+ "libc",
+ "x11rb",
]
[[package]]
-name = "wgpu-core-deps-windows-linux-android"
-version = "30.0.1"
+name = "x11-dl"
+version = "2.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7586165fd5f6d881cb9ce4bb71f40d6caab2c0f1837e3fc1d9788a197fb6004f"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
dependencies = [
- "wgpu-hal",
+ "libc",
+ "once_cell",
+ "pkg-config",
]
[[package]]
-name = "wgpu-hal"
-version = "30.0.1"
+name = "x11rb"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58"
+checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
dependencies = [
- "android_system_properties",
- "arrayvec",
- "ash",
- "bit-set",
- "bitflags",
- "block2",
- "bytemuck",
- "cfg-if",
- "cfg_aliases",
- "glow",
- "glutin_wgl_sys",
- "gpu-allocator",
- "hashbrown 0.17.1",
- "js-sys",
- "khronos-egl",
+ "as-raw-xcb-connection",
+ "gethostname",
"libc",
"libloading",
- "log",
- "naga",
- "naga-types",
- "ndk-sys",
- "objc2",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation",
- "objc2-metal",
- "objc2-quartz-core",
"once_cell",
- "ordered-float",
- "parking_lot",
- "portable-atomic",
- "portable-atomic-util",
- "profiling",
- "range-alloc",
- "raw-window-handle",
- "raw-window-metal",
- "renderdoc-sys",
- "smallvec",
- "static_assertions",
- "thiserror",
- "wasm-bindgen",
- "wayland-sys",
- "web-sys",
- "wgpu-naga-bridge",
- "wgpu-types",
- "windows",
- "windows-core",
- "windows-result",
+ "rustix 1.1.4",
+ "x11rb-protocol",
]
[[package]]
-name = "wgpu-naga-bridge"
-version = "30.0.1"
+name = "x11rb-protocol"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2f62e73117bb7a62bfd9c5a5841438a823f6566c6442a808ee269d2d055c081"
+checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
+
+[[package]]
+name = "xattr"
+version = "1.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
+dependencies = [
+ "libc",
+ "rustix 1.1.4",
+]
+
+[[package]]
+name = "xcursor"
+version = "0.3.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23"
+
+[[package]]
+name = "xkbcommon"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7a974f48060a14e95705c01f24ad9c3345022f4d97441b8a36beb7ed5c4a02d"
dependencies = [
- "naga",
- "wgpu-types",
+ "libc",
+ "memmap2",
+ "xkeysym",
]
[[package]]
-name = "wgpu-types"
-version = "30.0.1"
+name = "xkbcommon-dl"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286"
+checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
dependencies = [
- "bitflags",
- "bytemuck",
- "js-sys",
+ "bitflags 2.13.1",
+ "dlib",
"log",
- "naga-types",
- "raw-window-handle",
- "static_assertions",
- "web-sys",
+ "once_cell",
+ "xkeysym",
]
[[package]]
-name = "winapi-util"
-version = "0.1.11"
+name = "xkeysym"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
+
+[[package]]
+name = "xml-rs"
+version = "0.8.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
+
+[[package]]
+name = "xmlwriter"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9"
+
+[[package]]
+name = "y4m"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448"
+
+[[package]]
+name = "yazi"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
+
+[[package]]
+name = "yeslogic-fontconfig-sys"
+version = "6.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d8b8abf912b9a29ff112e1671c97c33636903d13a69712037190e6805af4f76"
dependencies = [
- "windows-sys",
+ "dlib",
+ "once_cell",
+ "pkg-config",
]
[[package]]
-name = "windows"
-version = "0.62.2"
+name = "yoke"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
+checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
dependencies = [
- "windows-collections",
- "windows-core",
- "windows-future",
- "windows-numerics",
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
]
[[package]]
-name = "windows-collections"
-version = "0.3.2"
+name = "yoke-derive"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
+checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
dependencies = [
- "windows-core",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "synstructure",
]
[[package]]
-name = "windows-core"
-version = "0.62.2"
+name = "zbus"
+version = "5.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907"
dependencies = [
- "windows-implement",
- "windows-interface",
- "windows-link",
- "windows-result",
- "windows-strings",
+ "async-broadcast",
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-lite",
+ "hex",
+ "libc",
+ "ordered-stream",
+ "rustix 1.1.4",
+ "serde",
+ "serde_repr",
+ "tracing",
+ "uds_windows",
+ "uuid",
+ "windows-sys 0.61.2",
+ "winnow",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
]
[[package]]
-name = "windows-future"
-version = "0.3.2"
+name = "zbus-lockstep"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
+checksum = "6998de05217a084b7578728a9443d04ea4cd80f2a0839b8d78770b76ccd45863"
dependencies = [
- "windows-core",
- "windows-link",
- "windows-threading",
+ "zbus_xml",
+ "zvariant",
]
[[package]]
-name = "windows-implement"
-version = "0.60.2"
+name = "zbus-lockstep-macros"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+checksum = "10da05367f3a7b7553c8cdf8fa91aee6b64afebe32b51c95177957efc47ca3a0"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.119",
+ "zbus-lockstep",
+ "zbus_xml",
+ "zvariant",
]
[[package]]
-name = "windows-interface"
-version = "0.59.3"
+name = "zbus_macros"
+version = "5.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40"
dependencies = [
+ "proc-macro-crate",
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.4",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
]
[[package]]
-name = "windows-link"
-version = "0.2.1"
+name = "zbus_names"
+version = "4.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+checksum = "d8bf88b4a3ff53e883001e0e0115b297a9d53c31b9c1edd2bfdd853e3428624e"
+dependencies = [
+ "serde",
+ "winnow",
+ "zvariant",
+]
[[package]]
-name = "windows-numerics"
-version = "0.3.1"
+name = "zbus_xml"
+version = "5.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
+checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a"
dependencies = [
- "windows-core",
- "windows-link",
+ "serde",
+ "winnow",
+ "zbus_names",
+ "zvariant",
]
[[package]]
-name = "windows-result"
-version = "0.4.1"
+name = "zcheapstr"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473"
dependencies = [
- "windows-link",
+ "serde",
]
[[package]]
-name = "windows-strings"
-version = "0.5.1"
+name = "zeno"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
+
+[[package]]
+name = "zerocopy"
+version = "0.8.56"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
dependencies = [
- "windows-link",
+ "zerocopy-derive",
]
[[package]]
-name = "windows-sys"
-version = "0.61.2"
+name = "zerocopy-derive"
+version = "0.8.56"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
dependencies = [
- "windows-link",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
]
[[package]]
-name = "windows-threading"
-version = "0.2.1"
+name = "zerofrom"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
dependencies = [
- "windows-link",
+ "zerofrom-derive",
]
[[package]]
-name = "wolfcut-cli"
-version = "0.2.0"
+name = "zerofrom-derive"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
dependencies = [
- "clap",
- "wolfcut-core",
- "wolfcut-media",
- "wolfcut-render",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "synstructure",
]
[[package]]
-name = "wolfcut-core"
-version = "0.2.0"
+name = "zerotrie"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
[[package]]
-name = "wolfcut-export"
-version = "0.2.0"
+name = "zerovec"
+version = "0.11.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
dependencies = [
"serde",
- "ts-rs",
- "wolfcut-core",
- "wolfcut-media",
- "wolfcut-project",
- "wolfcut-render",
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
]
[[package]]
-name = "wolfcut-media"
-version = "0.2.0"
+name = "zerovec-derive"
+version = "0.11.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
dependencies = [
- "rusty_ffmpeg",
- "serde_json",
- "thiserror",
- "wolfcut-core",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.4",
]
[[package]]
-name = "wolfcut-project"
-version = "0.2.0"
-dependencies = [
- "serde",
- "serde_json",
- "thiserror",
- "ts-rs",
-]
+name = "zlib-rs"
+version = "0.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12"
[[package]]
-name = "wolfcut-render"
-version = "0.2.0"
+name = "zmij"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+
+[[package]]
+name = "zune-core"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b"
+
+[[package]]
+name = "zune-inflate"
+version = "0.2.54"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
dependencies = [
- "pollster",
- "wgpu",
- "wolfcut-core",
+ "simd-adler32",
]
[[package]]
-name = "xml-rs"
-version = "0.8.29"
+name = "zune-jpeg"
+version = "0.5.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
+checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
+dependencies = [
+ "zune-core",
+]
[[package]]
-name = "zerocopy"
-version = "0.8.56"
+name = "zvariant"
+version = "5.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
+checksum = "c1d34c27cc6cdd1f458427519dd6b8612f7b7e3f7b9a0b2355d041dda9869147"
dependencies = [
- "zerocopy-derive",
+ "endi",
+ "enumflags2",
+ "serde",
+ "winnow",
+ "zcheapstr",
+ "zvariant_derive",
+ "zvariant_utils",
]
[[package]]
-name = "zerocopy-derive"
-version = "0.8.56"
+name = "zvariant_derive"
+version = "5.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
+checksum = "864155e69b4352db0c7f374917bf45d1e0c8d17659c8b3dbf9795f3673f8c497"
dependencies = [
+ "proc-macro-crate",
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.4",
+ "zvariant_utils",
]
[[package]]
-name = "zmij"
-version = "1.0.23"
+name = "zvariant_utils"
+version = "4.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde",
+ "syn 3.0.4",
+ "winnow",
+]
diff --git a/engine/Cargo.toml b/engine/Cargo.toml
index 75fb7022..f37a33d6 100644
--- a/engine/Cargo.toml
+++ b/engine/Cargo.toml
@@ -9,16 +9,16 @@ rust-version = "1.93"
license = "AGPL-3.0-or-later" # + plugin exception, see LICENSE-EXCEPTIONS.md
[workspace.dependencies]
-wolfcut-core = { path = "crates/wolfcut-core" }
-wolfcut-media = { path = "crates/wolfcut-media" }
-wolfcut-render = { path = "crates/wolfcut-render" }
-wolfcut-export = { path = "crates/wolfcut-export" }
+concat-core = { path = "crates/concat-core" }
+concat-media = { path = "crates/concat-media" }
+concat-render = { path = "crates/concat-render" }
+concat-export = { path = "crates/concat-export" }
serde_json = "1"
thiserror = "2"
clap = { version = "4", features = ["derive"] }
-# The GPU compositor, behind wolfcut-render's `gpu` feature. A heavy tree, which
+# The GPU compositor, behind concat-render's `gpu` feature. A heavy tree, which
# is exactly why it is optional: engine-only work never pays for it.
wgpu = "30"
pollster = "0.4"
@@ -35,6 +35,41 @@ opt-level = 3
lto = "thin"
codegen-units = 1
+# The shipping build of the editor window: `cargo build --profile app -p concat`.
+#
+# Every knob here is set for the fastest possible binary, and each one costs
+# build time. It is a separate profile rather than settings on `release`
+# because two of them are wrong for the rest of the workspace: `panic =
+# "abort"` breaks `cargo test --release`, and stripping symbols is only
+# harmless for a binary nobody profiles. Measured on the R&D tree it came
+# from, on an M5: clean build 3m18s, binary 22MB, of which about 1.7MB is
+# the fonts and effect previews the build script embeds.
+#
+# What is deliberately not done, so nobody goes looking for it twice:
+#
+# - No `-C target-cpu=native`. It makes the binary local-only, and the
+# research tree that used it says so in its own .cargo/config.toml.
+# - No alternative allocator. It is a dependency for a win nobody has
+# measured.
+# - Skia's partial rendering is still off, and cannot be turned on from
+# here: every dirty property redraws the whole window on every GPU
+# surface. That is the shape of the UI's frame cost, and no flag in this
+# file changes it.
+[profile.app]
+inherits = "release"
+# Fat LTO: re-optimise the whole dependency graph - slint, skia, winit and
+# the UI crate - as one unit, so calls across crate boundaries inline.
+lto = "fat"
+# No unwind tables and no landing pads: every call site loses its unwind
+# edge, which frees the optimiser and shrinks the binary. This is a GUI
+# binary with no tests and no catch_unwind, and unwinding through the ObjC
+# frames of the macOS event loop was never well-defined anyway - winit only
+# catches panics to avoid exactly that.
+panic = "abort"
+# Symbols are worth nothing in a release binary that is not being profiled.
+# Build with `--profile release` instead before running Instruments or perf.
+strip = "symbols"
+
# Decoding and compositing are unusably slow in an unoptimised build, even when
# the rest of the engine is being debugged.
[profile.dev.package."*"]
diff --git a/engine/README.md b/engine/README.md
index 0da27919..c205a4d7 100644
--- a/engine/README.md
+++ b/engine/README.md
@@ -6,26 +6,39 @@ The video engine behind Concat. Rust, no GC, no hidden control flow.
| Crate | What it is | Dependencies |
|---|---|---|
-| `wolfcut-core` | Time, arena, frames, timeline model. The vocabulary every other crate speaks. | **none** (std only) |
-| `wolfcut-media` | Getting pixels in and out of files. FFmpeg lives here and nowhere else. | `wolfcut-core`, serde_json |
-| `wolfcut-project` | The edit itself: document model, operations as commands, undo, wolfcut.json IO. | serde, serde_json |
-| `wolfcut-render` | Turning a timeline plus a timestamp into one finished frame. | `wolfcut-core` |
-| `wolfcut-cli` | A binary to drive the above. The vertical slice. | all of them |
-
-The dependency arrows point one way: `cli -> {media, render} -> core`. If you ever
-find yourself wanting `core` to depend on `media`, something has been put in the
-wrong crate.
+| `concat-core` | Time, arena, frames, timeline model. The vocabulary every other crate speaks. | **none** (std only) |
+| `concat-media` | Getting pixels in and out of files. FFmpeg lives here and nowhere else. | `concat-core`, serde_json |
+| `concat-project` | The edit itself: document model, operations as commands, undo, concat.json IO. | serde, serde_json |
+| `concat-render` | Turning a timeline plus a timestamp into one finished frame. | `concat-core` |
+| `concat-cli` | A binary to drive the above. The vertical slice. | all of them |
+| `concat` | The editor window: every pane, dialog and primitive, in Slint. The app a user launches. | slint (engine wiring is next) |
+
+The dependency arrows point one way: `{concat, cli} -> {media, render} -> core`.
+If you ever find yourself wanting `core` to depend on `media`, something has
+been put in the wrong crate.
+
+`concat` replaces the Tauri + React app in `../desktop`, which is deprecated
+and stays only until this window can do everything it did. The window was
+built in the wc-ui-rnd repository against the same design as the React
+editor; what landed here is the whole UI driven by demo data, and the work
+now is to hand it the engine's real project, preview and export.
## Build and run
```sh
cargo build
cargo test
-cargo run -p wolfcut-cli -- probe some-video.mp4
-cargo run -p wolfcut-cli -- render some-video.mp4 out.mp4 --frames 120
+cargo run -p concat-cli -- probe some-video.mp4
+cargo run -p concat-cli -- render some-video.mp4 out.mp4 --frames 120
+cargo run -p concat # the editor window, debug
+cargo build --profile app -p concat # the shipping binary: fat LTO, panic=abort, stripped
```
-Requires `ffmpeg` and `ffprobe` on `PATH`.
+Requires `ffmpeg` and `ffprobe` on `PATH`. The window builds with Slint's
+Skia renderer by default; `--no-default-features --features wgpu` swaps in
+FemtoVG over wgpu, and the two are meant to be compared, not chosen once.
+On Linux, Skia needs the fontconfig and freetype headers at build time (see
+the engine job in `.github/workflows/build.yml` for the package list).
## Reading this codebase cold
@@ -35,7 +48,7 @@ Requires `ffmpeg` and `ffprobe` on `PATH`.
## Conventions
-- **Time is exact.** All timestamps are `wolfcut_core::time::Rational` seconds, never `f64`.
+- **Time is exact.** All timestamps are `concat_core::time::Rational` seconds, never `f64`.
Frame-accurate editing and floating point do not mix.
- **Graphs use handles, not pointers.** See decision 0003.
- **Shallow generics.** Concrete types until three call sites demand otherwise.
diff --git a/engine/crates/concat-cli/Cargo.toml b/engine/crates/concat-cli/Cargo.toml
new file mode 100644
index 00000000..a5c92fa3
--- /dev/null
+++ b/engine/crates/concat-cli/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+name = "concat-cli"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+description = "Command line driver for the Concat engine."
+
+# `concat` is the editor window's binary; the driver gets the suffix.
+[[bin]]
+name = "concat-cli"
+path = "src/main.rs"
+
+[dependencies]
+concat-core.workspace = true
+concat-media.workspace = true
+concat-render.workspace = true
+clap.workspace = true
+
+[lints]
+workspace = true
diff --git a/engine/crates/wolfcut-cli/src/main.rs b/engine/crates/concat-cli/src/main.rs
similarity index 91%
rename from engine/crates/wolfcut-cli/src/main.rs
rename to engine/crates/concat-cli/src/main.rs
index a82d45d8..3400e01d 100644
--- a/engine/crates/wolfcut-cli/src/main.rs
+++ b/engine/crates/concat-cli/src/main.rs
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
-//! Command line driver for the WolfCut engine.
+//! Command line driver for the Concat engine.
//!
//! This exists so the engine can be exercised end to end without a UI. The
//! `render` command is the vertical slice: probe, build a timeline, plan every
@@ -11,13 +11,13 @@ use std::error::Error;
use std::path::PathBuf;
use clap::{Parser, Subcommand};
-use wolfcut_core::time::{FrameRate, Rational};
-use wolfcut_core::timeline::{Clip, MediaRef, Timeline, Track, TrackKind};
-use wolfcut_media::{EncodeOptions, FfmpegEncoder, FrameSink, ReaderPool};
-use wolfcut_render::{Compositor, CpuCompositor, Layer, plan_frame};
+use concat_core::time::{FrameRate, Rational};
+use concat_core::timeline::{Clip, MediaRef, Timeline, Track, TrackKind};
+use concat_media::{EncodeOptions, FfmpegEncoder, FrameSink, ReaderPool};
+use concat_render::{Compositor, CpuCompositor, Layer, plan_frame};
#[derive(Parser)]
-#[command(name = "wolfcut", version, about = "WolfCut engine command line")]
+#[command(name = "concat-cli", version, about = "Concat engine command line")]
struct Cli {
#[command(subcommand)]
command: Command,
@@ -56,7 +56,7 @@ fn main() -> Result<(), Box<dyn Error>> {
}
fn probe(path: &PathBuf) -> Result<(), Box<dyn Error>> {
- let info = wolfcut_media::probe(path)?;
+ let info = concat_media::probe(path)?;
println!("{}", info.path.display());
match info.duration {
@@ -94,14 +94,14 @@ fn probe(path: &PathBuf) -> Result<(), Box<dyn Error>> {
/// makes this loop correct for *any* plan - overlapping clips, gaps, jumps -
/// not just one clip played start to finish. The shortcut this function
/// carried for its whole early life is gone; the pool it was waiting for
-/// exists (`wolfcut_media::pool`).
+/// exists (`concat_media::pool`).
fn render(
input: &PathBuf,
output: &PathBuf,
frames: u64,
fade: u64,
) -> Result<(), Box<dyn Error>> {
- let info = wolfcut_media::probe(input)?;
+ let info = concat_media::probe(input)?;
let video = info.require_video()?;
let (width, height) = (video.width, video.height);
let rate = video.frame_rate;
diff --git a/engine/crates/wolfcut-core/Cargo.toml b/engine/crates/concat-core/Cargo.toml
similarity index 70%
rename from engine/crates/wolfcut-core/Cargo.toml
rename to engine/crates/concat-core/Cargo.toml
index a525ce9b..3e5bbe43 100644
--- a/engine/crates/wolfcut-core/Cargo.toml
+++ b/engine/crates/concat-core/Cargo.toml
@@ -1,12 +1,12 @@
[package]
-name = "wolfcut-core"
+name = "concat-core"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
-description = "Time, arenas, frames and the timeline model shared by every other WolfCut crate."
+description = "Time, arenas, frames and the timeline model shared by every other Concat crate."
-# Deliberately empty. wolfcut-core is std-only, and should stay that way: it is the
+# Deliberately empty. concat-core is std-only, and should stay that way: it is the
# vocabulary every other crate speaks, so a dependency here is a dependency
# everywhere. See ../../README.md.
[dependencies]
diff --git a/engine/crates/wolfcut-core/src/arena.rs b/engine/crates/concat-core/src/arena.rs
similarity index 98%
rename from engine/crates/wolfcut-core/src/arena.rs
rename to engine/crates/concat-core/src/arena.rs
index 7bd359c8..9f7bafe9 100644
--- a/engine/crates/wolfcut-core/src/arena.rs
+++ b/engine/crates/concat-core/src/arena.rs
@@ -4,7 +4,7 @@
//! Generational arenas.
//!
//! Editor data is a graph - clips reference media, effects reference clips,
-//! nodes reference nodes - and WolfCut models that with handles into an arena
+//! nodes reference nodes - and Concat models that with handles into an arena
//! rather than with pointers. See
//! `docs/decisions/0003-arena-handles-not-pointers.md` for why.
//!
@@ -13,7 +13,7 @@
//! turns a stale handle into `None` instead of a use-after-free.
//!
//! ```
-//! use wolfcut_core::arena::Arena;
+//! use concat_core::arena::Arena;
//!
//! let mut arena = Arena::new();
//! let id = arena.insert("clip");
diff --git a/engine/crates/wolfcut-core/src/frame.rs b/engine/crates/concat-core/src/frame.rs
similarity index 99%
rename from engine/crates/wolfcut-core/src/frame.rs
rename to engine/crates/concat-core/src/frame.rs
index 0dbb87d0..17a2b9bf 100644
--- a/engine/crates/wolfcut-core/src/frame.rs
+++ b/engine/crates/concat-core/src/frame.rs
@@ -14,7 +14,7 @@
use std::fmt;
-/// Bytes per pixel in the one format WolfCut uses.
+/// Bytes per pixel in the one format Concat uses.
pub const BYTES_PER_PIXEL: usize = 4;
/// An RGBA8 image.
diff --git a/engine/crates/wolfcut-core/src/lib.rs b/engine/crates/concat-core/src/lib.rs
similarity index 86%
rename from engine/crates/wolfcut-core/src/lib.rs
rename to engine/crates/concat-core/src/lib.rs
index 04fc1809..72ed77ca 100644
--- a/engine/crates/wolfcut-core/src/lib.rs
+++ b/engine/crates/concat-core/src/lib.rs
@@ -1,20 +1,20 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
-//! Core vocabulary of the WolfCut engine.
+//! Core vocabulary of the Concat engine.
//!
//! This crate holds the types that every other crate needs to agree on, and
//! nothing else. It has no dependencies and does no IO.
//!
-//! - [`time`] - exact rational timestamps. Every time value in WolfCut is a
+//! - [`time`] - exact rational timestamps. Every time value in Concat is a
//! [`time::Rational`] number of seconds. Never `f64`.
-//! - [`arena`] - generational arenas and `Copy` handles, the way WolfCut models
+//! - [`arena`] - generational arenas and `Copy` handles, the way Concat models
//! graphs. See `docs/decisions/0003-arena-handles-not-pointers.md`.
//! - [`frame`] - a decoded RGBA8 image buffer.
//! - [`timeline`] - projects, tracks and clips.
//!
//! If you are about to add a dependency to this crate, the thing you are adding
-//! probably belongs in `wolfcut-media` or `wolfcut-render` instead.
+//! probably belongs in `concat-media` or `concat-render` instead.
pub mod arena;
pub mod frame;
diff --git a/engine/crates/wolfcut-core/src/time.rs b/engine/crates/concat-core/src/time.rs
similarity index 98%
rename from engine/crates/wolfcut-core/src/time.rs
rename to engine/crates/concat-core/src/time.rs
index b08f232d..5670580f 100644
--- a/engine/crates/wolfcut-core/src/time.rs
+++ b/engine/crates/concat-core/src/time.rs
@@ -6,12 +6,12 @@
//! Video editing is frame-accurate arithmetic on rates that are not
//! representable in binary floating point. 29.97 fps is really 30000/1001, and
//! an `f64` accumulator drifts: after an hour of adding `1.0 / 29.97` you are
-//! visibly off. So every timestamp in WolfCut is a [`Rational`] number of
+//! visibly off. So every timestamp in Concat is a [`Rational`] number of
//! **seconds**, and conversions to `f64` happen only at the edges - display,
//! and arguments handed to FFmpeg.
//!
//! ```
-//! use wolfcut_core::time::{FrameRate, Rational};
+//! use concat_core::time::{FrameRate, Rational};
//!
//! let rate = FrameRate::NTSC_30; // 30000/1001
//! let t = rate.time_of_frame(1800); // exactly 60.06 seconds
@@ -38,7 +38,7 @@ const fn gcd(a: i128, b: i128) -> i128 {
/// An exact rational number, always stored in lowest terms with a positive
/// denominator.
///
-/// Used throughout WolfCut to mean *seconds* unless a doc comment says otherwise.
+/// Used throughout Concat to mean *seconds* unless a doc comment says otherwise.
///
/// Arithmetic is performed in `i128` and reduced before being stored back into
/// `i64`. That is enough headroom for any realistic timeline; a value that
diff --git a/engine/crates/wolfcut-core/src/timeline.rs b/engine/crates/concat-core/src/timeline.rs
similarity index 100%
rename from engine/crates/wolfcut-core/src/timeline.rs
rename to engine/crates/concat-core/src/timeline.rs
diff --git a/engine/crates/wolfcut-export/Cargo.toml b/engine/crates/concat-export/Cargo.toml
similarity index 72%
rename from engine/crates/wolfcut-export/Cargo.toml
rename to engine/crates/concat-export/Cargo.toml
index 990442f7..369865c3 100644
--- a/engine/crates/wolfcut-export/Cargo.toml
+++ b/engine/crates/concat-export/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "wolfcut-export"
+name = "concat-export"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
@@ -8,18 +8,18 @@ description = "Rendering a timeline to a file, and one true frame of it to a mon
[features]
# The GPU compositor for full exports. Off by default for the same reason as
-# wolfcut-render's: engine-only work never pays for the wgpu tree.
-gpu = ["wolfcut-render/gpu"]
+# concat-render's: engine-only work never pays for the wgpu tree.
+gpu = ["concat-render/gpu"]
# TypeScript bindings for the wire types the UI sends (rasterised title
# overlays ride the export request as ExportClips). Off by default; see
# desktop/src/lib/generated/README.md for the generator command.
types = ["dep:ts-rs"]
[dependencies]
-wolfcut-core.workspace = true
-wolfcut-media.workspace = true
-wolfcut-render.workspace = true
-wolfcut-project = { path = "../wolfcut-project" }
+concat-core.workspace = true
+concat-media.workspace = true
+concat-render.workspace = true
+concat-project = { path = "../concat-project" }
serde = { version = "1", features = ["derive"] }
ts-rs = { version = "12", optional = true }
diff --git a/engine/crates/wolfcut-export/src/chains.rs b/engine/crates/concat-export/src/chains.rs
similarity index 99%
rename from engine/crates/wolfcut-export/src/chains.rs
rename to engine/crates/concat-export/src/chains.rs
index b96f5c84..2fa4cf59 100644
--- a/engine/crates/wolfcut-export/src/chains.rs
+++ b/engine/crates/concat-export/src/chains.rs
@@ -31,7 +31,7 @@
use std::collections::BTreeMap;
-use wolfcut_project::model::AppliedFilter;
+use concat_project::model::AppliedFilter;
/// One slider on a catalogue entry: its key, the range the UI allows, and
/// the value an untouched slider means.
@@ -860,7 +860,7 @@ mod tests {
#[test]
fn an_unknown_effect_id_is_skipped_not_exported_as_garbage() {
- // A project written by a newer WolfCut may carry effects this build
+ // A project written by a newer Concat may carry effects this build
// does not know. The chain must stay valid for the ones it does.
assert_eq!(
video_effect_chain(&[applied("from-the-future", &[]), applied("invert", &[])]),
diff --git a/engine/crates/wolfcut-export/src/flatten.rs b/engine/crates/concat-export/src/flatten.rs
similarity index 96%
rename from engine/crates/wolfcut-export/src/flatten.rs
rename to engine/crates/concat-export/src/flatten.rs
index 4edcb4cd..1d66f854 100644
--- a/engine/crates/wolfcut-export/src/flatten.rs
+++ b/engine/crates/concat-export/src/flatten.rs
@@ -15,7 +15,7 @@
//! frontend (the fonts and layout engine live in the webview) and rejoin
//! the exporter as plain image clips; see `ExportRequest`'s caller.
-use wolfcut_project::model::{ClipKind as ModelClipKind, Project, Timeline};
+use concat_project::model::{ClipKind as ModelClipKind, Project, Timeline};
use crate::chains::{audio_filter_chain, video_effect_chain};
use crate::{ClipKind, ExportClip, TransitionSpec};
@@ -104,9 +104,9 @@ fn pick_timeline<'a>(project: &'a Project, timeline_id: Option<&str>) -> Option<
mod tests {
use std::collections::BTreeMap;
- use wolfcut_project::model::AppliedFilter;
- use wolfcut_project::commands::{ClipPatch, NewMedia, TrackFlag};
- use wolfcut_project::{Command, Editor};
+ use concat_project::model::AppliedFilter;
+ use concat_project::commands::{ClipPatch, NewMedia, TrackFlag};
+ use concat_project::{Command, Editor};
use super::*;
@@ -120,7 +120,7 @@ mod tests {
path: "/footage/a.mp4".into(),
name: "a.mp4".into(),
duration: Some(10.0),
- kind: wolfcut_project::model::MediaKind::Video,
+ kind: concat_project::model::MediaKind::Video,
width: Some(1920),
height: Some(1080),
frame_rate: None,
diff --git a/engine/crates/wolfcut-export/src/lib.rs b/engine/crates/concat-export/src/lib.rs
similarity index 96%
rename from engine/crates/wolfcut-export/src/lib.rs
rename to engine/crates/concat-export/src/lib.rs
index f40f5cb1..51c439d7 100644
--- a/engine/crates/wolfcut-export/src/lib.rs
+++ b/engine/crates/concat-export/src/lib.rs
@@ -4,9 +4,9 @@
//! Rendering a timeline to a file.
//!
//! This is the seam where a flattened clip list becomes the engine's
-//! `wolfcut_core::Timeline`, and from there the engine decides everything -
-//! what is on screen (`wolfcut-render`), what the sound means
-//! (`wolfcut_media::audio`), and how bytes move (`wolfcut-media`). Transition
+//! `concat_core::Timeline`, and from there the engine decides everything -
+//! what is on screen (`concat-render`), what the sound means
+//! (`concat_media::audio`), and how bytes move (`concat-media`). Transition
//! semantics resolve here too: by the time the picture and sound paths read
//! the clip list, transitions have already become overlaps, opacity ramps and
//! fade filters.
@@ -30,14 +30,14 @@ use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, Ordering};
use serde::Deserialize;
-use wolfcut_core::frame::Frame;
-use wolfcut_core::time::{FrameRate, Rational};
-use wolfcut_core::timeline::{Clip, ClipId, MediaRef, Timeline, Track, TrackKind, Transform};
-use wolfcut_media::audio::{self, AudioClip};
-use wolfcut_media::{
+use concat_core::frame::Frame;
+use concat_core::time::{FrameRate, Rational};
+use concat_core::timeline::{Clip, ClipId, MediaRef, Timeline, Track, TrackKind, Transform};
+use concat_media::audio::{self, AudioClip};
+use concat_media::{
DecodeOptions, EncodeOptions, FfmpegDecoder, FfmpegEncoder, FrameSink, FrameSource,
};
-use wolfcut_render::{Compositor, CpuCompositor, Layer, Placement, plan_frame};
+use concat_render::{Compositor, CpuCompositor, Layer, Placement, plan_frame};
/// What a flattened clip is. Typed, so a kind check the compiler has not
/// seen cannot exist - the wire still says "video"/"audio"/"image".
@@ -175,7 +175,7 @@ fn unity() -> f64 {
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExportRequest {
- /// The file to write. Siblings named `.{stem}.wolfcut-*` are used as
+ /// The file to write. Siblings named `.{stem}.concat-*` are used as
/// scratch during the render and removed afterwards.
pub output: String,
/// Output frame width in pixels.
@@ -386,7 +386,7 @@ pub fn render(request: &ExportRequest, mut reporter: Reporter<'_>) -> Result<Str
sound.retain(|clip| {
clip.has_audio.unwrap_or_else(|| {
*probed.entry(clip.path.as_str()).or_insert_with(|| {
- wolfcut_media::probe(&clip.path).is_ok_and(|info| info.audio.is_some())
+ concat_media::probe(&clip.path).is_ok_and(|info| info.audio.is_some())
})
})
});
@@ -402,10 +402,10 @@ pub fn render(request: &ExportRequest, mut reporter: Reporter<'_>) -> Result<Str
// Render into siblings of the output so the move at the end stays on one
// filesystem, then clean up whatever we made.
- let stem = output.file_stem().map_or_else(|| "wolfcut".into(), |s| s.to_string_lossy());
+ let stem = output.file_stem().map_or_else(|| "concat".into(), |s| s.to_string_lossy());
let directory = output.parent().unwrap_or(Path::new("."));
- let silent = directory.join(format!(".{stem}.wolfcut-video.mp4"));
- let mixed = directory.join(format!(".{stem}.wolfcut-audio.m4a"));
+ let silent = directory.join(format!(".{stem}.concat-video.mp4"));
+ let mixed = directory.join(format!(".{stem}.concat-audio.m4a"));
let result = (|| -> Result<(), String> {
render_picture(request, rate, total_frames, &visible, &silent, &mut reporter)?;
@@ -483,7 +483,7 @@ fn place_layer<'a>(
/// a machine with no adapter renders slower, not not-at-all.
fn best_compositor() -> Box<dyn Compositor> {
#[cfg(feature = "gpu")]
- if let Some(gpu) = wolfcut_render::WgpuCompositor::new() {
+ if let Some(gpu) = concat_render::WgpuCompositor::new() {
return Box::new(gpu);
}
Box::new(CpuCompositor)
@@ -726,7 +726,7 @@ pub struct PreviewFrameRequest {
/// already matches the exporter's. Returns raw RGBA, exactly
/// `width * height * 4` bytes.
pub fn preview_frame(
- pool: &mut wolfcut_media::ReaderPool,
+ pool: &mut concat_media::ReaderPool,
request: &PreviewFrameRequest,
) -> Result<Vec<u8>, String> {
let rate = FrameRate::new(Rational::new(request.rate_num, request.rate_den));
@@ -819,7 +819,7 @@ fn preview_timeline(request: &PreviewFrameRequest, rate: FrameRate) -> BuiltTime
/// source that will not decode fails the pull too, and that is the path
/// with an error channel.
pub fn preview_prefetch(
- pool: &mut wolfcut_media::ReaderPool,
+ pool: &mut concat_media::ReaderPool,
request: &PreviewFrameRequest,
frames: u32,
) {
@@ -895,10 +895,10 @@ mod tests {
/// the footage, not an empty composite. Skips silently without FFmpeg.
#[test]
fn preview_frame_shows_the_footage_not_black() {
- use wolfcut_core::frame::Frame;
- use wolfcut_media::{EncodeOptions, FfmpegEncoder, FrameSink};
+ use concat_core::frame::Frame;
+ use concat_media::{EncodeOptions, FfmpegEncoder, FrameSink};
- let path = std::env::temp_dir().join("wolfcut-preview-test.mp4");
+ let path = std::env::temp_dir().join("concat-preview-test.mp4");
let Ok(mut encoder) = FfmpegEncoder::create(
&path,
64,
@@ -928,7 +928,7 @@ mod tests {
clips: vec![request_clip],
};
- let mut pool = wolfcut_media::ReaderPool::new(16 * 1024 * 1024, 2);
+ let mut pool = concat_media::ReaderPool::new(16 * 1024 * 1024, 2);
let bytes = preview_frame(&mut pool, &request).expect("previews");
assert_eq!(bytes.len(), 64 * 64 * 4);
let centre = (32 * 64 + 32) * 4;
diff --git a/engine/crates/wolfcut-media/Cargo.toml b/engine/crates/concat-media/Cargo.toml
similarity index 93%
rename from engine/crates/wolfcut-media/Cargo.toml
rename to engine/crates/concat-media/Cargo.toml
index 3938920f..6413d114 100644
--- a/engine/crates/wolfcut-media/Cargo.toml
+++ b/engine/crates/concat-media/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "wolfcut-media"
+name = "concat-media"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
@@ -7,7 +7,7 @@ license.workspace = true
description = "Getting pixels in and out of media files. The only crate that knows FFmpeg exists."
[dependencies]
-wolfcut-core.workspace = true
+concat-core.workspace = true
rusty_ffmpeg = { version = "0.17.0", default-features = false, features = ["ffmpeg8", "use_prebuilt_binding"], optional = true }
serde_json.workspace = true
thiserror.workspace = true
diff --git a/engine/crates/wolfcut-media/src/audio.rs b/engine/crates/concat-media/src/audio.rs
similarity index 99%
rename from engine/crates/wolfcut-media/src/audio.rs
rename to engine/crates/concat-media/src/audio.rs
index 912dde15..b64f9896 100644
--- a/engine/crates/wolfcut-media/src/audio.rs
+++ b/engine/crates/concat-media/src/audio.rs
@@ -3,7 +3,7 @@
//! Planning and running the audio mix.
//!
-//! The audio equivalent of `wolfcut-render`'s frame plan: [`mix_graph`] turns a
+//! The audio equivalent of `concat-render`'s frame plan: [`mix_graph`] turns a
//! set of audible clips into one FFmpeg `filter_complex`, as a pure function
//! that is unit-tested without running anything. [`mix_to_file`] and [`mux`]
//! then hand the plan to FFmpeg.
diff --git a/engine/crates/wolfcut-media/src/binaries.rs b/engine/crates/concat-media/src/binaries.rs
similarity index 100%
rename from engine/crates/wolfcut-media/src/binaries.rs
rename to engine/crates/concat-media/src/binaries.rs
diff --git a/engine/crates/wolfcut-media/src/decode.rs b/engine/crates/concat-media/src/decode.rs
similarity index 99%
rename from engine/crates/wolfcut-media/src/decode.rs
rename to engine/crates/concat-media/src/decode.rs
index ab05ec4a..7a508c78 100644
--- a/engine/crates/wolfcut-media/src/decode.rs
+++ b/engine/crates/concat-media/src/decode.rs
@@ -7,8 +7,8 @@ use std::io::Read;
use std::path::{Path, PathBuf};
use std::process::{Child, ChildStdout, Stdio};
-use wolfcut_core::frame::Frame;
-use wolfcut_core::time::{FrameRate, Rational};
+use concat_core::frame::Frame;
+use concat_core::time::{FrameRate, Rational};
use crate::error::{Error, Result};
use crate::probe;
diff --git a/engine/crates/wolfcut-media/src/encode.rs b/engine/crates/concat-media/src/encode.rs
similarity index 98%
rename from engine/crates/wolfcut-media/src/encode.rs
rename to engine/crates/concat-media/src/encode.rs
index a794e6ce..e83824cc 100644
--- a/engine/crates/wolfcut-media/src/encode.rs
+++ b/engine/crates/concat-media/src/encode.rs
@@ -7,8 +7,8 @@ use std::io::Write;
use std::path::{Path, PathBuf};
use std::process::{Child, ChildStdin, Stdio};
-use wolfcut_core::frame::Frame;
-use wolfcut_core::time::FrameRate;
+use concat_core::frame::Frame;
+use concat_core::time::FrameRate;
use crate::error::{Error, Result};
use crate::process::{StderrTail, base_command};
@@ -209,7 +209,7 @@ mod tests {
#[test]
fn a_wrong_sized_frame_is_rejected() {
let Ok(mut encoder) = FfmpegEncoder::create(
- std::env::temp_dir().join("wolfcut-encode-size-test.mp4"),
+ std::env::temp_dir().join("concat-encode-size-test.mp4"),
64,
64,
FrameRate::THIRTY,
diff --git a/engine/crates/wolfcut-media/src/error.rs b/engine/crates/concat-media/src/error.rs
similarity index 100%
rename from engine/crates/wolfcut-media/src/error.rs
rename to engine/crates/concat-media/src/error.rs
diff --git a/engine/crates/wolfcut-media/src/ffi.rs b/engine/crates/concat-media/src/ffi.rs
similarity index 99%
rename from engine/crates/wolfcut-media/src/ffi.rs
rename to engine/crates/concat-media/src/ffi.rs
index 06851b2d..aa60cebd 100644
--- a/engine/crates/wolfcut-media/src/ffi.rs
+++ b/engine/crates/concat-media/src/ffi.rs
@@ -23,8 +23,8 @@ use std::ffi::{CStr, CString};
use std::path::{Path, PathBuf};
use std::ptr;
-use wolfcut_core::frame::Frame;
-use wolfcut_core::time::Rational;
+use concat_core::frame::Frame;
+use concat_core::time::Rational;
use rusty_ffmpeg::ffi;
use crate::decode::{FrameSource, SeekableSource};
@@ -241,7 +241,7 @@ impl FfiDecoder {
///
/// This is the whole point of the linked backend: `time_base` is a
/// rational, the timestamp is an integer count of those ticks, and
- /// `wolfcut-core` speaks rationals - so the value survives with no rounding
+ /// `concat-core` speaks rationals - so the value survives with no rounding
/// anywhere along the way.
///
/// `None` when the container's numbers cannot form a representable value -
diff --git a/engine/crates/wolfcut-media/src/lib.rs b/engine/crates/concat-media/src/lib.rs
similarity index 100%
rename from engine/crates/wolfcut-media/src/lib.rs
rename to engine/crates/concat-media/src/lib.rs
diff --git a/engine/crates/wolfcut-media/src/peaks.rs b/engine/crates/concat-media/src/peaks.rs
similarity index 100%
rename from engine/crates/wolfcut-media/src/peaks.rs
rename to engine/crates/concat-media/src/peaks.rs
diff --git a/engine/crates/wolfcut-media/src/pool.rs b/engine/crates/concat-media/src/pool.rs
similarity index 99%
rename from engine/crates/wolfcut-media/src/pool.rs
rename to engine/crates/concat-media/src/pool.rs
index f5b67c99..56e1b530 100644
--- a/engine/crates/wolfcut-media/src/pool.rs
+++ b/engine/crates/concat-media/src/pool.rs
@@ -28,8 +28,8 @@ use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::Arc;
-use wolfcut_core::frame::Frame;
-use wolfcut_core::time::{FrameRate, Rational};
+use concat_core::frame::Frame;
+use concat_core::time::{FrameRate, Rational};
use crate::decode::{DecodeOptions, FfmpegDecoder, FrameSource};
use crate::error::Result;
@@ -544,7 +544,7 @@ mod tests {
/// Skips silently on machines without FFmpeg, like the encoder's own test.
#[test]
fn random_access_returns_the_right_frames() {
- let path = std::env::temp_dir().join("wolfcut-pool-test.mp4");
+ let path = std::env::temp_dir().join("concat-pool-test.mp4");
let Ok(mut encoder) =
FfmpegEncoder::create(&path, 64, 64, FrameRate::THIRTY, &EncodeOptions::default())
else {
diff --git a/engine/crates/wolfcut-media/src/probe.rs b/engine/crates/concat-media/src/probe.rs
similarity index 98%
rename from engine/crates/wolfcut-media/src/probe.rs
rename to engine/crates/concat-media/src/probe.rs
index 36d608c4..3f7935ed 100644
--- a/engine/crates/wolfcut-media/src/probe.rs
+++ b/engine/crates/concat-media/src/probe.rs
@@ -5,7 +5,7 @@
use std::path::{Path, PathBuf};
-use wolfcut_core::time::{FrameRate, Rational};
+use concat_core::time::{FrameRate, Rational};
use serde_json::Value;
use crate::error::{Error, Result};
@@ -44,7 +44,7 @@ pub struct AudioStream {
/// A summary of one media file.
///
-/// WolfCut only cares about the first video and first audio stream. Multi-stream
+/// Concat only cares about the first video and first audio stream. Multi-stream
/// files exist, but nothing in the editor addresses them yet, and inventing an
/// API for a case we do not handle would be worse than not having one.
#[derive(Clone, Debug)]
diff --git a/engine/crates/wolfcut-media/src/process.rs b/engine/crates/concat-media/src/process.rs
similarity index 100%
rename from engine/crates/wolfcut-media/src/process.rs
rename to engine/crates/concat-media/src/process.rs
diff --git a/engine/crates/wolfcut-media/tests/ffi_decode.rs b/engine/crates/concat-media/tests/ffi_decode.rs
similarity index 96%
rename from engine/crates/wolfcut-media/tests/ffi_decode.rs
rename to engine/crates/concat-media/tests/ffi_decode.rs
index e3001ad6..7d7cb91a 100644
--- a/engine/crates/wolfcut-media/tests/ffi_decode.rs
+++ b/engine/crates/concat-media/tests/ffi_decode.rs
@@ -16,16 +16,16 @@
use std::path::PathBuf;
use std::process::Command;
-use wolfcut_core::time::Rational;
-use wolfcut_media::decode::{FrameSource, SeekableSource};
-use wolfcut_media::ffi::FfiDecoder;
+use concat_core::time::Rational;
+use concat_media::decode::{FrameSource, SeekableSource};
+use concat_media::ffi::FfiDecoder;
const RATE: i64 = 30;
const SECONDS: i64 = 4;
/// Renders a deterministic clip and returns its path, or `None` without FFmpeg.
fn fixture() -> Option<PathBuf> {
- let path = std::env::temp_dir().join("wolfcut-ffi-fixture.mp4");
+ let path = std::env::temp_dir().join("concat-ffi-fixture.mp4");
if path.exists() {
return Some(path);
}
diff --git a/engine/crates/wolfcut-project/Cargo.toml b/engine/crates/concat-project/Cargo.toml
similarity index 90%
rename from engine/crates/wolfcut-project/Cargo.toml
rename to engine/crates/concat-project/Cargo.toml
index 4807efb9..358f2373 100644
--- a/engine/crates/wolfcut-project/Cargo.toml
+++ b/engine/crates/concat-project/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "wolfcut-project"
+name = "concat-project"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
@@ -10,7 +10,7 @@ description = "The edit itself: the project document, its operations, and undo.
# TypeScript bindings for the wire types, generated straight from these serde
# structs so the UI cannot drift from the engine. Off by default: normal
# builds never pay for the generator. Regenerate with
-# `TS_RS_EXPORT_DIR=<abs path to desktop/src/lib/generated> cargo test -p wolfcut-project --features types export_bindings`
+# `TS_RS_EXPORT_DIR=<abs path to desktop/src/lib/generated> cargo test -p concat-project --features types export_bindings`
# (see desktop/src/lib/generated/README.md).
types = ["dep:ts-rs"]
diff --git a/engine/crates/wolfcut-project/src/commands.rs b/engine/crates/concat-project/src/commands.rs
similarity index 99%
rename from engine/crates/wolfcut-project/src/commands.rs
rename to engine/crates/concat-project/src/commands.rs
index 89545a3c..14e66acd 100644
--- a/engine/crates/wolfcut-project/src/commands.rs
+++ b/engine/crates/concat-project/src/commands.rs
@@ -25,7 +25,7 @@ const DEFAULT_IMAGE_DURATION: f64 = 5.0;
/// How long a title lasts when first placed.
const DEFAULT_TEXT_DURATION: f64 = 4.0;
const MIN_CLIP_DURATION: f64 = 1.0 / 60.0;
-/// The engine's speed range (wolfcut-media `SPEED_RANGE`), verbatim.
+/// The engine's speed range (concat-media `SPEED_RANGE`), verbatim.
const MIN_SPEED: f64 = 0.0625;
const MAX_SPEED: f64 = 16.0;
const MIN_SCALE: f64 = 0.05;
diff --git a/engine/crates/wolfcut-project/src/doc.rs b/engine/crates/concat-project/src/doc.rs
similarity index 97%
rename from engine/crates/wolfcut-project/src/doc.rs
rename to engine/crates/concat-project/src/doc.rs
index 9688626b..76ce3b1d 100644
--- a/engine/crates/wolfcut-project/src/doc.rs
+++ b/engine/crates/concat-project/src/doc.rs
@@ -1,7 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
-//! Reading and writing `wolfcut.json`.
+//! Reading and writing `concat.json`.
+//!
+//! Projects saved before the renames carry the same document as
+//! `wolfcut.json` or `relay.json`. The name on disk is the host's concern:
+//! it keeps whichever name a project already has, and this module never
+//! looks at a filename.
//!
//! The reader began as a port of the UI's `persist.ts` (deleted; decision
//! 0007) and its tolerance rules are the contract with every document
@@ -296,11 +301,11 @@ pub struct DocumentSettings {
pub rate_den: i64,
}
-/// Builds the full `wolfcut.json` document.
+/// Builds the full `concat.json` document.
pub fn to_document(settings: &DocumentSettings, project: &Project) -> Value {
let active = project.active();
let mut document = Map::new();
- document.insert("wolfcut".into(), json!("0.1.0"));
+ document.insert("concat".into(), json!("0.1.0"));
document.insert("version".into(), json!(DOCUMENT_VERSION));
document.insert("name".into(), json!(settings.name));
document.insert(
diff --git a/engine/crates/wolfcut-project/src/editor.rs b/engine/crates/concat-project/src/editor.rs
similarity index 100%
rename from engine/crates/wolfcut-project/src/editor.rs
rename to engine/crates/concat-project/src/editor.rs
diff --git a/engine/crates/wolfcut-project/src/lib.rs b/engine/crates/concat-project/src/lib.rs
similarity index 99%
rename from engine/crates/wolfcut-project/src/lib.rs
rename to engine/crates/concat-project/src/lib.rs
index e120bbb9..b58e5603 100644
--- a/engine/crates/wolfcut-project/src/lib.rs
+++ b/engine/crates/concat-project/src/lib.rs
@@ -19,8 +19,8 @@
//! 2. **f64 seconds and String ids are the document's terms**, kept until a
//! version 2 decides otherwise on purpose - not an accident of porting.
//!
-//! Deliberately a separate crate rather than part of `wolfcut-core`: the
-//! document model needs serde, and wolfcut-core's zero-dependency rule is worth
+//! Deliberately a separate crate rather than part of `concat-core`: the
+//! document model needs serde, and concat-core's zero-dependency rule is worth
//! more than the adjacency.
pub mod commands;
@@ -293,7 +293,7 @@ mod tests {
// optional fields omitted the way JSON.stringify drops undefined -
// documents like this exist on disk and must load forever.
let document = json!({
- "wolfcut": "0.1.0", "version": 1, "name": "TS",
+ "concat": "0.1.0", "version": 1, "name": "TS",
"video": { "width": 1920, "height": 1080, "rateNum": 30, "rateDen": 1 },
"media": [{ "id": "m1", "path": "/a.mp4", "name": "a.mp4", "duration": 10.0,
"kind": "video", "width": 1920, "height": 1080, "frameRate": 30.0,
diff --git a/engine/crates/wolfcut-project/src/model.rs b/engine/crates/concat-project/src/model.rs
similarity index 99%
rename from engine/crates/wolfcut-project/src/model.rs
rename to engine/crates/concat-project/src/model.rs
index c7e4fe71..bf006ce2 100644
--- a/engine/crates/wolfcut-project/src/model.rs
+++ b/engine/crates/concat-project/src/model.rs
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
-//! The document model: what a WolfCut project *is*.
+//! The document model: what a Concat project *is*.
//!
//! Times are `f64` seconds here because that is what the on-disk format
//! stores, and the documents that exist freeze the format (the provisional
//! TS twin this shape once mirrored is deleted; decision 0007). The
//! conversion to exact rationals stays at the render boundary -
-//! `wolfcut-export`'s timeline builder. Moving the *document* to rational
+//! `concat-export`'s timeline builder. Moving the *document* to rational
//! time is a format decision for a deliberate version 2, made once, here.
//!
//! Serde names are camelCase so a document written by this crate is byte-level
diff --git a/engine/crates/wolfcut-render/Cargo.toml b/engine/crates/concat-render/Cargo.toml
similarity index 89%
rename from engine/crates/wolfcut-render/Cargo.toml
rename to engine/crates/concat-render/Cargo.toml
index 354b15e0..b6aff3a1 100644
--- a/engine/crates/wolfcut-render/Cargo.toml
+++ b/engine/crates/concat-render/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "wolfcut-render"
+name = "concat-render"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
@@ -12,7 +12,7 @@ description = "Turning a timeline plus a timestamp into one finished frame."
gpu = ["dep:wgpu", "dep:pollster"]
[dependencies]
-wolfcut-core.workspace = true
+concat-core.workspace = true
wgpu = { workspace = true, optional = true }
pollster = { workspace = true, optional = true }
diff --git a/engine/crates/wolfcut-render/src/compositor.rs b/engine/crates/concat-render/src/compositor.rs
similarity index 99%
rename from engine/crates/wolfcut-render/src/compositor.rs
rename to engine/crates/concat-render/src/compositor.rs
index a1d8c642..61846d67 100644
--- a/engine/crates/wolfcut-render/src/compositor.rs
+++ b/engine/crates/concat-render/src/compositor.rs
@@ -8,13 +8,13 @@
//! checking the GPU path's output. The `Compositor` trait is the seam that
//! `wgpu` will slot into.
-use wolfcut_core::frame::{BYTES_PER_PIXEL, Frame};
+use concat_core::frame::{BYTES_PER_PIXEL, Frame};
/// A layer's placement beyond its base position, in output pixels.
///
/// Applied about the layer's centre: scale first, then rotation, then the
/// translation. Pixel-space on purpose - the resolution-independent form
-/// lives in `wolfcut-core::timeline::Transform`, and whoever builds layers
+/// lives in `concat-core::timeline::Transform`, and whoever builds layers
/// converts exactly once.
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct Placement {
diff --git a/engine/crates/wolfcut-render/src/gpu.rs b/engine/crates/concat-render/src/gpu.rs
similarity index 97%
rename from engine/crates/wolfcut-render/src/gpu.rs
rename to engine/crates/concat-render/src/gpu.rs
index 2efed3e1..4178f5fc 100644
--- a/engine/crates/wolfcut-render/src/gpu.rs
+++ b/engine/crates/concat-render/src/gpu.rs
@@ -22,7 +22,7 @@
use std::collections::HashMap;
-use wolfcut_core::frame::Frame;
+use concat_core::frame::Frame;
use crate::compositor::{Compositor, CpuCompositor, Layer};
@@ -141,12 +141,12 @@ impl WgpuCompositor {
pollster::block_on(adapter.request_device(&wgpu::DeviceDescriptor::default())).ok()?;
let shader = device.create_shader_module(wgpu::ShaderModuleDescriptor {
- label: Some("wolfcut compositor"),
+ label: Some("concat compositor"),
source: wgpu::ShaderSource::Wgsl(SHADER.into()),
});
let bind_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
- label: Some("wolfcut layer"),
+ label: Some("concat layer"),
entries: &[
wgpu::BindGroupLayoutEntry {
binding: 0,
@@ -168,7 +168,7 @@ impl WgpuCompositor {
});
let pipeline_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
- label: Some("wolfcut compositor"),
+ label: Some("concat compositor"),
bind_group_layouts: &[Some(&bind_layout)],
immediate_size: 0,
});
@@ -196,7 +196,7 @@ impl WgpuCompositor {
};
let pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
- label: Some("wolfcut compositor"),
+ label: Some("concat compositor"),
layout: Some(&pipeline_layout),
vertex: wgpu::VertexState {
module: &shader,
@@ -222,7 +222,7 @@ impl WgpuCompositor {
});
let sampler = device.create_sampler(&wgpu::SamplerDescriptor {
- label: Some("wolfcut layer"),
+ label: Some("concat layer"),
address_mode_u: wgpu::AddressMode::ClampToEdge,
address_mode_v: wgpu::AddressMode::ClampToEdge,
mag_filter: wgpu::FilterMode::Linear,
@@ -231,7 +231,7 @@ impl WgpuCompositor {
});
let vertices = device.create_buffer(&wgpu::BufferDescriptor {
- label: Some("wolfcut quads"),
+ label: Some("concat quads"),
size: (std::mem::size_of::<Vertex>() * 6 * 8) as u64,
usage: wgpu::BufferUsages::VERTEX | wgpu::BufferUsages::COPY_DST,
mapped_at_creation: false,
@@ -261,7 +261,7 @@ impl WgpuCompositor {
.is_none_or(|target| target.width != width || target.height != height);
if stale {
let texture = self.device.create_texture(&wgpu::TextureDescriptor {
- label: Some("wolfcut output"),
+ label: Some("concat output"),
size: wgpu::Extent3d { width, height, depth_or_array_layers: 1 },
mip_level_count: 1,
sample_count: 1,
@@ -272,7 +272,7 @@ impl WgpuCompositor {
});
let padded_row = (width as usize * 4).div_ceil(ROW_ALIGN) * ROW_ALIGN;
let staging = self.device.create_buffer(&wgpu::BufferDescriptor {
- label: Some("wolfcut readback"),
+ label: Some("concat readback"),
size: (padded_row * height as usize) as u64,
usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::MAP_READ,
mapped_at_creation: false,
@@ -290,7 +290,7 @@ impl WgpuCompositor {
if *used == pool.len() {
let texture = self.device.create_texture(&wgpu::TextureDescriptor {
- label: Some("wolfcut layer"),
+ label: Some("concat layer"),
size: wgpu::Extent3d {
width: frame.width(),
height: frame.height(),
@@ -305,7 +305,7 @@ impl WgpuCompositor {
});
let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
let bind_group = self.device.create_bind_group(&wgpu::BindGroupDescriptor {
- label: Some("wolfcut layer"),
+ label: Some("concat layer"),
layout: &self.bind_layout,
entries: &[
wgpu::BindGroupEntry {
@@ -443,7 +443,7 @@ impl Compositor for WgpuCompositor {
if vertices.len() > self.vertex_capacity {
self.vertex_capacity = vertices.len().next_power_of_two();
self.vertices = self.device.create_buffer(&wgpu::BufferDescriptor {
- label: Some("wolfcut quads"),
+ label: Some("concat quads"),
size: (std::mem::size_of::<Vertex>() * self.vertex_capacity) as u64,
usage: wgpu::BufferUsages::VERTEX | wgpu::BufferUsages::COPY_DST,
mapped_at_creation: false,
@@ -459,11 +459,11 @@ impl Compositor for WgpuCompositor {
let mut encoder =
self.device.create_command_encoder(&wgpu::CommandEncoderDescriptor {
- label: Some("wolfcut composite"),
+ label: Some("concat composite"),
});
{
let mut pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
- label: Some("wolfcut composite"),
+ label: Some("concat composite"),
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
view: &view,
depth_slice: None,
diff --git a/engine/crates/wolfcut-render/src/lib.rs b/engine/crates/concat-render/src/lib.rs
similarity index 100%
rename from engine/crates/wolfcut-render/src/lib.rs
rename to engine/crates/concat-render/src/lib.rs
diff --git a/engine/crates/wolfcut-render/src/plan.rs b/engine/crates/concat-render/src/plan.rs
similarity index 97%
rename from engine/crates/wolfcut-render/src/plan.rs
rename to engine/crates/concat-render/src/plan.rs
index 95f4b687..9e6e220d 100644
--- a/engine/crates/wolfcut-render/src/plan.rs
+++ b/engine/crates/concat-render/src/plan.rs
@@ -13,8 +13,8 @@
use std::path::PathBuf;
-use wolfcut_core::time::Rational;
-use wolfcut_core::timeline::{ClipId, Timeline, TrackKind, Transform};
+use concat_core::time::Rational;
+use concat_core::timeline::{ClipId, Timeline, TrackKind, Transform};
/// One visible layer at one instant.
#[derive(Clone, PartialEq, Debug)]
@@ -94,8 +94,8 @@ pub fn plan_frame(timeline: &Timeline, time: Rational) -> FramePlan {
#[cfg(test)]
mod tests {
- use wolfcut_core::time::FrameRate;
- use wolfcut_core::timeline::{Clip, MediaRef, Track};
+ use concat_core::time::FrameRate;
+ use concat_core::timeline::{Clip, MediaRef, Track};
use super::*;
diff --git a/engine/crates/concat/Cargo.toml b/engine/crates/concat/Cargo.toml
new file mode 100644
index 00000000..0da2da27
--- /dev/null
+++ b/engine/crates/concat/Cargo.toml
@@ -0,0 +1,73 @@
+[package]
+name = "concat"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish = false
+description = "Concat, the editor window: the Slint front end that drives the Concat engine."
+
+# The product's name is the binary's name, unsuffixed: `concat` is what a
+# user launches, and the concat-* crates are what it is made of.
+[[bin]]
+name = "concat"
+path = "src/main.rs"
+
+[dependencies]
+# Slint is taken under its GPL-3.0-only option to sit beside the AGPL engine.
+# See ../../../THIRD_PARTY_NOTICES.md for why those two combine legally.
+#
+# default-features is off because `renderer-femtovg` (the OpenGL path) is a
+# default. Enabling both compiles glutin and the whole GL renderer for
+# nothing: i-slint-backend-winit picks wgpu over GL in
+# default_renderer_factory, and cfg's the GL path out of the fallback list
+# entirely. The rest of this list is slint's default set, reproduced verbatim
+# minus that one renderer.
+#
+# 1.17, not 1.14: renderer-femtovg-wgpu does not exist in 1.14.
+slint = { version = "1.17", default-features = false, features = [
+ "std",
+ "backend-default",
+ "renderer-software",
+ "accessibility",
+ "compat-1-2",
+ "system-tray",
+ # The custom title bar: main.rs needs the winit window to hide the native
+ # title bar (macOS traffic-light overlay) and to start window drags from
+ # the strip's drag region.
+ "unstable-winit-030",
+] }
+
+# The renderer is picked by a feature here rather than by editing the
+# dependency, so both variants build from one tree and can be compared:
+#
+# cargo build --release -p concat # skia
+# cargo build --release -p concat --no-default-features --features wgpu # femtovg/wgpu
+#
+# Skia is the default. It has partial rendering machinery that FemtoVG lacks
+# entirely - but Surface's use_partial_rendering() defaults to false and is
+# overridden only by software_surface.rs, so it is OFF on Metal/D3D/Vulkan/GL.
+# Measure before believing any CPU or power claim about it; the reason it is
+# the default here is that its text rendering is gamma-correct, not that it is
+# known to be cheaper.
+#
+# Theme.weight-body/weight-title are 400/500 to match: the 500/600 they used to
+# carry compensated for FemtoVG compositing glyph coverage without gamma
+# correction. Put them back if you build --features wgpu, or the text will be
+# too light there.
+#
+# FemtoVG over wgpu rather than over OpenGL: same renderer, native graphics
+# API underneath - Metal on macOS, D3D12 on Windows, Vulkan on Linux -
+# instead of OpenGL, which Apple deprecated and now emulates on top of Metal
+# anyway. Still pure Rust, so cross-compiling needs nothing beyond
+# `rustup target add`.
+[features]
+default = ["skia"]
+wgpu = ["slint/renderer-femtovg-wgpu"]
+skia = ["slint/renderer-skia"]
+
+[build-dependencies]
+slint-build = "1.17"
+
+[lints]
+workspace = true
diff --git a/engine/crates/concat/build.rs b/engine/crates/concat/build.rs
new file mode 100644
index 00000000..6e10369c
--- /dev/null
+++ b/engine/crates/concat/build.rs
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+//! Compiles the `.slint` tree into the binary and records three facts about
+//! the build for Settings > About.
+
+fn main() {
+ // Fonts and images are compiled into the binary rather than read off disk
+ // at run time.
+ //
+ // `EmbedFiles` keeps each file exactly as it is — a PNG stays compressed,
+ // a TTF stays a TTF — and hands it to the renderer from memory instead of
+ // opening it. What that buys is a startup that touches no files and a
+ // binary that is the whole application: six font faces, a logo and twenty
+ // effect previews travel inside it, so there is no directory to ship
+ // beside it and no path to get wrong.
+ //
+ // Not `EmbedForSoftwareRenderer`, which pre-decodes to raw pixels: that is
+ // for MCUs with no filesystem, it is the only kind the software renderer
+ // can read, and Skia and FemtoVG cannot use it at all.
+ let config = slint_build::CompilerConfiguration::new()
+ .embed_resources(slint_build::EmbedResourcesKind::EmbedFiles);
+ slint_build::compile_with_config("ui/app.slint", config)
+ .expect("failed to compile ui/app.slint");
+
+ // Three facts about the build that the built thing cannot ask for at run
+ // time. Settings > About shows them in the block a bug report is copied
+ // out of: which triple this binary is for, which profile it came out of,
+ // and which compiler made it — the three questions every "cannot
+ // reproduce" ends up asking.
+ //
+ // slint_build emits rerun-if-changed for the .slint tree, which turns off
+ // cargo's rerun-on-any-change default, so the toolchain is watched by
+ // hand: change rustc and this file has to run again or `Toolchain` would
+ // name the old one.
+ println!("cargo:rerun-if-env-changed=RUSTC");
+ println!(
+ "cargo:rustc-env=BUILD_TARGET={}",
+ std::env::var("TARGET").unwrap_or_else(|_| "unknown".into())
+ );
+ println!(
+ "cargo:rustc-env=BUILD_PROFILE={}",
+ std::env::var("PROFILE").unwrap_or_else(|_| "unknown".into())
+ );
+ let rustc = std::env::var("RUSTC").unwrap_or_else(|_| "rustc".into());
+ let version = std::process::Command::new(rustc)
+ .arg("-V")
+ .output()
+ .ok()
+ .filter(|out| out.status.success())
+ .map(|out| String::from_utf8_lossy(&out.stdout).trim().to_string())
+ .unwrap_or_else(|| "unknown".into());
+ println!("cargo:rustc-env=BUILD_RUSTC={version}");
+}
diff --git a/engine/crates/concat/src/main.rs b/engine/crates/concat/src/main.rs
new file mode 100644
index 00000000..bff11353
--- /dev/null
+++ b/engine/crates/concat/src/main.rs
@@ -0,0 +1,4987 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+//! Concat's editor window, in Slint.
+//!
+//! Ported from the `slint/` tree of the wc-ui-rnd repository, where the UI was
+//! built twice - once in React (its `web/` tree) and once here - so the two
+//! stacks could be compared on one design. Comments that cite `web/` mean
+//! that reference implementation; comments that cite `desktop/` mean the
+//! Tauri editor this crate replaces, which stays in the repository until
+//! this window can do everything it did.
+//!
+//! What is here is the window: every pane, dialog and primitive, driven by
+//! demo data built in this file. Wiring it to `concat-project` and the rest
+//! of the engine is the next step, not this one.
+
+// Hide the console window on Windows in release builds.
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+use std::cell::{Cell, RefCell};
+use std::rc::Rc;
+
+use slint::{Model, ModelRc, SharedString, Timer, TimerMode, VecModel};
+// The drag payload type. Slint keeps `data-transfer` opaque in the language
+// and hands it to the host to build, but the public Rust API has not caught up
+// with the element yet — this is where the generated code itself reaches for
+// it (`sp::DataTransfer`), so it is the same type the callbacks below expect.
+use slint::private_unstable_api::re_exports::DataTransfer;
+
+// Everything the .slint tree exports, in a module of its own: the workspace
+// lints every public item for documentation, and the generated accessors are
+// thousands of public items nobody documents. The allow covers them and
+// nothing in this file.
+#[allow(missing_docs)]
+mod ui {
+ slint::include_modules!();
+}
+use ui::*;
+
+/// Effect names handed out as the demo adds rows, matching the web POOL.
+const POOL: [&str; 6] = [
+ "Sharpen",
+ "Vignette",
+ "Chroma Key",
+ "Reverb",
+ "Compressor",
+ "De-esser",
+];
+
+/// x of a cubic bezier with endpoints pinned at 0 and 1, at parameter `t`.
+fn bezier_axis(p1: f32, p2: f32, t: f32) -> f32 {
+ let u = 1.0 - t;
+ 3.0 * u * u * t * p1 + 3.0 * u * t * t * p2 + t * t * t
+}
+
+fn bezier_axis_slope(p1: f32, p2: f32, t: f32) -> f32 {
+ let u = 1.0 - t;
+ 3.0 * u * u * p1 + 6.0 * u * t * (p2 - p1) + 3.0 * t * t * (1.0 - p2)
+}
+
+/// Solve a CSS cubic-bezier for y at a given x: Newton first, bisection as the
+/// fallback where the curve is flat enough that Newton stalls. This is the
+/// computation Slint's expression language cannot express — it has no loops —
+/// so the timing function is evaluated here and read back through a global.
+fn bezier_y_at_x(x1: f32, y1: f32, x2: f32, y2: f32, x: f32) -> f32 {
+ let x = x.clamp(0.0, 1.0);
+ let mut t = x;
+
+ for _ in 0..8 {
+ let error = bezier_axis(x1, x2, t) - x;
+ if error.abs() < 1e-5 {
+ return bezier_axis(y1, y2, t);
+ }
+ let slope = bezier_axis_slope(x1, x2, t);
+ if slope.abs() < 1e-6 {
+ break;
+ }
+ t -= error / slope;
+ }
+
+ let (mut lo, mut hi) = (0.0_f32, 1.0_f32);
+ t = x;
+ for _ in 0..24 {
+ let at = bezier_axis(x1, x2, t);
+ if (at - x).abs() < 1e-5 {
+ break;
+ }
+ if at > x {
+ hi = t;
+ } else {
+ lo = t;
+ }
+ t = (lo + hi) / 2.0;
+ }
+ bezier_axis(y1, y2, t)
+}
+
+/// "hh:mm:ss", "mm:ss" or "ss" -> seconds. Slint's string type has no split().
+fn parse_timecode(text: &str) -> f32 {
+ text.split(':')
+ .rev()
+ .enumerate()
+ .map(|(index, part)| part.trim().parse::<f32>().unwrap_or(0.0) * 60_f32.powi(index as i32))
+ .sum()
+}
+
+/// "hh:mm:ss:ff" -> frames. Short forms count from the right, so "12" is
+/// twelve frames and "3:00" is three seconds — which is how anyone types into
+/// a timecode field that is already showing them the shape.
+fn parse_frames(text: &str, rate: f32) -> f32 {
+ let fps = rate.round().max(1.0);
+ let parts: Vec<f32> = text
+ .split(':')
+ .map(|part| part.trim().parse::<f32>().unwrap_or(0.0))
+ .collect();
+ let frames = parts.last().copied().unwrap_or(0.0);
+ let seconds: f32 = parts
+ .iter()
+ .rev()
+ .skip(1)
+ .enumerate()
+ .map(|(index, part)| part * 60_f32.powi(index as i32))
+ .sum();
+ (seconds * fps + frames).max(0.0)
+}
+
+/// "0.42, 0, 0.58, 1" -> Bezier, falling back to the current curve when the
+/// text is not four numbers.
+fn parse_bezier(text: &str, fallback: Bezier) -> Bezier {
+ let parts: Vec<f32> = text
+ .split(',')
+ .filter_map(|part| part.trim().parse::<f32>().ok())
+ .collect();
+ match parts[..] {
+ [x1, y1, x2, y2] => Bezier { x1, y1, x2, y2 },
+ _ => fallback,
+ }
+}
+
+/// The bin, held here rather than in Slint.
+///
+/// Slint's expression language cannot filter a model, and filtering inside the
+/// panel's `for` would leave holes in the grid's indices — the cards are
+/// placed by arithmetic on the row number, so row 4 being invisible would
+/// leave a gap where a card should be. So the whole library lives here and the
+/// panel is handed exactly the rows it should draw, plus the counts of the
+/// rows it should not.
+struct Library {
+ items: RefCell<Vec<MediaItemData>>,
+ filter: Cell<MediaFilter>,
+}
+
+impl Library {
+ fn new(items: Vec<MediaItemData>) -> Self {
+ Self {
+ items: RefCell::new(items),
+ filter: Cell::new(MediaFilter::All),
+ }
+ }
+
+ fn shows(filter: MediaFilter, kind: MediaKind) -> bool {
+ match filter {
+ MediaFilter::All => true,
+ MediaFilter::Video => kind == MediaKind::Video,
+ MediaFilter::Audio => kind == MediaKind::Audio,
+ MediaFilter::Images => kind == MediaKind::Image,
+ }
+ }
+
+ /// One row of the bin, by the id a drag payload carries.
+ fn item(&self, id: i32) -> Option<MediaItemData> {
+ self.items
+ .borrow()
+ .iter()
+ .find(|item| item.id == id)
+ .cloned()
+ }
+
+ fn count(&self, kind: MediaKind) -> i32 {
+ self.items
+ .borrow()
+ .iter()
+ .filter(|item| item.kind == kind)
+ .count() as i32
+ }
+
+ /// Republishes the filtered view and every count the sidebar reads. Called
+ /// after anything at all changes: the bin is tens of rows, not thousands,
+ /// and one path that always produces a consistent panel is worth more than
+ /// the row-level updates it could be split into.
+ fn publish(&self, app: &App, view: &VecModel<MediaItemData>) {
+ let filter = self.filter.get();
+ let items = self.items.borrow();
+
+ // Row-wise, like the timeline's: selecting a card must not rebuild the
+ // grid under the pointer that selected it. The envelopes came with the
+ // rows — nothing the bin does can change one.
+ sync(
+ view,
+ items
+ .iter()
+ .filter(|item| Self::shows(filter, item.kind))
+ .cloned()
+ .collect(),
+ );
+
+ let editor = app.global::<Editor>();
+ editor.set_media_count_all(items.len() as i32);
+ editor.set_media_count_video(self.count(MediaKind::Video));
+ editor.set_media_count_audio(self.count(MediaKind::Audio));
+ editor.set_media_count_images(self.count(MediaKind::Image));
+ editor.set_media_selected_count(items.iter().filter(|item| item.selected).count() as i32);
+ }
+}
+
+fn media(id: i32, name: &str, kind: MediaKind, duration: f32) -> MediaItemData {
+ MediaItemData {
+ id,
+ name: SharedString::from(name),
+ kind,
+ duration,
+ // The same envelope, from the same seed, as the clip cut from this
+ // file: `m{id}` is what the demo timeline's clips name as their media,
+ // so a file looks like itself in the bin and on a lane. Built once
+ // with the row, because it depends on nothing the bin can change.
+ wave: if kind == MediaKind::Audio {
+ wave_path(&format!("m{id}"), 0.0, duration, 1.0).into()
+ } else {
+ SharedString::new()
+ },
+ // No decoder in this tree yet, so no artwork: the card falls back to
+ // the kind's tint and mark, which is what it does in the reference
+ // until the filmstrip or the peaks arrive.
+ ..Default::default()
+ }
+}
+
+/// A bin the size of a real one, so the grid is exercised at the widths a
+/// splitter drag actually produces.
+fn demo_library() -> Vec<MediaItemData> {
+ use MediaKind::{Audio, Video};
+ vec![
+ media(1, "ElevenLabs_2026-08-16T09-12-04_intro.mp3", Audio, 3.4),
+ media(2, "0001-0036.mp4", Video, 1.2),
+ media(3, "0036-0072.mp4", Video, 1.2),
+ media(4, "0072-0134.mp4", Video, 2.1),
+ media(5, "0134-0182.mp4", Video, 1.6),
+ media(6, "0232-0322.mp4", Video, 3.0),
+ media(7, "0326-0452.mp4", Video, 4.2),
+ media(8, "0456-0524.mp4", Video, 2.3),
+ media(9, "0528-0604.mp4", Video, 2.5),
+ media(10, "0604-0642.mp4", Video, 1.3),
+ media(11, "0654-0725.mp4", Video, 2.4),
+ media(12, "0730-0781.mp4", Video, 1.7),
+ media(13, "ElevenLabs_2026-08-16T09-14-22_line-02.mp3", Audio, 1.9),
+ media(14, "ElevenLabs_2026-08-16T09-15-40_line-03.mp3", Audio, 2.6),
+ media(15, "ElevenLabs_2026-08-16T09-17-01_line-04.mp3", Audio, 7.8),
+ media(16, "ElevenLabs_2026-08-16T09-18-33_line-05.mp3", Audio, 4.5),
+ media(17, "ElevenLabs_2026-08-16T09-20-09_outro.mp3", Audio, 5.2),
+ ]
+}
+
+/// Programme level for the meter: fast attack, slow release, with a peak hold
+/// that decays after 900ms — the behaviour the web demo fakes in a rAF loop.
+struct LevelSim {
+ seed: Cell<u32>,
+ current: Cell<f32>,
+ held: Cell<f32>,
+ hold_frames: Cell<u32>,
+ elapsed: Cell<f32>,
+}
+
+impl LevelSim {
+ fn new() -> Self {
+ Self {
+ seed: Cell::new(0x2545_f491),
+ current: Cell::new(0.0),
+ held: Cell::new(0.0),
+ hold_frames: Cell::new(0),
+ elapsed: Cell::new(0.0),
+ }
+ }
+
+ fn random(&self) -> f32 {
+ // xorshift32, so the demo needs no rand dependency
+ let mut x = self.seed.get();
+ x ^= x << 13;
+ x ^= x >> 17;
+ x ^= x << 5;
+ self.seed.set(x);
+ (x >> 8) as f32 / (1 << 24) as f32
+ }
+
+ /// Advances one tick and returns (level, peak).
+ fn tick(&self, dt: f32) -> (f32, f32) {
+ self.elapsed.set(self.elapsed.get() + dt);
+ let target = 0.45 + (self.elapsed.get() * 2.4).sin() * 0.2 + self.random() * 0.25;
+ let current = self.current.get();
+ let next = if target > current {
+ target
+ } else {
+ current + (target - current) * 0.08
+ };
+ self.current.set(next);
+
+ let frames = self.hold_frames.get();
+ if next > self.held.get() || frames == 0 {
+ self.held.set(next);
+ self.hold_frames.set(27); // ~900ms at 33ms per tick
+ } else {
+ self.hold_frames.set(frames - 1);
+ }
+ (next, self.held.get())
+ }
+
+ fn reset(&self) {
+ self.current.set(0.0);
+ self.held.set(0.0);
+ self.hold_frames.set(0);
+ }
+}
+
+// ─── the timeline ───────────────────────────────────────────────────────────
+//
+// The project, held here for the reason the bin is: a chain is edited by index
+// and a Slint model cannot be spliced from the language. Slint is handed a
+// flattened view — clips already carrying the row they draw on — and every
+// mutation ends in the same `publish`, so there is one place where the panel's
+// idea of the timeline can go wrong.
+
+/// The ruler's tick ladder. The smallest interval still at least 90px apart at
+/// this zoom, which is a table search — a loop, and so not something Slint's
+/// expression language can express.
+const TICKS: [f32; 16] = [
+ 1.0 / 30.0,
+ 0.1,
+ 0.25,
+ 0.5,
+ 1.0,
+ 2.0,
+ 5.0,
+ 10.0,
+ 15.0,
+ 30.0,
+ 60.0,
+ 120.0,
+ 300.0,
+ 600.0,
+ 1800.0,
+ 3600.0,
+];
+
+fn tick_interval(seconds_per_pixel: f32) -> f32 {
+ TICKS
+ .iter()
+ .copied()
+ .find(|interval| interval / seconds_per_pixel >= 90.0)
+ .unwrap_or(3600.0)
+}
+
+// ─── the dialogs ────────────────────────────────────────────────────────────
+
+/// Export output sizes, matching the picker's rows.
+const EXPORT_SIZES: [(i32, i32); 4] = [(3840, 2160), (2560, 1440), (1920, 1080), (1280, 720)];
+const EXPORT_RATES: [f32; 3] = [24.0, 30.0, 60.0];
+/// Video bitrate in Mbps at 1080p30, scaled by pixel count and frame rate —
+/// the model web/'s export panel uses, because the number it produces is the
+/// one the choice is actually made on.
+const EXPORT_TIERS: [f32; 3] = [16.0, 8.0, 4.0];
+const AUDIO_BPS: f32 = 192_000.0;
+
+struct ExportState {
+ open: bool,
+ name: String,
+ folder: String,
+ resolution: usize,
+ rate: usize,
+ quality: usize,
+ phase: ExportPhase,
+ progress: f32,
+ message: String,
+}
+
+impl Default for ExportState {
+ fn default() -> Self {
+ Self {
+ open: false,
+ name: "Untitled project".into(),
+ folder: "~/Movies/Concat".into(),
+ // 1080p30 balanced: the middle of every list, which is what a
+ // default should be when the project has not said otherwise.
+ resolution: 2,
+ rate: 1,
+ quality: 1,
+ phase: ExportPhase::Idle,
+ progress: 0.0,
+ message: String::new(),
+ }
+ }
+}
+
+#[derive(Default)]
+struct SettingsState {
+ open: bool,
+ tab: i32,
+ language: usize,
+ transcribe_language: i32,
+}
+
+/// The bottom-right notice — one at a time, because a column of them is a log
+/// and what this is for is the one sentence about what just happened.
+///
+/// The token is what the panel watches. It is bumped per notice rather than
+/// the message being compared, so the same sentence said twice is two
+/// notices: saving twice should blink twice, and a message-equality test
+/// would show the first and swallow the second.
+#[derive(Default)]
+struct ToastState {
+ token: i32,
+ message: String,
+ failed: bool,
+}
+
+#[derive(Clone)]
+struct ModelState {
+ id: String,
+ name: String,
+ note: String,
+ /// on disk, in megabytes
+ megabytes: f32,
+ accuracy: i32,
+ installed: bool,
+ active: bool,
+ /// megabytes fetched so far, while a download is in flight
+ fetched: Option<f32>,
+}
+
+fn demo_transcribers() -> Vec<ModelState> {
+ vec![
+ ModelState {
+ id: "tiny".into(),
+ name: "Tiny".into(),
+ note: "Fastest, roughest".into(),
+ megabytes: 78.0,
+ accuracy: 1,
+ installed: true,
+ active: false,
+ fetched: None,
+ },
+ ModelState {
+ id: "base".into(),
+ name: "Base".into(),
+ note: "Quick, usable for notes".into(),
+ megabytes: 148.0,
+ accuracy: 2,
+ installed: true,
+ active: true,
+ fetched: None,
+ },
+ ModelState {
+ id: "small".into(),
+ name: "Small".into(),
+ note: "The usual choice".into(),
+ megabytes: 488.0,
+ accuracy: 3,
+ installed: false,
+ active: false,
+ fetched: None,
+ },
+ ModelState {
+ id: "medium".into(),
+ name: "Medium".into(),
+ note: "Slower, noticeably better".into(),
+ megabytes: 1530.0,
+ accuracy: 4,
+ installed: false,
+ active: false,
+ fetched: None,
+ },
+ ModelState {
+ id: "large".into(),
+ name: "Large v3".into(),
+ note: "Best, and it will cost you".into(),
+ megabytes: 3090.0,
+ accuracy: 5,
+ installed: false,
+ active: false,
+ fetched: None,
+ },
+ ]
+}
+
+fn demo_voices() -> Vec<ModelState> {
+ vec![
+ ModelState {
+ id: "vc-en".into(),
+ name: "English · Neutral".into(),
+ note: "Two speakers, 22kHz".into(),
+ megabytes: 63.0,
+ accuracy: 3,
+ installed: true,
+ active: true,
+ fetched: None,
+ },
+ ModelState {
+ id: "vc-en-hq".into(),
+ name: "English · Studio".into(),
+ note: "One speaker, 48kHz".into(),
+ megabytes: 214.0,
+ accuracy: 5,
+ installed: false,
+ active: false,
+ fetched: None,
+ },
+ ModelState {
+ id: "vc-zh".into(),
+ name: "Chinese · Neutral".into(),
+ note: "Two speakers, 22kHz".into(),
+ megabytes: 71.0,
+ accuracy: 3,
+ installed: false,
+ active: false,
+ fetched: None,
+ },
+ ]
+}
+
+/// Bytes in the units a person reads them in.
+fn bytes(count: f32) -> String {
+ if count >= 1_000_000_000.0 {
+ format!("{:.1} GB", count / 1_000_000_000.0)
+ } else if count >= 1_000_000.0 {
+ format!("{:.0} MB", count / 1_000_000.0)
+ } else {
+ format!("{:.0} KB", (count / 1_000.0).max(1.0))
+ }
+}
+
+/// Seconds as a rough remaining time. Rough on purpose: a countdown to the
+/// second on an estimate that is not accurate to the second is theatre.
+fn eta(seconds: f32) -> String {
+ if seconds <= 1.0 {
+ "almost done".into()
+ } else if seconds < 60.0 {
+ format!("{:.0}s left", seconds)
+ } else {
+ format!(
+ "{:.0}m {:02.0}s left",
+ (seconds / 60.0).floor(),
+ seconds % 60.0
+ )
+ }
+}
+
+/// The monitor's output sizes, matching the picker's rows.
+const OUTPUTS: [(i32, i32); 6] = [
+ (1920, 1080),
+ (3840, 2160),
+ (1080, 1920),
+ (1080, 1080),
+ (1440, 1080),
+ (2560, 1080),
+];
+
+/// Shortest clip the editor will make: a sixtieth of a second, as the
+/// reference's model puts it. Trims and splits both floor at this.
+const MIN_DURATION: f32 = 1.0 / 60.0;
+
+/// The three lane heights, in logical pixels.
+///
+/// Picture gets the tallest because a filmstrip is the one thing that needs
+/// the room; sound the middle, where an envelope still has shape; a filter
+/// layer the least, because it is a bar with a name on it and nothing else to
+/// show. The ladder is what `TrackSize::Auto` picks from — see `lane_height`.
+const LANE_LARGE: f32 = 80.0;
+const LANE_MEDIUM: f32 = 60.0;
+const LANE_SMALL: f32 = 40.0;
+
+/// How long a title or a filter layer runs when it is placed: long enough to
+/// read, short enough that trimming it is a nudge rather than a fight. The
+/// same three seconds the reference gives a new title.
+const LAYER_DURATION: f32 = 3.0;
+
+/// Steps per second the drawn waveform is quantised to. See `Studio::wave`:
+/// it is what keeps a trim from synthesising a new envelope on every pointer
+/// event, and the grid is fine enough that no step of it is visible.
+const WAVE_STEPS: f32 = 30.0;
+
+#[derive(Clone)]
+struct ClipDoc {
+ id: String,
+ name: String,
+ kind: ClipKind,
+ /// Track id, not a row: rows are a fact about the view, and a clip that
+ /// stored one would be wrong the moment a lane above it was removed.
+ track: String,
+ /// The file behind it, for the peaks. Empty for a title and for a filter.
+ media: String,
+ /// The catalogue id a filter layer was made from — "telephone", "hall".
+ /// Empty for everything else. The label the lane draws is `name`; this is
+ /// what an engine would be handed, and what a project file would store.
+ preset: String,
+ start: f32,
+ duration: f32,
+ /// In-point: how far into the media the clip starts.
+ source_start: f32,
+ /// Multiplier over the fitted size; 1 fills the frame, preserving aspect.
+ scale: f32,
+ /// Offset from centred, as a fraction of frame width / height.
+ offset_x: f32,
+ offset_y: f32,
+ /// Clockwise degrees about the picture's centre.
+ rotation: f32,
+ opacity: f32,
+ /// Playback rate; 1 is normal.
+ speed: f32,
+ /// Keep voices at their natural pitch when `speed` is not 1. On by
+ /// default; off gives the tape-machine sound.
+ preserve_pitch: bool,
+ volume: f32,
+ fade_in: f32,
+ fade_out: f32,
+ fx: bool,
+ transition_in: bool,
+ text_body: String,
+ /// On a detached audio clip: the video clip the sound came from.
+ detached_from: Option<String>,
+ /// The overlay, when this is a text clip. Every field is a fraction of the
+ /// output frame rather than an absolute size: the frame can be any
+ /// resolution, and a title dialled in at 1080p should not move at 4K.
+ text: TextStyleDoc,
+}
+
+#[derive(Clone)]
+struct TextStyleDoc {
+ family: String,
+ /// share of frame height
+ size: f32,
+ weight: f32,
+ italic: bool,
+ fill: slint::Color,
+ align: TextAlignment,
+ opacity: f32,
+ stroke_width: f32,
+ stroke: slint::Color,
+ shadow: bool,
+ /// The plate behind the words. Fully transparent is how "no plate" is
+ /// stored — it is a colour, not a flag, so turning it off is clearing it.
+ plate: slint::Color,
+ line_height: f32,
+ tracking: f32,
+}
+
+impl Default for TextStyleDoc {
+ fn default() -> Self {
+ Self {
+ family: "Inter".into(),
+ size: 0.09,
+ weight: 600.0,
+ italic: false,
+ fill: slint::Color::from_rgb_u8(0xff, 0xff, 0xff),
+ align: TextAlignment::Center,
+ opacity: 1.0,
+ stroke_width: 0.0,
+ stroke: slint::Color::from_rgb_u8(0x00, 0x00, 0x00),
+ plate: slint::Color::from_argb_u8(0, 0, 0, 0),
+ shadow: true,
+ line_height: 1.2,
+ tracking: 0.0,
+ }
+ }
+}
+
+/// "#rrggbb", for the readout beside a swatch — Slint cannot print a colour.
+fn hex_of(colour: slint::Color) -> String {
+ format!(
+ "#{:02x}{:02x}{:02x}",
+ colour.red(),
+ colour.green(),
+ colour.blue()
+ )
+}
+
+impl ClipDoc {
+ fn end(&self) -> f32 {
+ self.start + self.duration
+ }
+}
+
+#[derive(Clone)]
+struct TrackDoc {
+ id: String,
+ name: String,
+ visible: bool,
+ muted: bool,
+ /// Nothing on this lane can be selected, moved, trimmed or cut, and
+ /// nothing can be dropped onto it.
+ locked: bool,
+ /// How tall to draw it. `Auto` — the default — takes the height from what
+ /// is on the lane; see `lane_height`.
+ size: TrackSize,
+}
+
+struct TimelineDoc {
+ id: String,
+ name: String,
+ /// Bottom-most lane first, matching the reference — that is the engine's
+ /// compositing order. The panel draws the top lane first, so every place
+ /// that speaks in rows goes through `row_track`.
+ tracks: Vec<TrackDoc>,
+ clips: Vec<ClipDoc>,
+}
+
+/// Which edge of a clip a trim has hold of.
+#[derive(Clone, Copy, PartialEq)]
+enum Edge {
+ Start,
+ End,
+}
+
+/// Where one clip sat when a gesture began, so the whole set moves rigidly.
+struct MoveOrigin {
+ clip: String,
+ start: f32,
+ row: i32,
+}
+
+enum Gesture {
+ None,
+ Move {
+ /// The clip actually grabbed; it is the one that snaps.
+ primary: String,
+ origins: Vec<MoveOrigin>,
+ /// The lane heights as they were when the press landed.
+ ///
+ /// Frozen, not read live, because an `Auto` lane takes its height from
+ /// what is on it — so the act of dragging a clip onto a lane resizes
+ /// that lane and the ones under it, which moves the very edges the
+ /// next event measures itself against. Live, a drag of the wrong
+ /// length lands the clip on a lane that shrinks the lane it came
+ /// from, which puts the same pointer back over the first lane, and the
+ /// clip flips between the two for as long as the mouse is held still.
+ lanes: Vec<f32>,
+ },
+ Trim {
+ clip: String,
+ edge: Edge,
+ start: f32,
+ duration: f32,
+ source_start: f32,
+ },
+}
+
+struct Studio {
+ /// Envelopes, keyed by the four things they are computed from. A move
+ /// changes none of them, and a publish happens on every frame of one —
+ /// without this, dragging a clip rebuilds a few kilobytes of path string
+ /// per audio clip per frame for a shape that did not change.
+ waves: RefCell<std::collections::HashMap<String, SharedString>>,
+ timelines: Vec<TimelineDoc>,
+ active: usize,
+ selection: Vec<String>,
+ playhead: f32,
+ scroll_left: f32,
+ seconds_per_pixel: f32,
+ frame_rate: f32,
+ tool: TimelineTool,
+ snap: bool,
+ /// Index into the monitor's output list, and into its quality list. The
+ /// output is a property of the project rather than of the view — it is
+ /// what gets exported — but nothing else reads it yet.
+ ratio: usize,
+ /// 0 Full, 1 Half, 2 Quarter. Half by default, as the reference opens.
+ quality: usize,
+ playing: bool,
+ /// One clip, held for Paste. A real clipboard is the system's and holds a
+ /// serialised edit; this is the seam that becomes one.
+ clipboard: Option<ClipDoc>,
+ /// The two sheets. Held with the rest of the state because what they show
+ /// is the project, and because only one of them can be up at a time.
+ export: ExportState,
+ settings: SettingsState,
+ transcribers: Vec<ModelState>,
+ voices: Vec<ModelState>,
+ /// The A/V tray menu, built like the clip menu and shown the same way.
+ av_token: i32,
+ /// Which title-bar menu is open, or -1, and the token that shows it.
+ open_menu: i32,
+ menu_bar_token: i32,
+ /// The clip the context menu was opened on. Held separately from the
+ /// selection because the menu outlives the press that opened it.
+ menu_target: Option<String>,
+ menu_token: i32,
+ /// The launch screen: whether it is up, the form on it, and the projects
+ /// it offers to reopen. Held with the rest because what it makes is the
+ /// project — the frame rate it chooses is the timeline's frame rate, and
+ /// the name it chooses is what the title bar says for the rest of the run.
+ on_start: bool,
+ start: StartState,
+ recents: Vec<RecentProject>,
+ project_name: String,
+
+ /// The workspace's arrangement, and the box it is arranged in. The box
+ /// comes up from Slint — see `Editor.workspace-resized`; it is the one
+ /// thing about the layout this side cannot work out for itself.
+ dock: Dock,
+ workspace: (f32, f32),
+ /// The gutter a pointer has hold of: which split, the ratio it was at when
+ /// the press landed, and the extent that ratio is a fraction of. A drag is
+ /// one pointer, so one slot is enough.
+ divider_press: Option<(usize, f32, f32)>,
+ gesture: Gesture,
+ /// The drag from the library that is over the lanes, already resolved
+ /// into the clip it would leave. None when nothing is hovering.
+ drop: Option<DropPlan>,
+ /// The last notice raised, and the count that makes it new. Held with the
+ /// rest of the state because every publish carries it, and because what
+ /// raises one is whatever else the same handler just did.
+ toast: ToastState,
+ next_id: u32,
+}
+
+/// A drag from the library, resolved against the timeline.
+///
+/// One struct for both halves of the gesture, because the ghost the lanes draw
+/// and the clip the release makes have to be the same thing — the hover
+/// answers "what would this be", and the drop is that answer, committed.
+#[derive(Clone)]
+struct DropPlan {
+ kind: ClipKind,
+ /// What the clip will be called, and what the ghost's header says.
+ label: String,
+ /// The catalogue id, for a filter.
+ preset: String,
+ /// The bin's media id, for a clip cut from a file.
+ media: String,
+ start: f32,
+ duration: f32,
+ row: i32,
+}
+
+/// Every model the window is handed, kept for its lifetime rather than
+/// rebuilt.
+///
+/// A new model, or `set_vec` on the one already there, is a *reset* — and
+/// Slint answers a reset by dropping every instance the repeater behind it
+/// built and starting again. Mid-gesture that is fatal: the TouchArea holding
+/// the pointer is one of the instances dropped, so a trim moved one notch and
+/// then let go of the mouse. `sync` below is what replaced it.
+struct Models {
+ tabs: Rc<VecModel<TimelineTabData>>,
+ tracks: Rc<VecModel<TrackData>>,
+ clips: Rc<VecModel<ClipData>>,
+ /// The clip's context menu, the A/V tray's, and the title bar's.
+ menu: Rc<VecModel<MenuItemData>>,
+ av: Rc<VecModel<MenuItemData>>,
+ bar: Rc<VecModel<MenuItemData>>,
+ /// The two engine lists in Settings.
+ transcribers: Rc<VecModel<ModelData>>,
+ voices: Rc<VecModel<ModelData>>,
+ /// The workspace's arrangement, walked flat.
+ seats: Rc<VecModel<SeatBox>>,
+ dividers: Rc<VecModel<DockDivider>>,
+ /// The launch screen's list of projects to go back to.
+ recents: Rc<VecModel<RecentProjectData>>,
+}
+
+/// Republish a list into a live model without resetting it.
+///
+/// Rows that did not change are not written at all, and a write is a
+/// `row-changed` on an instance that stays alive: no teardown, so a gesture
+/// survives the republish it caused, and no re-layout or re-parse of a
+/// waveform's path for a clip the pointer never went near.
+fn sync<T: Clone + PartialEq + 'static>(model: &VecModel<T>, next: Vec<T>) {
+ let mut next = next;
+ let shared = model.row_count().min(next.len());
+ let tail = next.split_off(shared);
+ for (row, value) in next.into_iter().enumerate() {
+ // Compared before writing: `set-row-data` notifies whether or not the
+ // row moved, and a notification costs the row a re-layout.
+ if model.row_data(row).as_ref() != Some(&value) {
+ model.set_row_data(row, value);
+ }
+ }
+ // Then the difference in length, a row at a time: `row-added` and
+ // `row-removed` shift the instances either side of the change rather than
+ // rebuilding them, which is the one thing a reset cannot do.
+ while model.row_count() > shared {
+ model.remove(model.row_count() - 1);
+ }
+ for value in tail {
+ model.push(value);
+ }
+}
+
+impl Studio {
+ fn now(&self) -> &TimelineDoc {
+ &self.timelines[self.active]
+ }
+
+ fn now_mut(&mut self) -> &mut TimelineDoc {
+ &mut self.timelines[self.active]
+ }
+
+ /// The track a row index names. Rows count from the top of the panel and
+ /// the model stores lanes from the bottom, so this is the one place the
+ /// two orders meet.
+ fn row_track(&self, row: i32) -> Option<&TrackDoc> {
+ let tracks = &self.now().tracks;
+ let count = tracks.len() as i32;
+ if row < 0 || row >= count {
+ return None;
+ }
+ tracks.get((count - 1 - row) as usize)
+ }
+
+ fn row_of(&self, track_id: &str) -> i32 {
+ let tracks = &self.now().tracks;
+ tracks
+ .iter()
+ .position(|track| track.id == track_id)
+ .map(|index| tracks.len() as i32 - 1 - index as i32)
+ .unwrap_or(0)
+ }
+
+ fn clip(&self, id: &str) -> Option<&ClipDoc> {
+ self.now().clips.iter().find(|clip| clip.id == id)
+ }
+
+ fn mint(&mut self, prefix: &str) -> String {
+ self.next_id += 1;
+ format!("{prefix}{}", self.next_id)
+ }
+
+ /// The next lane's name. Numbered from the highest already in use and not
+ /// from the count, which is the engine's rule: adding a lane after
+ /// removing one should not hand out a name the project has seen before.
+ fn next_track_name(&self) -> String {
+ let highest = self
+ .now()
+ .tracks
+ .iter()
+ .filter_map(|track| track.name.rsplit(' ').next()?.parse::<u32>().ok())
+ .max()
+ .unwrap_or(0);
+ format!("Track {}", highest + 1)
+ }
+
+ /// Whether a lane refuses to be edited.
+ fn locked(&self, track_id: &str) -> bool {
+ self.now()
+ .tracks
+ .iter()
+ .any(|track| track.id == track_id && track.locked)
+ }
+
+ /// How tall one lane is drawn.
+ ///
+ /// The auto case is the whole point of the ladder: a lane takes the height
+ /// of the tallest thing on it, so a lane of footage opens large, a lane of
+ /// sound medium and a lane of filter layers minimal — without the lanes
+ /// having to be typed, which they deliberately are not. An empty one takes
+ /// the middle size; it has nothing to be told by, and starting small would
+ /// make a new lane look like a place nothing belongs.
+ fn lane_height(&self, lane: &TrackDoc) -> f32 {
+ match lane.size {
+ TrackSize::Small => LANE_SMALL,
+ TrackSize::Medium => LANE_MEDIUM,
+ TrackSize::Large => LANE_LARGE,
+ TrackSize::Auto => {
+ let tallest = self
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| clip.track == lane.id)
+ .map(|clip| match clip.kind {
+ ClipKind::Video | ClipKind::Image => LANE_LARGE,
+ ClipKind::Audio | ClipKind::Text => LANE_MEDIUM,
+ ClipKind::Filter => LANE_SMALL,
+ })
+ .fold(0.0_f32, f32::max);
+ if tallest > 0.0 { tallest } else { LANE_MEDIUM }
+ }
+ }
+ }
+
+ /// Every lane's height, top-most first — the order the panel draws them
+ /// and the order `row_of` counts in.
+ ///
+ /// Rebuilt on demand rather than cached: it is a handful of lanes over a
+ /// handful of clips, and a cache would be one more thing that can disagree
+ /// with the document.
+ fn lane_heights(&self) -> Vec<f32> {
+ self.now()
+ .tracks
+ .iter()
+ .rev()
+ .map(|lane| self.lane_height(lane))
+ .collect()
+ }
+
+ /// The row a point down the stack falls in, clamped to the stack: past the
+ /// foot is the last lane, not nothing.
+ fn row_at(&self, y: f32) -> i32 {
+ row_at(&self.lane_heights(), y)
+ }
+
+ /// Seconds the project runs to, for Fit and for the scroll floor.
+ fn duration(&self) -> f32 {
+ self.now()
+ .clips
+ .iter()
+ .fold(0.0_f32, |longest, clip| longest.max(clip.end()))
+ }
+
+ /// The reference's snapTime: clip edges, the playhead and zero all pull,
+ /// and the nearest inside the threshold wins.
+ fn snapped(&self, time: f32, threshold: f32, exclude: &str) -> f32 {
+ if !self.snap {
+ return time;
+ }
+ let mut best = time;
+ let mut best_distance = threshold;
+ let mut consider = |target: f32| {
+ let distance = (target - time).abs();
+ if distance < best_distance {
+ best = target;
+ best_distance = distance;
+ }
+ };
+ consider(0.0);
+ consider(self.playhead);
+ for clip in &self.now().clips {
+ if clip.id == exclude {
+ continue;
+ }
+ consider(clip.start);
+ consider(clip.end());
+ }
+ best
+ }
+
+ /// What a library payload names — "media:12", "text:default:Title",
+ /// "filter:telephone:Telephone" — before the timeline has decided where to
+ /// put it.
+ ///
+ /// `start` and `row` come back zeroed: a drop takes both from the pointer,
+ /// and a click has to choose them, so neither can be settled here. None is
+ /// a payload this tree cannot read — a drag from another application,
+ /// which is also how one is refused.
+ fn incoming(payload: &str, library: &Library) -> Option<DropPlan> {
+ let mut fields = payload.splitn(3, ':');
+ let (sort, id) = (fields.next()?, fields.next()?);
+ let label = fields.next().unwrap_or(id);
+
+ let (kind, label, preset, media, duration) = match sort {
+ "media" => {
+ let item = library.item(id.parse().ok()?)?;
+ (
+ match item.kind {
+ MediaKind::Audio => ClipKind::Audio,
+ MediaKind::Image => ClipKind::Image,
+ _ => ClipKind::Video,
+ },
+ item.name.to_string(),
+ String::new(),
+ format!("m{}", item.id),
+ // A still has no length of its own — it runs for as long
+ // as it is given, which is the same span a title gets.
+ if item.kind == MediaKind::Image {
+ LAYER_DURATION
+ } else {
+ item.duration
+ },
+ )
+ }
+ "text" => (
+ ClipKind::Text,
+ label.to_string(),
+ String::new(),
+ String::new(),
+ LAYER_DURATION,
+ ),
+ "filter" => (
+ ClipKind::Filter,
+ label.to_string(),
+ id.to_string(),
+ String::new(),
+ LAYER_DURATION,
+ ),
+ _ => return None,
+ };
+
+ Some(DropPlan {
+ kind,
+ label,
+ preset,
+ media,
+ start: 0.0,
+ duration: duration.max(MIN_DURATION),
+ row: 0,
+ })
+ }
+
+ /// A drag over the lanes: the pointer names the moment and the lane.
+ ///
+ /// None is a refusal, and the drag is told — the lanes turn it into
+ /// `DragAction.none`, which is what puts up the no-drop cursor.
+ fn plan(&self, payload: &str, seconds: f32, row: i32, library: &Library) -> Option<DropPlan> {
+ let mut plan = Studio::incoming(payload, library)?;
+
+ let lanes = self.now().tracks.len() as i32;
+ if lanes == 0 {
+ return None;
+ }
+ // Past the foot of the stack is the last lane, not nothing: the lanes
+ // are drawn taller than the tracks on them, and a drop in that empty
+ // band means the lane above it.
+ plan.row = row.clamp(0, lanes - 1);
+ // A locked lane takes no drops, the same way it takes no presses.
+ if self.row_track(plan.row).is_none_or(|track| track.locked) {
+ return None;
+ }
+ // The same snap the gestures use pulls the start onto whatever edge is
+ // nearby — so a filter laid over a clip can be laid over exactly it.
+ plan.start = self
+ .snapped(seconds.max(0.0), 8.0 * self.seconds_per_pixel, "")
+ .max(0.0);
+ Some(plan)
+ }
+
+ /// A card clicked rather than dragged: no pointer over the lanes, so the
+ /// playhead names the moment and the topmost lane with room for it — which
+ /// is a question only answerable once the length is known, which is why
+ /// the row is settled here and not in `incoming`.
+ fn plan_at_playhead(&mut self, payload: &str, library: &Library) -> Option<DropPlan> {
+ let mut plan = Studio::incoming(payload, library)?;
+ plan.start = self.playhead.max(0.0);
+ plan.row = self.free_row(plan.start, plan.duration);
+ Some(plan)
+ }
+
+ /// Commit a plan, and select what it made.
+ fn place(&mut self, plan: &DropPlan) -> Option<String> {
+ let track = self.row_track(plan.row)?.id.clone();
+ let id = self.mint("c");
+ let mut placed = clip(
+ &id,
+ &plan.label,
+ plan.kind,
+ &track,
+ &plan.media,
+ plan.start,
+ plan.duration,
+ );
+ placed.preset = plan.preset.clone();
+ if plan.kind == ClipKind::Text {
+ // Something to see on the lane and to type over in the inspector.
+ // An empty title reads as a broken one.
+ placed.text_body = "New title".into();
+ }
+ self.now_mut().clips.push(placed);
+ // Selected, so the inspector opens on what was just placed rather than
+ // on whatever happened to be selected before it.
+ self.selection = vec![id.clone()];
+ Some(id)
+ }
+
+ /// The topmost lane with room for a clip of this length at this moment,
+ /// adding one above the stack when every lane is busy.
+ ///
+ /// Only the click paths need this. A drop has a pointer, and a pointer is
+ /// a better answer than any rule.
+ fn free_row(&mut self, start: f32, duration: f32) -> i32 {
+ let lanes = self.now().tracks.len() as i32;
+ for row in 0..lanes {
+ let Some(track) = self.row_track(row) else {
+ continue;
+ };
+ if track.locked {
+ continue;
+ }
+ let lane = track.id.clone();
+ let busy = self.now().clips.iter().any(|clip| {
+ clip.track == lane && clip.start < start + duration && start < clip.end()
+ });
+ if !busy {
+ return row;
+ }
+ }
+ let id = self.mint("T");
+ let name = self.next_track_name();
+ // Pushed, not inserted: the model runs bottom-up, so the end of the
+ // list is the top of the stack — which is row zero.
+ self.now_mut().tracks.push(track(&id, &name));
+ 0
+ }
+
+ /// Why the selection cannot be merged, or None when it can. The reason is
+ /// carried rather than a bare bool: a button that greys out without saying
+ /// why leaves you guessing at the rule.
+ fn merge_blocked(&self) -> Option<&'static str> {
+ if self.selection.len() != 2 {
+ return Some("Select two clips to merge");
+ }
+ let (Some(a), Some(b)) = (self.clip(&self.selection[0]), self.clip(&self.selection[1]))
+ else {
+ return Some("Select two clips to merge");
+ };
+ let (first, second) = if a.start <= b.start { (a, b) } else { (b, a) };
+ if first.track != second.track {
+ return Some("Both clips must be on one track");
+ }
+ if first.media != second.media || first.media.is_empty() {
+ return Some("Both clips must come from one file");
+ }
+ if (second.start - first.end()).abs() > MIN_DURATION {
+ return Some("The two clips must be touching");
+ }
+ if (second.source_start - (first.source_start + first.duration)).abs() > MIN_DURATION {
+ return Some("The cut has material missing between them");
+ }
+ None
+ }
+
+ /// Sound to detach, or a title's words to speak — the reference only hangs
+ /// the A/V menu in the tray when the selection has something to offer it.
+ fn has_av_tools(&self) -> bool {
+ self.selection.len() == 1
+ && self
+ .clip(&self.selection[0])
+ .is_some_and(|clip| !matches!(clip.kind, ClipKind::Image | ClipKind::Filter))
+ }
+
+ /// The memoised envelope for one clip.
+ fn wave(&self, clip: &ClipDoc) -> SharedString {
+ // Quantised, not just rounded. A trim moves the ends by a fraction of
+ // a frame per pointer event, and at a millisecond of resolution every
+ // one of those was a fresh 128-column path: built here, re-parsed by
+ // the renderer, and kept in this map for the life of the process. A
+ // thirtieth of a second is finer than the difference can be seen once
+ // the shape is stretched onto the clip, and it bounds the map to the
+ // handful of entries a drag actually visits.
+ let step = |seconds: f32| (seconds * WAVE_STEPS).round() / WAVE_STEPS;
+ let (source_start, duration) = (step(clip.source_start), step(clip.duration));
+ let key = format!(
+ "{}|{:.3}|{:.3}|{:.3}",
+ clip.media, source_start, duration, clip.volume
+ );
+ if let Some(cached) = self.waves.borrow().get(&key) {
+ return cached.clone();
+ }
+ // Cached as the string Slint itself holds, not as a Rust one: a
+ // `SharedString` clone is a refcount, so handing the same envelope to
+ // the model on every event of a drag copies nothing.
+ let built = SharedString::from(wave_path(&clip.media, source_start, duration, clip.volume));
+ self.waves.borrow_mut().insert(key, built.clone());
+ built
+ }
+
+ /// The selection, flattened for the inspector.
+ ///
+ /// Exactly one clip or nothing: a panel of numbers describing two clips at
+ /// once can only lie, so a multiple selection reads as no selection —
+ /// which is what puts the pane back on the project's details.
+ fn selected(&self) -> SelectedClipData {
+ let Some(clip) = self
+ .selection
+ .first()
+ .filter(|_| self.selection.len() == 1)
+ .and_then(|id| self.clip(id))
+ else {
+ return SelectedClipData::default();
+ };
+ let text = &clip.text;
+ SelectedClipData {
+ present: true,
+ id: clip.id.as_str().into(),
+ name: clip.name.as_str().into(),
+ kind: clip.kind,
+ duration: clip.duration,
+ scale: clip.scale,
+ offset_x: clip.offset_x,
+ offset_y: clip.offset_y,
+ rotation: clip.rotation,
+ opacity: clip.opacity,
+ volume: clip.volume,
+ speed: clip.speed,
+ preserve_pitch: clip.preserve_pitch,
+ fade_in: clip.fade_in,
+ fade_out: clip.fade_out,
+ content: clip.text_body.as_str().into(),
+ font_family: text.family.as_str().into(),
+ font_size: text.size,
+ font_weight: text.weight,
+ italic: text.italic,
+ fill: text.fill,
+ fill_hex: hex_of(text.fill).into(),
+ align: text.align,
+ text_opacity: text.opacity,
+ stroke_width: text.stroke_width,
+ stroke: text.stroke,
+ stroke_hex: hex_of(text.stroke).into(),
+ shadow: text.shadow,
+ plate: text.plate,
+ plate_hex: hex_of(text.plate).into(),
+ plated: text.plate.alpha() > 0,
+ line_height: text.line_height,
+ tracking: text.tracking,
+ }
+ }
+
+ /// The right-click menu for the clip it was opened on.
+ ///
+ /// Rows are built here rather than in Slint for the reason the bin's
+ /// filtering is: what belongs on the menu depends on the clip, and
+ /// deciding that needs branching over the model. `speed`'s three options
+ /// are a flat labelled group rather than a submenu — a Slint struct cannot
+ /// hold an array, so a row cannot carry children.
+ fn menu(&self) -> Vec<MenuItemData> {
+ let Some(clip) = self.menu_target.as_ref().and_then(|id| self.clip(id)) else {
+ return Vec::new();
+ };
+ let locked = self.locked(&clip.track);
+ let straddled = clip.start < self.playhead && self.playhead < clip.end();
+
+ let action =
+ |id: &str, label: String, glyph: Glyph, shortcut: &str, enabled: bool| MenuItemData {
+ id: id.into(),
+ label: label.into(),
+ kind: MenuRow::Action,
+ glyph,
+ shortcut: shortcut.into(),
+ enabled,
+ danger: false,
+ checkable: false,
+ checked: false,
+ };
+ let check = |id: &str, label: &str, shortcut: &str, on: bool, enabled: bool| MenuItemData {
+ id: id.into(),
+ label: label.into(),
+ kind: MenuRow::Action,
+ glyph: Glyph::None,
+ shortcut: shortcut.into(),
+ enabled,
+ danger: false,
+ checkable: true,
+ checked: on,
+ };
+ let heading = |label: &str| MenuItemData {
+ label: label.into(),
+ kind: MenuRow::Label,
+ ..Default::default()
+ };
+ let rule = || MenuItemData {
+ kind: MenuRow::Separator,
+ ..Default::default()
+ };
+
+ let mut rows = vec![
+ heading(&clip.name),
+ action("copy", "Copy".into(), Glyph::Copy, "⌘C", true),
+ action("duplicate", "Duplicate".into(), Glyph::Plus, "⌘D", !locked),
+ // Disabled rather than hidden: a menu whose rows move around
+ // between openings has to be re-read every time.
+ action(
+ "paste",
+ "Paste".into(),
+ Glyph::Plus,
+ "⌘V",
+ self.clipboard.is_some(),
+ ),
+ rule(),
+ action(
+ "split",
+ "Split at playhead".into(),
+ Glyph::Split,
+ "S",
+ straddled && !locked,
+ ),
+ rule(),
+ ];
+ // No speed group. Three fixed rates is a worse control than the Adjust
+ // tab's rate slider, which covers the engine's whole range, and a
+ // right-click menu earns its length by holding the things that have
+ // nowhere better to live.
+ // Mute is the gain, not a flag: there is one number that decides
+ // whether a clip is heard, and a second one would have to agree with it.
+ // A still has no sound and a filter layer has no sound of its own —
+ // it treats what is under it — so neither offers a gain to cut.
+ let audible = !matches!(clip.kind, ClipKind::Image | ClipKind::Filter);
+ rows.push(check(
+ "mute",
+ "Mute",
+ "M",
+ clip.volume <= 0.0,
+ !locked && audible,
+ ));
+ rows.push(check("lock", "Lock track", "", locked, true));
+ rows.push(rule());
+ rows.push(MenuItemData {
+ id: "delete".into(),
+ label: "Delete".into(),
+ kind: MenuRow::Action,
+ glyph: Glyph::Trash,
+ shortcut: "⌫".into(),
+ enabled: !locked,
+ danger: true,
+ checkable: false,
+ checked: false,
+ });
+ rows
+ }
+
+ /// What those rows add up to. Slint cannot sum a model, and the surface
+ /// has to be given a height before it is shown.
+ fn menu_height(rows: &[MenuItemData]) -> f32 {
+ let metrics = |kind: MenuRow| match kind {
+ MenuRow::Action => 26.0,
+ MenuRow::Label => 24.0,
+ MenuRow::Separator => 9.0,
+ };
+ rows.iter().map(|row| metrics(row.kind)).sum::<f32>() + 8.0
+ }
+
+ /// What one export tier would weigh, in bytes.
+ fn export_size(&self, tier: usize) -> f32 {
+ let (width, height) = EXPORT_SIZES[self.export.resolution.min(3)];
+ let rate = EXPORT_RATES[self.export.rate.min(2)];
+ let pixels = (width as f32 * height as f32) / (1920.0 * 1080.0);
+ let video = EXPORT_TIERS[tier.min(2)] * 1_000_000.0 * pixels * (rate / 30.0);
+ (video + AUDIO_BPS) * self.duration().max(1.0) / 8.0
+ }
+
+ fn export_data(&self) -> ExportData {
+ let (width, height) = EXPORT_SIZES[self.export.resolution.min(3)];
+ let rate = EXPORT_RATES[self.export.rate.min(2)];
+ let clips = self.now().clips.len();
+ let titles = self
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| clip.kind == ClipKind::Text)
+ .count();
+ // The stage names follow the progress rather than being counted off:
+ // the engine reports one number, and what it is busy with at that
+ // number is a fact about the pipeline, not about the UI.
+ let stage = if self.export.progress < 0.68 {
+ "Rendering video"
+ } else if self.export.progress < 0.88 {
+ "Encoding audio"
+ } else {
+ "Finalising file"
+ };
+
+ ExportData {
+ open: self.export.open,
+ name: self.export.name.as_str().into(),
+ path: format!("{}/{}.mp4", self.export.folder, self.export.name).into(),
+ format: format!("{width} × {height} · {rate:.2} fps").into(),
+ duration: {
+ let whole = self.duration().max(0.0) as i32;
+ format!("{}:{:02}", whole / 60, whole % 60).into()
+ },
+ contents: if titles > 0 {
+ format!("{clips} clips · {titles} titles")
+ } else {
+ format!("{clips} clips")
+ }
+ .into(),
+ resolution: self.export.resolution as i32,
+ rate: self.export.rate as i32,
+ quality: self.export.quality as i32,
+ size_high: bytes(self.export_size(0)).into(),
+ size_balanced: bytes(self.export_size(1)).into(),
+ size_small: bytes(self.export_size(2)).into(),
+ phase: self.export.phase,
+ progress: self.export.progress,
+ stage: stage.into(),
+ // The rate is the simulation's: a real one comes off the engine.
+ eta: eta((1.0 - self.export.progress) * 9.0).into(),
+ message: self.export.message.as_str().into(),
+ done_size: bytes(self.export_size(self.export.quality)).into(),
+ empty: clips == 0,
+ }
+ }
+
+ fn model_rows(models: &[ModelState]) -> Vec<ModelData> {
+ models
+ .iter()
+ .map(|model| {
+ let total = model.megabytes;
+ let fetched = model.fetched.unwrap_or(0.0);
+ ModelData {
+ id: model.id.as_str().into(),
+ name: model.name.as_str().into(),
+ note: model.note.as_str().into(),
+ size: format!("{total:.0} MB").into(),
+ accuracy: model.accuracy,
+ installed: model.installed,
+ active: model.active && model.installed,
+ downloading: model.fetched.is_some(),
+ progress: if total > 0.0 { fetched / total } else { 0.0 },
+ transferred: format!("{fetched:.0} MB of {total:.0} MB · 12 MB/s").into(),
+ eta: eta((total - fetched) / 12.0).into(),
+ }
+ })
+ .collect()
+ }
+
+ /// The tray's A/V menu. What it offers depends on what is selected, which
+ /// is why it is built here and not declared in the tray.
+ fn av_menu(&self) -> Vec<MenuItemData> {
+ let Some(clip) = self
+ .selection
+ .first()
+ .filter(|_| self.selection.len() == 1)
+ .and_then(|id| self.clip(id))
+ else {
+ return Vec::new();
+ };
+
+ let row = |id: &str, label: &str, glyph: Glyph, enabled: bool| MenuItemData {
+ id: id.into(),
+ label: label.into(),
+ kind: MenuRow::Action,
+ glyph,
+ shortcut: SharedString::new(),
+ enabled,
+ danger: false,
+ checkable: false,
+ checked: false,
+ };
+
+ // A title's one tool is to speak its words; it has no sound to detach.
+ if clip.kind == ClipKind::Text {
+ return vec![row("speak", "Generate voice", Glyph::Volume, true)];
+ }
+ // A filter layer has neither: no words to speak and no track to lift
+ // out of it. The tray hides the button rather than opening an empty
+ // menu — see has_av_tools.
+ if clip.kind == ClipKind::Filter {
+ return Vec::new();
+ }
+
+ let has_sound = clip.kind != ClipKind::Image;
+ let detached = self
+ .now()
+ .clips
+ .iter()
+ .any(|other| other.detached_from.as_deref() == Some(clip.id.as_str()));
+ vec![
+ row("captions", "Auto captions", Glyph::TextMark, has_sound),
+ MenuItemData {
+ kind: MenuRow::Separator,
+ ..Default::default()
+ },
+ row(
+ "detach",
+ "Detach audio",
+ Glyph::Waveform,
+ clip.kind == ClipKind::Video && !detached,
+ ),
+ row(
+ "reattach",
+ "Reattach audio",
+ Glyph::Merge,
+ (clip.kind == ClipKind::Video && detached)
+ || (clip.kind == ClipKind::Audio && clip.detached_from.is_some()),
+ ),
+ ]
+ }
+
+ /// The File / Edit / View menus, following the reference's own lists.
+ fn menu_bar(&self) -> Vec<MenuItemData> {
+ let row =
+ |id: &str, label: String, glyph: Glyph, shortcut: &str, enabled: bool| MenuItemData {
+ id: id.into(),
+ label: label.into(),
+ kind: MenuRow::Action,
+ glyph,
+ shortcut: shortcut.into(),
+ enabled,
+ danger: false,
+ checkable: false,
+ checked: false,
+ };
+ let rule = || MenuItemData {
+ kind: MenuRow::Separator,
+ ..Default::default()
+ };
+ let selected = self.selection.len();
+ let straddled = self.now().clips.iter().any(|clip| {
+ clip.start + MIN_DURATION < self.playhead && self.playhead < clip.end() - MIN_DURATION
+ });
+
+ match self.open_menu {
+ 0 => vec![
+ // Disabled rather than absent: a menu whose rows move between
+ // openings has to be re-read every time.
+ row(
+ "add-selected",
+ "Add selected to timeline".into(),
+ Glyph::Plus,
+ "",
+ false,
+ ),
+ row("save", "Save".into(), Glyph::Import, "⌘S", true),
+ row(
+ "export",
+ "Export…".into(),
+ Glyph::Export,
+ "",
+ !self.now().clips.is_empty(),
+ ),
+ row(
+ "template",
+ "Save as template…".into(),
+ Glyph::Slot,
+ "",
+ true,
+ ),
+ row("speech", "Text to speech…".into(), Glyph::Volume, "", true),
+ rule(),
+ row("settings", "Settings…".into(), Glyph::Settings, "⌘,", true),
+ rule(),
+ row(
+ "close-project",
+ "Close project".into(),
+ Glyph::Import,
+ "",
+ true,
+ ),
+ MenuItemData {
+ id: "close-window".into(),
+ label: "Close window".into(),
+ kind: MenuRow::Action,
+ glyph: Glyph::Close,
+ shortcut: "⌘W".into(),
+ enabled: true,
+ danger: true,
+ checkable: false,
+ checked: false,
+ },
+ ],
+ 1 => vec![
+ // Nothing in this tree records what it did, so neither of
+ // these can ever be live. They are here because a menu that
+ // omits Undo is a menu that looks broken.
+ row("undo", "Undo".into(), Glyph::ChevronUp, "⌘Z", false),
+ row("redo", "Redo".into(), Glyph::ChevronDown, "⇧⌘Z", false),
+ rule(),
+ row(
+ "split",
+ "Split at playhead".into(),
+ Glyph::Razor,
+ "⌘B",
+ straddled,
+ ),
+ MenuItemData {
+ id: "delete".into(),
+ label: if selected > 1 {
+ format!("Delete {selected} clips")
+ } else {
+ "Delete clip".into()
+ }
+ .into(),
+ kind: MenuRow::Action,
+ glyph: Glyph::Trash,
+ shortcut: "⌫".into(),
+ enabled: selected > 0,
+ danger: true,
+ checkable: false,
+ checked: false,
+ },
+ rule(),
+ MenuItemData {
+ id: "snap".into(),
+ label: "Snap to edges".into(),
+ kind: MenuRow::Action,
+ glyph: Glyph::None,
+ shortcut: "N".into(),
+ enabled: true,
+ danger: false,
+ checkable: true,
+ checked: self.snap,
+ },
+ ],
+ 2 => vec![
+ row("zoom-in", "Zoom in".into(), Glyph::Plus, "+", true),
+ row("zoom-out", "Zoom out".into(), Glyph::Minus, "-", true),
+ rule(),
+ row("start", "Go to start".into(), Glyph::SkipBack, "Home", true),
+ row("end", "Go to end".into(), Glyph::SkipForward, "End", true),
+ ],
+ _ => Vec::new(),
+ }
+ }
+
+ /// Everything the window shows.
+ /// Raises the bottom-right notice. Every caller is some other handler
+ /// that has just done — or refused to do — the thing it is reporting, so
+ /// this only records; the publish that handler was going to make anyway is
+ /// what puts it on screen.
+ fn notify(&mut self, message: &str, failed: bool) {
+ self.toast.token += 1;
+ self.toast.message = message.into();
+ self.toast.failed = failed;
+ }
+
+ fn publish(&self, app: &App, models: &Models) {
+ self.publish_lanes(app, models);
+ self.publish_chrome(app, models);
+ self.publish_dock(app, models);
+ }
+
+ /// The workspace's arrangement, walked into boxes.
+ ///
+ /// Its own publisher, like the lanes, and for the same reason in reverse:
+ /// dragging a gutter runs at pointer rate and changes nothing but this,
+ /// while everything else in the window — the clips, the menus, the
+ /// dialogs — changes without moving a single seat.
+ fn publish_dock(&self, _app: &App, models: &Models) {
+ let out = self.dock_layout();
+ sync(&models.seats, out.seats);
+ sync(&models.dividers, out.dividers);
+ }
+
+ /// The tree walked into the box Slint last reported.
+ ///
+ /// Walked afresh wherever it is wanted rather than cached: it is a handful
+ /// of nodes, and a cache would be one more thing that can disagree with
+ /// the tree — the same call the lane heights make.
+ fn dock_layout(&self) -> DockLayout {
+ let mut out = DockLayout::default();
+ let (width, height) = self.workspace;
+ if width > SEAT_GAP * 2.0 && height > SEAT_GAP * 2.0 {
+ lay_out(
+ &self.dock,
+ (
+ SEAT_GAP,
+ SEAT_GAP,
+ width - 2.0 * SEAT_GAP,
+ height - 2.0 * SEAT_GAP,
+ ),
+ &mut out,
+ );
+ }
+ out
+ }
+
+ /// The usable extent of one split — what a divider drag's pixels are a
+ /// fraction of.
+ fn split_extent(&self, index: usize) -> Option<f32> {
+ self.dock_layout().extents.get(index).copied()
+ }
+
+ /// The ratio a split is currently at.
+ fn split_ratio(&self, index: usize) -> Option<f32> {
+ match self.dock.at(&self.dock.split_path(index)?) {
+ Dock::Split { ratio, .. } => Some(*ratio),
+ _ => None,
+ }
+ }
+
+ /// The timeline and the readouts that follow it.
+ ///
+ /// Split from the chrome because this is what runs on every event of a
+ /// scrub, a drag, a trim or a knob: sixty times a second while a pointer
+ /// is down. Nothing a menu, a dialog or the engine lists show can have
+ /// changed under a pointer that is dragging a clip, and rebuilding them
+ /// anyway — three menus, the export panel's half-dozen formatted strings,
+ /// both engine lists — is what made the playhead trail the pointer and
+ /// then catch up in a jump.
+ fn publish_lanes(&self, app: &App, models: &Models) {
+ let editor = app.global::<Editor>();
+ sync(
+ &models.tabs,
+ self.timelines
+ .iter()
+ .map(|timeline| TimelineTabData {
+ id: timeline.id.as_str().into(),
+ name: timeline.name.as_str().into(),
+ })
+ .collect(),
+ );
+
+ // Reversed on the way out: top-most lane first is what the panel
+ // draws. Each row carries its own height and the running total above
+ // it, because the stack is no longer a multiple of one pitch and a
+ // prefix sum over a model is not something Slint can express.
+ let mut top = 0.0;
+ sync(
+ &models.tracks,
+ self.now()
+ .tracks
+ .iter()
+ .rev()
+ .map(|lane| {
+ let height = self.lane_height(lane);
+ let row = TrackData {
+ id: lane.id.as_str().into(),
+ name: lane.name.as_str().into(),
+ visible: lane.visible,
+ muted: lane.muted,
+ locked: lane.locked,
+ size: lane.size,
+ height,
+ top,
+ };
+ top += height;
+ row
+ })
+ .collect(),
+ );
+
+ sync(
+ &models.clips,
+ self.now()
+ .clips
+ .iter()
+ .map(|clip| ClipData {
+ id: clip.id.as_str().into(),
+ name: clip.name.as_str().into(),
+ kind: clip.kind,
+ row: self.row_of(&clip.track),
+ start: clip.start,
+ duration: clip.duration,
+ selected: self.selection.iter().any(|id| id == &clip.id),
+ fx: clip.fx,
+ transition_in: clip.transition_in,
+ fade_in: clip.fade_in,
+ fade_out: clip.fade_out,
+ volume: clip.volume,
+ text_body: clip.text_body.as_str().into(),
+ wave: if clip.kind == ClipKind::Audio {
+ self.wave(clip)
+ } else {
+ SharedString::new()
+ },
+ })
+ .collect(),
+ );
+
+ // What is under the playhead. The topmost picture wins, the way the
+ // compositor stacks them — a title over footage shows the title.
+ let showing = self
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| {
+ matches!(
+ clip.kind,
+ ClipKind::Video | ClipKind::Image | ClipKind::Text
+ ) && clip.start <= self.playhead
+ && self.playhead < clip.end()
+ })
+ .max_by_key(|clip| -self.row_of(&clip.track));
+ editor.set_has_picture(showing.is_some());
+ editor.set_preview_clip_name(
+ showing
+ .map(|clip| clip.name.as_str())
+ .unwrap_or_default()
+ .into(),
+ );
+ editor.set_preview_duration(self.duration());
+ editor.set_playing(self.playing);
+
+ // The ghost. Published as a whole rather than as an `active` flag
+ // beside five stale numbers: the lanes draw it or they do not, and a
+ // half-updated one would draw the last drag in the place of this one.
+ editor.set_drop(match &self.drop {
+ Some(plan) => DropData {
+ active: true,
+ kind: plan.kind,
+ label: plan.label.as_str().into(),
+ start: plan.start,
+ duration: plan.duration,
+ row: plan.row,
+ },
+ None => DropData::default(),
+ });
+
+ editor.set_selected_clip(self.selected());
+ editor.set_timeline_current_tab(self.active as i32);
+ editor.set_playhead(self.playhead);
+ editor.set_scroll_left(self.scroll_left);
+ editor.set_seconds_per_pixel(self.seconds_per_pixel);
+ editor.set_frame_rate(self.frame_rate);
+ editor.set_tool(self.tool);
+ editor.set_snap(self.snap);
+ editor.set_selected_count(self.selection.len() as i32);
+ editor.set_has_av_tools(self.has_av_tools());
+ editor.set_merge_blocked_because(match self.merge_blocked() {
+ Some(reason) => reason.into(),
+ None => SharedString::new(),
+ });
+ }
+
+ /// The menus, the dialogs and the engine lists.
+ ///
+ /// Every one of these is opened by a click, and every path that can open
+ /// one goes through the full `publish` — so the rows are always rebuilt
+ /// before the surface that shows them appears.
+ fn publish_chrome(&self, app: &App, models: &Models) {
+ let editor = app.global::<Editor>();
+
+ app.set_on_start(self.on_start);
+ app.set_project_name(self.project_name.as_str().into());
+ app.set_toast(ToastData {
+ token: self.toast.token,
+ message: self.toast.message.as_str().into(),
+ failed: self.toast.failed,
+ });
+ let (_, width, height) = RESOLUTIONS[self.start.resolution.min(RESOLUTIONS.len() - 1)];
+ let (_, num, den) = START_RATES[self.start.rate.min(START_RATES.len() - 1)];
+ app.set_start(StartData {
+ name: self.start.name.as_str().into(),
+ location: self.start.location.as_str().into(),
+ resolution: self.start.resolution as i32,
+ rate: self.start.rate as i32,
+ size_readout: format!("{width} x {height}").into(),
+ rate_readout: format!("{num}/{den} fps").into(),
+ busy: self.start.busy,
+ error: self.start.error.as_str().into(),
+ });
+ sync(
+ &models.recents,
+ self.recents
+ .iter()
+ .map(|project| RecentProjectData {
+ path: project.path.as_str().into(),
+ name: project.name.as_str().into(),
+ detail: format!(
+ "{} x {} · {:.2} fps",
+ project.width,
+ project.height,
+ project.rate_num as f32 / project.rate_den as f32
+ )
+ .into(),
+ when: project.when.as_str().into(),
+ // No decoder here, so no poster: the row falls back to its
+ // film mark, which is what the reference does for a project
+ // with nothing visual on it or whose media has moved.
+ ..Default::default()
+ })
+ .collect(),
+ );
+ let (width, height) = OUTPUTS[self.ratio.min(OUTPUTS.len() - 1)];
+ editor.set_output_width(width);
+ editor.set_output_height(height);
+ editor.set_ratio_index(self.ratio as i32);
+ editor.set_quality_index(self.quality as i32);
+
+ let rows = self.menu();
+ editor.set_menu_height(Studio::menu_height(&rows));
+ sync(&models.menu, rows);
+ editor.set_menu_token(self.menu_token);
+
+ app.set_export(self.export_data());
+ app.set_settings(SettingsData {
+ open: self.settings.open,
+ tab: self.settings.tab,
+ language: self.settings.language as i32,
+ transcribe_language: self.settings.transcribe_language,
+ disk: {
+ let on_disk: f32 = self
+ .transcribers
+ .iter()
+ .chain(self.voices.iter())
+ .filter(|model| model.installed)
+ .map(|model| model.megabytes)
+ .sum();
+ let count = self
+ .transcribers
+ .iter()
+ .chain(self.voices.iter())
+ .filter(|model| model.installed)
+ .count();
+ format!("{count} installed · {on_disk:.0} MB on disk").into()
+ },
+ version: "0.1.0".into(),
+ engine: "concat-engine · ffmpeg 7.1".into(),
+ });
+ sync(&models.transcribers, Studio::model_rows(&self.transcribers));
+ sync(&models.voices, Studio::model_rows(&self.voices));
+
+ let av = self.av_menu();
+ editor.set_av_height(Studio::menu_height(&av));
+ sync(&models.av, av);
+ editor.set_av_token(self.av_token);
+
+ let bar = self.menu_bar();
+ app.set_app_menu_height(Studio::menu_height(&bar));
+ sync(&models.bar, bar);
+ app.set_app_menu_token(self.menu_bar_token);
+ app.set_open_menu(self.open_menu);
+ }
+}
+
+/// The audio envelope, as SVG path commands in a 1x1 box.
+///
+/// Columns, not a curve. The reference fills one rectangle per pixel of clip
+/// width — `context.rect(x + column, top, 1, ...)` for every column, then one
+/// fill — so its waveform is a stepped silhouette with a flat top on every
+/// column. Drawing the same peaks as a polyline gives a smooth, rounded shape
+/// that reads as a graph of something rather than as audio.
+///
+/// There is no decoder in this tree, so the peaks are synthesised from the
+/// media id — deterministic, so a clip keeps its shape across a republish, and
+/// two clips cut from one file agree where they were cut. Swap this for the
+/// real buckets the day something decodes; the path it returns is the whole
+/// contract.
+///
+/// Normalised rather than drawn in pixels so a zoom costs nothing: the Path
+/// that renders it stretches the box onto the clip's current width.
+fn wave_path(media: &str, source_start: f32, duration: f32, gain: f32) -> String {
+ /// Columns across the clip. The reference gets one per pixel because it
+ /// redraws at the clip's current width; this is drawn once and stretched,
+ /// so the count is fixed — enough that the steps read as columns and not
+ /// as a bar chart, few enough that the string stays a few kilobytes.
+ const COLUMNS: usize = 128;
+ /// Silence still draws a sliver, the way the reference's `max(1, ...)`
+ /// keeps a one-pixel line rather than a gap in the middle of a clip.
+ const FLOOR: f32 = 0.012;
+
+ if duration <= 0.0 {
+ return String::new();
+ }
+
+ // xorshift32 over a seed folded from the id, so no rand dependency and no
+ // shared state between clips.
+ let mut seed = media.bytes().fold(0x2545_f491_u32, |hash, byte| {
+ (hash ^ byte as u32).wrapping_mul(16_777_619)
+ }) | 1;
+ let mut random = move || {
+ seed ^= seed << 13;
+ seed ^= seed >> 17;
+ seed ^= seed << 5;
+ (seed >> 8) as f32 / (1 << 24) as f32
+ };
+
+ // Drawn amplitude follows the clip's gain, so turning a clip up makes its
+ // waveform visibly taller. Clamped, or a boosted clip would bleed into the
+ // lane above.
+ let gain = gain.max(0.0);
+ let mut path = String::with_capacity(COLUMNS * 56);
+
+ for column in 0..COLUMNS {
+ let left = column as f32 / COLUMNS as f32;
+ let right = (column + 1) as f32 / COLUMNS as f32;
+ // A slow syllabic swell under the noise, so it reads as speech rather
+ // than as static. Phase follows the in-point, which is what makes two
+ // clips cut from one file line up where they were cut.
+ let at = source_start + (column as f32 / COLUMNS as f32) * duration;
+ let envelope = 0.35 + 0.3 * (at * 2.3).sin().abs() + 0.25 * random();
+ let amplitude = ((envelope * gain).clamp(0.0, 1.0) * 0.48).max(FLOOR);
+ let (top, bottom) = (0.5 - amplitude, 0.5 + amplitude);
+
+ // Columns butt up against each other rather than leaving a gap: the
+ // reference's are contiguous, which is what makes a loud passage read
+ // as a solid block instead of a comb.
+ path.push_str(&format!(
+ "M {left:.4} {top:.4} L {right:.4} {top:.4} \
+ L {right:.4} {bottom:.4} L {left:.4} {bottom:.4} Z "
+ ));
+ }
+
+ path
+}
+
+/// The marks a drag chip can wear — lucide's own path data, the same source as
+/// ui/icons.slint. Duplicated rather than reached for because the glyphs live
+/// in the Slint tree as `Path` elements, and an element cannot be read back
+/// out as a string.
+fn chip_glyph(kind: ClipKind) -> &'static str {
+ match kind {
+ // lucide/film
+ ClipKind::Video => {
+ "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z \
+ M7 3v18 M3 7.5h4 M3 12h18 M3 16.5h4 M17 3v18 M17 7.5h4 M17 16.5h4"
+ }
+ // lucide/music
+ ClipKind::Audio => {
+ "M9 18V5l12-2v13 M3 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 \
+ M15 16a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"
+ }
+ // lucide/image
+ ClipKind::Image => {
+ "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z \
+ M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21"
+ }
+ // lucide/type
+ ClipKind::Text => "M12 4v16 M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2 M9 20h6",
+ // lucide/audio-lines
+ ClipKind::Filter => "M2 10v3 M6 6v11 M10 3v18 M14 8v7 M18 5v13 M22 10v3",
+ }
+}
+
+/// The same again for a panel being dragged out of its seat. The slugs are
+/// the ones `Panes.id` hands out, and they are what the payload carries.
+fn pane_glyph(slug: &str) -> &'static str {
+ match slug {
+ // lucide/image
+ "preview" => {
+ "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z \
+ M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21"
+ }
+ // lucide/sliders-horizontal
+ "inspector" => {
+ "M10 5H3 M12 19H3 M14 3v4 M16 17v4 M21 12h-9 M21 19h-5 M21 5h-7 \
+ M8 10v4 M8 12H3"
+ }
+ // lucide/rows-3
+ "timeline" => {
+ "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z \
+ M21 9H3 M21 15H3"
+ }
+ // lucide/film
+ _ => {
+ "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z \
+ M7 3v18 M3 7.5h4 M3 12h18 M3 16.5h4 M17 3v18 M17 7.5h4 M17 16.5h4"
+ }
+ }
+}
+
+/// `&`, `<` and `>` out of a name that is going into an SVG document.
+fn xml_escaped(text: &str) -> String {
+ text.replace('&', "&amp;")
+ .replace('<', "&lt;")
+ .replace('>', "&gt;")
+}
+
+/// The chip that hangs off the cursor while something is dragged out of the
+/// library, as an SVG document.
+///
+/// SVG rather than a pixel buffer, and for two reasons. Slint rasterises one
+/// through the window's own font collection — so the name on the chip is set
+/// in the same Inter the cards are, from the face this binary already
+/// embeds — and the drag overlay draws it at the window's scale factor rather
+/// than at whatever resolution a buffer was baked at.
+///
+/// Sized in logical points, because that is how the overlay reads it back:
+/// `render_drag_image_overlay` takes the image's own size as its size on
+/// screen. `PAD` is the margin the drop shadow needs to fall into; the visible
+/// chip is inset by it, which is why the offsets the DragAreas pass are that
+/// much larger than the gap they want.
+fn drag_chip_svg(
+ glyph: &str,
+ label: &str,
+ wave: &str,
+ mark: slint::Color,
+ well: slint::Color,
+ ground: slint::Color,
+ ink: slint::Color,
+) -> String {
+ /// Room for the shadow to fall into, on every side.
+ const PAD: f32 = 5.0;
+ const CHIP_H: f32 = 32.0;
+ /// The badge, and the glyph centred in it.
+ const BADGE: f32 = 22.0;
+ const MARK: f32 = 16.0;
+ /// Inter's average advance at 12px, rounded up. A chip a few points wider
+ /// than its text is a chip; one a few points narrower is a bug.
+ const ADVANCE: f32 = 6.4;
+ /// Long enough for a take name, short enough not to become a banner.
+ const MAX_CHARS: usize = 26;
+
+ let label: String = if label.chars().count() > MAX_CHARS {
+ label.chars().take(MAX_CHARS - 1).collect::<String>() + "\u{2026}"
+ } else {
+ label.to_string()
+ };
+ let text_x = PAD + 10.0 + BADGE;
+ let chip_w = (text_x - PAD + label.chars().count() as f32 * ADVANCE + 12.0).clamp(96.0, 268.0);
+ let (width, height) = (chip_w + 2.0 * PAD, CHIP_H + 2.0 * PAD);
+
+ // The badge holds the file's own envelope when there is one, and the
+ // kind's mark otherwise — the same rule the bin card follows, so what is
+ // in the air looks like the card it came off.
+ let badge_art = if wave.is_empty() {
+ format!(
+ r#"<g transform="translate({x} {y}) scale({scale})" fill="none" stroke="{mark}"
+stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="{glyph}"/></g>"#,
+ x = PAD + 5.0 + (BADGE - MARK) / 2.0,
+ y = PAD + 5.0 + (BADGE - MARK) / 2.0,
+ scale = MARK / 24.0,
+ mark = hex_of(mark),
+ )
+ } else {
+ format!(
+ r#"<g transform="translate({x} {y}) scale({BADGE})"><path d="{wave}" fill="{mark}"/></g>"#,
+ x = PAD + 5.0,
+ y = PAD + 5.0,
+ mark = hex_of(mark),
+ )
+ };
+
+ format!(
+ r##"<svg xmlns="http://www.w3.org/2000/svg" width="{width}" height="{height}" viewBox="0 0 {width} {height}">
+<filter id="drop" x="-30%" y="-30%" width="170%" height="170%">
+<feDropShadow dx="0" dy="1.5" stdDeviation="2" flood-color="#000000" flood-opacity="0.55"/></filter>
+<rect x="{cx}" y="{cy}" width="{cw}" height="{ch}" rx="8" fill="{ground}" stroke="{mark}" stroke-opacity="0.65" filter="url(#drop)"/>
+<rect x="{bx}" y="{by}" width="{BADGE}" height="{BADGE}" rx="6" fill="{well}"/>
+{badge_art}
+<text x="{tx}" y="{ty}" font-family="Inter" font-size="12" fill="{ink}">{label}</text>
+</svg>"##,
+ cx = PAD + 0.5,
+ cy = PAD + 0.5,
+ cw = chip_w - 1.0,
+ ch = CHIP_H - 1.0,
+ bx = PAD + 5.0,
+ by = PAD + 5.0,
+ tx = text_x,
+ // The baseline, not the middle: usvg honours `dominant-baseline`
+ // unevenly, and a number here is one fewer thing to be surprised by.
+ ty = PAD + CHIP_H / 2.0 + 4.2,
+ ground = hex_of(ground),
+ mark = hex_of(mark),
+ well = hex_of(well),
+ ink = hex_of(ink),
+ label = xml_escaped(&label),
+ )
+}
+
+// ── the launch screen ────────────────────────────────────────────────────────
+
+/// The frame sizes the launch screen offers, and what each label means.
+/// The labels are the only half Slint sees; everything that has to be a number
+/// stays here, so there is one place that knows 4K is 3840 x 2160.
+const RESOLUTIONS: [(&str, i32, i32); 4] = [
+ ("1080p", 1920, 1080),
+ ("720p", 1280, 720),
+ ("4K", 3840, 2160),
+ ("Vertical", 1080, 1920),
+];
+
+/// The frame rates, as exact fractions. 29.97 is 30000/1001 and never anything
+/// else — a decimal is for reading, and export must never be handed one.
+const START_RATES: [(&str, i32, i32); 5] = [
+ ("24", 24, 1),
+ ("25", 25, 1),
+ ("29.97", 30000, 1001),
+ ("30", 30, 1),
+ ("60", 60, 1),
+];
+
+/// The form on the launch screen.
+struct StartState {
+ name: String,
+ location: String,
+ resolution: usize,
+ rate: usize,
+ busy: bool,
+ error: String,
+}
+
+impl Default for StartState {
+ fn default() -> Self {
+ Self {
+ name: "Untitled project".into(),
+ // Desktop/Concat, the way the reference resolves it. Failing to
+ // find a home directory is not worth surfacing: the field starts
+ // empty, Create stays refused until something is typed, and
+ // Choose would fill it in on a build that has a picker.
+ location: std::env::var("HOME")
+ .map(|home| format!("{home}/Desktop/Concat"))
+ .unwrap_or_default(),
+ resolution: 0,
+ rate: 3,
+ busy: false,
+ error: String::new(),
+ }
+ }
+}
+
+/// A project that has been open before.
+///
+/// No store behind it in this tree, so `when` is a string rather than a
+/// timestamp: with nothing writing the list there is nothing for a clock to
+/// measure against, and the row wants a coarse phrase either way.
+struct RecentProject {
+ path: String,
+ name: String,
+ width: i32,
+ height: i32,
+ rate_num: i32,
+ rate_den: i32,
+ when: String,
+}
+
+fn recent(path: &str, name: &str, width: i32, height: i32, when: &str) -> RecentProject {
+ RecentProject {
+ path: path.into(),
+ name: name.into(),
+ width,
+ height,
+ rate_num: 30,
+ rate_den: 1,
+ when: when.into(),
+ }
+}
+
+fn demo_recents() -> Vec<RecentProject> {
+ vec![
+ recent(
+ "~/Desktop/Concat/untitled-project",
+ "Untitled project",
+ 1080,
+ 1920,
+ "yesterday",
+ ),
+ recent(
+ "~/Desktop/Concat/untitled-project-2",
+ "Untitled project",
+ 1080,
+ 1920,
+ "4 days ago",
+ ),
+ recent(
+ "~/Desktop/Concat/untitled-project-3",
+ "Untitled project",
+ 1920,
+ 1080,
+ "4 days ago",
+ ),
+ recent(
+ "~/Desktop/Concat/untitled-project-4",
+ "Untitled project",
+ 1920,
+ 1080,
+ "5 days ago",
+ ),
+ ]
+}
+
+// ── the workspace layout ─────────────────────────────────────────────────────
+//
+// The arrangement of views is a tree: a node is either one view or a split of
+// two nodes, side by side or one over the other. Dropping a panel on the edge
+// of a seat turns that seat into a split with the panel on the named side,
+// which is how a layout gets a shape the window did not start with — and it
+// can happen again inside either half, to any depth.
+//
+// It lives here rather than in Slint because Slint has no recursion: a
+// component cannot contain itself, so a nested layout cannot be drawn by
+// descending one. What crosses the boundary is this tree already walked flat —
+// see `lay_out`, and SeatBox/DockDivider in ui/dock.slint.
+
+/// Smallest a seat may be squeezed to by a divider drag. The old fixed layout
+/// carried the same two numbers as `min-col` and `min-row`.
+const SEAT_MIN_W: f32 = 240.0;
+const SEAT_MIN_H: f32 = 140.0;
+/// The floor that holds where the one above cannot: enough of a seat left to
+/// find its corner button with, which is the only way back from a layout that
+/// has been squeezed too far.
+const SEAT_MIN_GRAB: f32 = 64.0;
+/// The gutter between the halves of a split, and the margin round the lot.
+const SEAT_GAP: f32 = 8.0;
+
+enum Dock {
+ /// One view, filling its box.
+ Leaf(PaneKind),
+ /// Two nodes and the gutter between them. `columns` means side by side,
+ /// which is a vertical gutter dragged left and right; `ratio` is the share
+ /// of the usable extent — the box less the gutter — that the first takes.
+ Split {
+ columns: bool,
+ ratio: f32,
+ first: Box<Dock>,
+ second: Box<Dock>,
+ },
+}
+
+impl Dock {
+ fn leaf(kind: PaneKind) -> Box<Dock> {
+ Box::new(Dock::Leaf(kind))
+ }
+
+ /// The node a path names, following each step into the first branch or the
+ /// second. A path that runs past a leaf stops there, which cannot happen
+ /// for a path this module produced.
+ fn at(&self, path: &[bool]) -> &Dock {
+ let Some((step, rest)) = path.split_first() else {
+ return self;
+ };
+ match self {
+ Dock::Split { first, second, .. } => {
+ if *step {
+ second.at(rest)
+ } else {
+ first.at(rest)
+ }
+ }
+ leaf => leaf,
+ }
+ }
+
+ fn at_mut(&mut self, path: &[bool]) -> &mut Dock {
+ let Some((step, rest)) = path.split_first() else {
+ return self;
+ };
+ match self {
+ Dock::Split { first, second, .. } => {
+ if *step {
+ second.at_mut(rest)
+ } else {
+ first.at_mut(rest)
+ }
+ }
+ leaf => leaf,
+ }
+ }
+
+ /// The path to the nth leaf, counted in the same walk `lay_out` uses — so
+ /// the number a seat carries and the number a drop reports are the same
+ /// number. Paths rather than indices for the editing below, because an
+ /// index is invalidated by a change elsewhere in the tree and a path is
+ /// only invalidated by a change on its own way down.
+ fn leaf_path(&self, index: usize) -> Option<Vec<bool>> {
+ fn walk(node: &Dock, want: usize, seen: &mut usize, path: &mut Vec<bool>) -> bool {
+ match node {
+ Dock::Leaf(_) => {
+ if *seen == want {
+ return true;
+ }
+ *seen += 1;
+ false
+ }
+ Dock::Split { first, second, .. } => {
+ path.push(false);
+ if walk(first, want, seen, path) {
+ return true;
+ }
+ path.pop();
+ path.push(true);
+ if walk(second, want, seen, path) {
+ return true;
+ }
+ path.pop();
+ false
+ }
+ }
+ }
+ let (mut seen, mut path) = (0, Vec::new());
+ walk(self, index, &mut seen, &mut path).then_some(path)
+ }
+
+ /// The same for the nth split — parent before children, which is the order
+ /// `lay_out` numbers the gutters in.
+ fn split_path(&self, index: usize) -> Option<Vec<bool>> {
+ fn walk(node: &Dock, want: usize, seen: &mut usize, path: &mut Vec<bool>) -> bool {
+ let Dock::Split { first, second, .. } = node else {
+ return false;
+ };
+ if *seen == want {
+ return true;
+ }
+ *seen += 1;
+ path.push(false);
+ if walk(first, want, seen, path) {
+ return true;
+ }
+ path.pop();
+ path.push(true);
+ if walk(second, want, seen, path) {
+ return true;
+ }
+ path.pop();
+ false
+ }
+ let (mut seen, mut path) = (0, Vec::new());
+ walk(self, index, &mut seen, &mut path).then_some(path)
+ }
+
+ fn kind_at(&self, index: usize) -> Option<PaneKind> {
+ match self.at(&self.leaf_path(index)?) {
+ Dock::Leaf(kind) => Some(*kind),
+ _ => None,
+ }
+ }
+
+ /// Turn one leaf into a split, with a new view on the named side of it.
+ /// Half and half: the seat being split is the only thing that knows how
+ /// much room there is, and half of it is the answer that needs no rule.
+ fn split_leaf(&mut self, path: &[bool], kind: PaneKind, side: DockSide) {
+ let node = self.at_mut(path);
+ let existing = Box::new(std::mem::replace(node, Dock::Leaf(kind)));
+ let (columns, first, second) = match side {
+ DockSide::Left => (true, Dock::leaf(kind), existing),
+ DockSide::Right => (true, existing, Dock::leaf(kind)),
+ DockSide::Top => (false, Dock::leaf(kind), existing),
+ _ => (false, existing, Dock::leaf(kind)),
+ };
+ *node = Dock::Split {
+ columns,
+ ratio: 0.5,
+ first,
+ second,
+ };
+ }
+
+ /// Take a leaf out, and let its sibling take the space — the split it was
+ /// half of stops existing. A path with nothing above it is the whole tree,
+ /// which cannot be removed: a window with no seats has nowhere to put
+ /// anything back.
+ fn remove_leaf(&mut self, path: &[bool]) {
+ let Some((last, above)) = path.split_last() else {
+ return;
+ };
+ let parent = self.at_mut(above);
+ let survivor = match parent {
+ Dock::Split { first, second, .. } => {
+ let keep = if *last { first } else { second };
+ std::mem::replace(keep.as_mut(), Dock::Leaf(PaneKind::Media))
+ }
+ _ => return,
+ };
+ *parent = survivor;
+ }
+}
+
+/// The tree walked flat: a box per view, a box per gutter.
+#[derive(Default)]
+struct DockLayout {
+ seats: Vec<SeatBox>,
+ dividers: Vec<DockDivider>,
+ /// The usable extent of each split — its box less the gutter — in the same
+ /// order as `dividers`. A divider drag is a delta in pixels and a ratio is
+ /// a fraction, and this is what converts between them.
+ extents: Vec<f32>,
+}
+
+fn lay_out(node: &Dock, (x, y, w, h): (f32, f32, f32, f32), out: &mut DockLayout) {
+ match node {
+ Dock::Leaf(kind) => out.seats.push(SeatBox {
+ index: out.seats.len() as i32,
+ kind: *kind,
+ x,
+ y,
+ width: w.max(0.0),
+ height: h.max(0.0),
+ }),
+ Dock::Split {
+ columns,
+ ratio,
+ first,
+ second,
+ } => {
+ // The slot is taken before the children are walked, so a gutter's
+ // number is its split's position in a parent-first walk — which is
+ // what `split_path` counts and what a drag reports back.
+ let index = out.dividers.len();
+ out.dividers.push(DockDivider::default());
+ out.extents.push(0.0);
+
+ let along = if *columns { w } else { h };
+ let usable = (along - SEAT_GAP).max(0.0);
+ let head = (usable * ratio).clamp(0.0, usable);
+ out.extents[index] = usable;
+ out.dividers[index] = if *columns {
+ DockDivider {
+ index: index as i32,
+ columns: true,
+ x: x + head,
+ y,
+ width: SEAT_GAP,
+ height: h.max(0.0),
+ }
+ } else {
+ DockDivider {
+ index: index as i32,
+ columns: false,
+ x,
+ y: y + head,
+ width: w.max(0.0),
+ height: SEAT_GAP,
+ }
+ };
+
+ if *columns {
+ lay_out(first, (x, y, head, h), out);
+ lay_out(second, (x + head + SEAT_GAP, y, usable - head, h), out);
+ } else {
+ lay_out(first, (x, y, w, head), out);
+ lay_out(second, (x, y + head + SEAT_GAP, w, usable - head), out);
+ }
+ }
+ }
+}
+
+/// The arrangement the editor opens with: the library, the monitor and the
+/// inspector across the top, the timeline along the bottom. The same three
+/// shares the fixed layout carried, re-expressed as a tree — 0.31 of the width
+/// to the library and 0.22 to the inspector, which is 0.319 of what is left
+/// once the library has had its share.
+fn demo_dock() -> Dock {
+ Dock::Split {
+ columns: false,
+ ratio: 0.6,
+ first: Box::new(Dock::Split {
+ columns: true,
+ ratio: 0.31,
+ first: Dock::leaf(PaneKind::Media),
+ second: Box::new(Dock::Split {
+ columns: true,
+ ratio: 0.681,
+ first: Dock::leaf(PaneKind::Preview),
+ second: Dock::leaf(PaneKind::Inspector),
+ }),
+ }),
+ second: Dock::leaf(PaneKind::Timeline),
+ }
+}
+
+/// The top edge of a row, measured down the stack from the first lane.
+fn row_top(heights: &[f32], row: i32) -> f32 {
+ heights.iter().take(row.max(0) as usize).sum()
+}
+
+/// The row a point down the stack falls in, clamped to the stack.
+fn row_at(heights: &[f32], y: f32) -> i32 {
+ let mut top = 0.0;
+ for (row, height) in heights.iter().enumerate() {
+ top += height;
+ if y < top {
+ return row as i32;
+ }
+ }
+ (heights.len() as i32 - 1).max(0)
+}
+
+/// The row whose top edge is nearest a point down the stack.
+///
+/// What a *move* wants, and not the same question as `row_at`: dragging a clip
+/// halfway into the lane below should put it there, which is the rounding the
+/// old `delta / lane-height` did for free back when every lane was one height.
+fn nearest_row(heights: &[f32], y: f32) -> i32 {
+ let (mut top, mut best, mut best_distance) = (0.0_f32, 0_i32, f32::MAX);
+ for (row, height) in heights.iter().enumerate() {
+ let distance = (top - y).abs();
+ if distance < best_distance {
+ best_distance = distance;
+ best = row as i32;
+ }
+ top += height;
+ }
+ best
+}
+
+/// A lane, at the defaults everything but the demo uses: seen, heard,
+/// unlocked, and as tall as whatever ends up on it.
+fn track(id: &str, name: &str) -> TrackDoc {
+ TrackDoc {
+ id: id.into(),
+ name: name.into(),
+ visible: true,
+ muted: false,
+ locked: false,
+ size: TrackSize::Auto,
+ }
+}
+
+fn clip(
+ id: &str,
+ name: &str,
+ kind: ClipKind,
+ track: &str,
+ media: &str,
+ start: f32,
+ duration: f32,
+) -> ClipDoc {
+ ClipDoc {
+ id: id.into(),
+ name: name.into(),
+ kind,
+ track: track.into(),
+ media: media.into(),
+ preset: String::new(),
+ start,
+ duration,
+ source_start: 0.0,
+ scale: 1.0,
+ offset_x: 0.0,
+ offset_y: 0.0,
+ rotation: 0.0,
+ opacity: 1.0,
+ speed: 1.0,
+ preserve_pitch: true,
+ volume: 1.0,
+ fade_in: 0.0,
+ fade_out: 0.0,
+ fx: false,
+ transition_in: false,
+ text_body: String::new(),
+ detached_from: None,
+ text: TextStyleDoc::default(),
+ }
+}
+
+/// A cut the size of a real one, so the lanes are exercised at the zooms and
+/// widths a splitter drag actually produces.
+fn demo_studio() -> Studio {
+ let mut voice = clip("c1", "intro.mp3", ClipKind::Audio, "T1", "m1", 0.0, 3.4);
+ voice.fade_in = 0.4;
+ voice.fade_out = 0.6;
+ let mut line = clip("c2", "line-02.mp3", ClipKind::Audio, "T1", "m13", 4.2, 1.9);
+ line.fade_out = 0.3;
+ let mut out = clip("c3", "outro.mp3", ClipKind::Audio, "T1", "m17", 7.0, 5.2);
+ out.fade_in = 0.5;
+
+ let mut wide = clip("c4", "0001-0036.mp4", ClipKind::Video, "T2", "m2", 0.0, 1.2);
+ wide.fx = true;
+ let mut mid = clip("c5", "0036-0072.mp4", ClipKind::Video, "T2", "m3", 1.2, 1.2);
+ mid.transition_in = true;
+ let long = clip("c6", "0072-0134.mp4", ClipKind::Video, "T2", "m4", 2.4, 2.1);
+ let mut close = clip("c7", "0134-0182.mp4", ClipKind::Video, "T2", "m5", 5.1, 1.6);
+ close.transition_in = true;
+ close.fx = true;
+ // Punched in a little, so the Transform group opens on something other
+ // than four defaults the first time a video clip is selected.
+ close.scale = 1.25;
+ close.offset_y = -0.06;
+ let tail = clip("c8", "0232-0322.mp4", ClipKind::Video, "T2", "m6", 8.2, 3.0);
+
+ let mut title = clip("c9", "Title", ClipKind::Text, "T3", "", 0.6, 2.2);
+ title.text_body = "Concat — a cut worth keeping".into();
+ title.text = TextStyleDoc {
+ family: "Synonym".into(),
+ size: 0.11,
+ weight: 600.0,
+ ..Default::default()
+ };
+ let mut lower = clip("c10", "Lower third", ClipKind::Text, "T3", "", 5.4, 2.0);
+ lower.text_body = "Chapter one".into();
+ lower.text = TextStyleDoc {
+ size: 0.06,
+ weight: 500.0,
+ align: TextAlignment::Left,
+ fill: slint::Color::from_rgb_u8(0xcb, 0xf5, 0x3f),
+ plate: slint::Color::from_argb_u8(0xcc, 0, 0, 0),
+ ..Default::default()
+ };
+ // Lower thirds sit low in the frame, which is the whole of what makes them
+ // lower thirds.
+ lower.offset_y = 0.3;
+
+ // A layer over the cut, so the stack opens with one lane of each height:
+ // footage large, sound and titles medium, this minimal.
+ let mut layer = clip("c12", "Telephone", ClipKind::Filter, "T4", "", 4.2, 3.4);
+ layer.preset = "telephone".into();
+ layer.fade_in = 0.3;
+ layer.fade_out = 0.3;
+
+ let timeline = TimelineDoc {
+ id: "TL1".into(),
+ name: "Timeline 1".into(),
+ // Bottom-most first: T1 is the floor of the stack, T4 the top.
+ tracks: vec![
+ track("T1", "Track 1"),
+ track("T2", "Track 2"),
+ track("T3", "Track 3"),
+ track("T4", "Track 4"),
+ ],
+ clips: vec![
+ voice, line, out, wide, mid, long, close, tail, title, lower, layer,
+ ],
+ };
+
+ Studio {
+ waves: RefCell::new(std::collections::HashMap::new()),
+ timelines: vec![
+ timeline,
+ TimelineDoc {
+ id: "TL2".into(),
+ name: "Rough cut".into(),
+ tracks: vec![track("T5", "Track 1"), track("T6", "Track 2")],
+ clips: vec![clip(
+ "c11",
+ "0326-0452.mp4",
+ ClipKind::Video,
+ "T6",
+ "m7",
+ 0.0,
+ 4.2,
+ )],
+ },
+ ],
+ active: 0,
+ selection: Vec::new(),
+ playhead: 2.0,
+ scroll_left: 0.0,
+ // ~20px a second: a ten-second cut fits a pane at its default width.
+ seconds_per_pixel: 0.05,
+ frame_rate: 30.0,
+ tool: TimelineTool::Select,
+ snap: true,
+ ratio: 0,
+ quality: 1,
+ playing: false,
+ clipboard: None,
+ export: ExportState::default(),
+ settings: SettingsState::default(),
+ transcribers: demo_transcribers(),
+ voices: demo_voices(),
+ av_token: 0,
+ open_menu: -1,
+ menu_bar_token: 0,
+ menu_target: None,
+ menu_token: 0,
+ on_start: true,
+ start: StartState::default(),
+ recents: demo_recents(),
+ project_name: "Untitled project".into(),
+ dock: demo_dock(),
+ // Nothing until Slint says otherwise, which it does on its first
+ // layout. Publishing an empty workspace until then is right: there is
+ // no box to put a seat in yet.
+ workspace: (0.0, 0.0),
+ divider_press: None,
+ gesture: Gesture::None,
+ drop: None,
+ toast: ToastState::default(),
+ next_id: 100,
+ }
+}
+
+/// The operating system, named the way an issue report needs it.
+///
+/// Asked of the system rather than inferred: `target_os` says "macos", which
+/// is the one fact about the machine nobody ever has to be told. What is
+/// wanted is the release, because that is what a rendering bug or a file
+/// dialog behaving oddly turns out to depend on.
+///
+/// Spawning a process to find it out is fine here and only here: it happens
+/// once, at startup, and the answer is kept for the life of the window.
+fn os_description() -> String {
+ #[cfg(target_os = "macos")]
+ {
+ // Bare `sw_vers` prints all three lines at once, so this is one
+ // process rather than the three the flags would cost.
+ let fields = std::process::Command::new("sw_vers")
+ .output()
+ .ok()
+ .filter(|out| out.status.success())
+ .map(|out| String::from_utf8_lossy(&out.stdout).into_owned())
+ .unwrap_or_default();
+ let field = |key: &str| {
+ fields
+ .lines()
+ .find_map(|line| line.strip_prefix(key)?.split(':').nth(1))
+ .map(str::trim)
+ .filter(|value| !value.is_empty())
+ .map(str::to_owned)
+ };
+ let name = field("ProductName").unwrap_or_else(|| "macOS".into());
+ match (field("ProductVersion"), field("BuildVersion")) {
+ (Some(version), Some(build)) => format!("{name} {version} ({build})"),
+ (Some(version), None) => format!("{name} {version}"),
+ _ => name,
+ }
+ }
+ #[cfg(target_os = "linux")]
+ {
+ // The distribution's own name for itself, which is what a report
+ // wants; the kernel version is the next question, not the first.
+ if let Ok(release) = std::fs::read_to_string("/etc/os-release") {
+ if let Some(pretty) = release
+ .lines()
+ .find_map(|line| line.strip_prefix("PRETTY_NAME="))
+ .map(|value| value.trim_matches('"'))
+ .filter(|value| !value.is_empty())
+ {
+ return pretty.to_owned();
+ }
+ }
+ return "Linux".into();
+ }
+ #[cfg(target_os = "windows")]
+ {
+ return std::process::Command::new("cmd")
+ .args(["/c", "ver"])
+ .output()
+ .ok()
+ .filter(|out| out.status.success())
+ .map(|out| String::from_utf8_lossy(&out.stdout).trim().to_owned())
+ .filter(|value| !value.is_empty())
+ .unwrap_or_else(|| "Windows".into());
+ }
+ #[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))]
+ {
+ std::env::consts::OS.to_owned()
+ }
+}
+
+/// What Settings > About shows under "System information", and what its copy
+/// button puts on the clipboard.
+///
+/// One list, read twice: the rows on screen and the block that is copied are
+/// built from the same pairs, so a fact cannot be on the page and missing
+/// from the report. Gathered once — every line of it is fixed for the life of
+/// the process — and handed over as a model that is never replaced.
+fn system_facts() -> Vec<(&'static str, String)> {
+ vec![
+ (
+ "Application",
+ format!("Concat {}", env!("CARGO_PKG_VERSION")),
+ ),
+ (
+ "Build",
+ format!("{} · {}", env!("BUILD_PROFILE"), env!("BUILD_TARGET")),
+ ),
+ // Which of the two renderers in Cargo.toml this binary was built
+ // with. The first question to ask about anything that looks wrong on
+ // screen, and the one nobody can answer by looking at the window.
+ (
+ "Renderer",
+ if cfg!(feature = "skia") {
+ "Skia"
+ } else {
+ "FemtoVG (wgpu)"
+ }
+ .into(),
+ ),
+ ("Engine", "concat-engine · ffmpeg 7.1".into()),
+ ("Operating system", os_description()),
+ (
+ "Processor",
+ format!(
+ "{} · {} threads",
+ std::env::consts::ARCH,
+ std::thread::available_parallelism().map_or(0, |count| count.get())
+ ),
+ ),
+ ("Toolchain", env!("BUILD_RUSTC").into()),
+ ]
+}
+
+fn main() -> Result<(), slint::PlatformError> {
+ // The custom title bar. On macOS the native bar is hidden and the traffic
+ // lights are overlaid on the strip the UI draws — the winit spelling of
+ // the Tauri build's `titleBarStyle: "Overlay"`. Other platforms keep
+ // their decorations for now; the reference goes undecorated with its own
+ // window buttons on Windows, which is a separate port.
+ #[cfg(target_os = "macos")]
+ {
+ use slint::winit_030::winit::platform::macos::WindowAttributesExtMacOS;
+ slint::BackendSelector::new()
+ .backend_name("winit".into())
+ // Metal, by name. Skia picks its surface from a cfg chain — vulkan,
+ // opengl, metal, softbuffer — and on macOS that already lands on
+ // metal_surface, so this changes nothing about which one is used.
+ // What it changes is what happens when it cannot be had: the chain
+ // walks on to Skia's CPU rasteriser and the app runs, slowly and
+ // silently, at a fraction of the frame rate on a machine that has
+ // a GPU. Requiring it turns that into a refusal to start, which is
+ // a fault you can see. Same reason Windows requires D3D below,
+ // though there it is also the only way to reach it.
+ .require_metal()
+ .with_winit_window_attributes_hook(|attributes| {
+ attributes
+ .with_titlebar_transparent(true)
+ .with_title_hidden(true)
+ .with_fullsize_content_view(true)
+ })
+ .select()?;
+ }
+
+ // Windows renders on the CPU unless Direct3D is asked for by name. Skia
+ // picks its surface from a cfg chain in i-slint-renderer-skia — vulkan ->
+ // opengl -> metal -> softbuffer — that has no Direct3D arm at all, and
+ // whose opengl arm is `not(any(target_vendor = "apple", target_family =
+ // "windows", ...))`, i.e. explicitly not Windows. So with plain
+ // renderer-skia every arm but the last fails here and DefaultSurface
+ // resolves to software_surface: Skia's CPU rasteriser, even though
+ // d3d_surface.rs is compiled in and SkiaRenderer::default_direct3d exists.
+ // require_d3d() is the only thing that reaches it.
+ //
+ // macOS lands on metal_surface and Linux on opengl_surface from that same
+ // chain, so both are already on the GPU and neither needs this.
+ #[cfg(target_family = "windows")]
+ slint::BackendSelector::new()
+ .backend_name("winit".into())
+ .require_d3d()
+ .select()?;
+
+ let app = App::new()?;
+ app.set_macos(cfg!(target_os = "macos"));
+
+ // One handle for the whole of main. Everything the editor's views read and
+ // report lives on this global rather than on the window — see
+ // ui/editor.slint — and `global()` only borrows, so it can be held across
+ // every binding below.
+ let editor = app.global::<Editor>();
+
+ // The strip's drag region and double-click. Only the winit window can do
+ // either; the scene graph forwards the gestures here.
+ app.on_titlebar_begin_drag({
+ let weak = app.as_weak();
+ move || {
+ use slint::winit_030::WinitWindowAccessor;
+ if let Some(app) = weak.upgrade() {
+ app.window().with_winit_window(|window| {
+ let _ = window.drag_window();
+ });
+ }
+ }
+ });
+
+ app.on_titlebar_toggle_maximize({
+ let weak = app.as_weak();
+ move || {
+ use slint::winit_030::WinitWindowAccessor;
+ if let Some(app) = weak.upgrade() {
+ app.window().with_winit_window(|window| {
+ window.set_maximized(!window.is_maximized());
+ });
+ }
+ }
+ });
+
+ // --- effect lists ----------------------------------------------------
+ let video = Rc::new(VecModel::from(vec![
+ EffectData {
+ id: 1,
+ name: SharedString::from("Lumetri Color"),
+ audio: false,
+ },
+ EffectData {
+ id: 2,
+ name: SharedString::from("Motion Blur"),
+ audio: false,
+ },
+ EffectData {
+ id: 3,
+ name: SharedString::from("Glow"),
+ audio: false,
+ },
+ ]));
+ let audio = Rc::new(VecModel::from(vec![
+ EffectData {
+ id: 4,
+ name: SharedString::from("EQ"),
+ audio: true,
+ },
+ EffectData {
+ id: 5,
+ name: SharedString::from("Denoiser"),
+ audio: true,
+ },
+ ]));
+
+ editor.set_video_effects(ModelRc::from(video.clone()));
+ editor.set_audio_effects(ModelRc::from(audio.clone()));
+
+ let next_id = Rc::new(Cell::new(6));
+
+ editor.on_add_effect({
+ let video = video.clone();
+ let audio = audio.clone();
+ let next_id = next_id.clone();
+ move |is_audio| {
+ let list = if is_audio { &audio } else { &video };
+ let id = next_id.get();
+ next_id.set(id + 1);
+ let name = POOL[list.row_count() % POOL.len()];
+ list.push(EffectData {
+ id,
+ name: SharedString::from(name),
+ audio: is_audio,
+ });
+ }
+ });
+
+ editor.on_remove_effect({
+ let video = video.clone();
+ let audio = audio.clone();
+ move |id| {
+ for list in [&video, &audio] {
+ if let Some(row) = list.iter().position(|effect| effect.id == id) {
+ list.remove(row);
+ return;
+ }
+ }
+ }
+ });
+
+ // --- the bin ---------------------------------------------------------
+ let library = Rc::new(Library::new(demo_library()));
+ let view = Rc::new(VecModel::<MediaItemData>::default());
+ editor.set_media(ModelRc::from(view.clone()));
+ library.publish(&app, &view);
+
+ // Every one of these ends in the same republish, so there is one place
+ // where the panel's idea of the bin can go wrong.
+ editor.on_media_filter_changed({
+ let weak = app.as_weak();
+ let library = library.clone();
+ let view = view.clone();
+ move |filter| {
+ let Some(app) = weak.upgrade() else { return };
+ library.filter.set(filter);
+ library.publish(&app, &view);
+ }
+ });
+
+ editor.on_media_select({
+ let weak = app.as_weak();
+ let library = library.clone();
+ let view = view.clone();
+ move |id, additive| {
+ let Some(app) = weak.upgrade() else { return };
+ for item in library.items.borrow_mut().iter_mut() {
+ if item.id == id {
+ // A modifier toggles this one and leaves the rest alone; a
+ // plain click makes it the whole selection.
+ item.selected = !additive || !item.selected;
+ } else if !additive {
+ item.selected = false;
+ }
+ }
+ library.publish(&app, &view);
+ }
+ });
+
+ // A marquee closed over the grid. The panel hands down the block of cells
+ // it caught rather than a list of ids: the bin is placed by arithmetic on
+ // that side, so that side is the only one that knows which cell a card is
+ // in, and a rectangle of cells says the same thing in six numbers without
+ // a model to carry it back.
+ //
+ // The walk is over the *filtered* order, because that is what the grid was
+ // laid out from — the panel's third card is the third card the filter let
+ // through, not the third row of the bin. Cards the filter is hiding are
+ // not in the grid and so were never under the band: a plain sweep clears
+ // them the way the reference's `onSelect([])` does, and a shift-sweep
+ // leaves them exactly as they were.
+ editor.on_media_band_selected({
+ let weak = app.as_weak();
+ let library = library.clone();
+ let view = view.clone();
+ move |columns, from_col, to_col, from_row, to_row, additive| {
+ let Some(app) = weak.upgrade() else { return };
+ let filter = library.filter.get();
+ let mut cell = 0;
+ for item in library.items.borrow_mut().iter_mut() {
+ if !Library::shows(filter, item.kind) {
+ item.selected = additive && item.selected;
+ continue;
+ }
+ let (row, col) = (cell / columns.max(1), cell % columns.max(1));
+ let caught = row >= from_row && row <= to_row && col >= from_col && col <= to_col;
+ item.selected = caught || (additive && item.selected);
+ cell += 1;
+ }
+ library.publish(&app, &view);
+ }
+ });
+
+ editor.on_media_remove({
+ let weak = app.as_weak();
+ let library = library.clone();
+ let view = view.clone();
+ move |id| {
+ let Some(app) = weak.upgrade() else { return };
+ library.items.borrow_mut().retain(|item| item.id != id);
+ library.publish(&app, &view);
+ }
+ });
+
+ editor.on_media_remove_selected({
+ let weak = app.as_weak();
+ let library = library.clone();
+ let view = view.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ library.items.borrow_mut().retain(|item| !item.selected);
+ library.publish(&app, &view);
+ }
+ });
+
+ // No file picker in this crate — the reference opens Tauri's, and reaching
+ // for a native dialog here is a dependency decision, not a detail of the
+ // panel. The callback exists so the panel is wired to something the day
+ // one lands. (`media-activate` is handled with the timeline's own drops,
+ // further down: it needs the studio a double-click puts a clip into.)
+ editor.on_import_media(|| {});
+
+ // --- the timeline ----------------------------------------------------
+ //
+ // Every handler below ends in a republish, and there are two of them: the
+ // lanes alone for anything a pointer can drag, and the whole window for
+ // everything else. One path that always produces a consistent panel is
+ // still worth more than row-level updates — but a gesture cannot afford
+ // to rebuild the menus and the dialogs sixty times a second on its way
+ // through.
+ let studio = Rc::new(RefCell::new(demo_studio()));
+ let models = Rc::new(Models {
+ tabs: Rc::new(VecModel::default()),
+ tracks: Rc::new(VecModel::default()),
+ clips: Rc::new(VecModel::default()),
+ menu: Rc::new(VecModel::default()),
+ av: Rc::new(VecModel::default()),
+ bar: Rc::new(VecModel::default()),
+ transcribers: Rc::new(VecModel::default()),
+ voices: Rc::new(VecModel::default()),
+ seats: Rc::new(VecModel::default()),
+ dividers: Rc::new(VecModel::default()),
+ recents: Rc::new(VecModel::default()),
+ });
+ // Handed over once, here, and never replaced: a fresh model is a reset,
+ // and a reset rebuilds every row that hangs off it.
+ editor.set_timeline_tabs(ModelRc::from(models.tabs.clone()));
+ editor.set_tracks(ModelRc::from(models.tracks.clone()));
+ editor.set_clips(ModelRc::from(models.clips.clone()));
+ editor.set_menu_items(ModelRc::from(models.menu.clone()));
+ editor.set_av_items(ModelRc::from(models.av.clone()));
+ app.set_app_menu_items(ModelRc::from(models.bar.clone()));
+ app.set_transcribers(ModelRc::from(models.transcribers.clone()));
+ app.set_voices(ModelRc::from(models.voices.clone()));
+ editor.set_seats(ModelRc::from(models.seats.clone()));
+ editor.set_dividers(ModelRc::from(models.dividers.clone()));
+ app.set_recents(ModelRc::from(models.recents.clone()));
+
+ // Settings > About's block, gathered once. Nothing in it can change while
+ // the process runs, so it is set here beside the models that are handed
+ // over rather than rebuilt on every publish — and the rows and the string
+ // the copy button hands to the clipboard are built from the one list, so
+ // a fact cannot be on the page and missing from the paste.
+ let facts = system_facts();
+ app.set_system_report(
+ facts
+ .iter()
+ .map(|(label, value)| format!("{label}: {value}"))
+ .collect::<Vec<_>>()
+ .join("\n")
+ .into(),
+ );
+ app.set_system_facts(ModelRc::from(Rc::new(VecModel::from(
+ facts
+ .into_iter()
+ .map(|(label, value)| SystemFactData {
+ label: label.into(),
+ value: value.into(),
+ })
+ .collect::<Vec<_>>(),
+ ))));
+
+ // The two ladders' labels, handed over once: they are constants, and the
+ // index the form reports back is what carries the meaning. See
+ // RESOLUTIONS and START_RATES.
+ app.set_start_resolutions(ModelRc::from(Rc::new(VecModel::from(
+ RESOLUTIONS
+ .iter()
+ .map(|(label, _, _)| SharedString::from(*label))
+ .collect::<Vec<_>>(),
+ ))));
+ app.set_start_rates(ModelRc::from(Rc::new(VecModel::from(
+ START_RATES
+ .iter()
+ .map(|(label, _, _)| SharedString::from(*label))
+ .collect::<Vec<_>>(),
+ ))));
+
+ // Mutate, then republish. Handed the weak handle rather than the app so a
+ // callback outliving the window is a no-op instead of a panic.
+ macro_rules! publishing {
+ ($publish:ident, |$state:ident $(, $arg:ident : $ty:ty)*| $body:block) => {{
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ move |$($arg : $ty),*| {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut $state = studio.borrow_mut();
+ $body
+ }
+ studio.borrow().$publish(&app, &models);
+ }
+ }};
+ }
+
+ /// The whole window. What anything that opens a menu or a dialog uses.
+ macro_rules! on_timeline {
+ ($($handler:tt)*) => { publishing!(publish, $($handler)*) };
+ }
+
+ /// The lanes and the readouts that follow them, and nothing else. For the
+ /// handlers a pointer drives directly — a scrub, a move, a trim, a knob —
+ /// which arrive as a stream of events and must each cost as little as the
+ /// change they carry.
+ macro_rules! on_lanes {
+ ($($handler:tt)*) => { publishing!(publish_lanes, $($handler)*) };
+ }
+
+ // ── the launch screen ──
+ //
+ // Everything here ends in the full publish: the form is chrome, and the
+ // one thing it can do is stop being on screen.
+ app.on_start_name_edited(on_timeline!(|state, name: SharedString| {
+ state.start.name = name.to_string();
+ }));
+ app.on_start_location_edited(on_timeline!(|state, path: SharedString| {
+ state.start.location = path.to_string();
+ }));
+ app.on_start_resolution_changed(on_timeline!(|state, index: i32| {
+ state.start.resolution = (index.max(0) as usize).min(RESOLUTIONS.len() - 1);
+ }));
+ app.on_start_rate_changed(on_timeline!(|state, index: i32| {
+ state.start.rate = (index.max(0) as usize).min(START_RATES.len() - 1);
+ }));
+ app.on_start_dismiss_error(on_timeline!(|state| {
+ state.start.error.clear();
+ }));
+
+ // No folder picker in this crate, for the reason `import-media` has none:
+ // reaching for a native dialog is a dependency decision and not a detail
+ // of this screen. The seam is here so the field is wired to something the
+ // day one lands.
+ app.on_start_browse(|| {});
+
+ // Creating a project is, here, choosing what the editor opens as. There is
+ // no engine to write a manifest and no folder to make — so what the form
+ // decides is what it can actually decide: the name in the title bar and
+ // the rate and frame size the timeline and the monitor work in.
+ app.on_start_create(on_timeline!(|state| {
+ let name = state.start.name.trim().to_string();
+ state.project_name = if name.is_empty() {
+ "Untitled project".into()
+ } else {
+ name
+ };
+
+ let (_, width, height) = RESOLUTIONS[state.start.resolution];
+ let (_, num, den) = START_RATES[state.start.rate];
+ state.frame_rate = num as f32 / den as f32;
+ // The monitor's list is a different ladder — a project's frame size is
+ // not always one of the aspect presets — so this only moves it when
+ // the two agree, and leaves it where it is when they do not.
+ if let Some(index) = OUTPUTS.iter().position(|size| *size == (width, height)) {
+ state.ratio = index;
+ }
+ state.on_start = false;
+ }));
+
+ // Reopening does what creating does, minus the form: the recent row
+ // already carries the size and the rate the project was made with.
+ app.on_start_open_recent(on_timeline!(|state, path: SharedString| {
+ // Copied out before anything is written: the row lives in the same
+ // struct as the fields being set from it.
+ let Some((name, rate, size)) = state
+ .recents
+ .iter()
+ .find(|entry| entry.path == path.as_str())
+ .map(|entry| {
+ (
+ entry.name.clone(),
+ entry.rate_num as f32 / entry.rate_den as f32,
+ (entry.width, entry.height),
+ )
+ })
+ else {
+ return;
+ };
+ state.project_name = name;
+ state.frame_rate = rate;
+ if let Some(index) = OUTPUTS.iter().position(|entry| *entry == size) {
+ state.ratio = index;
+ }
+ state.on_start = false;
+ }));
+
+ app.on_start_forget_recent(on_timeline!(|state, path: SharedString| {
+ state.recents.retain(|entry| entry.path != path.as_str());
+ }));
+
+ // ── the workspace's arrangement ──
+ //
+ // Its own publisher rather than the full one: nothing a seat does can
+ // change a clip, a menu or a dialog, and a gutter drag runs at pointer
+ // rate. See `publish_dock`.
+ macro_rules! on_dock {
+ ($($handler:tt)*) => { publishing!(publish_dock, $($handler)*) };
+ }
+
+ editor.on_workspace_resized(on_dock!(|state, width: f32, height: f32| {
+ state.workspace = (width, height);
+ }));
+
+ // Picking from a seat's dropdown. An assignment and nothing else: the view
+ // that was here is simply not here any more, and the same view may now be
+ // in two seats at once. That is the difference between this and a drop —
+ // see below, where there is somewhere for the incumbent to go.
+ editor.on_dock_set(on_dock!(|state, seat: i32, kind: PaneKind| {
+ let Some(path) = state.dock.leaf_path(seat.max(0) as usize) else {
+ return;
+ };
+ if let Dock::Leaf(held) = state.dock.at_mut(&path) {
+ *held = kind;
+ }
+ }));
+
+ // A panel dropped on a seat. The middle trades the two views; an edge
+ // splits the seat it landed on and takes that side of it.
+ editor.on_dock_dropped(on_dock!(|state, from: i32, onto: i32, side: DockSide| {
+ let (from, onto) = (from.max(0) as usize, onto.max(0) as usize);
+ if from == onto {
+ return;
+ }
+ let (Some(taken), Some(displaced)) = (state.dock.kind_at(from), state.dock.kind_at(onto))
+ else {
+ return;
+ };
+
+ if side == DockSide::Centre {
+ for (index, kind) in [(from, displaced), (onto, taken)] {
+ let Some(path) = state.dock.leaf_path(index) else {
+ continue;
+ };
+ if let Dock::Leaf(held) = state.dock.at_mut(&path) {
+ *held = kind;
+ }
+ }
+ return;
+ }
+
+ // Both paths before either edit. Splitting `onto` only lengthens the
+ // paths that run through `onto`, and `from` is a different leaf, so
+ // its path survives the split — which is the whole reason these are
+ // paths and not the indices they came in as.
+ let (Some(onto_path), Some(from_path)) =
+ (state.dock.leaf_path(onto), state.dock.leaf_path(from))
+ else {
+ return;
+ };
+ state.dock.split_leaf(&onto_path, taken, side);
+ state.dock.remove_leaf(&from_path);
+ }));
+
+ // A view added from the window's own corner, which has no seat to be added
+ // beside — so it halves whichever seat currently has the most room, along
+ // that seat's longer side. That is what a tiling window manager does with
+ // a new window, and it is the only rule that does not need the user to
+ // have already decided something they were not asked.
+ editor.on_dock_add(on_dock!(|state, kind: PaneKind| {
+ let seats = state.dock_layout().seats;
+ let Some(biggest) = seats
+ .iter()
+ .max_by(|a, b| (a.width * a.height).total_cmp(&(b.width * b.height)))
+ else {
+ return;
+ };
+ // The longer side, unless the longer side has no room to be halved and
+ // the shorter one does — a tall narrow seat is cut across even when it
+ // is the widest thing on screen, because the alternative is two seats
+ // too narrow to carry a header.
+ let across = biggest.width >= SEAT_MIN_W * 2.0;
+ let down = biggest.height >= SEAT_MIN_H * 2.0;
+ let side = if biggest.width >= biggest.height && (across || !down) {
+ DockSide::Right
+ } else {
+ DockSide::Bottom
+ };
+ let Some(path) = state.dock.leaf_path(biggest.index.max(0) as usize) else {
+ return;
+ };
+ state.dock.split_leaf(&path, kind, side);
+ }));
+
+ // A seat closed from its own dropdown. Its sibling takes the room, which
+ // is the split the two were halves of ceasing to exist — `remove_leaf`
+ // refuses the last one, so the window cannot be emptied.
+ editor.on_dock_remove(on_dock!(|state, seat: i32| {
+ let Some(path) = state.dock.leaf_path(seat.max(0) as usize) else {
+ return;
+ };
+ state.dock.remove_leaf(&path);
+ }));
+
+ editor.on_divider_pressed(on_dock!(|state, index: i32| {
+ let index = index.max(0) as usize;
+ state.divider_press = match (state.split_ratio(index), state.split_extent(index)) {
+ (Some(ratio), Some(extent)) => Some((index, ratio, extent)),
+ _ => None,
+ };
+ }));
+
+ editor.on_divider_dragged(on_dock!(|state, index: i32, delta: f32| {
+ let Some((held, from, extent)) = state.divider_press else {
+ return;
+ };
+ if held != index.max(0) as usize || extent <= 0.0 {
+ return;
+ }
+ let Some(path) = state.dock.split_path(held) else {
+ return;
+ };
+ let Dock::Split { columns, ratio, .. } = state.dock.at_mut(&path) else {
+ return;
+ };
+ // The floor is in pixels and the ratio is a fraction, so the clamp is
+ // the floor divided by the extent.
+ //
+ // Two floors, because a split narrower than twice the preferred one
+ // cannot honour it — and clamping to it anyway pinned the gutter at
+ // dead centre, so dragging it did nothing at all and read as broken.
+ // Where the room is not there, what is defended instead is only that
+ // both sides stay wide enough to keep their corner button reachable:
+ // a seat squeezed to nothing is a seat that cannot be put back.
+ let wanted = if *columns { SEAT_MIN_W } else { SEAT_MIN_H };
+ let floor = if wanted * 2.0 <= extent {
+ wanted
+ } else {
+ SEAT_MIN_GRAB.min(extent / 2.0)
+ } / extent;
+ *ratio = (from + delta / extent).clamp(floor, 1.0 - floor);
+ }));
+
+ // ── tabs ──
+ editor.on_tab_selected(on_timeline!(|state, index: i32| {
+ if index >= 0 && (index as usize) < state.timelines.len() {
+ state.active = index as usize;
+ // A selection is a set of clip ids on *this* timeline; carrying it
+ // across would leave the tray counting clips nobody can see.
+ state.selection.clear();
+ }
+ }));
+
+ editor.on_tab_renamed(on_timeline!(|state, index: i32, name: SharedString| {
+ let trimmed = name.trim().to_string();
+ // Renames to whitespace are ignored, so a tab is never blank.
+ if !trimmed.is_empty()
+ && let Some(timeline) = state.timelines.get_mut(index as usize)
+ {
+ timeline.name = trimmed;
+ }
+ }));
+
+ editor.on_tab_added(on_timeline!(|state| {
+ let id = state.mint("TL");
+ let lane = state.mint("T");
+ let number = state.timelines.len() + 1;
+ state.timelines.push(TimelineDoc {
+ id,
+ name: format!("Timeline {number}"),
+ tracks: vec![track(&lane, "Track 1")],
+ clips: Vec::new(),
+ });
+ state.active = state.timelines.len() - 1;
+ state.selection.clear();
+ }));
+
+ // Deleting a timeline throws away every clip on it. The reference asks
+ // first, through a confirm dialog this tree has not grown yet — so the
+ // floor of one timeline is enforced and the confirm is the gap.
+ editor.on_tab_close_requested(on_timeline!(|state, index: i32| {
+ if state.timelines.len() > 1 && (index as usize) < state.timelines.len() {
+ state.timelines.remove(index as usize);
+ state.active = state.active.min(state.timelines.len() - 1);
+ state.selection.clear();
+ }
+ }));
+
+ // ── the tray ──
+ editor.on_tool_changed(on_timeline!(|state, tool: TimelineTool| {
+ state.tool = tool;
+ }));
+
+ editor.on_snap_changed(on_timeline!(|state, snap: bool| {
+ state.snap = snap;
+ }));
+
+ editor.on_add_track(on_timeline!(|state| {
+ let id = state.mint("T");
+ let name = state.next_track_name();
+ // Pushed, not inserted: the model runs bottom-up, so the end of the
+ // list is the top of the stack — which is where a new lane belongs.
+ state.now_mut().tracks.push(track(&id, &name));
+ }));
+
+ editor.on_delete_selected(on_timeline!(|state| {
+ let doomed = state.selection.clone();
+ state
+ .now_mut()
+ .clips
+ .retain(|clip| !doomed.contains(&clip.id));
+ state.selection.clear();
+ }));
+
+ // Split at the playhead: every selected clip the playhead runs through, or
+ // every clip at all when nothing is selected — which is what a split with
+ // no selection means in an editor.
+ editor.on_split(on_timeline!(|state| {
+ let at = state.playhead;
+ let selection = state.selection.clone();
+ let victims: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| {
+ clip.start + MIN_DURATION < at
+ && at < clip.end() - MIN_DURATION
+ && (selection.is_empty() || selection.contains(&clip.id))
+ && !state.locked(&clip.track)
+ })
+ .map(|clip| clip.id.clone())
+ .collect();
+
+ for victim in victims {
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == victim) else {
+ continue;
+ };
+ let source = state.now().clips[index].clone();
+ let new_id = state.mint("c");
+ let head_duration = at - source.start;
+
+ // The head keeps the id, the way the reference's split does, so a
+ // command naming the clip still names something afterwards. The
+ // ramps do not survive the cut: a fade-out belongs to the end of
+ // the material, and the head no longer has one.
+ let mut tail = source.clone();
+ tail.id = new_id;
+ tail.start = at;
+ tail.duration = source.duration - head_duration;
+ tail.source_start = source.source_start + head_duration;
+ tail.fade_in = 0.0;
+ tail.transition_in = false;
+
+ let head = &mut state.now_mut().clips[index];
+ head.duration = head_duration;
+ head.fade_out = 0.0;
+ state.now_mut().clips.push(tail);
+ }
+ }));
+
+ editor.on_merge(on_timeline!(|state| {
+ if state.merge_blocked().is_some() {
+ return;
+ }
+ let (a, b) = (state.selection[0].clone(), state.selection[1].clone());
+ let (Some(first), Some(second)) = (
+ state.now().clips.iter().position(|clip| clip.id == a),
+ state.now().clips.iter().position(|clip| clip.id == b),
+ ) else {
+ return;
+ };
+ let (head, tail) = if state.now().clips[first].start <= state.now().clips[second].start {
+ (first, second)
+ } else {
+ (second, first)
+ };
+ let tail_clip = state.now().clips[tail].clone();
+ let head_clip = &mut state.now_mut().clips[head];
+ head_clip.duration = tail_clip.end() - head_clip.start;
+ head_clip.fade_out = tail_clip.fade_out;
+ let kept = head_clip.id.clone();
+ state.now_mut().clips.remove(tail);
+ state.selection = vec![kept];
+ }));
+
+ // ── the view ──
+ editor.on_scrubbed(on_lanes!(|state, seconds: f32| {
+ state.playhead = seconds.max(0.0);
+ }));
+
+ editor.on_scrolled(on_lanes!(|state, seconds: f32| {
+ state.scroll_left = seconds.max(0.0);
+ }));
+
+ editor.on_zoom(on_lanes!(|state, factor: f32, anchor: f32| {
+ let before = state.seconds_per_pixel;
+ // Floored at a frame across two pixels and capped at ten minutes to
+ // the pane, which is as far either way as the ruler stays legible.
+ let after = (before * factor).clamp(0.000_5, 1.5);
+ state.seconds_per_pixel = after;
+ // Keep the moment under the pointer where it is. A press has no
+ // pointer, and passes -1 to mean "hold the left edge".
+ if anchor >= 0.0 {
+ state.scroll_left = (anchor - (anchor - state.scroll_left) * (after / before)).max(0.0);
+ }
+ }));
+
+ editor.on_zoom_to_fit(on_lanes!(|state, width: f32| {
+ // A little air past the end, so the last clip is not flush against the
+ // right edge, and a floor so an empty timeline does not divide by zero.
+ let span = state.duration().max(1.0) * 1.05;
+ if width > 1.0 {
+ state.seconds_per_pixel = (span / width).clamp(0.000_5, 1.5);
+ state.scroll_left = 0.0;
+ }
+ }));
+
+ // ── lanes ──
+ editor.on_track_flag_changed(on_timeline!(
+ |state, row: i32, visible: bool, muted: bool, locked: bool| {
+ let Some(id) = state.row_track(row).map(|track| track.id.clone()) else {
+ return;
+ };
+ if let Some(track) = state
+ .now_mut()
+ .tracks
+ .iter_mut()
+ .find(|track| track.id == id)
+ {
+ track.visible = visible;
+ track.muted = muted;
+ track.locked = locked;
+ }
+ // Locking a lane drops whatever was selected on it, so the tray
+ // cannot offer to delete clips that no longer answer to it.
+ if locked {
+ let doomed: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| clip.track == id)
+ .map(|clip| clip.id.clone())
+ .collect();
+ state.selection.retain(|held| !doomed.contains(held));
+ }
+ }
+ ));
+
+ editor.on_track_renamed(on_timeline!(|state, row: i32, name: SharedString| {
+ let trimmed = name.trim().to_string();
+ if trimmed.is_empty() {
+ return;
+ }
+ let Some(id) = state.row_track(row).map(|track| track.id.clone()) else {
+ return;
+ };
+ if let Some(track) = state
+ .now_mut()
+ .tracks
+ .iter_mut()
+ .find(|track| track.id == id)
+ {
+ track.name = trimmed;
+ }
+ }));
+
+ // Removing a lane takes its clips with it, and keeps a floor of one.
+ editor.on_track_sized(on_timeline!(|state, row: i32, size: TrackSize| {
+ let Some(id) = state.row_track(row).map(|lane| lane.id.clone()) else {
+ return;
+ };
+ if let Some(lane) = state.now_mut().tracks.iter_mut().find(|lane| lane.id == id) {
+ lane.size = size;
+ }
+ }));
+
+ editor.on_track_removed(on_timeline!(|state, row: i32| {
+ if state.now().tracks.len() <= 1 {
+ return;
+ }
+ let Some(id) = state.row_track(row).map(|track| track.id.clone()) else {
+ return;
+ };
+ state.now_mut().tracks.retain(|track| track.id != id);
+ state.now_mut().clips.retain(|clip| clip.track != id);
+ let survivors: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .map(|clip| clip.id.clone())
+ .collect();
+ state.selection.retain(|id| survivors.contains(id));
+ }));
+
+ // ── the gestures ──
+ //
+ // A press resolves the selection before anything moves, so a drag that
+ // starts on an already-selected clip carries the whole set rather than
+ // collapsing to the one clip touched.
+ editor.on_clip_pressed(on_lanes!(|state,
+ id: SharedString,
+ additive: bool,
+ edge: i32| {
+ let id = id.to_string();
+ let Some(clip) = state.clip(&id).cloned() else {
+ return;
+ };
+ // A locked lane takes no presses at all — not even to select. Half a
+ // lock, where a clip can still be picked up and then deleted from the
+ // tray, is worse than none.
+ if state.locked(&clip.track) {
+ return;
+ }
+ let already = state.selection.contains(&id);
+
+ state.selection = if additive {
+ if already {
+ state
+ .selection
+ .iter()
+ .filter(|held| *held != &id)
+ .cloned()
+ .collect()
+ } else {
+ let mut next = state.selection.clone();
+ next.push(id.clone());
+ next
+ }
+ } else if already {
+ state.selection.clone()
+ } else {
+ vec![id.clone()]
+ };
+
+ // An edge only trims while it is the one thing selected: dragging the
+ // edge of a multiple selection is a move of the set, not a trim.
+ if edge >= 0 && state.selection.len() <= 1 {
+ state.gesture = Gesture::Trim {
+ clip: id,
+ edge: if edge == 0 { Edge::Start } else { Edge::End },
+ start: clip.start,
+ duration: clip.duration,
+ source_start: clip.source_start,
+ };
+ return;
+ }
+
+ let moving = if state.selection.contains(&id) {
+ state.selection.clone()
+ } else {
+ vec![id.clone()]
+ };
+ let origins = moving
+ .iter()
+ .filter_map(|clip_id| {
+ let clip = state.clip(clip_id)?;
+ Some(MoveOrigin {
+ clip: clip.id.clone(),
+ start: clip.start,
+ row: state.row_of(&clip.track),
+ })
+ })
+ .collect();
+ state.gesture = Gesture::Move {
+ primary: id,
+ origins,
+ lanes: state.lane_heights(),
+ };
+ }));
+
+ editor.on_clip_dragged(on_lanes!(|state, seconds: f32, pixels: f32| {
+ // Lifted out rather than matched in place: every arm goes on to mutate
+ // the clips, which cannot happen while the gesture is borrowed out of
+ // the same struct. It goes back at the end, so a drag survives.
+ let gesture = std::mem::replace(&mut state.gesture, Gesture::None);
+ match &gesture {
+ Gesture::Move {
+ primary,
+ origins,
+ lanes,
+ } => {
+ let Some(anchor) = origins.iter().find(|origin| &origin.clip == primary) else {
+ return;
+ };
+ // Only the grabbed clip snaps; the rest keep their offset from
+ // it, so the shape of a multiple selection survives exactly.
+ let threshold = 8.0 * state.seconds_per_pixel;
+ let snapped = state.snapped(anchor.start + seconds, threshold, primary);
+ let shift = snapped - anchor.start;
+
+ // The lanes are no longer one pitch, so the row cannot be a
+ // division: it is the row whose top edge the grabbed clip's
+ // has been dragged nearest to, measured against the stack as
+ // it was when the press landed. The rest of the selection
+ // keeps its offset from that in rows.
+ let rows = nearest_row(lanes, row_top(lanes, anchor.row) + pixels) - anchor.row;
+
+ let count = state.now().tracks.len() as i32;
+ let moves: Vec<(String, f32, Option<String>)> = origins
+ .iter()
+ .map(|origin| {
+ let row = (origin.row + rows).clamp(0, count - 1);
+ // A locked lane refuses the drop: the clip still moves
+ // in time, it just stays on the lane it came from. The
+ // reference does the same for an unknown track id.
+ let onto = state
+ .row_track(row)
+ .filter(|track| !track.locked)
+ .map(|track| track.id.clone());
+ (origin.clip.clone(), (origin.start + shift).max(0.0), onto)
+ })
+ .collect();
+
+ for (id, start, track) in moves {
+ if let Some(clip) = state.now_mut().clips.iter_mut().find(|clip| clip.id == id)
+ {
+ clip.start = start;
+ if let Some(track) = track {
+ clip.track = track;
+ }
+ }
+ }
+ }
+ Gesture::Trim {
+ clip,
+ edge,
+ start,
+ duration,
+ source_start,
+ } => {
+ let (id, edge) = (clip.clone(), *edge);
+ let (start, duration, source_start) = (*start, *duration, *source_start);
+ let threshold = 8.0 * state.seconds_per_pixel;
+
+ if edge == Edge::Start {
+ // The head cannot pass the tail, and cannot pull material
+ // out of a file that has none before the in-point.
+ let wanted = state.snapped(start + seconds, threshold, &id);
+ let limit = start + duration - MIN_DURATION;
+ let at = wanted.clamp((start - source_start).max(0.0), limit);
+ let delta = at - start;
+ if let Some(clip) = state.now_mut().clips.iter_mut().find(|c| c.id == id) {
+ clip.start = at;
+ clip.duration = duration - delta;
+ clip.source_start = source_start + delta;
+ }
+ } else {
+ let wanted = state.snapped(start + duration + seconds, threshold, &id);
+ let at = wanted.max(start + MIN_DURATION);
+ if let Some(clip) = state.now_mut().clips.iter_mut().find(|c| c.id == id) {
+ clip.duration = at - start;
+ }
+ }
+ }
+ Gesture::None => {}
+ }
+ state.gesture = gesture;
+ }));
+
+ // Releasing is what would make a move or a trim real: the reference echoes
+ // it locally and turns the whole gesture into one undoable command here.
+ // There is no command stack in this tree, so this only ends the gesture.
+ editor.on_clip_released(on_lanes!(|state| {
+ state.gesture = Gesture::None;
+ }));
+
+ // ── drag and drop from the library ──
+ //
+ // Two callbacks over one resolver. The hover asks what the drop would
+ // leave and publishes the answer as the ghost the lanes draw; the drop
+ // asks the same question again and commits it. Asking twice rather than
+ // trusting the last hover is deliberate: the release carries its own
+ // position, and a drop that landed a pixel from where the ghost was would
+ // be a bug nobody could see.
+ editor.on_drag_hovered({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let library = library.clone();
+ move |payload: SharedString, seconds: f32, y: f32| {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ let row = state.row_at(y);
+ state.drop = state.plan(payload.as_str(), seconds, row, &library);
+ }
+ // The lanes only: this runs on every move of the drag.
+ studio.borrow().publish_lanes(&app, &models);
+ }
+ });
+
+ editor.on_dropped({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let library = library.clone();
+ move |payload: SharedString, seconds: f32, y: f32| {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ state.drop = None;
+ let row = state.row_at(y);
+ if let Some(plan) = state.plan(payload.as_str(), seconds, row, &library) {
+ state.place(&plan);
+ }
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ // ── the same three, placed by a click ──
+ //
+ // Every card is still clickable, and a click has no pointer over the
+ // lanes to name a place — so these land at the playhead, on the topmost
+ // lane with room for them.
+ editor.on_media_activate({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let library = library.clone();
+ move |id: i32| {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ if let Some(plan) = state.plan_at_playhead(&format!("media:{id}"), &library) {
+ state.place(&plan);
+ }
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ editor.on_library_add_text({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let library = library.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ if let Some(plan) = state.plan_at_playhead("text:default:Title", &library) {
+ state.place(&plan);
+ }
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ editor.on_library_apply_filter({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let library = library.clone();
+ move |id: SharedString, label: SharedString| {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ let payload = format!("filter:{id}:{label}");
+ if let Some(plan) = state.plan_at_playhead(&payload, &library) {
+ state.place(&plan);
+ }
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ // An effect is not placed: it is a treatment of one clip, and the model
+ // carries exactly one fact about that — whether any are live. Which
+ // effect it was needs the applied-effect chain the inspector's stack is
+ // drawn for, and nothing on this side owns one yet.
+ editor.on_library_apply_effect(on_timeline!(|state, _id: SharedString| {
+ // The two refusals the reference explains rather than swallows. A
+ // card that does nothing when clicked and says nothing about it is
+ // the one failure mode a catalogue cannot afford: there is no way to
+ // tell it from a card that is broken.
+ let Some(id) = state.selection.first().cloned() else {
+ state.notify("Select a video or image clip on the timeline first", true);
+ return;
+ };
+ let has_picture = state
+ .clip(&id)
+ .is_some_and(|clip| matches!(clip.kind, ClipKind::Video | ClipKind::Image));
+ if !has_picture {
+ state.notify("Select a video or image clip on the timeline first", true);
+ return;
+ }
+ if let Some(clip) = state.now_mut().clips.iter_mut().find(|clip| clip.id == id) {
+ clip.fx = true;
+ }
+ }));
+
+ editor.on_razored(on_timeline!(|state, id: SharedString, seconds: f32| {
+ let id = id.to_string();
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == id) else {
+ return;
+ };
+ let source = state.now().clips[index].clone();
+ if state.locked(&source.track) {
+ return;
+ }
+ if seconds <= source.start + MIN_DURATION || seconds >= source.end() - MIN_DURATION {
+ return;
+ }
+ let new_id = state.mint("c");
+ let head_duration = seconds - source.start;
+ let mut tail = source.clone();
+ tail.id = new_id;
+ tail.start = seconds;
+ tail.duration = source.duration - head_duration;
+ tail.source_start = source.source_start + head_duration;
+ tail.fade_in = 0.0;
+ tail.transition_in = false;
+
+ let head = &mut state.now_mut().clips[index];
+ head.duration = head_duration;
+ head.fade_out = 0.0;
+ state.now_mut().clips.push(tail);
+ state.selection = vec![id];
+ }));
+
+ editor.on_band_selected(on_lanes!(
+ |state, from: f32, to: f32, from_y: f32, to_y: f32, additive: bool| {
+ // The band arrives as two corners in pixels down the stack, and
+ // the rows are resolved here for the reason the drops are: the
+ // lanes are no longer one height, and this side is the one that
+ // knows what each of them is.
+ let (from_row, to_row) = (state.row_at(from_y), state.row_at(to_y));
+ let caught: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| {
+ let row = state.row_of(&clip.track);
+ row >= from_row
+ && row <= to_row
+ && clip.end() >= from
+ && clip.start <= to
+ && !state.locked(&clip.track)
+ })
+ .map(|clip| clip.id.clone())
+ .collect();
+
+ if additive {
+ for id in caught {
+ if !state.selection.contains(&id) {
+ state.selection.push(id);
+ }
+ }
+ } else {
+ state.selection = caught;
+ }
+ }
+ ));
+
+ // ── the inspector ──
+ //
+ // One field and one number rather than a patch of the whole clip: a patch
+ // is "everything, with one thing different", and a late-arriving one
+ // overwrites whatever landed while it was in flight.
+ editor.on_clip_set(on_lanes!(|state, field: ClipField, value: f32| {
+ let Some(id) = state.selection.first().cloned() else {
+ return;
+ };
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == id) else {
+ return;
+ };
+ // Speed re-times the clip in place, so it needs the old rate to scale
+ // the duration by; read before the write.
+ let previous_speed = state.now().clips[index].speed;
+ let clip = &mut state.now_mut().clips[index];
+
+ match field {
+ ClipField::Scale => clip.scale = value.clamp(0.05, 8.0),
+ ClipField::OffsetX => clip.offset_x = value.clamp(-1.0, 1.0),
+ ClipField::OffsetY => clip.offset_y = value.clamp(-1.0, 1.0),
+ ClipField::Rotation => clip.rotation = value.clamp(-180.0, 180.0),
+ ClipField::Opacity => clip.opacity = value.clamp(0.0, 1.0),
+ ClipField::Volume => clip.volume = value.max(0.0),
+ ClipField::Speed => {
+ let speed = value.clamp(0.0625, 16.0);
+ // Source seconds are fixed; the timeline seconds they occupy
+ // are what changes. Without this the clip would keep its
+ // length and simply play a different amount of material.
+ clip.duration = (clip.duration * previous_speed / speed).max(MIN_DURATION);
+ clip.speed = speed;
+ }
+ ClipField::PreservePitch => clip.preserve_pitch = value != 0.0,
+ // A fade longer than half the clip would overlap the other one.
+ ClipField::FadeIn => clip.fade_in = value.clamp(0.0, clip.duration / 2.0),
+ ClipField::FadeOut => clip.fade_out = value.clamp(0.0, clip.duration / 2.0),
+
+ ClipField::FontSize => clip.text.size = value.clamp(0.01, 0.5),
+ ClipField::FontWeight => clip.text.weight = value.clamp(100.0, 900.0),
+ ClipField::Italic => clip.text.italic = value != 0.0,
+ ClipField::TextOpacity => clip.text.opacity = value.clamp(0.0, 1.0),
+ ClipField::Align => {
+ clip.text.align = match value as i32 {
+ 0 => TextAlignment::Left,
+ 2 => TextAlignment::Right,
+ _ => TextAlignment::Center,
+ }
+ }
+ ClipField::StrokeWidth => clip.text.stroke_width = value.clamp(0.0, 0.15),
+ ClipField::Shadow => clip.text.shadow = value != 0.0,
+ ClipField::LineHeight => clip.text.line_height = value.clamp(0.7, 2.5),
+ ClipField::Tracking => clip.text.tracking = value.clamp(-0.05, 0.3),
+ }
+ }));
+
+ editor.on_clip_set_text(on_lanes!(
+ |state, field: ClipTextField, value: SharedString| {
+ let Some(id) = state.selection.first().cloned() else {
+ return;
+ };
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == id) else {
+ return;
+ };
+ let clip = &mut state.now_mut().clips[index];
+ match field {
+ ClipTextField::Content => {
+ clip.text_body = value.to_string();
+ // The clip's label follows its first line, the way the
+ // reference snapshots a title's words into its name — a lane
+ // full of clips all called "Title" is a lane you cannot read.
+ let first = value.lines().next().unwrap_or("").trim().to_string();
+ clip.name = if first.is_empty() {
+ "Title".into()
+ } else {
+ first
+ };
+ }
+ ClipTextField::FontFamily => clip.text.family = value.to_string(),
+ // The colours arrive through `clip-set-colour`; a colour cannot be
+ // spelled as a string Slint could parse back.
+ _ => {}
+ }
+ }
+ ));
+
+ editor.on_clip_set_colour(on_lanes!(
+ |state, field: ClipTextField, value: slint::Color| {
+ let Some(id) = state.selection.first().cloned() else {
+ return;
+ };
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == id) else {
+ return;
+ };
+ let clip = &mut state.now_mut().clips[index];
+ match field {
+ ClipTextField::Color => clip.text.fill = value,
+ ClipTextField::StrokeColor => clip.text.stroke = value,
+ ClipTextField::Background => clip.text.plate = value,
+ _ => {}
+ }
+ }
+ ));
+
+ // The gesture is over. The reference turns everything it accumulated into
+ // one undoable command here; there is no command stack in this tree yet,
+ // so the seam is the callback.
+ editor.on_clip_commit(|| {});
+
+ // ── the monitor ──
+ //
+ // The transport moves the timeline's playhead rather than a second copy of
+ // it: the programme position is one number, and a monitor that kept its
+ // own would drift from the lanes the moment either moved.
+ editor.on_seek(on_lanes!(|state, seconds: f32| {
+ state.playing = false;
+ state.playhead = seconds.clamp(0.0, state.duration());
+ }));
+
+ editor.on_step_frames(on_lanes!(|state, frames: f32| {
+ state.playing = false;
+ // Stepped on the frame grid, not by adding a fraction of a second:
+ // repeated steps off-grid would accumulate a drift that shows up as a
+ // frame field that skips a number.
+ let fps = state.frame_rate.round().max(1.0);
+ let at = (state.playhead * fps).round() + frames;
+ state.playhead = (at / fps).clamp(0.0, state.duration());
+ }));
+
+ editor.on_ratio_changed(on_timeline!(|state, index: i32| {
+ state.ratio = (index.max(0) as usize).min(OUTPUTS.len() - 1);
+ }));
+
+ // Preview quality: what fraction of the frame the engine composites for
+ // the monitor. It changes nothing on screen here — nothing composites yet
+ // — but it is a project setting rather than a view one, so it lives with
+ // the rest of them.
+ editor.on_quality_changed(on_timeline!(|state, index: i32| {
+ state.quality = (index.max(0) as usize).min(2);
+ }));
+
+ // Playback.
+ //
+ // A timer only while it is playing, and stopped the moment it is not. The
+ // level meter next door had to be gated on hover because it ran forever;
+ // this one is self-limiting — a transport that is not running produces no
+ // frames, and reaching the tail stops it.
+ let playback = Rc::new(Timer::default());
+ editor.on_play_toggled({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let playback = playback.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ if state.playing {
+ state.playing = false;
+ playback.stop();
+ } else {
+ // Playing from the tail would sit there doing nothing, so
+ // the button rewinds first — what every editor does.
+ if state.playhead >= state.duration() {
+ state.playhead = 0.0;
+ }
+ state.playing = true;
+ }
+ }
+ let running = studio.borrow().playing;
+ if running {
+ let rate = studio.borrow().frame_rate.round().max(1.0);
+ playback.start(
+ TimerMode::Repeated,
+ std::time::Duration::from_secs_f32(1.0 / rate),
+ {
+ let weak = weak.clone();
+ let studio = studio.clone();
+ let models = models.clone();
+ let playback = playback.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ let end = state.duration();
+ let step = 1.0 / state.frame_rate.round().max(1.0);
+ state.playhead += step;
+ if state.playhead >= end {
+ state.playhead = end;
+ state.playing = false;
+ }
+ }
+ if !studio.borrow().playing {
+ playback.stop();
+ }
+ // A frame of playback moves the playhead and nothing
+ // else — no menu, no dialog, no engine list.
+ studio.borrow().publish_lanes(&app, &models);
+ }
+ },
+ );
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ // ── the context menu ──
+ editor.on_clip_context(on_timeline!(|state, id: SharedString| {
+ let id = id.to_string();
+ // The token moves either way, even when there is nothing to show.
+ //
+ // The panel that right-clicked arms itself before calling, and
+ // disarms when the token it is waiting for arrives — so a request
+ // that quietly declined to bump left it armed, and the *next* one,
+ // from a different timeline seat, opened a second menu here at
+ // whatever corner this pane was last pointed at. An empty list draws
+ // no menu (see ContextMenu), so bumping regardless costs nothing.
+ state.menu_token += 1;
+ if state.clip(&id).is_none() {
+ state.menu_target = None;
+ return;
+ }
+ // Right-clicking selects, the way the reference does: the menu acts on
+ // one clip and the selection should say which one before it does.
+ if !state.selection.contains(&id) {
+ state.selection = vec![id.clone()];
+ }
+ state.menu_target = Some(id);
+ }));
+
+ editor.on_menu_selected(on_timeline!(|state, action: SharedString| {
+ let Some(id) = state.menu_target.clone() else {
+ return;
+ };
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == id) else {
+ return;
+ };
+ let clip = state.now().clips[index].clone();
+
+ match action.as_str() {
+ "copy" => state.clipboard = Some(clip),
+ "duplicate" | "paste" => {
+ let source = if action == "paste" {
+ let Some(held) = state.clipboard.clone() else {
+ return;
+ };
+ held
+ } else {
+ clip
+ };
+ let new_id = state.mint("c");
+ let mut copy = source.clone();
+ copy.id = new_id;
+ // Laid after the clip it came from rather than on top of it: a
+ // duplicate hidden exactly behind its original looks like
+ // nothing happened.
+ copy.start = source.end();
+ copy.name = format!("{} copy", source.name);
+ state.now_mut().clips.push(copy);
+ }
+ "split" => {
+ let at = state.playhead;
+ if clip.start + MIN_DURATION >= at || at >= clip.end() - MIN_DURATION {
+ return;
+ }
+ let new_id = state.mint("c");
+ let head = at - clip.start;
+ let mut tail = clip.clone();
+ tail.id = new_id;
+ tail.start = at;
+ tail.duration = clip.duration - head;
+ tail.source_start = clip.source_start + head;
+ tail.fade_in = 0.0;
+ tail.transition_in = false;
+ state.now_mut().clips[index].duration = head;
+ state.now_mut().clips[index].fade_out = 0.0;
+ state.now_mut().clips.push(tail);
+ }
+ "mute" => {
+ // Restored to unity rather than to whatever it was: the menu
+ // holds no memory, and a mute that came back at -14 dB would be
+ // a surprise every time.
+ let target = &mut state.now_mut().clips[index];
+ target.volume = if target.volume <= 0.0 { 1.0 } else { 0.0 };
+ }
+ "lock" => {
+ let track = clip.track.clone();
+ let now = state.locked(&track);
+ if let Some(lane) = state.now_mut().tracks.iter_mut().find(|t| t.id == track) {
+ lane.locked = !now;
+ }
+ if !now {
+ let doomed: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .filter(|c| c.track == track)
+ .map(|c| c.id.clone())
+ .collect();
+ state.selection.retain(|held| !doomed.contains(held));
+ }
+ }
+ "delete" => {
+ state.now_mut().clips.retain(|c| c.id != id);
+ state.selection.retain(|held| held != &id);
+ state.menu_target = None;
+ }
+ _ => {}
+ }
+ }));
+
+ // ── the dialogs ──
+ app.on_export_clicked(on_timeline!(|state| {
+ state.export.open = true;
+ state.export.phase = ExportPhase::Idle;
+ state.export.message = String::new();
+ }));
+ app.on_open_settings(on_timeline!(|state| {
+ state.settings.open = true;
+ }));
+ // The theme is not editor state and never reaches a project file: it is
+ // one bool on the Theme global, and every colour in the tree is a binding
+ // away from it, so setting it here retones the window on the next frame
+ // without anything being rebuilt or republished. Handled in Rust rather
+ // than in the .slint so there is somewhere for a remembered preference to
+ // be read and written the day there is a place to keep one.
+ app.on_settings_theme_changed({
+ let weak = app.as_weak();
+ move |dark| {
+ let Some(app) = weak.upgrade() else { return };
+ app.global::<Theme>().set_dark(dark);
+ }
+ });
+ app.on_export_closed(on_timeline!(|state| {
+ state.export.open = false;
+ }));
+ app.on_settings_closed(on_timeline!(|state| {
+ state.settings.open = false;
+ }));
+
+ app.on_export_name_edited(on_timeline!(|state, name: SharedString| {
+ state.export.name = name.to_string();
+ }));
+ app.on_export_resolution_changed(on_timeline!(|state, index: i32| {
+ state.export.resolution = (index.max(0) as usize).min(3);
+ }));
+ app.on_export_rate_changed(on_timeline!(|state, index: i32| {
+ state.export.rate = (index.max(0) as usize).min(2);
+ }));
+ app.on_export_quality_changed(on_timeline!(|state, index: i32| {
+ state.export.quality = (index.max(0) as usize).min(2);
+ }));
+ app.on_export_again(on_timeline!(|state| {
+ state.export.phase = ExportPhase::Idle;
+ state.export.progress = 0.0;
+ }));
+ // Both of these want a file manager, which is a dependency decision rather
+ // than a detail of this dialog. The seams are here for the day it lands.
+ app.on_export_browse(|| {});
+ app.on_export_reveal(|| {});
+
+ // The run itself. A timer, like playback: it exists only while the job
+ // does, and it stops itself at the end.
+ let exporting = Rc::new(Timer::default());
+ app.on_export_cancel({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let exporting = exporting.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ exporting.stop();
+ let mut state = studio.borrow_mut();
+ state.export.phase = ExportPhase::Idle;
+ state.export.progress = 0.0;
+ drop(state);
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ app.on_export_start({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ let exporting = exporting.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ state.export.phase = ExportPhase::Running;
+ state.export.progress = 0.0;
+ state.export.message = String::new();
+ }
+ exporting.start(TimerMode::Repeated, std::time::Duration::from_millis(90), {
+ let weak = weak.clone();
+ let studio = studio.clone();
+ let models = models.clone();
+ let exporting = exporting.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ state.export.progress = (state.export.progress + 0.012).min(1.0);
+ if state.export.progress >= 1.0 {
+ state.export.phase = ExportPhase::Done;
+ }
+ }
+ if studio.borrow().export.phase != ExportPhase::Running {
+ exporting.stop();
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ // ── settings ──
+ app.on_settings_page_changed(on_timeline!(|state, index: i32| {
+ state.settings.tab = index;
+ }));
+ app.on_settings_language_changed(on_timeline!(|state, index: i32| {
+ state.settings.language = index.max(0) as usize;
+ }));
+ app.on_settings_transcribe_language_changed(on_timeline!(|state, index: i32| {
+ state.settings.transcribe_language = index;
+ }));
+
+ app.on_model_activated(on_timeline!(|state, id: SharedString| {
+ // One active model per engine, so choosing is also un-choosing. Which
+ // list the id is in decides which engine it belongs to.
+ let engines = &mut *state;
+ for list in [&mut engines.transcribers, &mut engines.voices] {
+ if list
+ .iter()
+ .any(|model| model.id == id.as_str() && model.installed)
+ {
+ for model in list.iter_mut() {
+ model.active = model.id == id.as_str();
+ }
+ }
+ }
+ }));
+
+ app.on_model_download(on_timeline!(|state, id: SharedString| {
+ let engines = &mut *state;
+ for list in [&mut engines.transcribers, &mut engines.voices] {
+ if let Some(model) = list.iter_mut().find(|model| model.id == id.as_str()) {
+ model.fetched = Some(0.0);
+ }
+ }
+ }));
+
+ app.on_model_cancel(on_timeline!(|state, id: SharedString| {
+ let engines = &mut *state;
+ for list in [&mut engines.transcribers, &mut engines.voices] {
+ if let Some(model) = list.iter_mut().find(|model| model.id == id.as_str()) {
+ model.fetched = None;
+ }
+ }
+ }));
+
+ app.on_model_remove(on_timeline!(|state, id: SharedString| {
+ let engines = &mut *state;
+ for list in [&mut engines.transcribers, &mut engines.voices] {
+ if let Some(model) = list.iter_mut().find(|model| model.id == id.as_str()) {
+ model.installed = false;
+ model.active = false;
+ model.fetched = None;
+ }
+ // An engine with nothing active falls back to whatever is left,
+ // rather than silently having no model at all.
+ if list.iter().all(|model| !model.active)
+ && let Some(next) = list.iter_mut().find(|model| model.installed)
+ {
+ next.active = true;
+ }
+ }
+ }));
+
+ // Downloads advance on one timer for all of them: they are simulated, and
+ // a timer each would be a timer each for no reason.
+ let downloads = Rc::new(Timer::default());
+ downloads.start(
+ TimerMode::Repeated,
+ std::time::Duration::from_millis(120),
+ {
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ let mut moved = false;
+ {
+ let mut state = studio.borrow_mut();
+ let engines = &mut *state;
+ for list in [&mut engines.transcribers, &mut engines.voices] {
+ for model in list.iter_mut() {
+ let Some(fetched) = model.fetched else {
+ continue;
+ };
+ moved = true;
+ let next = fetched + 12.0 * 0.12 * 8.0;
+ if next >= model.megabytes {
+ model.fetched = None;
+ model.installed = true;
+ } else {
+ model.fetched = Some(next);
+ }
+ }
+ }
+ }
+ // Only republish when something actually moved: this ticks for the
+ // life of the process, and a republish on every tick would redraw
+ // the whole window eight times a second to change nothing.
+ if moved {
+ studio.borrow().publish(&app, &models);
+ }
+ }
+ },
+ );
+
+ // ── the tray's A/V menu ──
+ editor.on_av_tools(on_timeline!(|state| {
+ state.av_token += 1;
+ }));
+
+ editor.on_av_selected(on_timeline!(|state, action: SharedString| {
+ let Some(id) = state.selection.first().cloned() else {
+ return;
+ };
+ let Some(index) = state.now().clips.iter().position(|clip| clip.id == id) else {
+ return;
+ };
+ let clip = state.now().clips[index].clone();
+
+ match action.as_str() {
+ // Both of these end in a dialog this tree has not grown — the
+ // transcriber's sheet and the speech one. The edit each performs is
+ // real; what is missing is the sheet in front of it.
+ "captions" | "speak" => {}
+ "detach" => {
+ // The sound leaves the picture and becomes its own clip on the
+ // lane below, keeping a pointer home so it can be put back.
+ let new_id = state.mint("c");
+ let row = state.row_of(&clip.track);
+ let below = state
+ .row_track(row + 1)
+ .map(|track| track.id.clone())
+ .unwrap_or_else(|| clip.track.clone());
+ let mut sound = clip.clone();
+ sound.id = new_id;
+ sound.kind = ClipKind::Audio;
+ sound.track = below;
+ sound.name = format!("{} audio", clip.name);
+ sound.detached_from = Some(clip.id.clone());
+ sound.fx = false;
+ sound.transition_in = false;
+ state.now_mut().clips[index].volume = 0.0;
+ state.now_mut().clips.push(sound);
+ }
+ "reattach" => {
+ let parent = clip
+ .detached_from
+ .clone()
+ .unwrap_or_else(|| clip.id.clone());
+ let doomed: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .filter(|other| other.detached_from.as_deref() == Some(parent.as_str()))
+ .map(|other| other.id.clone())
+ .collect();
+ state
+ .now_mut()
+ .clips
+ .retain(|other| !doomed.contains(&other.id));
+ if let Some(video) = state.now_mut().clips.iter_mut().find(|c| c.id == parent) {
+ video.volume = 1.0;
+ }
+ state.selection = vec![parent];
+ }
+ _ => {}
+ }
+ }));
+
+ // ── the title-bar menus ──
+ app.on_menu_opened(on_timeline!(|state, index: i32| {
+ state.open_menu = index;
+ state.menu_bar_token += 1;
+ }));
+
+ app.on_app_menu_selected({
+ let weak = app.as_weak();
+ let studio = studio.clone();
+ let models = models.clone();
+ move |action| {
+ let Some(app) = weak.upgrade() else { return };
+ {
+ let mut state = studio.borrow_mut();
+ state.open_menu = -1;
+ match action.as_str() {
+ "export" => {
+ state.export.open = true;
+ state.export.phase = ExportPhase::Idle;
+ state.export.message = String::new();
+ }
+ "settings" => state.settings.open = true,
+ "snap" => state.snap = !state.snap,
+ "zoom-in" => {
+ state.seconds_per_pixel = (state.seconds_per_pixel / 1.4).max(0.000_5);
+ }
+ "zoom-out" => {
+ state.seconds_per_pixel = (state.seconds_per_pixel * 1.4).min(1.5);
+ }
+ "start" => {
+ state.playing = false;
+ state.playhead = 0.0;
+ }
+ "end" => {
+ state.playing = false;
+ state.playhead = state.duration();
+ }
+ "delete" => {
+ let doomed = state.selection.clone();
+ state
+ .now_mut()
+ .clips
+ .retain(|clip| !doomed.contains(&clip.id));
+ state.selection.clear();
+ }
+ "split" => {
+ let at = state.playhead;
+ let victims: Vec<String> = state
+ .now()
+ .clips
+ .iter()
+ .filter(|clip| {
+ clip.start + MIN_DURATION < at
+ && at < clip.end() - MIN_DURATION
+ && !state.locked(&clip.track)
+ })
+ .map(|clip| clip.id.clone())
+ .collect();
+ for victim in victims {
+ let Some(index) = state.now().clips.iter().position(|c| c.id == victim)
+ else {
+ continue;
+ };
+ let source = state.now().clips[index].clone();
+ let new_id = state.mint("c");
+ let head = at - source.start;
+ let mut tail = source.clone();
+ tail.id = new_id;
+ tail.start = at;
+ tail.duration = source.duration - head;
+ tail.source_start = source.source_start + head;
+ tail.fade_in = 0.0;
+ tail.transition_in = false;
+ state.now_mut().clips[index].duration = head;
+ state.now_mut().clips[index].fade_out = 0.0;
+ state.now_mut().clips.push(tail);
+ }
+ }
+ // Nothing is written: there is no store in this crate.
+ // The notice is the whole of what Save does here, which is
+ // also the shape it keeps — the reference saves and then
+ // says so, and the day this one has a file to write it
+ // reports what happened to it, `failed` and all.
+ "save" => state.notify("Project saved", false),
+ // Templates, speech and closing a project need that same
+ // store. The rows are here so the menu is the shape it
+ // will be; wiring them is a handler each the day it exists.
+ _ => {}
+ }
+ }
+ if action == "close-window" {
+ app.window().hide().ok();
+ return;
+ }
+ studio.borrow().publish(&app, &models);
+ }
+ });
+
+ studio.borrow().publish(&app, &models);
+
+ // --- the pieces Slint cannot express ---------------------------------
+ app.global::<Curves>().on_ease(bezier_y_at_x);
+ app.global::<Curves>()
+ .on_parse(|text, fallback| parse_bezier(text.as_str(), fallback));
+ app.global::<Fmt>()
+ .on_parse_timecode(|text| parse_timecode(text.as_str()));
+ app.global::<Fmt>().on_tick_interval(tick_interval);
+ app.global::<Fmt>()
+ .on_parse_frames(|text, rate| parse_frames(text.as_str(), rate));
+
+ // The drag payloads. A `data-transfer` is the platform's own drag object,
+ // so Slint keeps it opaque and leaves building and reading one to the host
+ // language — these two are that language. The payload is plain text
+ // because it crosses a boundary that only carries text and images, and
+ // because a drag that says "media:12" is one that can be read in a log.
+ app.global::<Payload>().on_of(DataTransfer::from);
+ app.global::<Payload>()
+ .on_text(|payload| payload.plain_text().unwrap_or_default());
+
+ // `pane:2:Inspector:inspector` -> 2. Everything else, including a drag
+ // that came from another application, is -1: a seat only accepts a panel,
+ // and this is how it tells one from anything else.
+ app.global::<Payload>().on_pane_seat(|text| {
+ text.strip_prefix("pane:")
+ .and_then(|rest| rest.split(':').next())
+ .and_then(|seat| seat.parse().ok())
+ .unwrap_or(-1)
+ });
+
+ // The picture the cursor carries. Resolved through the same `incoming`
+ // the drop does, so the chip and the clip it would leave are one answer
+ // to one question — a chip that named a different thing than the ghost
+ // would be a bug you could only find by looking very hard at a drag.
+ //
+ // Memoised by payload: the property is read once per source element, and
+ // there are as many of those as there are cards in the bin. Rasterising is
+ // the renderer's problem and happens once, for the one that is actually in
+ // flight; this only builds and parses the document.
+ app.global::<Payload>().on_preview({
+ let weak = app.as_weak();
+ let library = library.clone();
+ // Keyed by theme *and* payload: the chip is rasterised in the
+ // palette's own colours, so the same clip dragged under the other
+ // theme is a different picture. One character in front of the payload
+ // is cheaper than reaching in to clear the map when the toggle flips.
+ let chips: RefCell<std::collections::HashMap<String, slint::Image>> =
+ RefCell::new(std::collections::HashMap::new());
+ move |payload| {
+ let Some(app) = weak.upgrade() else {
+ return slint::Image::default();
+ };
+ let theme = app.global::<Theme>();
+ let key = format!("{}{payload}", if theme.get_dark() { 'd' } else { 'l' });
+ if let Some(chip) = chips.borrow().get(&key) {
+ return chip.clone();
+ }
+
+ // A panel being dragged out of its seat. Not a clip, so it never
+ // reaches the library: `pane:<seat>:<name>:<slug>`, and the chip
+ // wears the accent rather than a media kind's hue — what is in the
+ // air is a piece of the window, not a piece of the edit.
+ if let Some(rest) = payload.strip_prefix("pane:") {
+ let mut fields = rest.splitn(3, ':').skip(1);
+ let label = fields.next().unwrap_or_default();
+ let slug = fields.next().unwrap_or_default();
+ let chip = slint::Image::load_from_svg_data(
+ drag_chip_svg(
+ pane_glyph(slug),
+ label,
+ "",
+ theme.get_accent(),
+ theme.get_field(),
+ theme.get_raised(),
+ theme.get_fg(),
+ )
+ .as_bytes(),
+ )
+ .unwrap_or_default();
+ chips.borrow_mut().insert(key, chip.clone());
+ return chip;
+ }
+
+ // An empty payload is a card that opted out of dragging, and an
+ // unreadable one is a drag this tree did not start. Both get the
+ // empty image, which the overlay skips.
+ let Some(plan) = Studio::incoming(payload.as_str(), &library) else {
+ return slint::Image::default();
+ };
+ let (mark, well) = match plan.kind {
+ ClipKind::Video => (theme.get_kind_video(), theme.get_kind_video_well()),
+ ClipKind::Audio => (theme.get_kind_audio(), theme.get_kind_audio_well()),
+ ClipKind::Image => (theme.get_kind_image(), theme.get_kind_image_well()),
+ ClipKind::Text => (theme.get_kind_text(), theme.get_kind_text_well()),
+ ClipKind::Filter => (theme.get_kind_filter(), theme.get_kind_filter_well()),
+ };
+ // The envelope the bin card draws, for the one kind that has one.
+ let wave = plan
+ .media
+ .strip_prefix('m')
+ .and_then(|id| id.parse().ok())
+ .and_then(|id| library.item(id))
+ .map(|item| item.wave.to_string())
+ .unwrap_or_default();
+ let document = drag_chip_svg(
+ chip_glyph(plan.kind),
+ &plan.label,
+ &wave,
+ mark,
+ well,
+ theme.get_raised(),
+ theme.get_fg(),
+ );
+ let chip = slint::Image::load_from_svg_data(document.as_bytes()).unwrap_or_default();
+ chips.borrow_mut().insert(key, chip.clone());
+ chip
+ }
+ });
+
+ // --- simulated programme level ---------------------------------------
+ //
+ // Armed by hover rather than left running for the life of the process.
+ //
+ // Thirty samples a second is an animation however it is produced: each one
+ // writes `level` and `peak`, and the whole window is redrawn for every dirty
+ // property — Skia has partial-rendering machinery but it is off on every
+ // GPU surface, and FemtoVG has none at all. Left running, the
+ // feed alone held the app at ~10% of a core doing nothing but re-drawing a
+ // bar nobody was looking at. The meter reports hover (see the TouchArea in
+ // level-meter.slint) and the timer follows it, so an unattended window
+ // costs no frames at all.
+ let sim = Rc::new(LevelSim::new());
+ let level_timer = Rc::new(Timer::default());
+ app.on_meter_watched_changed({
+ let weak = app.as_weak();
+ let sim = sim.clone();
+ let level_timer = level_timer.clone();
+ move |watched| {
+ let Some(app) = weak.upgrade() else { return };
+ if !watched {
+ // Park at silence. Freezing on the last sample would leave the
+ // bar stopped mid-signal, which reads as a hung meter; zero
+ // reads as no programme, which is what it is. Peak goes
+ // negative rather than to zero because that hides the hold
+ // marker outright, the same way muting does — a tick pinned at
+ // the left edge is just debris.
+ level_timer.stop();
+ sim.reset();
+ app.global::<Editor>().set_level(0.0);
+ app.global::<Editor>().set_peak(-1.0);
+ return;
+ }
+ level_timer.start(TimerMode::Repeated, std::time::Duration::from_millis(33), {
+ let weak = weak.clone();
+ let sim = sim.clone();
+ move || {
+ let Some(app) = weak.upgrade() else { return };
+ if app.get_muted() {
+ sim.reset();
+ app.global::<Editor>().set_level(0.0);
+ app.global::<Editor>().set_peak(0.0);
+ return;
+ }
+ let (level, peak) = sim.tick(0.033);
+ app.global::<Editor>().set_level(level);
+ app.global::<Editor>().set_peak(peak);
+ }
+ });
+ }
+ });
+
+ app.run()
+}
diff --git a/engine/crates/concat/ui/app.slint b/engine/crates/concat/ui/app.slint
new file mode 100644
index 00000000..45ca8e12
--- /dev/null
+++ b/engine/crates/concat/ui/app.slint
@@ -0,0 +1,350 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// Inter is bundled rather than assumed: the web build names it first in a
+// font stack and degrades to the system UI face, but a desktop binary should
+// look the same on a machine that has never installed it. One file per weight
+// the design uses — 400 body, 500 titles, 600 the page heading.
+import "fonts/Inter-Regular.ttf";
+import "fonts/Inter-Medium.ttf";
+import "fonts/Inter-SemiBold.ttf";
+
+// Synonym, the reference editor's text face (desktop/src/styles.css names it
+// --font-sans). It ships there as one variable woff2, which Slint cannot load,
+// so these are static instances cut from it at the three weights the theme
+// uses. Licensed under the ITF Free Font License — see fonts/LICENSE-Synonym.
+import "fonts/Synonym-Regular.ttf";
+import "fonts/Synonym-Medium.ttf";
+import "fonts/Synonym-SemiBold.ttf";
+
+import { Theme } from "theme/theme.slint";
+import { Bezier, Curves, Fmt, Payload } from "util.slint";
+import { EffectData } from "demo/effects-panel.slint";
+import { MediaFilter, MediaItemData, MediaKind } from "workspace/media-pane.slint";
+import { ContextMenu, MenuItemData, MenuRow } from "primitives/context-menu.slint";
+import { ExportData, ExportDialog, ExportPhase } from "dialogs/export.slint";
+import { ModelData, SettingsData, SettingsDialog, SystemFactData } from "dialogs/settings.slint";
+import { DockDivider, DockSide, SeatBox } from "dock.slint";
+import { Editor } from "editor.slint";
+import { PaneKind } from "workspace/pane-switcher.slint";
+import { RecentProjectData, StartData, StartScreen } from "start.slint";
+import { TitleBar } from "title-bar.slint";
+import { ToastData, ToastLayer } from "primitives/toast.slint";
+import { TooltipLayer } from "primitives/tooltip.slint";
+import { Workspace } from "workspace/workspace.slint";
+import {
+ ClipData, ClipField, ClipKind, ClipTextField, DropData, SelectedClipData,
+ TextAlignment, TimelineTabData, TimelineTool, TrackData, TrackSize,
+} from "timeline/model.slint";
+
+// Re-exported so main.rs can reach the globals and the struct.
+export {
+ Curves, Fmt, Payload, Theme, Bezier, Editor,
+ DockDivider, DockSide, PaneKind, SeatBox,
+ EffectData, MediaFilter, MediaItemData, MediaKind,
+ ClipData, ClipField, ClipKind, ClipTextField, DropData, SelectedClipData,
+ TextAlignment, TimelineTabData, TimelineTool, TrackData, TrackSize,
+ MenuItemData, MenuRow, ExportData, ExportPhase, ModelData, SettingsData,
+ RecentProjectData, StartData, SystemFactData, ToastData,
+}
+
+export component App inherits Window {
+ title: "Concat";
+ background: Theme.page;
+ default-font-family: Theme.font;
+ default-font-size: Theme.fs;
+ // One line rather than a weight on every Text: everything inherits the
+ // compensated body weight, and only titles override it. See theme.slint.
+ default-font-weight: Theme.weight-body;
+ preferred-width: 1400px;
+ preferred-height: 900px;
+ // Below this the three columns cannot all hold their minimum and the panes
+ // start eating each other.
+ min-width: 900px;
+ min-height: 560px;
+ // So the shortcuts work before anything has been clicked. Without it the
+ // window opens with nothing focused, and a key would have nowhere to be
+ // delivered from until the first press landed somewhere.
+ forward-focus: keys;
+
+ // The editor's own state and actions live on the Editor global rather
+ // than here — see editor.slint. What is left on the window is the window:
+ // its title bar, its menus, and the two sheets that cover everything.
+
+ // ── the launch screen ────────────────────────────────────────────────
+ //
+ // Which screen the window is showing. The editor is not built until a
+ // project exists, so nothing behind this is instantiated meanwhile — and
+ // the workspace, when it does arrive, arrives with every callback already
+ // bound rather than during the window's own construction.
+ in property <bool> on-start: true;
+ in property <StartData> start;
+ in property <[string]> start-resolutions;
+ in property <[string]> start-rates;
+ in property <[RecentProjectData]> recents;
+
+ callback start-name-edited(name: string);
+ callback start-location-edited(path: string);
+ callback start-browse();
+ callback start-resolution-changed(index: int);
+ callback start-rate-changed(index: int);
+ callback start-create();
+ callback start-open-recent(path: string);
+ callback start-forget-recent(path: string);
+ callback start-dismiss-error();
+
+ // Title bar. The drag/maximize pair must be handled in main.rs — a window
+ // cannot drag itself from inside the scene graph; the rest are seams like
+ // the library callbacks above.
+ in property <string> project-name: "Untitled project";
+ in property <string> project-status: "saved";
+ in property <bool> macos;
+
+ /// The File / Edit / View menus. Built in Rust like every other menu here,
+ /// because what belongs on them depends on the project.
+ in property <int> open-menu: -1;
+ in property <[MenuItemData]> app-menu-items;
+ in property <length> app-menu-height;
+ in property <int> app-menu-token;
+ callback menu-opened(index: int);
+ callback app-menu-selected(id: string);
+
+ callback titlebar-begin-drag();
+ callback titlebar-toggle-maximize();
+ // The dialogs. Both are held at the root because Slint has no portal: a
+ // modal has to be declared where it is drawn, and it is drawn over
+ // everything.
+ in property <ExportData> export;
+ in property <SettingsData> settings;
+ in property <[ModelData]> transcribers;
+ in property <[ModelData]> voices;
+ in property <[string]> languages;
+ /// Settings > About's copyable block. Gathered once in main.rs and
+ /// never republished — every line of it is fixed for the life of the
+ /// process.
+ in property <[SystemFactData]> system-facts;
+ in property <string> system-report;
+
+ callback export-closed();
+ callback export-name-edited(name: string);
+ callback export-browse();
+ callback export-resolution-changed(index: int);
+ callback export-rate-changed(index: int);
+ callback export-quality-changed(index: int);
+ callback export-start();
+ callback export-cancel();
+ callback export-reveal();
+ callback export-again();
+
+ callback settings-closed();
+ callback settings-page-changed(index: int);
+ callback settings-language-changed(index: int);
+ callback settings-theme-changed(dark: bool);
+ callback settings-transcribe-language-changed(index: int);
+ callback model-activated(id: string);
+ callback model-download(id: string);
+ callback model-cancel(id: string);
+ callback model-remove(id: string);
+
+ callback open-settings();
+ callback export-clicked();
+
+ /// The bottom-right notice: what just happened, said once. Set from Rust
+ /// and watched by its token — see ToastLayer, which owns the timing.
+ in property <ToastData> toast;
+
+ // The level feed is a Rust timer, and a property cannot reach across to
+ // stop it, so the hover edge is forwarded as a callback: Rust arms the
+ // timer on the way in and disarms it on the way out. Idle then costs
+ // nothing, because nothing is dirtying a property.
+ callback meter-watched-changed(watched: bool);
+ changed meter-watched => {
+ root.meter-watched-changed(root.meter-watched);
+ }
+ // Left unbound. It used to read the ConfigPane's own hover flag, and
+ // there is no longer one ConfigPane to read — a seat may hold two of
+ // them or none. Nothing sets it, so the level timer in main.rs stays
+ // disarmed, which is where it already was: the demo meter left the pane
+ // when the inspector was ported, and nothing has driven it since.
+ out property <bool> meter-watched;
+ /// The same seam, and just as idle. main.rs reads it on every tick.
+ out property <bool> muted;
+
+ // The window's keyboard, and the thing focus falls back to.
+ //
+ // It wraps the content rather than sitting beside it, and both of its jobs
+ // come out of that:
+ //
+ // - Clicking anything that is not a control blurs the one that had
+ // focus, the way a browser does. Slint holds focus until something
+ // else takes it, so without somewhere for it to land a number field
+ // stays in its editing state — ring and all — for the rest of the
+ // session. Every real control is inside this and takes its own press
+ // first; what reaches here is a press on nothing, and a FocusScope
+ // takes focus on one.
+ // - A key goes to the focused element first and walks up the ancestors
+ // with whatever that one rejects, so the bindings below only fire when
+ // nothing in the window wanted the keystroke. That is the rule the
+ // reference writes out by hand — its handler returns early when the
+ // event target is an input — and here it is the delivery order.
+ //
+ // `Control` in a binding is the platform's own command modifier: Slint
+ // remaps it to ⌘ on macOS, which is also what the menu row beside it says.
+ keys := FocusScope {
+ width: 100%;
+ height: 100%;
+ focus-on-tab-navigation: false;
+
+ // Through the menu's own callback rather than a second handler: a
+ // shortcut and the row that advertises it have to do the same thing,
+ // and the cheapest way to be sure of that is for there to be one
+ // thing. Every other row in those menus is a KeyBinding away from
+ // working the same way.
+ KeyBinding {
+ keys: @keys(Control + S);
+ // Nothing on the launch screen has a project to act on, which is
+ // why the strip up there is missing the menus this belongs to.
+ enabled: !root.on-start;
+ activated => { root.app-menu-selected("save"); }
+ }
+
+ VerticalLayout {
+ width: 100%;
+ height: 100%;
+
+ TitleBar {
+ macos: root.macos;
+ minimal: root.on-start;
+ project-name: root.project-name;
+ status: root.project-status;
+
+ menu: root.open-menu;
+ menu-opened(index, at-x) => {
+ appmenu.request-x = at-x;
+ // Under the strip, which is 32px tall.
+ appmenu.request-y = 32px;
+ root.menu-opened(index);
+ }
+
+ begin-drag => { root.titlebar-begin-drag(); }
+ toggle-maximize => { root.titlebar-toggle-maximize(); }
+ open-settings => { root.open-settings(); }
+ add-pane(kind) => { Editor.dock-add(kind); }
+ export-clicked => { root.export-clicked(); }
+ }
+
+ if root.on-start: StartScreen {
+ vertical-stretch: 1;
+
+ data: root.start;
+ resolutions: root.start-resolutions;
+ rates: root.start-rates;
+ recents: root.recents;
+
+ name-edited(name) => { root.start-name-edited(name); }
+ location-edited(path) => { root.start-location-edited(path); }
+ browse => { root.start-browse(); }
+ resolution-changed(index) => { root.start-resolution-changed(index); }
+ rate-changed(index) => { root.start-rate-changed(index); }
+ create => { root.start-create(); }
+ open-recent(path) => { root.start-open-recent(path); }
+ forget-recent(path) => { root.start-forget-recent(path); }
+ dismiss-error => { root.start-dismiss-error(); }
+ }
+
+ // Everything the workspace shows now reads the Editor global, so
+ // nothing is passed to it: it is a box with four seats in it, and
+ // the views inside those seats reach the state directly. See
+ // editor.slint.
+ if !root.on-start: Workspace {
+ vertical-stretch: 1;
+ }
+ }
+ }
+
+ // Declared last, and that is load-bearing: Slint paints siblings in
+ // declaration order, so a modal placed above the workspace in the file is
+ // painted *under* it on screen — open, correct, and completely hidden.
+ ExportDialog {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+ data: root.export;
+
+ closed => { root.export-closed(); }
+ name-edited(name) => { root.export-name-edited(name); }
+ browse => { root.export-browse(); }
+ resolution-changed(index) => { root.export-resolution-changed(index); }
+ rate-changed(index) => { root.export-rate-changed(index); }
+ quality-changed(index) => { root.export-quality-changed(index); }
+ begin => { root.export-start(); }
+ cancel => { root.export-cancel(); }
+ reveal => { root.export-reveal(); }
+ again => { root.export-again(); }
+ }
+
+ SettingsDialog {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+ data: root.settings;
+ transcribers: root.transcribers;
+ voices: root.voices;
+ languages: root.languages;
+ system-facts: root.system-facts;
+ system-report: root.system-report;
+
+ closed => { root.settings-closed(); }
+ page-changed(index) => { root.settings-page-changed(index); }
+ language-changed(index) => { root.settings-language-changed(index); }
+ theme-changed(dark) => { root.settings-theme-changed(dark); }
+ transcribe-language-changed(index) => {
+ root.settings-transcribe-language-changed(index);
+ }
+ model-activated(id) => { root.model-activated(id); }
+ model-download(id) => { root.model-download(id); }
+ model-cancel(id) => { root.model-cancel(id); }
+ model-remove(id) => { root.model-remove(id); }
+ }
+
+ // Over the workspace and both sheets, under the menus. A tooltip has to
+ // clear the pane it belongs to — panes clip — and it has no business over
+ // an open menu, which is the one surface that would rather not be
+ // explained at. A PopupWindow is its own layer above all of this anyway,
+ // so the menus win without having to be declared after it.
+ TooltipLayer {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+ }
+
+ // Above the dialogs as well as the workspace. A PopupWindow is its own
+ // layer so the order does not strictly decide the outcome, but the
+ // element that places it still measures against this one's box, and this
+ // one is the whole window.
+ appmenu := ContextMenu {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+ items: root.app-menu-items;
+ menu-height: root.app-menu-height;
+ token: root.app-menu-token;
+ selected(id) => { root.app-menu-selected(id); }
+ }
+
+ // Last of all, and over everything including the sheets: an export that
+ // failed behind a dialog is exactly the case a notice is for. It takes no
+ // events — there is no TouchArea anywhere in it — so covering the window
+ // costs the window nothing.
+ ToastLayer {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+ data: root.toast;
+ }
+}
diff --git a/engine/crates/concat/ui/assets/concat-logo.png b/engine/crates/concat/ui/assets/concat-logo.png
new file mode 100644
index 00000000..991f698d
Binary files /dev/null and b/engine/crates/concat/ui/assets/concat-logo.png differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/black-white.jpg b/engine/crates/concat/ui/assets/effect-previews/black-white.jpg
new file mode 100644
index 00000000..e33005b9
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/black-white.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/box-blur.jpg b/engine/crates/concat/ui/assets/effect-previews/box-blur.jpg
new file mode 100644
index 00000000..51abb9f2
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/box-blur.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/contrast-pop.jpg b/engine/crates/concat/ui/assets/effect-previews/contrast-pop.jpg
new file mode 100644
index 00000000..ab8093b6
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/contrast-pop.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/cool.jpg b/engine/crates/concat/ui/assets/effect-previews/cool.jpg
new file mode 100644
index 00000000..8955fddf
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/cool.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/film-grain.jpg b/engine/crates/concat/ui/assets/effect-previews/film-grain.jpg
new file mode 100644
index 00000000..a1a6f9e6
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/film-grain.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/fisheye.jpg b/engine/crates/concat/ui/assets/effect-previews/fisheye.jpg
new file mode 100644
index 00000000..84e4403d
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/fisheye.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/gaussian-blur.jpg b/engine/crates/concat/ui/assets/effect-previews/gaussian-blur.jpg
new file mode 100644
index 00000000..ce7113eb
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/gaussian-blur.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/glow.jpg b/engine/crates/concat/ui/assets/effect-previews/glow.jpg
new file mode 100644
index 00000000..a456043e
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/glow.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/invert.jpg b/engine/crates/concat/ui/assets/effect-previews/invert.jpg
new file mode 100644
index 00000000..b553518b
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/invert.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/mirror.jpg b/engine/crates/concat/ui/assets/effect-previews/mirror.jpg
new file mode 100644
index 00000000..e8c16f3b
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/mirror.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/motion-blur.jpg b/engine/crates/concat/ui/assets/effect-previews/motion-blur.jpg
new file mode 100644
index 00000000..2db5c4e3
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/motion-blur.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/pixelate.jpg b/engine/crates/concat/ui/assets/effect-previews/pixelate.jpg
new file mode 100644
index 00000000..59d59cfb
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/pixelate.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/posterize.jpg b/engine/crates/concat/ui/assets/effect-previews/posterize.jpg
new file mode 100644
index 00000000..920cf902
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/posterize.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/sepia.jpg b/engine/crates/concat/ui/assets/effect-previews/sepia.jpg
new file mode 100644
index 00000000..d8994210
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/sepia.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/shake.jpg b/engine/crates/concat/ui/assets/effect-previews/shake.jpg
new file mode 100644
index 00000000..0cb5acc2
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/shake.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/sharpen.jpg b/engine/crates/concat/ui/assets/effect-previews/sharpen.jpg
new file mode 100644
index 00000000..f9c0b0bb
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/sharpen.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/vibrance.jpg b/engine/crates/concat/ui/assets/effect-previews/vibrance.jpg
new file mode 100644
index 00000000..d3baf791
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/vibrance.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/vignette.jpg b/engine/crates/concat/ui/assets/effect-previews/vignette.jpg
new file mode 100644
index 00000000..934a1724
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/vignette.jpg differ
diff --git a/engine/crates/concat/ui/assets/effect-previews/warm.jpg b/engine/crates/concat/ui/assets/effect-previews/warm.jpg
new file mode 100644
index 00000000..957990ac
Binary files /dev/null and b/engine/crates/concat/ui/assets/effect-previews/warm.jpg differ
diff --git a/engine/crates/concat/ui/demo/editor-chrome.slint b/engine/crates/concat/ui/demo/editor-chrome.slint
new file mode 100644
index 00000000..6ba2c0e3
--- /dev/null
+++ b/engine/crates/concat/ui/demo/editor-chrome.slint
@@ -0,0 +1,60 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme, Glyph, IconButton, Select } from "../primitives/primitives.slint";
+
+// Panel header with the zoom dropdown, shared by the editor screens.
+export component EditorHeader inherits Rectangle {
+ height: 42px;
+
+ HorizontalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 8px;
+
+ Text {
+ text: "Editor";
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ VerticalLayout {
+ alignment: center;
+ Select {
+ width: 84px;
+ flat: true;
+ current: 2;
+ options: ["25%", "50%", "72%", "100%", "200%", "400%"];
+ }
+ }
+ }
+}
+
+export component AlignToolbar inherits Rectangle {
+ property <int> last: -1;
+
+ height: 38px;
+
+ // The alignment set is drawn on Radix's 15-unit grid, so it renders at 15px
+ // to keep one unit on one pixel; at 14px the rails smear into the blocks.
+ HorizontalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ padding-top: 2px;
+ padding-bottom: 10px;
+ alignment: space-between;
+
+ IconButton { icon-size: 15px; glyph: Glyph.align-left; label: "Align left"; checked: root.last == 0; clicked => { root.last = 0; } }
+ IconButton { icon-size: 15px; glyph: Glyph.align-center-x; label: "Align centers horizontally"; checked: root.last == 1; clicked => { root.last = 1; } }
+ IconButton { icon-size: 15px; glyph: Glyph.align-right; label: "Align right"; checked: root.last == 2; clicked => { root.last = 2; } }
+ IconButton { icon-size: 15px; glyph: Glyph.align-top; label: "Align top"; checked: root.last == 3; clicked => { root.last = 3; } }
+ IconButton { icon-size: 15px; glyph: Glyph.align-center-y; label: "Align centers vertically"; checked: root.last == 4; clicked => { root.last = 4; } }
+ IconButton { icon-size: 15px; glyph: Glyph.align-bottom; label: "Align bottom"; checked: root.last == 5; clicked => { root.last = 5; } }
+ IconButton { icon-size: 15px; glyph: Glyph.distribute; label: "Distribute evenly"; checked: root.last == 6; clicked => { root.last = 6; } }
+ IconButton { icon-size: 15px; glyph: Glyph.fit; label: "Fit to selection"; checked: root.last == 7; clicked => { root.last = 7; } }
+ }
+}
diff --git a/engine/crates/concat/ui/demo/effects-panel.slint b/engine/crates/concat/ui/demo/effects-panel.slint
new file mode 100644
index 00000000..ec7f6d34
--- /dev/null
+++ b/engine/crates/concat/ui/demo/effects-panel.slint
@@ -0,0 +1,243 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import {
+ Theme, Fmt, Glyph, Icon, IconButton, Knob, LevelMeter, NumberField,
+ Row, Section, SectionBody, SectionHeader,
+} from "../primitives/primitives.slint";
+
+export struct EffectData {
+ id: int,
+ name: string,
+ audio: bool,
+}
+
+component EffectChip inherits Rectangle {
+ in property <string> name;
+ in property <bool> audio;
+ callback removed();
+
+ height: Theme.h;
+ horizontal-stretch: 1;
+ background: Theme.field;
+ border-radius: Theme.r;
+
+ HorizontalLayout {
+ padding-left: 4px;
+ padding-right: 4px;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ Rectangle {
+ width: 20px;
+ height: 20px;
+ border-radius: Theme.r-sm;
+ background: root.audio ? Theme.green : Theme.accent;
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.sparkle;
+ size: 11px;
+ tint: root.audio ? Theme.on-green : Theme.on-accent;
+ }
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.name;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ VerticalLayout {
+ alignment: center;
+ IconButton {
+ glyph: Glyph.close;
+ icon-size: 12px;
+ label: "Remove " + root.name;
+ clicked => { root.removed(); }
+ }
+ }
+ }
+}
+
+export component EffectsPanel inherits VerticalLayout {
+ in property <[EffectData]> video-effects;
+ in property <[EffectData]> audio-effects;
+ /// programme level and peak hold, driven from Rust
+ in property <float> level;
+ in property <float> peak;
+ /// Owned by the caller, not by the panel: a tab strip can unmount this
+ /// panel, and mute has to survive that — Rust reads it whether or not the
+ /// pane is showing the effects tab.
+ in property <bool> muted;
+ /// True while the pointer is over the level meter; Rust runs the feed off
+ /// this so the app is not repainting at 30fps when nobody is watching.
+ out property <bool> meter-hovered: meter.hovered;
+ // Reported rather than read: a caller that mounts this panel behind an
+ // `if` cannot reach an id inside the conditional, so the edge is pushed
+ // out instead of pulled in.
+ changed meter-hovered => {
+ root.meter-hovered-changed(root.meter-hovered);
+ }
+
+ callback add-effect(audio: bool);
+ callback remove-effect(id: int);
+ callback meter-hovered-changed(hovered: bool);
+ callback toggle-mute();
+
+ property <float> volume: 3;
+ property <float> trim: 0.62;
+ property <bool> soloed;
+
+ alignment: start;
+
+ Section {
+ first: true;
+ SectionHeader {
+ title: "Effects";
+ IconButton {
+ glyph: Glyph.plus;
+ label: "Add effect";
+ clicked => { root.add-effect(false); }
+ }
+ }
+ SectionBody {
+ for effect in root.video-effects: Row {
+ label: "FX";
+ EffectChip {
+ name: effect.name;
+ removed => { root.remove-effect(effect.id); }
+ }
+ }
+ }
+ }
+
+ Section {
+ SectionHeader {
+ title: "Animation";
+ IconButton { glyph: Glyph.plus; label: "Add effect"; }
+ }
+ }
+ Section {
+ SectionHeader {
+ title: "Transition";
+ IconButton { glyph: Glyph.plus; label: "Add effect"; }
+ }
+ }
+ Section {
+ SectionHeader {
+ title: "Mask";
+ IconButton { glyph: Glyph.plus; label: "Add effect"; }
+ }
+ }
+
+ Section {
+ SectionHeader { title: "Audio"; }
+ SectionBody {
+ Row {
+ label: "Volume";
+ VerticalLayout {
+ horizontal-stretch: 1;
+ spacing: Theme.gap;
+ padding-top: 5px;
+ padding-bottom: 5px;
+
+ NumberField {
+ value <=> root.volume;
+ minimum: -60;
+ maximum: 12;
+ precision: 1;
+ keyframe: true;
+ keyframed: true;
+ format(v) => { return Fmt.decibels(v); }
+ }
+
+ Rectangle {
+ height: Theme.h;
+ background: Theme.well;
+ border-radius: Theme.r;
+ clip: true;
+ HorizontalLayout {
+ spacing: 1px;
+ Rectangle {
+ background: Theme.field;
+ IconButton {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "M";
+ wide: true;
+ label: "Mute";
+ checked: root.muted;
+ clicked => { root.toggle-mute(); }
+ }
+ }
+ Rectangle {
+ background: Theme.field;
+ IconButton {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "S";
+ wide: true;
+ label: "Solo";
+ checked: root.soloed;
+ clicked => { root.soloed = !root.soloed; }
+ }
+ }
+ }
+ }
+ }
+
+ // Wrapped to centre it: the row is 72px and the well 68px,
+ // and a layout start-aligns a fixed-size child.
+ VerticalLayout {
+ alignment: center;
+ Rectangle {
+ width: 90px;
+ height: 68px;
+ horizontal-stretch: 0;
+ background: Theme.field;
+ border-radius: Theme.r;
+ Knob {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ value <=> root.trim;
+ default-value: 0.5;
+ }
+ }
+ }
+ }
+ Row {
+ meter := LevelMeter {
+ value: root.level;
+ peak: root.muted ? -1 : root.peak;
+ }
+ }
+ }
+ }
+
+ Section {
+ SectionHeader {
+ title: "Audio effects";
+ IconButton {
+ glyph: Glyph.plus;
+ label: "Add effect";
+ clicked => { root.add-effect(true); }
+ }
+ }
+ SectionBody {
+ for effect in root.audio-effects: Row {
+ label: "FX";
+ EffectChip {
+ name: effect.name;
+ audio: true;
+ removed => { root.remove-effect(effect.id); }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/demo/interpolation-panel.slint b/engine/crates/concat/ui/demo/interpolation-panel.slint
new file mode 100644
index 00000000..a4216251
--- /dev/null
+++ b/engine/crates/concat/ui/demo/interpolation-panel.slint
@@ -0,0 +1,252 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import {
+ Theme, Bezier, Curves, Fmt, BezierEditor, NumberField, Row,
+ Section, SectionBody, SectionHeader, SegmentedControl, Select, Stepper, FocusRing,
+} from "../primitives/primitives.slint";
+import { AlignToolbar, EditorHeader } from "editor-chrome.slint";
+
+// Runs a dot across the row using the live curve as its timing function.
+//
+// CSS gets this from `transition-timing-function: cubic-bezier(...)`. Slint's
+// `easing:` takes literals only, so the dot is animated linearly and the curve
+// is applied to the result — which means the solver has to be callable, and
+// that is why Curves.ease lives in Rust.
+component EasePreview inherits Rectangle {
+ in property <Bezier> curve;
+ in property <bool> enabled;
+
+ property <bool> flipped;
+ property <float> at: root.flipped ? 1.0 : 0.0;
+ property <float> eased: root.enabled
+ ? Curves.ease(root.curve.x1, root.curve.y1, root.curve.x2, root.curve.y2, root.at)
+ : root.at;
+
+ animate at { duration: 1200ms; easing: linear; }
+
+ height: Theme.h;
+ horizontal-stretch: 1;
+ min-width: 80px;
+ background: Theme.field;
+ border-radius: Theme.r;
+
+ // Gated on hover rather than left running, which is a deliberate departure
+ // from web/.
+ //
+ // A Slint animation in flight drives the render loop at the monitor's
+ // refresh rate, and nothing here renders partially, so every one of those
+ // frames repaints the entire window. Ease is the default mode, so ungated
+ // this single animation — 1200ms out of every 1500ms — held the whole app
+ // at full refresh forever to move one dot. The browser can afford to run it
+ // always because it composites a transform on the GPU without repainting
+ // anything.
+ Timer {
+ interval: 1500ms;
+ running: root.enabled && hover.has-hover;
+ triggered => {
+ root.flipped = !root.flipped;
+ }
+ }
+
+ Rectangle {
+ x: 8px + (root.width - 26px) * root.eased;
+ y: (root.height - 10px) / 2;
+ width: 10px;
+ height: 10px;
+ border-radius: 5px;
+ // Brighter under the pointer, so the row reads as the thing that plays
+ // rather than looking broken while it sits still.
+ background: hover.has-hover ? Theme.fg : Theme.fg-dim;
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ hover := TouchArea {
+ changed has-hover => {
+ if (!self.has-hover) {
+ // Park at the start so it reads as ready to play again. The
+ // in-flight animation finishes first, then the loop idles.
+ root.flipped = false;
+ }
+ }
+ }
+}
+
+// Plain text field, styled like a NumberField but holding four numbers.
+component BezierField inherits Rectangle {
+ in property <string> value;
+ callback committed(text: string);
+
+ height: Theme.h;
+ horizontal-stretch: 1;
+ min-width: 80px;
+ background: (ti.has-focus || touch.has-hover) ? Theme.field-hover : Theme.field;
+ border-radius: Theme.r;
+
+ changed value => {
+ if (!ti.has-focus) { ti.text = root.value; }
+ }
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+
+ ti := TextInput {
+ text: root.value;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ single-line: true;
+ vertical-alignment: center;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ changed has-focus => {
+ if (self.has-focus) {
+ self.select-all();
+ } else {
+ root.committed(self.text);
+ self.text = root.value;
+ }
+ }
+ accepted => { self.clear-focus(); }
+ key-pressed(event) => {
+ if (event.text == Key.Escape) {
+ self.text = root.value;
+ self.clear-focus();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: text;
+ clicked => { ti.focus(); }
+ }
+
+ FocusRing { active: ti.has-focus; radius: Theme.r; }
+}
+
+export component InterpolationPanel inherits VerticalLayout {
+ property <int> mode: 1; // 0 hold, 1 ease, 2 spring
+ property <float> x1: 0.42;
+ property <float> y1: 0;
+ property <float> x2: 0.58;
+ property <float> y2: 1;
+ property <float> stiffness: 180;
+ property <float> damping: 22;
+
+ property <Bezier> curve: { x1: root.x1, y1: root.y1, x2: root.x2, y2: root.y2 };
+ property <string> curve-text:
+ "\{Fmt.round-to(root.x1, 2)}, \{Fmt.round-to(root.y1, 2)}, "
+ + "\{Fmt.round-to(root.x2, 2)}, \{Fmt.round-to(root.y2, 2)}";
+
+ // index 5 is Custom, which matches nothing
+ property <[Bezier]> presets: [
+ { x1: 0, y1: 0, x2: 1, y2: 1 },
+ { x1: 0.42, y1: 0, x2: 1, y2: 1 },
+ { x1: 0, y1: 0, x2: 0.58, y2: 1 },
+ { x1: 0.42, y1: 0, x2: 0.58, y2: 1 },
+ { x1: 0.34, y1: 1.26, x2: 0.64, y2: 1 },
+ ];
+
+ pure function matches(p: Bezier) -> bool {
+ return Math.abs(p.x1 - root.x1) < 0.005 && Math.abs(p.y1 - root.y1) < 0.005
+ && Math.abs(p.x2 - root.x2) < 0.005 && Math.abs(p.y2 - root.y2) < 0.005;
+ }
+
+ property <int> preset: root.matches(root.presets[0]) ? 0
+ : root.matches(root.presets[1]) ? 1
+ : root.matches(root.presets[2]) ? 2
+ : root.matches(root.presets[3]) ? 3
+ : root.matches(root.presets[4]) ? 4
+ : 5;
+
+ function set-curve(c: Bezier) {
+ root.x1 = c.x1;
+ root.y1 = c.y1;
+ root.x2 = c.x2;
+ root.y2 = c.y2;
+ }
+
+ alignment: start;
+
+ EditorHeader { }
+ AlignToolbar { }
+
+ Section {
+ SectionHeader { title: "Interpolation"; }
+ SectionBody {
+ Row {
+ SegmentedControl {
+ options: ["Hold", "Ease", "Spring"];
+ current <=> root.mode;
+ }
+ }
+
+ if root.mode == 0: Row {
+ Text {
+ horizontal-stretch: 1;
+ text: "The value snaps at the keyframe and holds until the next one.";
+ color: Theme.fg-dim;
+ font-size: Theme.fs;
+ wrap: word-wrap;
+ }
+ }
+
+ if root.mode == 1: Row {
+ BezierEditor {
+ x1 <=> root.x1;
+ y1 <=> root.y1;
+ x2 <=> root.x2;
+ y2 <=> root.y2;
+ }
+ }
+ if root.mode == 1: Row {
+ label: "Ease";
+ Select {
+ options: ["Linear", "Ease In", "Ease Out", "Ease In & Out", "Back Out", "Custom"];
+ current: root.preset;
+ changed(index) => {
+ if (index < 5) { root.set-curve(root.presets[index]); }
+ }
+ }
+ }
+ if root.mode == 1: Row {
+ label: "Bezier";
+ BezierField {
+ value: root.curve-text;
+ committed(text) => { root.set-curve(Curves.parse(text, root.curve)); }
+ }
+ }
+
+ if root.mode == 2: Row {
+ label: "Stiffness";
+ NumberField { value <=> root.stiffness; minimum: 1; maximum: 1000; }
+ Stepper {
+ stepped(direction, shift, alt) => {
+ root.stiffness = Math.max(1, root.stiffness + direction * 10);
+ }
+ }
+ }
+ if root.mode == 2: Row {
+ label: "Damping";
+ NumberField { value <=> root.damping; minimum: 1; maximum: 100; }
+ Stepper {
+ stepped(direction, shift, alt) => {
+ root.damping = Math.max(1, root.damping + direction);
+ }
+ }
+ }
+
+ Row {
+ label: "Preview";
+ EasePreview {
+ curve: root.curve;
+ enabled: root.mode == 1;
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/demo/transform-panel.slint b/engine/crates/concat/ui/demo/transform-panel.slint
new file mode 100644
index 00000000..9a28de3a
--- /dev/null
+++ b/engine/crates/concat/ui/demo/transform-panel.slint
@@ -0,0 +1,187 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import {
+ Theme, Fmt, Glyph, IconButton, NumberField, Row,
+ Section, SectionBody, SectionHeader, Select, Stepper,
+} from "../primitives/primitives.slint";
+import { AlignToolbar, EditorHeader } from "editor-chrome.slint";
+
+// The panel is instantiated rather than inherited so its `@children` slot is
+// filled; a derived component's body is not routed through that placeholder.
+export component TransformPanel inherits VerticalLayout {
+ alignment: start;
+
+ property <float> speed: 100;
+ property <float> length-s: 12;
+ property <float> in-point: 4;
+ property <float> out-point: 16;
+ property <float> pos-x: 742;
+ property <float> pos-y: 386;
+ property <float> rotate: 0;
+ property <float> frame-w: 1920;
+ property <float> frame-h: 1080;
+ property <float> opacity-pct: 100;
+ property <bool> locked;
+ property <bool> visible-layer: true;
+
+ EditorHeader { }
+ AlignToolbar { }
+
+ Section {
+ SectionHeader {
+ title: "Time";
+ IconButton { glyph: Glyph.plus; label: "Add time keyframe"; }
+ }
+ SectionBody {
+ Row {
+ label: "Speed";
+ NumberField {
+ value <=> root.speed;
+ minimum: 1;
+ maximum: 1000;
+ suffix: "%";
+ keyframe: true;
+ }
+ Stepper {
+ stepped(direction, shift, alt) => {
+ root.speed = Math.max(1, root.speed + direction * (shift ? 25 : 5));
+ }
+ }
+ }
+ Row {
+ label: "Length";
+ NumberField {
+ value <=> root.length-s;
+ minimum: 0;
+ suffix: "s";
+ }
+ Stepper {
+ stepped(direction, shift, alt) => {
+ root.length-s = Math.max(0, root.length-s + direction);
+ }
+ }
+ }
+ Row {
+ label: "In & Out";
+ // The timecode round-trip: formatting is expressible in Slint,
+ // parsing needs split() and so lives in Rust.
+ NumberField {
+ value <=> root.in-point;
+ minimum: 0;
+ maximum: root.out-point;
+ format(v) => { return Fmt.timecode(v); }
+ parse(t) => { return Fmt.parse-timecode(t); }
+ }
+ NumberField {
+ value <=> root.out-point;
+ minimum: root.in-point;
+ format(v) => { return Fmt.timecode(v); }
+ parse(t) => { return Fmt.parse-timecode(t); }
+ }
+ }
+ }
+ }
+
+ Section {
+ SectionHeader {
+ title: "Transform";
+ IconButton { glyph: Glyph.plus; label: "Add transform keyframe"; }
+ }
+ SectionBody {
+ Row {
+ label: "Position";
+ NumberField { value <=> root.pos-x; prefix: "X"; keyframe: true; }
+ NumberField { value <=> root.pos-y; prefix: "Y"; keyframe: true; }
+ }
+ Row {
+ Select { options: ["Left", "Center", "Right", "L + R"]; current: 0; }
+ }
+ Row {
+ Select { options: ["Top", "Middle", "Bottom", "T + B"]; current: 0; }
+ }
+ Row {
+ label: "Rotate";
+ NumberField {
+ value <=> root.rotate;
+ prefix-glyph: Glyph.angle;
+ suffix: "°";
+ keyframe: true;
+ }
+ IconButton { glyph: Glyph.copy; label: "Duplicate"; }
+ IconButton { glyph: Glyph.flip-h; label: "Flip horizontal"; }
+ IconButton { glyph: Glyph.flip-v; label: "Flip vertical"; }
+ }
+ }
+ }
+
+ Section {
+ layout := SectionHeader {
+ title: "Layout";
+ collapsible: true;
+ IconButton { glyph: Glyph.frame; label: "Fit to frame"; }
+ IconButton {
+ glyph: Glyph.lock;
+ label: "Lock aspect ratio";
+ checked: root.locked;
+ clicked => { root.locked = !root.locked; }
+ }
+ IconButton { glyph: Glyph.plus; label: "Add layout keyframe"; }
+ }
+ if layout.open: SectionBody {
+ Row {
+ label: "Size";
+ NumberField {
+ value <=> root.frame-w;
+ prefix: "W";
+ minimum: 1;
+ keyframe: true;
+ changed(v) => {
+ if (root.locked) { root.frame-h = Math.round(v * 9 / 16); }
+ }
+ }
+ NumberField {
+ value <=> root.frame-h;
+ prefix: "H";
+ minimum: 1;
+ keyframe: true;
+ changed(v) => {
+ if (root.locked) { root.frame-w = Math.round(v * 16 / 9); }
+ }
+ }
+ }
+ }
+ }
+
+ Section {
+ SectionHeader {
+ title: "Appearance";
+ IconButton {
+ glyph: Glyph.eye;
+ label: "Toggle visibility";
+ checked: root.visible-layer;
+ clicked => { root.visible-layer = !root.visible-layer; }
+ }
+ IconButton { glyph: Glyph.plus; label: "Add appearance keyframe"; }
+ }
+ SectionBody {
+ Row {
+ label: "Opacity";
+ NumberField {
+ value <=> root.opacity-pct;
+ minimum: 0;
+ maximum: 100;
+ suffix: "%";
+ keyframe: true;
+ }
+ }
+ Row {
+ label: "Blending";
+ Select {
+ options: ["Normal", "Multiply", "Screen", "Overlay", "Add", "Difference"];
+ current: 0;
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/dialogs/export.slint b/engine/crates/concat/ui/dialogs/export.slint
new file mode 100644
index 00000000..79a3d905
--- /dev/null
+++ b/engine/crates/concat/ui/dialogs/export.slint
@@ -0,0 +1,399 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { Button, DialogRow, DialogSection, Field, Modal, Progress } from "../primitives/modal.slint";
+import { Select } from "../primitives/select.slint";
+
+// The export dialog, ported from the reference's ExportDialog and dressed with
+// web/'s export panel.
+//
+// The reference states the format, asks where the file goes, offers three
+// quality presets and starts. web/ puts the deciding number *on* each preset —
+// what the file will actually weigh — which is the thing the choice hinges on
+// and was otherwise nowhere. That is the borrowing.
+
+export enum ExportPhase { idle, running, done, failed }
+
+export struct ExportData {
+ open: bool,
+ /// the file name, without folder or extension
+ name: string,
+ /// the whole path, already shortened for display by whoever owns it
+ path: string,
+ /// "1920 x 1080 · 30.00 fps"
+ format: string,
+ duration: string,
+ /// "8 clips · 3 titles"
+ contents: string,
+ resolution: int,
+ rate: int,
+ quality: int,
+ /// What each preset would weigh. Three strings rather than a list: a Slint
+ /// struct cannot hold an array.
+ size-high: string,
+ size-balanced: string,
+ size-small: string,
+ phase: ExportPhase,
+ /// 0..1
+ progress: float,
+ /// "Rendering video"
+ stage: string,
+ eta: string,
+ /// why it failed, when it did
+ message: string,
+ done-size: string,
+ /// nothing on the timeline to export
+ empty: bool,
+}
+
+// One tile of the summary block.
+//
+// The block is a rounded rectangle in the hairline colour with 1px gaps
+// between its rows, so the separators are the ground showing through rather
+// than lines drawn on top — which is how web/ builds it, and why the rules
+// stop exactly at the rounded corners instead of running into them.
+component Fact inherits Rectangle {
+ in property <string> label;
+ in property <string> value;
+
+ height: 34px;
+ background: Theme.raised;
+
+ HorizontalLayout {
+ padding-left: 12px;
+ padding-right: 12px;
+ spacing: 12px;
+
+ Text {
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ Text {
+ text: root.value;
+ color: Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+}
+
+// One of the three quality presets. The estimate is on the card, in the accent
+// when the card is the chosen one, because it is what the choice is actually
+// being made on.
+component QualityCard inherits Rectangle {
+ in property <string> label;
+ in property <string> note;
+ in property <string> size;
+ in property <bool> current;
+
+ callback clicked();
+
+ horizontal-stretch: 1;
+ height: 72px;
+ border-radius: Theme.r;
+ border-width: 1px;
+ border-color: root.current ? Theme.accent
+ : touch.has-hover ? Theme.line-strong
+ : Theme.line;
+ background: root.current ? Theme.accent-soft : Theme.raised;
+
+ animate background, border-color { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ VerticalLayout {
+ padding: 10px;
+ spacing: 1px;
+
+ Text {
+ text: root.label;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ overflow: elide;
+ }
+
+ Text {
+ text: root.note;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ overflow: elide;
+ }
+
+ Rectangle { vertical-stretch: 1; }
+
+ Text {
+ text: "~" + root.size;
+ color: root.current ? Theme.accent : Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+export component ExportDialog inherits Modal {
+ in property <ExportData> data;
+
+ callback name-edited(name: string);
+ callback browse();
+ callback resolution-changed(index: int);
+ callback rate-changed(index: int);
+ callback quality-changed(index: int);
+ callback begin();
+ callback cancel();
+ callback reveal();
+ callback again();
+
+ property <bool> running: root.data.phase == ExportPhase.running;
+
+ open: root.data.open;
+ title: "Export";
+ glyph: Glyph.export;
+ surface-width: 470px;
+ dismissable: !root.running;
+
+ // The sheet's own header carries the fact it is acting on.
+ note: root.data.format;
+
+ VerticalLayout {
+ DialogSection {
+ first: true;
+ title: "Summary";
+
+ Rectangle {
+ border-radius: Theme.r;
+ // The ground the 1px gaps show through.
+ background: Theme.line;
+ clip: true;
+
+ VerticalLayout {
+ spacing: 1px;
+
+ Fact { label: "Format"; value: root.data.format + " · H.264"; }
+ Fact { label: "Duration"; value: root.data.duration; }
+ Fact { label: "Contents"; value: root.data.contents; }
+ }
+ }
+ }
+
+ if !root.running: DialogSection {
+ title: "Destination";
+
+ DialogRow {
+ Field {
+ value: root.data.name;
+ technical: true;
+ edited(text) => { root.name-edited(text); }
+ }
+
+ Button {
+ label: "Browse";
+ glyph: Glyph.import;
+ clicked => { root.browse(); }
+ }
+ }
+
+ // The whole path under the field rather than in it, so the part
+ // you are editing is never the part that gets truncated away.
+ Text {
+ text: root.data.path;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ overflow: elide;
+ }
+ }
+
+ if !root.running: DialogSection {
+ title: "Output";
+
+ DialogRow {
+ label: "Resolution";
+ Select {
+ current: root.data.resolution;
+ options: ["3840 × 2160", "2560 × 1440", "1920 × 1080", "1280 × 720"];
+ details: ["4K", "QHD", "1080p", "720p"];
+ changed(index) => { root.resolution-changed(index); }
+ }
+ }
+
+ DialogRow {
+ label: "Frame rate";
+ Select {
+ current: root.data.rate;
+ options: ["24 fps", "30 fps", "60 fps"];
+ changed(index) => { root.rate-changed(index); }
+ }
+ }
+ }
+
+ if !root.running: DialogSection {
+ title: "Quality";
+
+ HorizontalLayout {
+ spacing: 6px;
+
+ QualityCard {
+ label: "High";
+ note: "Master";
+ size: root.data.size-high;
+ current: root.data.quality == 0;
+ clicked => { root.quality-changed(0); }
+ }
+ QualityCard {
+ label: "Balanced";
+ note: "Recommended";
+ size: root.data.size-balanced;
+ current: root.data.quality == 1;
+ clicked => { root.quality-changed(1); }
+ }
+ QualityCard {
+ label: "Small";
+ note: "Share";
+ size: root.data.size-small;
+ current: root.data.quality == 2;
+ clicked => { root.quality-changed(2); }
+ }
+ }
+ }
+
+ // ── the footer ───────────────────────────────────────────────────
+ Rectangle {
+ height: 1px;
+ background: Theme.line;
+ }
+
+ VerticalLayout {
+ padding: 14px;
+ spacing: 10px;
+
+ // A failure says what went wrong where the action was, not in a
+ // separate alert to be dismissed before you can try again.
+ if root.data.phase == ExportPhase.failed: Rectangle {
+ border-radius: Theme.r;
+ background: Theme.danger-soft;
+
+ HorizontalLayout {
+ padding: 10px;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: start;
+ Icon { glyph: Glyph.close; size: 13px; tint: Theme.danger; }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.data.message;
+ color: Theme.danger;
+ font-size: Theme.fs-sm;
+ wrap: word-wrap;
+ }
+ }
+ }
+
+ if root.running: HorizontalLayout {
+ spacing: 8px;
+
+ Text {
+ text: root.data.stage;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: "\{Math.round(root.data.progress * 100)}%";
+ color: Theme.fg-muted;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ Text {
+ text: root.data.eta;
+ color: Theme.fg-muted;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+ }
+
+ if root.running: Progress { value: root.data.progress; }
+
+ if root.running: HorizontalLayout {
+ alignment: start;
+ Button {
+ label: "Cancel export";
+ glyph: Glyph.close;
+ ghost: true;
+ clicked => { root.cancel(); }
+ }
+ }
+
+ if root.data.phase == ExportPhase.done: HorizontalLayout {
+ spacing: 8px;
+ alignment: start;
+
+ VerticalLayout {
+ alignment: center;
+ Icon { glyph: Glyph.check; size: 15px; tint: Theme.green; }
+ }
+
+ Text {
+ text: "Exported · " + root.data.done-size;
+ color: Theme.green;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+ }
+
+ if root.data.phase == ExportPhase.done: HorizontalLayout {
+ spacing: 6px;
+ alignment: start;
+
+ Button {
+ label: "Show in folder";
+ glyph: Glyph.import;
+ clicked => { root.reveal(); }
+ }
+ Button {
+ label: "Export again";
+ ghost: true;
+ clicked => { root.again(); }
+ }
+ }
+
+ if root.data.phase == ExportPhase.idle || root.data.phase == ExportPhase.failed:
+ HorizontalLayout {
+ Button {
+ block: true;
+ primary: true;
+ large: true;
+ glyph: Glyph.export;
+ label: root.data.empty ? "Nothing to export"
+ : "Export · ~" + (root.data.quality == 0 ? root.data.size-high
+ : root.data.quality == 1 ? root.data.size-balanced
+ : root.data.size-small);
+ enabled: !root.data.empty && root.data.name != "";
+ clicked => { root.begin(); }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/dialogs/settings.slint b/engine/crates/concat/ui/dialogs/settings.slint
new file mode 100644
index 00000000..77971f2b
--- /dev/null
+++ b/engine/crates/concat/ui/dialogs/settings.slint
@@ -0,0 +1,645 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { Button, DialogSection, Modal, Progress } from "../primitives/modal.slint";
+import { IconButton } from "../primitives/panel.slint";
+import { SegmentedControl } from "../primitives/segmented-control.slint";
+import { PaneScroll } from "../workspace/pane.slint";
+
+// Settings, ported from the reference's SettingsDialog: a fixed-height sheet
+// with a column of pages down the side. The model rows take their shape from
+// web/'s transcriber panel, which separates the two things the reference's row
+// conflated — a downloaded model is a *choice* and so behaves as a radio,
+// while an absent one is an *acquisition* and is handled by the button on the
+// right. That distinction is the whole reason the row reads at a glance.
+
+export struct ModelData {
+ id: string,
+ name: string,
+ /// "Fastest, least accurate"
+ note: string,
+ /// "142 MB"
+ size: string,
+ /// 1..5, drawn as pips
+ accuracy: int,
+ installed: bool,
+ /// the one this engine will use
+ active: bool,
+ downloading: bool,
+ /// 0..1
+ progress: float,
+ /// "42 MB of 142 MB · 3.1 MB/s"
+ transferred: string,
+ eta: string,
+}
+
+/// One line of the system report: what it is called, and what it says.
+export struct SystemFactData {
+ label: string,
+ value: string,
+}
+
+export struct SettingsData {
+ open: bool,
+ /// 0 General, 1 Appearance, 2 Transcriber, 3 Speech, 4 About
+ tab: int,
+ language: int,
+ /// the transcriber's working language
+ transcribe-language: int,
+ /// "3 installed · 612 MB on disk"
+ disk: string,
+ version: string,
+ engine: string,
+}
+
+// Accuracy, as pips rather than a number: five little bars say "third of five"
+// without the reader having to hold a scale in their head.
+component Pips inherits HorizontalLayout {
+ in property <int> value;
+
+ spacing: 2px;
+
+ for step in 5: Rectangle {
+ width: 3px;
+ height: 10px;
+ border-radius: 1px;
+ background: step < root.value ? Theme.accent : Theme.field-active;
+ }
+}
+
+component ModelRow inherits Rectangle {
+ in property <ModelData> model;
+
+ callback activated();
+ callback download();
+ callback cancel();
+ callback remove();
+
+ border-radius: Theme.r;
+ border-width: 1px;
+ border-color: root.model.active ? Theme.accent
+ : touch.has-hover ? Theme.line-strong
+ : Theme.line;
+ background: root.model.active ? Theme.accent-soft : Theme.raised;
+ // An absent model is dimmer than an installed one, but not so dim it
+ // stops being readable — it is a thing you can have, not a thing denied.
+ opacity: (root.model.installed || root.model.downloading) ? 1.0 : 0.86;
+
+ animate background, border-color { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ touch := TouchArea {
+ // Only an installed model is a choice. An absent one is acquired with
+ // the button on the right, and clicking the row would be ambiguous.
+ enabled: root.model.installed;
+ mouse-cursor: root.model.installed ? pointer : default;
+ clicked => { root.activated(); }
+ }
+
+ VerticalLayout {
+ padding: 10px;
+ spacing: 8px;
+
+ HorizontalLayout {
+ spacing: 10px;
+
+ // The radio. A ring that thickens into a filled dot when this is
+ // the model in use, dimmer again when the model is not even here —
+ // three states in one mark, which is what lets the row say what it
+ // is without a word of it.
+ VerticalLayout {
+ alignment: start;
+ padding-top: 2px;
+ Rectangle {
+ width: 16px;
+ height: 16px;
+ border-radius: 8px;
+ border-width: root.model.active ? 5px : 1.5px;
+ border-color: root.model.active ? Theme.accent
+ : root.model.installed ? Theme.line-strong
+ : Theme.field-active;
+
+ animate border-width, border-color {
+ duration: 120ms;
+ easing: cubic-bezier(0.4, 0, 0.2, 1);
+ }
+ }
+ }
+
+ VerticalLayout {
+ horizontal-stretch: 1;
+ spacing: 2px;
+
+ HorizontalLayout {
+ spacing: 6px;
+ alignment: start;
+
+ Text {
+ text: root.model.name;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if root.model.active: Rectangle {
+ width: badge.width + 12px;
+ height: 15px;
+ border-radius: 7.5px;
+ background: Theme.accent;
+
+ badge := Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "In use";
+ color: Theme.on-accent;
+ font-size: Theme.fs-xs;
+ font-weight: Theme.weight-display;
+ }
+ }
+ }
+
+ Text {
+ text: root.model.note;
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ overflow: elide;
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Pips { value: root.model.accuracy; }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Text {
+ text: root.model.size;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+
+ if root.model.downloading: Button {
+ label: "Cancel";
+ glyph: Glyph.close;
+ ghost: true;
+ clicked => { root.cancel(); }
+ }
+
+ if !root.model.downloading && root.model.installed: Button {
+ label: "Remove";
+ glyph: Glyph.trash;
+ danger: true;
+ clicked => { root.remove(); }
+ }
+
+ if !root.model.downloading && !root.model.installed: Button {
+ label: "Download";
+ glyph: Glyph.import;
+ clicked => { root.download(); }
+ }
+
+ }
+ }
+
+ if root.model.downloading: VerticalLayout {
+ spacing: 6px;
+
+ Progress { value: root.model.progress; }
+
+ HorizontalLayout {
+ spacing: 8px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.model.transferred;
+ color: Theme.fg-muted;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ }
+
+ Text {
+ text: root.model.eta;
+ color: Theme.fg-muted;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ }
+ }
+ }
+ }
+}
+
+component PageTab inherits Rectangle {
+ in property <string> label;
+ in property <Glyph> glyph;
+ in property <bool> current;
+
+ callback clicked();
+
+ height: 30px;
+ border-radius: Theme.r-sm;
+ background: root.current ? Theme.field-active
+ : touch.has-hover ? Theme.field
+ : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ HorizontalLayout {
+ padding-left: 10px;
+ padding-right: 10px;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.glyph;
+ size: 13px;
+ tint: root.current ? Theme.fg : Theme.fg-muted;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.label;
+ color: root.current ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+// One system fact: muted label left, value right. Lifted from the Details
+// panel's FactRow (config-pane.slint) and left there too — that one carries
+// the panel's own gutters, and in here the section already pads. The value is
+// a read-only TextInput for the reason it is one there: a fact you cannot
+// select is a fact you have to retype. The button above copies the lot, and
+// this is how you take one line instead.
+component FactRow inherits HorizontalLayout {
+ in property <string> label;
+ in property <string> value;
+
+ spacing: 12px;
+ min-height: 21px;
+
+ Text {
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ TextInput {
+ horizontal-stretch: 1;
+ text: root.value;
+ color: Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ horizontal-alignment: right;
+ read-only: true;
+ single-line: false;
+ wrap: word-wrap;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+ }
+}
+
+component Choice inherits Rectangle {
+ in property <string> label;
+ in property <bool> current;
+
+ callback clicked();
+
+ height: 30px;
+ border-radius: Theme.r-sm;
+ border-width: 1px;
+ border-color: root.current ? Theme.accent : Theme.line;
+ background: root.current ? Theme.accent-soft
+ : touch.has-hover ? Theme.field
+ : Theme.raised;
+
+ animate background, border-color { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ HorizontalLayout {
+ padding-left: 10px;
+ padding-right: 10px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.label;
+ color: root.current ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+export component SettingsDialog inherits Modal {
+ in property <SettingsData> data;
+ in property <[ModelData]> transcribers;
+ in property <[ModelData]> voices;
+ in property <[string]> languages;
+ /// The system report, as rows. See system_facts() in main.rs.
+ in property <[SystemFactData]> system-facts;
+ /// The same facts as one block of text, because a clipboard takes text
+ /// and not a model. Built from the same list, so the page and the paste
+ /// cannot come apart.
+ in property <string> system-report;
+
+ callback page-changed(index: int);
+ callback language-changed(index: int);
+ /// The theme, chosen rather than flipped. A toggle in the strip could only
+ /// say "the other one"; a page with two named options can say which one is
+ /// on, which is the whole reason it moved in here.
+ callback theme-changed(dark: bool);
+ callback transcribe-language-changed(index: int);
+ callback model-activated(id: string);
+ callback model-download(id: string);
+ callback model-cancel(id: string);
+ callback model-remove(id: string);
+
+ open: root.data.open;
+ title: "Settings";
+ glyph: Glyph.settings;
+ surface-width: 640px;
+ // Fixed rather than fitted: the pages are different lengths and a sheet
+ // that resized as you moved between them would be its own distraction.
+ surface-height: 460px;
+
+ HorizontalLayout {
+ // The clipboard takes text, so there has to be a TextInput holding
+ // the report: Slint copies from a text element's own selection and
+ // has no other way in. It is never read — it is zero wide and clipped
+ // — but it cannot live beside the button that uses it, and that is
+ // worth writing down, because it looks like it should.
+ //
+ // A layout gives every child at least its minimum, and a TextInput's
+ // minimum height is its text: seven lines, about 120px, which a
+ // wrapper cannot cap — an explicit `height: 0px` on the box around it
+ // sets that box's preferred size and loses to the child's minimum
+ // anyway. In the section body that bought a 120px band with the copy
+ // button floating in the middle of it. Here it is one more column of
+ // this row, and the row is the sheet's fixed 418px, so the whole of
+ // what it asks for disappears into height that was already there.
+ Rectangle {
+ width: 0px;
+ clip: true;
+
+ report := TextInput {
+ width: 0px;
+ text: root.system-report;
+ read-only: true;
+ single-line: false;
+ }
+ }
+
+ // ── the pages ────────────────────────────────────────────────────
+ Rectangle {
+ width: 164px;
+
+ Rectangle {
+ x: parent.width - 1px;
+ y: 0;
+ width: 1px;
+ height: parent.height;
+ background: Theme.line;
+ }
+
+ VerticalLayout {
+ padding: 8px;
+ spacing: 2px;
+ alignment: start;
+
+ PageTab {
+ label: "General";
+ glyph: Glyph.settings;
+ current: root.data.tab == 0;
+ clicked => { root.page-changed(0); }
+ }
+ PageTab {
+ label: "Appearance";
+ glyph: Glyph.sun;
+ current: root.data.tab == 1;
+ clicked => { root.page-changed(1); }
+ }
+ PageTab {
+ label: "Transcriber";
+ glyph: Glyph.waveform;
+ current: root.data.tab == 2;
+ clicked => { root.page-changed(2); }
+ }
+ PageTab {
+ label: "Speech";
+ glyph: Glyph.music;
+ current: root.data.tab == 3;
+ clicked => { root.page-changed(3); }
+ }
+ PageTab {
+ label: "About";
+ glyph: Glyph.sparkle;
+ current: root.data.tab == 4;
+ clicked => { root.page-changed(4); }
+ }
+ }
+ }
+
+ // ── the page ─────────────────────────────────────────────────────
+ PaneScroll {
+ horizontal-stretch: 1;
+
+ if root.data.tab == 0: DialogSection {
+ first: true;
+ title: "Language";
+
+ // Native names: whoever is stranded in a language they cannot
+ // read must still recognise their own in this list.
+ for name[index] in root.languages: Choice {
+ label: name;
+ current: index == root.data.language;
+ clicked => { root.language-changed(index); }
+ }
+ }
+
+ // Read straight off the Theme global rather than through
+ // SettingsData: the theme is not editor state — it is one bool
+ // that every colour in the tree already binds to — and routing it
+ // through the struct would be a second copy to keep in step with
+ // the first. The change still goes out as a callback, so Rust
+ // stays the one place a remembered preference will be written.
+ if root.data.tab == 1: DialogSection {
+ first: true;
+ title: "Theme";
+
+ SegmentedControl {
+ options: ["Dark", "Light"];
+ current: Theme.dark ? 0 : 1;
+ changed(index) => { root.theme-changed(index == 0); }
+ }
+
+ Text {
+ text: "Dark is the edit's own room — a bright window "
+ + "beside the picture changes how the picture reads. "
+ + "Light is here for the rooms that are already lit.";
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ wrap: word-wrap;
+ }
+ }
+
+ if root.data.tab == 2: VerticalLayout {
+ DialogSection {
+ first: true;
+ title: "Language";
+
+ SegmentedControl {
+ options: ["Auto", "English", "Chinese"];
+ current: root.data.transcribe-language;
+ changed(index) => { root.transcribe-language-changed(index); }
+ }
+ }
+
+ DialogSection {
+ title: "Models";
+
+ for model in root.transcribers: ModelRow {
+ model: model;
+ activated => { root.model-activated(model.id); }
+ download => { root.model-download(model.id); }
+ cancel => { root.model-cancel(model.id); }
+ remove => { root.model-remove(model.id); }
+ }
+
+ HorizontalLayout {
+ padding-top: 2px;
+ spacing: 6px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.data.disk;
+ color: Theme.fg-muted;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Icon { glyph: Glyph.check; size: 12px; tint: Theme.green; }
+ }
+
+ Text {
+ text: "Runs locally";
+ color: Theme.green;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+ }
+ }
+ }
+
+ if root.data.tab == 3: DialogSection {
+ first: true;
+ title: "Voices";
+
+ for model in root.voices: ModelRow {
+ model: model;
+ activated => { root.model-activated(model.id); }
+ download => { root.model-download(model.id); }
+ cancel => { root.model-cancel(model.id); }
+ remove => { root.model-remove(model.id); }
+ }
+ }
+
+ if root.data.tab == 4: VerticalLayout {
+ DialogSection {
+ first: true;
+ title: "About";
+
+ Text {
+ text: "Concat " + root.data.version;
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ }
+
+ Text {
+ text: root.data.engine;
+ color: Theme.fg-muted;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ }
+
+ Text {
+ text: "Everything on this machine. Transcription and speech "
+ + "run against models you download here, and nothing "
+ + "about a project leaves the device.";
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ wrap: word-wrap;
+ }
+ }
+
+ // The block an issue report is opened with. Every line in it
+ // is something the report will be asked for and nobody has to
+ // hand — which build, which renderer, which OS — and reading
+ // them off a screen one at a time is how a report ends up
+ // missing the one that mattered. Hence the button: the whole
+ // block in one press, and the rows still selectable a line at
+ // a time for when only one of them is the answer.
+ DialogSection {
+ title: "System information";
+
+ HorizontalLayout {
+ alignment: end;
+
+ IconButton {
+ glyph: Glyph.copy;
+ label: "Copy system information";
+ icon-size: 13px;
+ // Cleared again straight away: the selection is
+ // the mechanism, not something the reader asked
+ // for, and leaving it set would light up a block
+ // of text nobody can see.
+ clicked => {
+ report.select-all();
+ report.copy();
+ report.clear-selection();
+ }
+ }
+ }
+
+ // No spacing: the rows carry their own height, the way the
+ // Details panel's table does, and the section's own 6px on
+ // top of it opens the table back into a list of paragraphs.
+ VerticalLayout {
+ spacing: 0px;
+
+ for fact in root.system-facts: FactRow {
+ label: fact.label;
+ value: fact.value;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/dock.slint b/engine/crates/concat/ui/dock.slint
new file mode 100644
index 00000000..eb62c649
--- /dev/null
+++ b/engine/crates/concat/ui/dock.slint
@@ -0,0 +1,53 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { PaneKind } from "workspace/pane-switcher.slint";
+
+// The workspace layout, as the two sides of the boundary see it.
+//
+// The arrangement is a tree: every node is either a view or a split of two
+// nodes, side by side or one over the other. That is what makes a layout out
+// of dropping a panel on an edge — the seat you dropped on becomes a split
+// with two seats in it, and it can happen again inside either half, to any
+// depth. Three across the top and one along the bottom is then one arrangement
+// of many rather than the shape of the window.
+//
+// The tree lives in Rust, and for the usual reason: Slint has no recursion, so
+// a component cannot contain itself and a nested layout cannot be drawn by
+// descending one. What crosses the boundary is the tree already walked — a
+// flat list of boxes with a view in each, and a flat list of the gutters
+// between them. Both are in pixels, which is why the workspace reports its own
+// size back: the minimum a pane may be squeezed to is a number of pixels, and
+// a fraction cannot be clamped against one.
+
+/// One view, placed. `index` is its position in a walk of the tree, and it is
+/// what a drop names — the payload a panel carries says which seat it came
+/// from, and the seat it lands on knows its own.
+export struct SeatBox {
+ index: int,
+ kind: PaneKind,
+ x: length,
+ y: length,
+ width: length,
+ height: length,
+}
+
+/// The gutter between the two halves of one split, and the handle that moves
+/// it. `columns` says which way the split runs: true for two boxes side by
+/// side, which is a vertical gutter dragged left and right.
+export struct DockDivider {
+ index: int,
+ columns: bool,
+ x: length,
+ y: length,
+ width: length,
+ height: length,
+}
+
+/// Where in a seat a panel was let go of.
+///
+/// The middle means "show it here instead", and the two views trade places —
+/// the same thing the dropdown does, said with the pointer. An edge means
+/// "give it this side of here", which splits the seat in two and is how a
+/// layout gets a shape the window did not start with.
+export enum DockSide { centre, left, right, top, bottom }
diff --git a/engine/crates/concat/ui/editor.slint b/engine/crates/concat/ui/editor.slint
new file mode 100644
index 00000000..cd96f1a5
--- /dev/null
+++ b/engine/crates/concat/ui/editor.slint
@@ -0,0 +1,177 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { EffectData } from "demo/effects-panel.slint";
+import { MediaFilter, MediaItemData } from "workspace/media-pane.slint";
+import { DockDivider, DockSide, SeatBox } from "dock.slint";
+import { PaneKind } from "workspace/pane-switcher.slint";
+import { MenuItemData } from "primitives/context-menu.slint";
+import {
+ ClipData, ClipField, ClipTextField, DropData, SelectedClipData,
+ TimelineTabData, TimelineTool, TrackData, TrackSize,
+} from "timeline/model.slint";
+
+// Everything the four editor views read and everything they report, in one
+// place that is not a parent.
+//
+// It was threaded down instead: Rust set a hundred properties on the window,
+// the window passed them to the workspace, and the workspace passed each one
+// on to the pane that wanted it. That is the ordinary way to do it and it was
+// fine while each view existed exactly once — the chain had one link per view.
+//
+// Two seats showing the same view breaks it. A view that can appear twice has
+// to be *instantiated* twice, and every instance would need its own copy of
+// the same hundred bindings; four seats times four views is sixteen copies of
+// a wiring harness that already ran to four hundred lines at one copy each.
+//
+// A global has no such arithmetic. Rust binds it once, any number of instances
+// read it, and a seat is then only a box with a name in it — see Seat, which
+// is the whole of what forwarding is left.
+export global Editor {
+ // ── the layout ───────────────────────────────────────────────────────
+ //
+ // The arrangement is a tree and it lives in Rust; see dock.slint. These
+ // two are that tree walked into boxes, and everything the workspace draws
+ // it draws out of them.
+ in-out property <[SeatBox]> seats;
+ in-out property <[DockDivider]> dividers;
+
+ /// The workspace's own box, on the way *up*. Rust lays out in pixels
+ /// because the minimum a pane may be squeezed to is a number of pixels,
+ /// and it cannot know the window's size any other way.
+ callback workspace-resized(width: length, height: length);
+
+ /// A seat's dropdown was used: show this view in this seat, and leave
+ /// every other seat alone.
+ callback dock-set(seat: int, kind: PaneKind);
+ /// The window's add-panel list was used. Where it lands is the layout's
+ /// business, not the caller's — see `dock-add` in main.rs.
+ callback dock-add(kind: PaneKind);
+ /// A seat closed itself. The seat beside it takes the room, which is the
+ /// split they were two halves of ceasing to exist.
+ callback dock-remove(seat: int);
+ /// A panel was dragged from one seat and dropped on another. The middle
+ /// trades the two; an edge splits the seat it landed on.
+ callback dock-dropped(from: int, onto: int, side: DockSide);
+
+ /// A gutter went down, and then moved. Two callbacks rather than one
+ /// absolute position, because the ratio a drag is adjusting is the one it
+ /// started from — see the pane splitters, which have the same shape.
+ callback divider-pressed(index: int);
+ callback divider-dragged(index: int, delta: length);
+
+ // ── the library ──
+ in-out property <[MediaItemData]> media;
+ in-out property <int> media-count-all;
+ in-out property <int> media-count-video;
+ in-out property <int> media-count-audio;
+ in-out property <int> media-count-images;
+ in-out property <int> media-selected-count;
+ in-out property <bool> importing;
+
+ callback import-media();
+ callback media-filter-changed(filter: MediaFilter);
+ callback media-select(id: int, additive: bool);
+ /// A marquee closed over the bin's grid, as the block of cells it caught.
+ /// See MediaGrid.band-selected: the grid is placed by arithmetic, so the
+ /// panel resolves the geometry and Rust only maps cells back to rows.
+ callback media-band-selected(columns: int, from-col: int, to-col: int,
+ from-row: int, to-row: int, additive: bool);
+ callback media-remove(id: int);
+ callback media-remove-selected();
+ callback media-activate(id: int);
+
+ // library catalogue pages
+ callback library-add-text();
+ callback library-apply-effect(effect-id: string);
+ callback library-apply-transition(transition-id: string);
+ callback library-apply-filter(filter-id: string, label: string);
+ callback library-save-template();
+
+ // ── the inspector ──
+ in-out property <SelectedClipData> selected-clip;
+ callback clip-set(field: ClipField, value: float);
+ callback clip-set-text(field: ClipTextField, value: string);
+ callback clip-set-colour(field: ClipTextField, value: color);
+ callback clip-commit();
+
+ in-out property <[EffectData]> video-effects;
+ in-out property <[EffectData]> audio-effects;
+ in-out property <float> level;
+ in-out property <float> peak;
+ callback add-effect(audio: bool);
+ callback remove-effect(id: int);
+
+ // ── the monitor ──
+ in-out property <int> output-width;
+ in-out property <int> output-height;
+ in-out property <int> ratio-index;
+ in-out property <int> quality-index;
+ in-out property <bool> playing;
+ in-out property <bool> has-picture;
+ in-out property <string> preview-clip-name;
+ in-out property <float> preview-duration;
+
+ callback play-toggled();
+ callback seek(seconds: float);
+ callback step-frames(frames: float);
+ callback ratio-changed(index: int);
+ callback quality-changed(index: int);
+
+ // ── the timeline ──
+ in-out property <[TimelineTabData]> timeline-tabs;
+ in-out property <int> timeline-current-tab;
+ in-out property <[TrackData]> tracks;
+ in-out property <[ClipData]> clips;
+ in-out property <TimelineTool> tool;
+ in-out property <bool> snap;
+ in-out property <int> selected-count;
+ in-out property <string> merge-blocked-because;
+ in-out property <bool> has-av-tools;
+ in-out property <float> playhead;
+ in-out property <float> frame-rate;
+ in-out property <float> scroll-left;
+ in-out property <float> seconds-per-pixel;
+
+ callback tab-selected(index: int);
+ callback tab-renamed(index: int, name: string);
+ callback tab-close-requested(index: int);
+ callback tab-added();
+ callback tool-changed(tool: TimelineTool);
+ callback snap-changed(snap: bool);
+ callback split();
+ callback merge();
+ callback delete-selected();
+ callback av-tools();
+ in-out property <[MenuItemData]> av-items;
+ in-out property <length> av-height;
+ in-out property <int> av-token;
+ callback av-selected(id: string);
+ callback add-track();
+ callback zoom-to-fit(width: length);
+ callback zoom(factor: float, anchor-seconds: float);
+ callback scrubbed(seconds: float);
+ callback clip-pressed(id: string, additive: bool, edge: int);
+ callback clip-dragged(seconds: float, pixels: length);
+ callback clip-released();
+ callback razored(id: string, seconds: float);
+ in-out property <[MenuItemData]> menu-items;
+ in-out property <length> menu-height;
+ in-out property <int> menu-token;
+ callback clip-context(id: string);
+ callback menu-selected(id: string);
+
+ callback band-selected(from-seconds: float, to-seconds: float,
+ from-y: length, to-y: length, additive: bool);
+ callback scrolled(seconds: float);
+
+ /// A library card dragged onto the lanes. See DropData in the timeline's
+ /// model: the ghost is Rust's answer to the hover, not the panel's guess.
+ in-out property <DropData> drop;
+ callback drag-hovered(payload: string, seconds: float, y: length);
+ callback dropped(payload: string, seconds: float, y: length);
+ callback track-flag-changed(index: int, visible: bool, muted: bool, locked: bool);
+ callback track-sized(index: int, size: TrackSize);
+ callback track-removed(index: int);
+ callback track-renamed(index: int, name: string);
+}
diff --git a/engine/crates/concat/ui/fonts/Inter-Medium.ttf b/engine/crates/concat/ui/fonts/Inter-Medium.ttf
new file mode 100644
index 00000000..458cd060
Binary files /dev/null and b/engine/crates/concat/ui/fonts/Inter-Medium.ttf differ
diff --git a/engine/crates/concat/ui/fonts/Inter-Regular.ttf b/engine/crates/concat/ui/fonts/Inter-Regular.ttf
new file mode 100644
index 00000000..b7aaca8d
Binary files /dev/null and b/engine/crates/concat/ui/fonts/Inter-Regular.ttf differ
diff --git a/engine/crates/concat/ui/fonts/Inter-SemiBold.ttf b/engine/crates/concat/ui/fonts/Inter-SemiBold.ttf
new file mode 100644
index 00000000..47f8ab1d
Binary files /dev/null and b/engine/crates/concat/ui/fonts/Inter-SemiBold.ttf differ
diff --git a/engine/crates/concat/ui/fonts/LICENSE-Synonym.txt b/engine/crates/concat/ui/fonts/LICENSE-Synonym.txt
new file mode 100644
index 00000000..8ae62003
--- /dev/null
+++ b/engine/crates/concat/ui/fonts/LICENSE-Synonym.txt
@@ -0,0 +1,132 @@
+Fontshare
+
+------------------------------------------------------------------
+ITF Free Font License (FFL)
+Version 2.0 - 17 Aug 2026
+------------------------------------------------------------------
+
+Notice to User
+
+Indian Type Foundry designs, produces and distributes font software as digital fonts to end users worldwide. In addition to commercial fonts that are available for a fee, ITF also offers several fonts that can be used free of charge. These free fonts are distributed through a dedicated platform called www.fontshare.com (“Fontshare”) to end users worldwide. Fonts identified on Fontshare as being licensed under the ITF Free Font License are subject to this legally binding EULA between Indian Type Foundry (“Indian Type Foundry”, “ITF” or “Licensor”) and you (“Licensee”).
+
+You acknowledge that the Font Software and the designs embodied therein are protected by copyright, other intellectual property and industrial property rights, and international treaties. They are and shall remain at all times the intellectual property of Indian Type Foundry.
+
+In addition to direct download, Fontshare may also make the Font Software available through the Fontshare API. In this case, the Font Software is delivered directly from servers used by Indian Type Foundry to the Licensee's website, without the Licensee having to download or host the Font Software.
+
+By downloading, accessing, self-hosting, installing, storing, embedding, copying or otherwise using the Font Software, you agree to the following terms.
+
+
+Definitions
+
+“Font Software” refers to the computer files or programs released under this License that enable the display, reproduction and rendering of the typeface designs, including letters, numerals, punctuation, symbols, ornaments and other typographic characters. Font Software includes all font formats and bitmap or vector representations distributed by Indian Type Foundry under this License.
+
+“Official Version” refers to the Font Software as officially distributed by Indian Type Foundry through Fontshare.
+
+“Derivative Work” refers to any modified, adapted, altered or otherwise derived version of the Font Software or the typeface designs embodied therein, including modifications to font files (such as OTF, TTF, WOFF, WOFF2 or variable fonts), glyphs, characters, spacing, kerning, metrics, naming, subsetting, format conversion or other font data.
+
+Derivative Work does not include any logo, document, graphic, image, website, application or other creative work created through the normal use of the Font Software, ownership of which remains with its respective creator or rights holder.
+
+
+01 Grant of License
+
+You are hereby granted a non-exclusive, non-assignable, non-transferable and terminable license to access, download, install, store and use the Font Software for personal or commercial purposes, free of charge and for an unlimited period of time, subject to the terms of this License.
+
+You may use the Font Software in any media, including Print, Websites, Mobile or Desktop Applications, Digital Images, Digital Advertising, Social Media, ePublishing, Video, Broadcasting and Games, at any scale and in any location worldwide.
+
+You may self-host the Font Software on your own servers or infrastructure for use on your own websites and applications, including through standard webfont technologies such as CSS @font-face. Self-hosting by end users is permitted and recommended for greater control, reliability and performance. Use of the Fontshare API is optional and is not required for web use.
+
+You may embed the Font Software in mobile or desktop applications and digital documents for the uses permitted under this License.
+
+You may use the Font Software to create logos, wordmarks, graphic elements, images, vector files, scalable drawings and other creative works. Logos and wordmarks created using the Font Software may be registered as trademarks. Any rights in the resulting creative works, including any trademark rights, remain with their respective creator or rights holder. Such rights do not grant any ownership or exclusive rights in the Font Software or the underlying typeface designs.
+
+You may use the Font Software on any number of devices, including computers, tablets and phones. The number of output devices, including printers, is not restricted. Where the Licensee is an organization, the Font Software may be installed, stored, copied and shared internally among its employees for the Licensee's own permitted uses under this License. Such internal sharing does not constitute redistribution under this License.
+
+You may make a reasonable number of backup copies of the Font Software as necessary for your permitted use.
+
+You may, but are not required to, identify or credit Indian Type Foundry or Fontshare in works created using the Font Software.
+
+
+02 Limitations of Usage
+
+You may not modify, edit, adapt, translate, reverse engineer, decompile, disassemble or otherwise alter the Font Software or the typeface designs embodied therein, in whole or in part, without the prior written consent of the Licensor. This includes modifying or replacing glyphs, subsetting, format conversion, or altering font names, copyright information, ownership information or other metadata.
+
+The Font Software may not, beyond the permitted copies and uses defined herein, be distributed, duplicated, loaned, resold, sublicensed, transferred, donated, given away or otherwise made available to any other person or entity, whether for free or for a fee. This includes distributing the Font Software through another font website, font library, marketplace, repository, download service, application or platform, or by email, removable media, publicly accessible servers, file-sharing services, peer-to-peer networks or any other means.
+
+You may not provide the Font Software directly to external designers, agencies, contractors, printers or other service providers. Any third party wishing to use the Font Software must obtain their own copy directly from Fontshare and be independently bound by this License.
+
+You may not host, serve, embed or otherwise make the Font Software available for use by third parties through any website, application, online service, SaaS platform, design tool, template editor or similar service. This includes making the Font Software available as a selectable font for third-party users to create, edit, customize or generate their own content, even where such users cannot download or extract the Font Software itself.
+
+For the avoidance of doubt, nothing in this Section 02 restricts the self-hosting, embedding or other use of the Font Software by the Licensee for the Licensee's own websites, applications or other permitted uses under Section 01.
+
+
+03 Embedding
+
+You may embed the Font Software in PDFs and other digital documents for your permitted uses under this License, provided that the embeddedFont Software cannot be extracted or used independently from the document.
+
+Documents containing embedded Font Software may be distributed without restriction as to the number of recipients.
+
+The extraction of the Font Software, in whole or in part, for independent use is prohibited.
+
+
+04 Third-party use, Commercial print service providers
+
+You may provide documents, artwork or other files created using the Font Software to commercial printers and other service providers for printing, production or display purposes.
+
+If a service provider requires access to the Font Software itself, they must obtain their own copy directly from Fontshare and be independently bound by this License.
+
+
+05 Derivative Work
+
+You may not create a Derivative Work from the Font Software without the prior written consent of the Licensor.
+
+Where the Licensor expressly permits the creation of a Derivative Work, such permission is limited to the specific use authorized by the Licensor and does not grant any ownership or other rights in the Official Version of the Font Software or the underlying typefacedesigns.
+
+A Derivative Work may not be sublicensed, sold, leased, rented, loaned, distributed, transferred or otherwise made available to any third party without the prior written consent of the Licensor.
+
+
+06 Warranty and Liability
+
+THE FONT SOFTWARE IS PROVIDED FREE OF CHARGE AND ON AN “AS IS” AND “AS AVAILABLE” BASIS. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, INDIAN TYPE FOUNDRY MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPATIBILITY, AVAILABILITY OR OTHERWISE.
+
+TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, INDIAN TYPE FOUNDRY SHALL NOT BE LIABLE TO THE LICENSEEOR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF PROFITS, REVENUE, DATA, BUSINESS OR SAVINGS, OR BUSINESS INTERRUPTION, ARISING OUT OF THE USE OF OR INABILITY TO USE THE FONT SOFTWARE.
+
+IF THE LICENSEE CHOOSES TO ACCESS OR SERVE THE FONT SOFTWARE THROUGH THE FONTSHARE API, THE LICENSEE DOES SO AT ITS OWN RISK. THE FONTSHARE API IS PROVIDED AS A CONVENIENCE AND DOES NOT FORM PART OF THE RIGHTS GRANTED TO THE LICENSEE TO USE THE FONT SOFTWARE UNDER THIS LICENSE.
+
+INDIAN TYPE FOUNDRY DOES NOT GUARANTEE THE AVAILABILITY, PERFORMANCE OR CONTINUED OPERATION OF THE FONTSHARE API. INDIAN TYPE FOUNDRY MAY, AT ITS SOLE DISCRETION AND WITHOUT PRIOR NOTICE, MODIFY, RESTRICT, SUSPEND OR DISCONTINUE ACCESS TO THE FONTSHARE API, WHETHER GENERALLY OR FOR ANY PARTICULAR USER, WEBSITE OR APPLICATION. INDIAN TYPE FOUNDRY SHALL NOT BE RESPONSIBLE OR LIABLE FOR ANY INTERRUPTION, MALFUNCTION, DOWNTIME, CHANGE, RESTRICTION OR DISCONTINUATION OF THE API, OR FOR ANY RESULTING IMPACT ON THE LICENSEE'S WEBSITE, APPLICATION OR OTHER SERVICES.
+
+
+07 Updates, Maintenance and Support Services
+
+Indian Type Foundry is under no obligation to provide updates, upgrades, maintenance, technical support or other support services for the Font Software under this License.
+
+Indian Type Foundry may, at its sole discretion, update, modify, replace or discontinue any Font Software made available through Fontshare.
+
+
+08 Termination
+
+Any breach of the terms of this License shall be grounds for termination. Where the breach is capable of being remedied, the Licensor may notify the Licensee in writing and require the breach to be remedied within 30 days of receipt of such notice.
+
+Notwithstanding the foregoing, the Licensor may terminatethis License immediately in the event of any deliberate or material unauthorized modification, redistribution, sale, sublicensing, transfer or other misuse of the Font Software or the intellectual property rights of Indian Type Foundry.
+
+Upon termination, and without limitation of any other remedies available under law or equity, the Licensee must immediately cease all use of the Font Software and delete the Font Software and all copies thereof inits possession or control. Proof of deletion must be provided upon request of the Licensor.
+
+Indian Type Foundry reserves the right to seek damages and any other remedies available under applicable law for any breach of this License.
+
+
+09 Final Provisions
+
+If any provision of this License is found to be invalid, illegal or unenforceable, the remaining provisions shall remain in full force and effect. Any invalid, illegal or unenforceable provision shall, to the extent legally permissible, be interpreted or replaced in a manner that most closely reflects its original purpose.
+
+The failure of Indian Type Foundry to enforce any provision of this License shall not constitute a waiver of that provision or of its right to enforce it subsequently.
+
+The uses expressly permitted under this License require no additional license or fee. If a Licensee requires additional rights or permissions, exceptions to any restrictions under this License, modifications or customizations to the Font Software or typeface designs, additional styles, weights, widths, characters or language extensions, technical support ormaintenance services, warranties or indemnities, or other customized licensing terms, they may contact Indian Type Foundry to discuss a separate custom license or arrangement.
+
+This License shall be governed by the laws ofthe Republic of India. To the extent legally permissible, the courts located in Ahmedabad, Gujarat, India shall have exclusive jurisdiction over any dispute arising out of or in connection with this License.
+
+------------------------------------------------------------------
+ITF Free Font License (FFL)
+Version 2.0 - 17 Aug 2026
+
+Copyright © 2026 Indian Type Foundry. All rights reserved.
+https://www.fontshare.com
+------------------------------------------------------------------
\ No newline at end of file
diff --git a/engine/crates/concat/ui/fonts/LICENSE.txt b/engine/crates/concat/ui/fonts/LICENSE.txt
new file mode 100644
index 00000000..9b2ca37b
--- /dev/null
+++ b/engine/crates/concat/ui/fonts/LICENSE.txt
@@ -0,0 +1,92 @@
+Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION AND CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/engine/crates/concat/ui/fonts/Synonym-Medium.ttf b/engine/crates/concat/ui/fonts/Synonym-Medium.ttf
new file mode 100644
index 00000000..b6f0e8b6
Binary files /dev/null and b/engine/crates/concat/ui/fonts/Synonym-Medium.ttf differ
diff --git a/engine/crates/concat/ui/fonts/Synonym-Regular.ttf b/engine/crates/concat/ui/fonts/Synonym-Regular.ttf
new file mode 100644
index 00000000..1ea84db3
Binary files /dev/null and b/engine/crates/concat/ui/fonts/Synonym-Regular.ttf differ
diff --git a/engine/crates/concat/ui/fonts/Synonym-SemiBold.ttf b/engine/crates/concat/ui/fonts/Synonym-SemiBold.ttf
new file mode 100644
index 00000000..4bd405c8
Binary files /dev/null and b/engine/crates/concat/ui/fonts/Synonym-SemiBold.ttf differ
diff --git a/engine/crates/concat/ui/icons.slint b/engine/crates/concat/ui/icons.slint
new file mode 100644
index 00000000..a4864376
--- /dev/null
+++ b/engine/crates/concat/ui/icons.slint
@@ -0,0 +1,584 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "theme/theme.slint";
+
+// Single adapter between glyph data and the primitives, the counterpart of
+// desktop/src/components/Icon.tsx. That file resolves a name through two icon
+// packages and falls back to hand-drawn paths; Slint has no icon package, so
+// the same three sources are inlined here as path data.
+//
+// The data is the libraries' own, copied out of the packages the reference
+// depends on rather than traced from a picture of them. What was here before
+// was traced, and a trace is a drawing of an icon: close at 24px, wrong at the
+// 11-14px this interface is full of, where a coordinate off by half a unit is
+// half a pixel of a two-pixel stroke.
+//
+// Lucide for everything it carries, which is everything but the alignment set.
+// The reference splits its glyphs between Heroicons for generic chrome and
+// Lucide for the editor's vocabulary, and that split is right for a browser
+// drawing at 16-24px: Heroicons is authored for a 1.5 stroke on a 24 grid and
+// has the detail to spend. This window draws its glyphs at 11-15px, where that
+// detail closes up — heroicons/film is fourteen subpaths of sprockets and
+// rails, and at 14px it is a grey rectangle. Lucide is authored at a 2 stroke
+// for small display, and one family across the whole set also means one
+// weight, so nothing needs compensating against anything else.
+//
+// Three shapes of glyph, on two grids:
+// - Stroked the whole set, lucide's paths at lucide's weight, 24 grid
+// - Filled play and pause, which are closed shapes the reference fills
+// - Solid the alignment marks, on Radix's 15 grid — see `Solid` below
+//
+// To take a glyph from somewhere else: copy the `d` of every element in its
+// SVG, concatenated in order. A leading `m` on any but the first has to be
+// upper-cased and its implicit run spelled `l`, since concatenation gives it a
+// current point it did not have alone. Non-path elements (lucide draws
+// circles, rects and lines as themselves) become path commands: a circle is
+// two half-arcs, because a 360-degree arc has an undefined sweep.
+//
+// Other libraries worth reaching into, all MIT or ISC and all path-only:
+// Phosphor (six weights, a deep media set), Tabler (4000+ on a 24 grid at
+// stroke 2, closest cousin to lucide), Radix Icons (15 grid, where the
+// alignment marks below come from), Remix Icon, Iconoir, Material Symbols.
+//
+// `commands` may only be set in a binding and never read back, so each glyph
+// is its own instance with a literal string rather than one lookup table.
+export enum Glyph {
+ none,
+ plus,
+ minus,
+ close,
+ check,
+ chevron-down,
+ chevron-right,
+ sparkle,
+ eye,
+ lock,
+ frame,
+ copy,
+ flip-h,
+ flip-v,
+ keyframe,
+ angle,
+ align-left,
+ align-center-x,
+ align-right,
+ align-top,
+ align-center-y,
+ align-bottom,
+ distribute,
+ fit,
+ rows,
+ film,
+ music,
+ image,
+ import,
+ transition,
+ slot,
+ settings,
+ sun,
+ moon,
+ export,
+ chevron-up,
+ search,
+ // the timeline tray and its lane headers
+ pointer,
+ razor,
+ split,
+ merge,
+ trash,
+ magnet,
+ waveform,
+ eye-off,
+ volume,
+ volume-off,
+ unlock,
+ // the monitor's transport
+ play,
+ pause,
+ step-back,
+ step-forward,
+ skip-back,
+ skip-forward,
+ text-mark,
+ // the start screen
+ info,
+ folder,
+}
+
+component Stroked inherits Path {
+ in property <length> size: 14px;
+ in property <brush> tint: Theme.fg-muted;
+ /// Stroke width on the 24 grid, held as a ratio at any rendered size.
+ ///
+ /// Lucide is authored at 2, and this is a hair under it: these render at
+ /// 11-15px, where a full 2 reads heavy next to 12px text. One number for
+ /// the whole set, because the whole set now comes from one library.
+ in property <float> weight: 1.9;
+
+ width: root.size;
+ height: root.size;
+ viewbox-width: 24;
+ viewbox-height: 24;
+ stroke: root.tint;
+ stroke-width: root.size * root.weight / 24;
+ stroke-line-cap: round;
+ stroke-line-join: round;
+}
+
+// The alignment glyphs stay on Radix's 15-unit grid. Drawing them on the 24
+// grid puts a 4-unit bar below 2.5px at the 14px size an inspector uses, and
+// the rail and blocks smear into one shape.
+component Solid inherits Path {
+ in property <length> size: 14px;
+ in property <brush> tint: Theme.fg-muted;
+ width: root.size;
+ height: root.size;
+ viewbox-width: 15;
+ viewbox-height: 15;
+ fill: root.tint;
+ fill-rule: evenodd;
+}
+
+component Filled inherits Path {
+ in property <length> size: 14px;
+ in property <brush> tint: Theme.fg-muted;
+ width: root.size;
+ height: root.size;
+ viewbox-width: 24;
+ viewbox-height: 24;
+ fill: root.tint;
+}
+
+export component Icon inherits Rectangle {
+ in property <Glyph> glyph;
+ in property <length> size: 14px;
+ in property <brush> tint: Theme.fg-muted;
+ /// solidifies the keyframe diamond, the way `filled` does on KeyframeIcon
+ in property <bool> filled;
+ /// Stroke weight on the 24 grid, for the stroked glyphs. Lucide's own is
+ /// the default; raise it where a glyph is drawn small enough that the
+ /// stroke falls under a device pixel and the mark greys out — a 9px
+ /// chevron at 1.9 is a 0.7px line. Ignored by the filled and solid ones,
+ /// which have no stroke to weigh.
+ in property <float> weight: 1.9;
+
+ width: root.size;
+ height: root.size;
+
+ // lucide/info
+ if root.glyph == Glyph.info: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M12 16v-4 M12 8h.01";
+ }
+
+ // lucide/folder
+ if root.glyph == Glyph.folder: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9"
+ + "A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z";
+ }
+
+ // lucide/plus
+ if root.glyph == Glyph.plus: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 12h14 M12 5v14";
+ }
+
+ // lucide/minus
+ if root.glyph == Glyph.minus: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 12h14";
+ }
+
+ // lucide/x
+ if root.glyph == Glyph.close: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M18 6 6 18 M6 6l12 12";
+ }
+
+ // lucide/check
+ if root.glyph == Glyph.check: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M20 6 9 17l-5-5";
+ }
+
+ // lucide/chevron-down
+ if root.glyph == Glyph.chevron-down: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M6 9l6 6 6-6";
+ }
+
+ // lucide/chevron-right
+ if root.glyph == Glyph.chevron-right: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M9 18l6-6-6-6";
+ }
+
+ // lucide/chevron-up
+ if root.glyph == Glyph.chevron-up: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M18 15l-6-6-6 6";
+ }
+
+ // lucide/search
+ if root.glyph == Glyph.search: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M21 21l-4.34-4.34 M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0";
+ }
+
+ // lucide/sparkles
+ if root.glyph == Glyph.sparkle: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594"
+ + " 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594"
+ + " 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0"
+ + " 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0"
+ + " 1.594-1.594z M20 2v4 M22 4h-4 M2 20a2 2 0 1 0 4 0a2 2 0 1 0 -4 0";
+ }
+
+ // lucide/eye
+ if root.glyph == Glyph.eye: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0"
+ + " 1 0 .696 10.75 10.75 0 0 1-19.876 0 M9 12a3 3 0 1 0 6 0a3 3 0 1 0"
+ + " -6 0";
+ }
+
+ // lucide/eye-off
+ if root.glyph == Glyph.eye-off: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696"
+ + " 10.747 10.747 0 0 1-1.444 2.49 M14.084 14.158a3 3 0 0"
+ + " 1-4.242-4.242 M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0"
+ + " 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143 M2 2l20 20";
+ }
+
+ // lucide/lock
+ if root.glyph == Glyph.lock: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-7a2 2"
+ + " 0 0 1 2 -2Z M7 11V7a5 5 0 0 1 10 0v4";
+ }
+
+ // The same body with the shackle swung open, so the pair reads as one
+ // control in two states rather than as two different marks.
+ // lucide/lock-open
+ if root.glyph == Glyph.unlock: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-7a2 2"
+ + " 0 0 1 2 -2Z M7 11V7a5 5 0 0 1 9.9-1";
+ }
+
+ // lucide/copy
+ if root.glyph == Glyph.copy: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2"
+ + " 2 0 0 1 2 -2Z M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9"
+ + " 2 2";
+ }
+
+ // trash-2, not trash: the lidded bin with two strokes down it. The plain
+ // one is the same shape without them, and reads as an empty box at 14px.
+ // lucide/trash-2
+ if root.glyph == Glyph.trash: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M10 11v6 M14 11v6 M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6 M3 6h18"
+ + " M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2";
+ }
+
+ // An arrow down into a tray — import, as opposed to `plus`, which adds
+ // something the app already has.
+ // lucide/download
+ if root.glyph == Glyph.import: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M12 15V3 M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4 M7 10l5 5 5-5";
+ }
+
+ // lucide/upload
+ if root.glyph == Glyph.export: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M12 3v12 M17 8l-5-5-5 5 M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4";
+ }
+
+ // Three sliders, deliberately not a cog: a ring with rays is a sun in all
+ // but name, and it would sit next to the actual sun of the theme toggle.
+ // The reference's own note on the same choice.
+ // lucide/sliders-horizontal
+ if root.glyph == Glyph.settings: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M10 5H3 M12 19H3 M14 3v4 M16 17v4 M21 12h-9 M21 19h-5 M21 5h-7 M8"
+ + " 10v4 M8 12H3";
+ }
+
+ // lucide/sun
+ if root.glyph == Glyph.sun: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0 M12 2v2 M12 20v2 M4.93"
+ + " 4.93l1.41 1.41 M17.66 17.66l1.41 1.41 M2 12h2 M20 12h2 M6.34"
+ + " 17.66l-1.41 1.41 M19.07 4.93l-1.41 1.41";
+ }
+
+ // lucide/moon
+ if root.glyph == Glyph.moon: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6"
+ + " 0 0 0 8.268 8.268c.344-.215.825-.004.803.401";
+ }
+
+ // lucide/volume-2
+ if root.glyph == Glyph.volume: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1"
+ + " 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1"
+ + " .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z M16 9a5 5 0 0 1 0 6"
+ + " M19.364 18.364a9 9 0 0 0 0-12.728";
+ }
+
+ // lucide/volume-x
+ if root.glyph == Glyph.volume-off: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416"
+ + " 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1"
+ + " .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z M16.5 14.5l5-5 M16.5"
+ + " 9.5l5 5";
+ }
+
+ // lucide/film
+ if root.glyph == Glyph.film: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2"
+ + " 2 0 0 1 2 -2Z M7 3v18 M3 7.5h4 M3 12h18 M3 16.5h4 M17 3v18 M17"
+ + " 7.5h4 M17 16.5h4";
+ }
+
+ // lucide/music
+ if root.glyph == Glyph.music: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M9 18V5l12-2v13 M3 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M15 16a3 3 0 1"
+ + " 0 6 0a3 3 0 1 0 -6 0";
+ }
+
+ // lucide/image
+ if root.glyph == Glyph.image: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2"
+ + " 2 0 0 1 2 -2Z M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M21"
+ + " 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21";
+ }
+
+ // Two discs blending into one another: the cross-fade itself.
+ // lucide/blend
+ if root.glyph == Glyph.transition: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M8 9a7 7 0 1 0 14 0a7 7 0 1 0 -14 0 M2 15a7 7 0 1 0 14 0a7 7 0 1 0"
+ + " -14 0";
+ }
+
+ // A laid-out frame with a filled top band — the shape a template is,
+ // rather than the dashed placeholder box this used to draw. Slint has no
+ // stroke-dash-array, so the dashes were never there anyway.
+ // lucide/layout-template
+ if root.glyph == Glyph.slot: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-5a1 1"
+ + " 0 0 1 1 -1Z M4 14h7a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 1 -1"
+ + " -1v-5a1 1 0 0 1 1 -1Z M17 14h3a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-3a1"
+ + " 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1Z";
+ }
+
+ // lucide/diamond
+ if root.glyph == Glyph.keyframe: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ fill: root.filled ? root.tint : Colors.transparent;
+ commands: "M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41"
+ + " 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41"
+ + " 0Z";
+ }
+
+ // Row height: a frame divided into rows. What the button changes is how
+ // many of them fit, which is what the divisions say.
+ // lucide/rows-3
+ if root.glyph == Glyph.rows: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2"
+ + " 2 0 0 1 2 -2Z M21 9H3 M21 15H3";
+ }
+
+ // Four corners pulling outwards — zoom to fit.
+ // lucide/maximize
+ if root.glyph == Glyph.fit: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M8 3H5a2 2 0 0 0-2 2v3 M21 8V5a2 2 0 0 0-2-2h-3 M3 16v3a2 2 0 0 0"
+ + " 2 2h3 M16 21h3a2 2 0 0 0 2-2v-3";
+ }
+
+ // lucide/mouse-pointer-2
+ if root.glyph == Glyph.pointer: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0"
+ + " 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0"
+ + " 1-.947.063z";
+ }
+
+ // lucide/scissors-line-dashed
+ if root.glyph == Glyph.razor: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M5.42 9.42 8 12 M2 8a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M14 6l-8.58 8.58"
+ + " M2 16a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M10.8 14.8 14 18 M16 12h-2 M22"
+ + " 12h-2";
+ }
+
+ // lucide/square-split-horizontal
+ if root.glyph == Glyph.split: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M12 2v20 M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3 M8 21H5a2 2 0 0"
+ + " 1-2-2V5a2 2 0 0 1 2-2h3";
+ }
+
+ // lucide/merge
+ if root.glyph == Glyph.merge: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M8 6l4-4 4 4 M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22 M20 22l-5-5";
+ }
+
+ // lucide/magnet
+ if root.glyph == Glyph.magnet: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M12 15l4 4 M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296"
+ + " 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029"
+ + " 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0"
+ + " 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z M5 8l4 4";
+ }
+
+ // lucide/audio-lines
+ if root.glyph == Glyph.waveform: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M2 10v3 M6 6v11 M10 3v18 M14 8v7 M18 5v13 M22 10v3";
+ }
+
+ // lucide/type
+ if root.glyph == Glyph.text-mark: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M12 4v16 M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2 M9 20h6";
+ }
+
+ // lucide/step-back
+ if root.glyph == Glyph.step-back: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029"
+ + " 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z M21 20V4";
+ }
+
+ // lucide/step-forward
+ if root.glyph == Glyph.step-forward: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2"
+ + " 2 0 0 0 .003-3.432z M3 4v16";
+ }
+
+ // lucide/skip-back
+ if root.glyph == Glyph.skip-back: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029"
+ + " 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z M3 20V4";
+ }
+
+ // lucide/skip-forward
+ if root.glyph == Glyph.skip-forward: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M21 4v16 M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029"
+ + " 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z";
+ }
+
+ // Filled, the way the reference passes `fill="currentColor"` to them: at
+ // 16px an outlined triangle reads as an outline of a play button rather
+ // than as one. Lucide draws both as closed shapes, so the same path fills.
+ // lucide/play
+ if root.glyph == Glyph.play: Filled {
+ size: root.size; tint: root.tint;
+ commands: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12"
+ + " 7A2 2 0 0 1 5 19z";
+ }
+
+ // lucide/pause
+ if root.glyph == Glyph.pause: Filled {
+ size: root.size; tint: root.tint;
+ commands: "M15 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-16a1 1"
+ + " 0 0 1 1 -1Z M6 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1"
+ + " -1v-16a1 1 0 0 1 1 -1Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.align-left: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 1 1 L 2 1 L 2 14 L 1 14 Z M 4 3 L 13 3 L 13 6 L 4 6 Z M 4 9 L 10"
+ + " 9 L 10 12 L 4 12 Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.align-center-x: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 7 1 L 8 1 L 8 14 L 7 14 Z M 2 3 L 13 3 L 13 6 L 2 6 Z M 4 9 L 11"
+ + " 9 L 11 12 L 4 12 Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.align-right: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 13 1 L 14 1 L 14 14 L 13 14 Z M 2 3 L 11 3 L 11 6 L 2 6 Z M 5 9"
+ + " L 11 9 L 11 12 L 5 12 Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.align-top: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 1 1 L 14 1 L 14 2 L 1 2 Z M 3 4 L 6 4 L 6 13 L 3 13 Z M 9 4 L 12"
+ + " 4 L 12 10 L 9 10 Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.align-center-y: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 1 7 L 14 7 L 14 8 L 1 8 Z M 3 2 L 6 2 L 6 13 L 3 13 Z M 9 4 L 12"
+ + " 4 L 12 11 L 9 11 Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.align-bottom: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 1 13 L 14 13 L 14 14 L 1 14 Z M 3 2 L 6 2 L 6 11 L 3 11 Z M 9 5"
+ + " L 12 5 L 12 11 L 9 11 Z";
+ }
+
+ // radix-ui/icons, 15-unit grid
+ if root.glyph == Glyph.distribute: Solid {
+ size: root.size; tint: root.tint;
+ commands: "M 1 1 L 2 1 L 2 14 L 1 14 Z M 13 1 L 14 1 L 14 14 L 13 14 Z M 4 4"
+ + " L 7 4 L 7 11 L 4 11 Z M 9 4 L 12 4 L 12 11 L 9 11 Z";
+ }
+
+ // hand-drawn: no library carries it
+ if root.glyph == Glyph.frame: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M 4 8 L 20 8 M 4 16 L 20 16 M 8 4 L 8 20 M 16 4 L 16 20";
+ }
+
+ // hand-drawn: no library carries it
+ if root.glyph == Glyph.flip-h: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M 12 3 L 12 21 M 8 7 L 3 12 L 8 17 Z M 16 7 L 21 12 L 16 17 Z";
+ }
+
+ // hand-drawn: no library carries it
+ if root.glyph == Glyph.flip-v: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M 3 12 L 21 12 M 7 8 L 12 3 L 17 8 Z M 7 16 L 12 21 L 17 16 Z";
+ }
+
+ // hand-drawn: no library carries it
+ if root.glyph == Glyph.angle: Stroked {
+ size: root.size; tint: root.tint; weight: root.weight;
+ commands: "M 4 20 L 20 20 M 4 20 L 17 7 M 14 20 A 10 10 0 0 0 11 12.9";
+ }
+}
diff --git a/engine/crates/concat/ui/inspector/clip-inspector.slint b/engine/crates/concat/ui/inspector/clip-inspector.slint
new file mode 100644
index 00000000..1ed3372f
--- /dev/null
+++ b/engine/crates/concat/ui/inspector/clip-inspector.slint
@@ -0,0 +1,700 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { IconButton, Row, Section, SectionHeader } from "../primitives/panel.slint";
+import { SegmentedControl } from "../primitives/segmented-control.slint";
+import {
+ Fader, HelpButton, InspectorFmt, InspectorSearch, Note, Param, ParamFormat,
+ SearchField, Switch, SwitchRow,
+} from "controls.slint";
+import { ClipField, ClipKind, SelectedClipData } from "../timeline/model.slint";
+
+// The editor's clip inspector, ported from web/src/demo/inspector/: one
+// panel, three tabs. Adjust is direct controls; Filters and Effects differ
+// only in their catalogue, so both are PresetStack with different data.
+
+/// One parameter a preset exposes. `value` doubles as the default in the
+/// catalogue: applying a preset copies the row, and double-click restores
+/// `default-value`.
+export struct ParamData {
+ id: string,
+ label: string,
+ min: float,
+ max: float,
+ step: float,
+ default-value: float,
+ value: float,
+ fmt: ParamFormat,
+}
+
+/// One preset in an applied chain: which one, whether it is live, its values.
+/// Every preset in the catalogue exposes exactly two parameters, so the pair
+/// is flattened here instead of nested in a model a struct cannot hold.
+export struct AppliedPresetData {
+ id: string,
+ name: string,
+ on: bool,
+ p1: ParamData,
+ p2: ParamData,
+}
+
+/// A catalogue entry: the preset as it would be applied, plus its shelf.
+export struct PresetDef {
+ group: int,
+ preset: AppliedPresetData,
+}
+
+// The applied chain plus the library that feeds it.
+export component PresetStack inherits VerticalLayout {
+ /// lower-case singular, for labels and placeholders
+ in property <string> noun: "filter";
+ in property <string> library-title: "Filter library";
+ in property <[string]> group-labels;
+ in property <[PresetDef]> catalogue;
+ /// Owned by Rust: a chain is edited by index, and Slint models cannot be
+ /// spliced from the language.
+ in property <[AppliedPresetData]> applied;
+
+ callback add(preset: AppliedPresetData);
+ callback toggle(index: int);
+ callback move-by(index: int, delta: int);
+ callback remove(index: int);
+ callback set-param(index: int, second: bool, value: float);
+
+ property <int> group;
+ property <string> query;
+ property <bool> help;
+
+ function shown(def: PresetDef) -> bool {
+ return def.group == root.group
+ && (root.query == "" || InspectorSearch.matches(def.preset.name, root.query));
+ }
+
+ function in-chain(id: string) -> bool {
+ // Two is the deepest the demo chains go before this reads awkwardly;
+ // a real member test wants a model lookup Slint cannot express, so
+ // Rust flags it the day chains grow params. Linear scan over a model
+ // is fine at this size.
+ return root.applied.length > 0 && (root.applied[0].id == id
+ || (root.applied.length > 1 && root.applied[1].id == id)
+ || (root.applied.length > 2 && root.applied[2].id == id)
+ || (root.applied.length > 3 && root.applied[3].id == id)
+ || (root.applied.length > 4 && root.applied[4].id == id)
+ || (root.applied.length > 5 && root.applied[5].id == id)
+ || (root.applied.length > 6 && root.applied[6].id == id)
+ || (root.applied.length > 7 && root.applied[7].id == id));
+ }
+
+ // No empty shell: the section arrives with the first preset, so an
+ // untouched clip shows only its library.
+ if root.applied.length > 0: Section {
+ first: true;
+
+ SectionHeader {
+ title: "Applied";
+ HelpButton {
+ open: root.help;
+ toggled => { root.help = self.open; }
+ }
+ }
+
+ if root.help: Note {
+ text: "The chain runs top to bottom — reorder it with the chevrons."
+ + " The eye bypasses one link without losing the values you"
+ + " dialled into it.";
+ }
+
+ VerticalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ padding-bottom: 6px;
+ spacing: 6px;
+
+ for item[index] in root.applied: Rectangle {
+ border-radius: Theme.r;
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line;
+ opacity: item.on ? 1.0 : 0.55;
+
+ VerticalLayout {
+ padding-bottom: 8px;
+ spacing: 4px;
+
+ HorizontalLayout {
+ padding-left: 10px;
+ padding-right: 6px;
+ padding-top: 6px;
+ spacing: 2px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: item.name;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ IconButton {
+ glyph: Glyph.eye;
+ label: item.on ? "Bypass \{item.name}" : "Enable \{item.name}";
+ checked: item.on;
+ clicked => { root.toggle(index); }
+ }
+ IconButton {
+ glyph: Glyph.chevron-up;
+ label: "Move \{item.name} up";
+ enabled: index > 0;
+ clicked => { root.move-by(index, -1); }
+ }
+ IconButton {
+ glyph: Glyph.chevron-down;
+ label: "Move \{item.name} down";
+ enabled: index < root.applied.length - 1;
+ clicked => { root.move-by(index, 1); }
+ }
+ IconButton {
+ glyph: Glyph.close;
+ label: "Remove \{item.name}";
+ clicked => { root.remove(index); }
+ }
+ }
+
+ Param {
+ label: item.p1.label;
+ value: item.p1.value;
+ minimum: item.p1.min;
+ maximum: item.p1.max;
+ step: item.p1.step;
+ default-value: item.p1.default-value;
+ fmt: item.p1.fmt;
+ enabled: item.on;
+ changed(v) => { root.set-param(index, false, v); }
+ }
+
+ Param {
+ label: item.p2.label;
+ value: item.p2.value;
+ minimum: item.p2.min;
+ maximum: item.p2.max;
+ step: item.p2.step;
+ default-value: item.p2.default-value;
+ fmt: item.p2.fmt;
+ enabled: item.on;
+ changed(v) => { root.set-param(index, true, v); }
+ }
+ }
+ }
+ }
+ }
+
+ Section {
+ first: root.applied.length == 0;
+
+ SectionHeader { title: root.library-title; }
+
+ Row {
+ SearchField {
+ text <=> root.query;
+ placeholder: "Search \{root.noun}s";
+ }
+ }
+
+ Row {
+ SegmentedControl {
+ options: root.group-labels;
+ current <=> root.group;
+ }
+ }
+
+ VerticalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ padding-top: 4px;
+
+ // `visible` toggles, not `if`: the filter changes with every
+ // keystroke and a hidden row costing zero height is the cheap,
+ // geometry-proof way to narrow the list (see media-pane's
+ // sidebar for the scar tissue behind this choice).
+ for def[index] in root.catalogue: row := Rectangle {
+ // Named rather than reached through `parent`: a layout is not
+ // transparent to a parent chain, so a descendant inside the
+ // HorizontalLayout below cannot see the row's own properties
+ // any other way.
+ property <bool> shown: root.shown(def);
+ property <bool> in-chain: root.in-chain(def.preset.id);
+
+ visible: row.shown;
+ height: row.shown ? 26px : 0;
+ border-radius: Theme.r-sm;
+ background: row-touch.has-hover && !row.in-chain
+ ? Theme.field : Colors.transparent;
+
+ HorizontalLayout {
+ padding-left: 6px;
+ padding-right: 8px;
+ spacing: 6px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: row.in-chain ? Glyph.check : Glyph.plus;
+ size: 11px;
+ tint: row.in-chain ? Theme.green : Theme.fg-muted;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: def.preset.name;
+ color: row.in-chain ? Theme.fg-dim : Theme.fg;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if row.in-chain: Text {
+ text: "in chain";
+ color: Theme.fg-dim;
+ font-size: Theme.fs-xs;
+ vertical-alignment: center;
+ }
+ }
+
+ row-touch := TouchArea {
+ enabled: !row.in-chain;
+ mouse-cursor: pointer;
+ clicked => { root.add(def.preset); }
+ }
+ }
+ }
+ }
+}
+
+// The Adjust tab: what can be changed about the selected clip.
+//
+// The panel adapts to the kind rather than the tab strip doing it all, which
+// is how the reference splits it (AdjustPanel.tsx): a still has picture but no
+// sound, so it gets Transform and nothing else; an audio clip has sound but no
+// picture, so it gets everything but Transform.
+//
+// The fader for level works in decibels, not linear gain. Linear puts every
+// useful setting in the bottom sixth of the travel; decibels is both how the
+// ear works and how anyone mixing thinks.
+export component AdjustPanel inherits VerticalLayout {
+ in property <SelectedClipData> selected;
+
+ callback set(field: ClipField, value: float);
+ /// A control gesture finished: the accumulated change becomes one command.
+ callback commit();
+
+ property <bool> has-picture: root.selected.kind == ClipKind.video
+ || root.selected.kind == ClipKind.image;
+ /// A still is picture only: no gain to set, nothing a fade could quieten.
+ property <bool> has-sound: root.selected.kind != ClipKind.image;
+ /// A fade longer than half the clip would overlap the other one.
+ property <float> fade-limit: Math.max(0.1, Math.min(10, root.selected.duration / 2));
+
+ // Local editing state, assigned rather than bound.
+ //
+ // A control writes to its own `value` as it is dragged, and an assignment
+ // in Slint replaces whatever binding the parent declared on that property
+ // — so binding these straight to `clip` would work exactly once and then
+ // go deaf to the model. They are seeded instead, on init and whenever the
+ // selection changes under us.
+ property <float> scale;
+ property <float> offset-x;
+ property <float> offset-y;
+ property <float> rotation;
+ property <float> alpha;
+ property <float> level;
+ property <float> speed;
+ property <float> fade-in;
+ property <float> fade-out;
+
+ function seed() {
+ root.scale = root.selected.scale;
+ root.offset-x = root.selected.offset-x;
+ root.offset-y = root.selected.offset-y;
+ root.rotation = root.selected.rotation;
+ root.alpha = root.selected.opacity;
+ root.level = InspectorFmt.to-decibels(root.selected.volume);
+ root.speed = root.selected.speed;
+ root.fade-in = root.selected.fade-in;
+ root.fade-out = root.selected.fade-out;
+ }
+
+ init => { root.seed(); }
+ changed selected => { root.seed(); }
+
+ property <bool> transform-help;
+ property <bool> speed-help;
+
+ if root.has-picture: Section {
+ first: true;
+ transform := SectionHeader {
+ title: "Transform";
+ collapsible: true;
+ summary: "\{Math.round(root.scale * 100)}% · \{Math.round(root.rotation)}°";
+ HelpButton {
+ open: root.transform-help;
+ toggled => { root.transform-help = self.open; }
+ }
+ }
+
+ if transform.open: VerticalLayout {
+
+ if root.transform-help: Note {
+ text: "Scale and position are fractions of the output frame, so a"
+ + " clip keeps its framing if the project is re-sized.";
+ }
+
+ Param {
+ label: "Scale";
+ value <=> root.scale;
+ minimum: 0.05;
+ maximum: 8;
+ step: 0.01;
+ default-value: 1;
+ fmt: ParamFormat.fraction;
+ changed(v) => { root.set(ClipField.scale, v); root.commit(); }
+ }
+ Param {
+ label: "Position X";
+ value <=> root.offset-x;
+ minimum: -1;
+ maximum: 1;
+ step: 0.005;
+ default-value: 0;
+ fmt: ParamFormat.centred;
+ changed(v) => { root.set(ClipField.offset-x, v); root.commit(); }
+ }
+ Param {
+ label: "Position Y";
+ value <=> root.offset-y;
+ minimum: -1;
+ maximum: 1;
+ step: 0.005;
+ default-value: 0;
+ fmt: ParamFormat.centred;
+ changed(v) => { root.set(ClipField.offset-y, v); root.commit(); }
+ }
+ Param {
+ label: "Rotation";
+ value <=> root.rotation;
+ minimum: -180;
+ maximum: 180;
+ step: 1;
+ default-value: 0;
+ fmt: ParamFormat.degrees;
+ changed(v) => { root.set(ClipField.rotation, v); root.commit(); }
+ }
+ Param {
+ label: "Opacity";
+ value <=> root.alpha;
+ minimum: 0;
+ maximum: 1;
+ step: 0.01;
+ default-value: 1;
+ fmt: ParamFormat.fraction;
+ changed(v) => { root.set(ClipField.opacity, v); root.commit(); }
+ }
+
+ }
+ }
+
+ if root.has-sound: Section {
+ first: !root.has-picture;
+ volume := SectionHeader {
+ title: "Volume";
+ collapsible: true;
+ summary: InspectorFmt.format(ParamFormat.gain, root.level);
+ }
+ if volume.open: Param {
+ label: "Level";
+ value <=> root.level;
+ // The bottom is silence, not -60. +24 at the top because quiet
+ // material genuinely needs it — a distant lavalier is routinely
+ // 15-20 dB under, and a limit that cannot fix that is in the
+ // wrong place.
+ minimum: -60;
+ maximum: 24;
+ step: 0.5;
+ default-value: 0;
+ fmt: ParamFormat.gain;
+ changed(v) => {
+ root.set(ClipField.volume, InspectorFmt.from-decibels(v));
+ root.commit();
+ }
+ }
+ }
+
+ if root.has-sound: Section {
+ speed := SectionHeader {
+ title: "Speed";
+ collapsible: true;
+ summary: InspectorFmt.format(ParamFormat.rate, root.speed);
+ HelpButton {
+ open: root.speed-help;
+ toggled => { root.speed-help = self.open; }
+ }
+ }
+
+ if speed.open: VerticalLayout {
+
+ if root.speed-help: Note {
+ text: "Rate re-times the clip in place, so the timeline length"
+ + " changes with it. Trim afterwards, not before.";
+ }
+
+ Param {
+ label: "Rate";
+ value <=> root.speed;
+ // The engine's full range. The track is linear, so the useful
+ // 0.25-4x band sits left of centre and the number field beside it
+ // is how the extremes are actually dialled in.
+ minimum: 0.0625;
+ maximum: 16;
+ step: 0.05;
+ default-value: 1;
+ fmt: ParamFormat.rate;
+ changed(v) => { root.set(ClipField.speed, v); root.commit(); }
+ }
+
+ SwitchRow {
+ label: "Change pitch with speed";
+ checked: !root.selected.preserve-pitch;
+ toggled(on) => {
+ root.set(ClipField.preserve-pitch, on ? 0 : 1);
+ root.commit();
+ }
+ }
+
+ }
+ }
+
+ if root.has-sound: Section {
+ fades := SectionHeader {
+ title: "Fades";
+ collapsible: true;
+ summary: (root.fade-in == 0 && root.fade-out == 0) ? "none"
+ : InspectorFmt.format(ParamFormat.seconds2, root.fade-in)
+ + " / " + InspectorFmt.format(ParamFormat.seconds2, root.fade-out);
+ }
+ if fades.open: VerticalLayout {
+ Param {
+ label: "Fade in";
+ value <=> root.fade-in;
+ minimum: 0;
+ maximum: root.fade-limit;
+ step: 0.05;
+ fmt: ParamFormat.seconds2;
+ changed(v) => { root.set(ClipField.fade-in, v); root.commit(); }
+ }
+ Param {
+ label: "Fade out";
+ value <=> root.fade-out;
+ minimum: 0;
+ maximum: root.fade-limit;
+ step: 0.05;
+ fmt: ParamFormat.seconds2;
+ changed(v) => { root.set(ClipField.fade-out, v); root.commit(); }
+ }
+ }
+ }
+}
+
+// The panel a filter layer gets instead of Adjust.
+//
+// A layer is not a clip of anything: it has no picture to frame, no gain to
+// set and no rate to change — it treats whatever is playing under it, for as
+// long as it runs. So it gets the two things that *are* its own: how hard it
+// is applied, and how it comes in and goes out.
+//
+// Strength is the clip's `opacity`. That is the same number a picture clip
+// dissolves with, which is exactly what it means here — how much of the
+// treated signal is heard — and one field that means one thing on every kind
+// beats a second that means it only on this one.
+export component FilterPanel inherits VerticalLayout {
+ in property <SelectedClipData> selected;
+
+ callback set(field: ClipField, value: float);
+ callback commit();
+
+ /// A ramp longer than half the layer would overlap the other one.
+ property <float> ramp-limit: Math.max(0.1, Math.min(10, root.selected.duration / 2));
+
+ // Seeded, not bound, for the reason AdjustPanel's are: a control writes to
+ // its own `value`, and an assignment replaces the binding declared here.
+ property <float> strength;
+ property <float> fade-in;
+ property <float> fade-out;
+
+ function seed() {
+ root.strength = root.selected.opacity;
+ root.fade-in = root.selected.fade-in;
+ root.fade-out = root.selected.fade-out;
+ }
+
+ init => { root.seed(); }
+ changed selected => { root.seed(); }
+
+ property <bool> layer-help;
+
+ Section {
+ first: true;
+ layer := SectionHeader {
+ title: "Layer";
+ collapsible: true;
+ summary: InspectorFmt.format(ParamFormat.fraction, root.strength);
+ HelpButton {
+ open: root.layer-help;
+ toggled => { root.layer-help = self.open; }
+ }
+ }
+
+ if layer.open: VerticalLayout {
+
+ if root.layer-help: Note {
+ text: "A layer treats everything under it for as long as it runs."
+ + " Trim it on the timeline to change what it covers.";
+ }
+
+ Param {
+ label: "Strength";
+ value <=> root.strength;
+ minimum: 0;
+ maximum: 1;
+ step: 0.01;
+ default-value: 1;
+ fmt: ParamFormat.fraction;
+ changed(v) => { root.set(ClipField.opacity, v); root.commit(); }
+ }
+
+ }
+ }
+
+ Section {
+ ramps := SectionHeader {
+ title: "Ramps";
+ collapsible: true;
+ summary: (root.fade-in == 0 && root.fade-out == 0) ? "none"
+ : InspectorFmt.format(ParamFormat.seconds2, root.fade-in)
+ + " / " + InspectorFmt.format(ParamFormat.seconds2, root.fade-out);
+ }
+ if ramps.open: VerticalLayout {
+ Param {
+ label: "Ramp in";
+ value <=> root.fade-in;
+ minimum: 0;
+ maximum: root.ramp-limit;
+ step: 0.05;
+ fmt: ParamFormat.seconds2;
+ changed(v) => { root.set(ClipField.fade-in, v); root.commit(); }
+ }
+ Param {
+ label: "Ramp out";
+ value <=> root.fade-out;
+ minimum: 0;
+ maximum: root.ramp-limit;
+ step: 0.05;
+ fmt: ParamFormat.seconds2;
+ changed(v) => { root.set(ClipField.fade-out, v); root.commit(); }
+ }
+ }
+ }
+}
+
+// The catalogues, mirrored from web/src/demo/inspector/presets.ts. Data only:
+// the stack renders whatever params a preset declares, so adding a processor
+// is one entry here and no change to the panel.
+export global PresetCatalog {
+ out property <[string]> filter-groups: ["Voice", "Tone", "Space"];
+ out property <[string]> effect-groups: ["Dynamics", "Time", "Colour"];
+
+ out property <[PresetDef]> filters: [
+ { group: 0, preset: { id: "sweet", name: "Sweet", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 65, value: 65, fmt: ParamFormat.percent },
+ p2: { id: "pitch", label: "Pitch", min: 0, max: 12, step: 1, default-value: 0, value: 0, fmt: ParamFormat.pitch } } },
+ { group: 0, preset: { id: "deep", name: "Deep", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 70, value: 70, fmt: ParamFormat.percent },
+ p2: { id: "pitch", label: "Pitch", min: 0, max: 12, step: 1, default-value: 0, value: 0, fmt: ParamFormat.pitch } } },
+ { group: 0, preset: { id: "chipmunk", name: "Chipmunk", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 80, value: 80, fmt: ParamFormat.percent },
+ p2: { id: "pitch", label: "Pitch", min: 0, max: 12, step: 1, default-value: 0, value: 0, fmt: ParamFormat.pitch } } },
+ { group: 0, preset: { id: "robot", name: "Robot", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 60, value: 60, fmt: ParamFormat.percent },
+ p2: { id: "carrier", label: "Carrier", min: 40, max: 400, step: 10, default-value: 120, value: 120, fmt: ParamFormat.hertz } } },
+
+ { group: 1, preset: { id: "warm", name: "Warm", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 50, value: 50, fmt: ParamFormat.percent },
+ p2: { id: "tilt", label: "Tilt", min: -12, max: 12, step: 0.5, default-value: -2, value: -2, fmt: ParamFormat.decibels } } },
+ { group: 1, preset: { id: "bright", name: "Bright", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 45, value: 45, fmt: ParamFormat.percent },
+ p2: { id: "tilt", label: "Tilt", min: -12, max: 12, step: 0.5, default-value: 3, value: 3, fmt: ParamFormat.decibels } } },
+ { group: 1, preset: { id: "telephone", name: "Telephone", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 100, value: 100, fmt: ParamFormat.percent },
+ p2: { id: "band", label: "Band", min: 300, max: 4000, step: 10, default-value: 1800, value: 1800, fmt: ParamFormat.hertz } } },
+ { group: 1, preset: { id: "radio", name: "Radio", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 75, value: 75, fmt: ParamFormat.percent },
+ p2: { id: "noise", label: "Noise", min: 0, max: 100, step: 1, default-value: 12, value: 12, fmt: ParamFormat.percent } } },
+
+ { group: 2, preset: { id: "room", name: "Room", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 30, value: 30, fmt: ParamFormat.percent },
+ p2: { id: "decay", label: "Decay", min: 0, max: 8, step: 0.1, default-value: 0.6, value: 0.6, fmt: ParamFormat.seconds } } },
+ { group: 2, preset: { id: "hall", name: "Hall", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 40, value: 40, fmt: ParamFormat.percent },
+ p2: { id: "decay", label: "Decay", min: 0, max: 8, step: 0.1, default-value: 2.2, value: 2.2, fmt: ParamFormat.seconds } } },
+ { group: 2, preset: { id: "plate", name: "Plate", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 35, value: 35, fmt: ParamFormat.percent },
+ p2: { id: "decay", label: "Decay", min: 0, max: 8, step: 0.1, default-value: 1.4, value: 1.4, fmt: ParamFormat.seconds } } },
+ { group: 2, preset: { id: "cathedral", name: "Cathedral", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 55, value: 55, fmt: ParamFormat.percent },
+ p2: { id: "decay", label: "Decay", min: 0, max: 8, step: 0.1, default-value: 5, value: 5, fmt: ParamFormat.seconds } } },
+ ];
+
+ out property <[PresetDef]> effects: [
+ { group: 0, preset: { id: "compressor", name: "Compressor", on: true,
+ p1: { id: "threshold", label: "Threshold", min: -60, max: 0, step: 0.5, default-value: -18, value: -18, fmt: ParamFormat.decibels },
+ p2: { id: "ratio", label: "Ratio", min: 1, max: 20, step: 0.5, default-value: 4, value: 4, fmt: ParamFormat.ratio } } },
+ { group: 0, preset: { id: "limiter", name: "Limiter", on: true,
+ p1: { id: "ceiling", label: "Ceiling", min: -12, max: 0, step: 0.5, default-value: -1, value: -1, fmt: ParamFormat.decibels },
+ p2: { id: "release", label: "Release", min: 0, max: 500, step: 5, default-value: 60, value: 60, fmt: ParamFormat.millis } } },
+ { group: 0, preset: { id: "gate", name: "Noise gate", on: true,
+ p1: { id: "threshold", label: "Threshold", min: -80, max: 0, step: 0.5, default-value: -42, value: -42, fmt: ParamFormat.decibels },
+ p2: { id: "hold", label: "Hold", min: 0, max: 1000, step: 5, default-value: 120, value: 120, fmt: ParamFormat.millis } } },
+ { group: 0, preset: { id: "deesser", name: "De-esser", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 45, value: 45, fmt: ParamFormat.percent },
+ p2: { id: "centre", label: "Centre", min: 2000, max: 12000, step: 10, default-value: 6500, value: 6500, fmt: ParamFormat.hertz } } },
+
+ { group: 1, preset: { id: "delay", name: "Delay", on: true,
+ p1: { id: "time", label: "Time", min: 0, max: 1500, step: 5, default-value: 320, value: 320, fmt: ParamFormat.millis },
+ p2: { id: "feedback", label: "Feedback", min: 0, max: 100, step: 1, default-value: 28, value: 28, fmt: ParamFormat.percent } } },
+ { group: 1, preset: { id: "echo", name: "Echo", on: true,
+ p1: { id: "time", label: "Time", min: 0, max: 2000, step: 5, default-value: 500, value: 500, fmt: ParamFormat.millis },
+ p2: { id: "repeats", label: "Repeats", min: 1, max: 12, step: 1, default-value: 3, value: 3, fmt: ParamFormat.steps } } },
+ { group: 1, preset: { id: "stutter", name: "Stutter", on: true,
+ p1: { id: "rate", label: "Rate", min: 0.1, max: 24, step: 0.1, default-value: 8, value: 8, fmt: ParamFormat.rate-hz },
+ p2: { id: "depth", label: "Depth", min: 0, max: 100, step: 1, default-value: 70, value: 70, fmt: ParamFormat.percent } } },
+ { group: 1, preset: { id: "reverse", name: "Reverse", on: true,
+ p1: { id: "amount", label: "Amount", min: 0, max: 100, step: 1, default-value: 100, value: 100, fmt: ParamFormat.percent },
+ p2: { id: "crossfade", label: "Crossfade", min: 0, max: 400, step: 5, default-value: 40, value: 40, fmt: ParamFormat.millis } } },
+
+ { group: 2, preset: { id: "saturator", name: "Saturator", on: true,
+ p1: { id: "drive", label: "Drive", min: 0, max: 100, step: 1, default-value: 35, value: 35, fmt: ParamFormat.percent },
+ p2: { id: "mix", label: "Mix", min: 0, max: 100, step: 1, default-value: 100, value: 100, fmt: ParamFormat.percent } } },
+ { group: 2, preset: { id: "bitcrush", name: "Bitcrush", on: true,
+ p1: { id: "bits", label: "Bits", min: 2, max: 16, step: 1, default-value: 12, value: 12, fmt: ParamFormat.steps },
+ p2: { id: "mix", label: "Mix", min: 0, max: 100, step: 1, default-value: 60, value: 60, fmt: ParamFormat.percent } } },
+ { group: 2, preset: { id: "chorus", name: "Chorus", on: true,
+ p1: { id: "rate", label: "Rate", min: 0.1, max: 8, step: 0.1, default-value: 1.2, value: 1.2, fmt: ParamFormat.rate-hz },
+ p2: { id: "depth", label: "Depth", min: 0, max: 100, step: 1, default-value: 40, value: 40, fmt: ParamFormat.percent } } },
+ { group: 2, preset: { id: "flanger", name: "Flanger", on: true,
+ p1: { id: "rate", label: "Rate", min: 0.1, max: 8, step: 0.1, default-value: 0.4, value: 0.4, fmt: ParamFormat.rate-hz },
+ p2: { id: "feedback", label: "Feedback", min: 0, max: 100, step: 1, default-value: 55, value: 55, fmt: ParamFormat.percent } } },
+ ];
+}
diff --git a/engine/crates/concat/ui/inspector/controls.slint b/engine/crates/concat/ui/inspector/controls.slint
new file mode 100644
index 00000000..f23dae32
--- /dev/null
+++ b/engine/crates/concat/ui/inspector/controls.slint
@@ -0,0 +1,580 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt } from "../util.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { NumberField } from "../primitives/number-field.slint";
+
+// The clip inspector's controls, ported from web/src/demo/inspector/
+// controls.tsx: a horizontal fader, the Param row that repeats down every
+// tab, a switch, a help disclosure, a note, and a search field. Written to
+// the same contract as primitives/ — value plus a changed callback — so
+// promoting one later is a file move rather than a rewrite.
+
+// How a parameter's readout is spelled. The web build passes a closure per
+// param; a Slint struct cannot carry one, so the catalogue names one of these
+// and InspectorFmt renders it.
+export enum ParamFormat {
+ percent, // "45%"
+ pitch, // 0 is "auto", else "+3 st"
+ seconds, // 0 is "off", else "1.4 s"
+ millis, // 0 is "off", else "320 ms"
+ hertz, // "120 Hz", "6.5 kHz"
+ decibels, // "-18.0 dB", "+3.0 dB"
+ ratio, // "4.0 : 1"
+ rate-hz, // "1.2 Hz"
+ steps, // "12"
+ rate, // "1.00x"
+ fade, // 0 is "none", else "1.5 s"
+
+ // The clip inspector's own. Several of these are fractions of something —
+ // the frame's height, the frame's width — rather than absolute units,
+ // because the frame can be any resolution and points would be a lie.
+ fraction, // 0..1 as a whole percent: "72%"
+ centred, // a signed offset: "centred" at zero, else "-12.5%"
+ degrees, // "45°"
+ gain, // decibels, with the floor spelled "Silent"
+ height, // "9.0% of height"
+ outline, // 0 is "none", else "3.5%"
+ seconds2, // "1.25s" — two places, for a fade dialled against a duration
+}
+
+export global InspectorFmt {
+ // "3.5", with the trailing zero a bare interpolation would drop.
+ public pure function fixed1(v: float) -> string {
+ return (v < 0 ? "-" : "")
+ + "\{Math.floor(Math.abs(Fmt.round-to(v, 1)))}"
+ + ".\{Math.mod(Math.round(Math.abs(v) * 10), 10)}";
+ }
+
+ public pure function fixed2(v: float) -> string {
+ return (v < 0 ? "-" : "")
+ + "\{Math.floor(Math.abs(Fmt.round-to(v, 2)))}"
+ + "." + Fmt.pad2(Math.mod(Math.round(Math.abs(v) * 100), 100));
+ }
+
+ public pure function format(fmt: ParamFormat, v: float) -> string {
+ if (fmt == ParamFormat.percent) { return "\{Math.round(v)}%"; }
+ if (fmt == ParamFormat.pitch) {
+ return v == 0 ? "auto" : "+\{Math.round(v)} st";
+ }
+ if (fmt == ParamFormat.seconds) {
+ return v == 0 ? "off" : InspectorFmt.fixed1(v) + " s";
+ }
+ if (fmt == ParamFormat.millis) {
+ return v == 0 ? "off" : "\{Math.round(v)} ms";
+ }
+ if (fmt == ParamFormat.hertz) {
+ return v >= 1000 ? InspectorFmt.fixed1(v / 1000) + " kHz"
+ : "\{Math.round(v)} Hz";
+ }
+ if (fmt == ParamFormat.decibels) {
+ return (v > 0 ? "+" : "") + InspectorFmt.fixed1(v) + " dB";
+ }
+ if (fmt == ParamFormat.ratio) { return InspectorFmt.fixed1(v) + " : 1"; }
+ if (fmt == ParamFormat.rate-hz) { return InspectorFmt.fixed1(v) + " Hz"; }
+ if (fmt == ParamFormat.steps) { return "\{Math.round(v)}"; }
+ if (fmt == ParamFormat.rate) { return InspectorFmt.fixed2(v) + "x"; }
+ if (fmt == ParamFormat.fraction) { return "\{Math.round(v * 100)}%"; }
+ if (fmt == ParamFormat.centred) {
+ // A hair either side of zero still reads as centred: the step is
+ // 0.005, so an exact zero is easy to miss by one press.
+ return Math.abs(v) < 0.0025 ? "centred" : InspectorFmt.fixed1(v * 100) + "%";
+ }
+ if (fmt == ParamFormat.degrees) { return "\{Math.round(v)}°"; }
+ if (fmt == ParamFormat.gain) {
+ // The bottom of the fader is silence, not -60 dB: a fader that
+ // cannot reach zero is a fader you cannot mute with.
+ return v <= -60 ? "Silent"
+ : Math.abs(v) < 0.05 ? "0.0 dB"
+ : (v > 0 ? "+" : "") + InspectorFmt.fixed1(v) + " dB";
+ }
+ if (fmt == ParamFormat.height) {
+ return InspectorFmt.fixed1(v * 100) + "% of height";
+ }
+ if (fmt == ParamFormat.outline) {
+ return v == 0 ? "none" : InspectorFmt.fixed1(v * 100) + "%";
+ }
+ if (fmt == ParamFormat.seconds2) {
+ return v == 0 ? "none" : InspectorFmt.fixed2(v) + "s";
+ }
+ return v == 0 ? "none" : InspectorFmt.fixed1(v) + " s";
+ }
+
+ /// Linear gain to decibels. Zero maps to the bottom of the fader rather
+ /// than to -infinity, so the control has a reachable floor.
+ public pure function to-decibels(gain: float) -> float {
+ return gain <= 0 ? -60 : Fmt.clamp(20 * Math.log(gain, 10), -60, 24);
+ }
+
+ /// And back. At the very bottom the fader means silence, so it snaps to
+ /// exactly zero rather than leaving an inaudible-but-nonzero gain in the
+ /// project.
+ public pure function from-decibels(decibels: float) -> float {
+ return decibels <= -60 ? 0 : Math.pow(10, decibels / 20);
+ }
+
+ // What the raw NumberField beside a fader should show for a given step.
+ public pure function precision-of(step: float) -> int {
+ return step < 0.01 ? 3 : step < 0.1 ? 2 : step < 1 ? 1 : 0;
+ }
+}
+
+export global InspectorSearch {
+ // Slint's string type has no contains(), so the library search match is
+ // implemented in Rust and bound in main.rs — the same seam as
+ // Fmt.parse-timecode. Unbound it returns false, so main.rs must bind it
+ // or the library lists nothing while a query is typed.
+ pure callback matches(name: string, query: string) -> bool;
+}
+
+// Horizontal fader. Click to jump, drag to ride, double-click to reset.
+export component Fader inherits Rectangle {
+ in-out property <float> value;
+ in property <float> minimum: 0;
+ in property <float> maximum: 1;
+ in property <float> step: 0.01;
+ /// restored on double-click
+ in property <float> default-value: root.minimum;
+ in property <bool> enabled: true;
+
+ callback changed(value: float);
+
+ height: 18px;
+ opacity: root.enabled ? 1.0 : 0.45;
+
+ property <float> span: Math.max(root.maximum - root.minimum, 0.000001);
+ // The rail is inset so the cap lands under the pointer at both ends
+ // instead of a few px short of them.
+ property <length> inset: 3px;
+ property <length> usable: Math.max(1px, root.width - 2 * root.inset);
+ property <float> percent: Fmt.clamp((root.value - root.minimum) / root.span, 0, 1);
+
+ function settle(raw: float) {
+ root.value = Fmt.clamp(
+ root.minimum + Math.round((raw - root.minimum) / root.step) * root.step,
+ root.minimum, root.maximum);
+ root.changed(root.value);
+ }
+
+ function apply-at(at: length) {
+ root.settle(root.minimum
+ + Fmt.clamp((at - root.inset) / root.usable, 0, 1) * root.span);
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: ew-resize;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down
+ && event.button == PointerEventButton.left) {
+ root.apply-at(self.mouse-x);
+ }
+ }
+ moved => {
+ root.apply-at(self.mouse-x);
+ }
+ double-clicked => {
+ root.settle(root.default-value);
+ }
+ }
+
+ rail := Rectangle {
+ x: root.inset;
+ y: (parent.height - self.height) / 2;
+ width: root.usable;
+ height: 4px;
+ border-radius: 2px;
+ background: Theme.field-active;
+
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width * root.percent;
+ height: parent.height;
+ border-radius: 2px;
+ background: Theme.accent;
+ }
+ }
+
+ cap := Rectangle {
+ x: root.inset + root.usable * root.percent - self.width * root.percent;
+ y: (parent.height - self.height) / 2;
+ width: 10px;
+ height: 14px;
+ border-radius: 3px;
+ background: Theme.fg;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ }
+}
+
+// The inspector's repeating unit: a formatted readout above (the value in a
+// unit you reason about — "none", "auto", "1.00x"), the fader and a raw
+// number field below. Keeping both is what lets a fade of zero say "none"
+// without making zero un-typeable.
+export component Param inherits VerticalLayout {
+ in property <string> label;
+ in-out property <float> value;
+ in property <float> minimum;
+ in property <float> maximum;
+ in property <float> step: 1;
+ in property <float> default-value: root.minimum;
+ in property <ParamFormat> fmt;
+ in property <bool> enabled: true;
+
+ callback changed(value: float);
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 4px;
+
+ HorizontalLayout {
+ Text {
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ Text {
+ text: InspectorFmt.format(root.fmt, root.value);
+ color: Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+ }
+
+ HorizontalLayout {
+ spacing: 8px;
+
+ Fader {
+ horizontal-stretch: 1;
+ value <=> root.value;
+ minimum: root.minimum;
+ maximum: root.maximum;
+ step: root.step;
+ default-value: root.default-value;
+ enabled: root.enabled;
+ changed(v) => { root.changed(v); }
+ }
+
+ field := NumberField {
+ width: 64px;
+ value <=> root.value;
+ minimum: root.minimum;
+ maximum: root.maximum;
+ step: root.step;
+ precision: InspectorFmt.precision-of(root.step);
+ enabled: root.enabled;
+ changed(v) => { root.changed(v); }
+ }
+ }
+}
+
+export component Switch inherits Rectangle {
+ in-out property <bool> checked;
+ in property <bool> enabled: true;
+
+ callback toggled(checked: bool);
+
+ width: 30px;
+ height: 17px;
+ border-radius: self.height / 2;
+ background: root.checked ? Theme.accent : Theme.field-active;
+ opacity: root.enabled ? 1.0 : 0.45;
+
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ thumb := Rectangle {
+ x: root.checked ? parent.width - self.width - 2px : 2px;
+ y: (parent.height - self.height) / 2;
+ width: 13px;
+ height: 13px;
+ border-radius: self.width / 2;
+ background: Theme.on-accent;
+
+ animate x { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => {
+ root.checked = !root.checked;
+ root.toggled(root.checked);
+ }
+ }
+}
+
+// A labelled switch on one line. `@children` is the help disclosure slot.
+export component SwitchRow inherits HorizontalLayout {
+ in property <string> label;
+ in-out property <bool> checked;
+
+ callback toggled(checked: bool);
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 6px;
+ min-height: Theme.h;
+
+ Text {
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ @children
+
+ Rectangle { horizontal-stretch: 1; }
+
+ VerticalLayout {
+ alignment: center;
+ Switch {
+ checked <=> root.checked;
+ toggled(on) => { root.toggled(on); }
+ }
+ }
+}
+
+// A tooltip would hide the answer again the moment the pointer moves; this
+// toggles a line of prose the caller renders where it belongs.
+export component HelpButton inherits Rectangle {
+ in-out property <bool> open;
+
+ callback toggled();
+
+ width: 16px;
+ height: 16px;
+ border-radius: 8px;
+ background: root.open ? Theme.accent-soft
+ : touch.has-hover ? Theme.field-hover
+ : Theme.field;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "?";
+ color: root.open ? Theme.accent : Theme.fg-muted;
+ font-size: Theme.fs-xs;
+ font-weight: Theme.weight-title;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.open = !root.open;
+ root.toggled();
+ }
+ }
+}
+
+export component Note inherits HorizontalLayout {
+ in property <string> text;
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ padding-top: 2px;
+ padding-bottom: 4px;
+
+ Text {
+ text: root.text;
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ wrap: word-wrap;
+ }
+}
+
+export component SearchField inherits Rectangle {
+ in-out property <string> text;
+ in property <string> placeholder;
+
+ callback edited(text: string);
+
+ height: Theme.h;
+ border-radius: Theme.r-sm;
+ background: Theme.field;
+ border-width: 1px;
+ border-color: input.has-focus ? Theme.accent : Theme.line;
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 4px;
+ spacing: 6px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: Glyph.search;
+ size: 12px;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ Rectangle {
+ clip: true;
+
+ input := TextInput {
+ x: 0;
+ y: (parent.height - self.height) / 2;
+ width: parent.width;
+ height: self.preferred-height;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ single-line: true;
+ text <=> root.text;
+ edited => { root.edited(self.text); }
+ }
+
+ if root.text == "" && !input.has-focus: Text {
+ x: 0;
+ y: (parent.height - self.height) / 2;
+ text: root.placeholder;
+ color: Theme.fg-dim;
+ font-size: Theme.fs;
+ }
+ }
+
+ if root.text != "": VerticalLayout {
+ alignment: center;
+ clear := Rectangle {
+ width: 18px;
+ height: 18px;
+ border-radius: Theme.r-xs;
+ background: clear-touch.has-hover ? Theme.field-hover : Colors.transparent;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.close;
+ size: 10px;
+ tint: Theme.fg-muted;
+ }
+
+ clear-touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.text = "";
+ root.edited("");
+ }
+ }
+ }
+ }
+ }
+}
+
+// A colour on a labelled row.
+//
+// The reference hands this to the platform — `<input type="color">` — which
+// has no counterpart here. Rather than fake an eyedropper and a wheel, the
+// swatch opens a shelf of the colours a title actually gets set to: the
+// neutrals it is legible on, and the kind hues already in the theme. The hex
+// is shown beside it so a value from outside the shelf is still readable
+// rather than invisible.
+export component ColourField inherits HorizontalLayout {
+ in property <string> label;
+ in property <color> value;
+ /// The value spelled out, formatted by whoever owns it — Slint cannot
+ /// print a colour.
+ in property <string> hex;
+
+ callback changed(value: color);
+
+ /// The colours a title can be. In the theme rather than here, so a fork
+ /// that retones the window retones this with it — see `swatches`.
+ property <[color]> shelf: Theme.swatches;
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 8px;
+ min-height: Theme.h;
+
+ Text {
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ Text {
+ text: root.hex;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+
+ VerticalLayout {
+ alignment: center;
+
+ swatch := Rectangle {
+ width: 34px;
+ height: 20px;
+ border-radius: Theme.r-xs;
+ // The swatch sits on its own light-to-dark checker of one square,
+ // so a colour near the panel's own still has an edge.
+ background: Theme.fg-dim;
+ border-width: 1px;
+ border-color: touch.has-hover ? Theme.line-strong : Theme.line;
+
+ Rectangle {
+ x: 1px;
+ y: 1px;
+ width: parent.width - 2px;
+ height: parent.height - 2px;
+ border-radius: Theme.r-xs - 1px;
+ background: root.value;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { shelf.show(); }
+ }
+
+ shelf := PopupWindow {
+ x: -128px;
+ y: swatch.height + 4px;
+ width: 160px;
+ height: 92px;
+ close-policy: close-on-click-outside;
+
+ Rectangle {
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+
+ for entry[index] in root.shelf: Rectangle {
+ x: 8px + Math.mod(index, 6) * 24px;
+ y: 8px + Math.floor(index / 6) * 26px;
+ width: 20px;
+ height: 20px;
+ border-radius: Theme.r-xs;
+ background: entry;
+ border-width: 1px;
+ border-color: pick.has-hover ? Theme.fg : Theme.line;
+
+ pick := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.changed(entry);
+ shelf.close();
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/inspector/text-panel.slint b/engine/crates/concat/ui/inspector/text-panel.slint
new file mode 100644
index 00000000..277e30e1
--- /dev/null
+++ b/engine/crates/concat/ui/inspector/text-panel.slint
@@ -0,0 +1,366 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Section, SectionHeader, Row } from "../primitives/panel.slint";
+import { SegmentedControl } from "../primitives/segmented-control.slint";
+import { Select } from "../primitives/select.slint";
+import {
+ ColourField, HelpButton, InspectorFmt, Note, Param, ParamFormat, SwitchRow,
+} from "controls.slint";
+import {
+ ClipField, ClipTextField, SelectedClipData, TextAlignment,
+} from "../timeline/model.slint";
+
+// The Text tab, ported from the reference's TextPanel.tsx.
+//
+// A title is the one thing on the timeline that is not a file, so it gets its
+// own inspector and nothing else: no volume, no speed, no audio filters.
+// Offering those tabs would be offering panels that can only say "nothing
+// here", which is why the tab strip drops them rather than disabling them.
+//
+// Sizes and positions are fractions of the output frame, never points or
+// pixels: the frame can be any resolution, and a title dialled in at 1080p
+// should not move when the project is exported at 4K.
+export component TextPanel inherits VerticalLayout {
+ in property <SelectedClipData> selected;
+ /// The faces this build has. The reference also imports custom fonts from
+ /// disk, which needs a file picker this crate does not have — so the list
+ /// is what is bundled, and the add-a-font flow is the gap.
+ in property <[string]> families: ["Inter", "Synonym"];
+
+ callback set(field: ClipField, value: float);
+ callback set-text(field: ClipTextField, value: string);
+ callback set-colour(field: ClipTextField, value: color);
+ callback commit();
+
+ // Local editing state, seeded rather than bound — see the note on
+ // AdjustPanel, which has the same problem for the same reason.
+ property <float> size;
+ property <float> alpha;
+ property <float> stroke-width;
+ property <float> line-height;
+ property <float> tracking;
+ property <float> offset-x;
+ property <float> offset-y;
+ property <int> weight-index;
+ property <int> family-index;
+
+ property <[float]> weights: [400, 500, 600, 700];
+
+ function seed() {
+ root.size = root.selected.font-size;
+ root.alpha = root.selected.text-opacity;
+ root.stroke-width = root.selected.stroke-width;
+ root.line-height = root.selected.line-height;
+ root.tracking = root.selected.tracking;
+ root.offset-x = root.selected.offset-x;
+ root.offset-y = root.selected.offset-y;
+ root.weight-index = root.selected.font-weight >= 700 ? 3
+ : root.selected.font-weight >= 600 ? 2
+ : root.selected.font-weight >= 500 ? 1 : 0;
+ root.family-index = root.selected.font-family == "Synonym" ? 1 : 0;
+ }
+
+ init => { root.seed(); }
+ changed selected => { root.seed(); }
+
+ property <bool> shadow-help;
+ property <bool> plate-help;
+
+ // ── content ──────────────────────────────────────────────────────────
+ Section {
+ first: true;
+ content := SectionHeader {
+ title: "Content";
+ collapsible: true;
+ summary: root.selected.content == "" ? "Empty" : root.selected.content;
+ }
+
+ if content.open: VerticalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ padding-bottom: 4px;
+
+ Rectangle {
+ height: 64px;
+ border-radius: Theme.r;
+ background: Theme.field;
+ border-width: 1px;
+ border-color: body.has-focus ? Theme.accent : Theme.line;
+ clip: true;
+
+ body := TextInput {
+ x: 8px;
+ y: 6px;
+ width: parent.width - 16px;
+ height: parent.height - 12px;
+ text: root.selected.content;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ // Multi-line: a lower third is routinely two lines, and a
+ // single-line field would silently eat the break.
+ single-line: false;
+ wrap: word-wrap;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ // Committed on the way out rather than per keystroke, so a
+ // title being typed is one change and not forty.
+ changed has-focus => {
+ if (!self.has-focus) {
+ root.set-text(ClipTextField.content, self.text);
+ root.commit();
+ }
+ }
+ }
+ }
+ }
+ }
+
+ // ── font ─────────────────────────────────────────────────────────────
+ Section {
+ font := SectionHeader {
+ title: "Font";
+ collapsible: true;
+ summary: root.selected.font-family + " · "
+ + InspectorFmt.format(ParamFormat.height, root.size);
+ }
+
+ if font.open: VerticalLayout {
+ Row {
+ Select {
+ options: root.families;
+ current <=> root.family-index;
+ changed(index) => {
+ root.set-text(ClipTextField.font-family, root.families[index]);
+ root.commit();
+ }
+ }
+ }
+
+ Row {
+ Select {
+ options: ["Regular", "Medium", "SemiBold", "Bold"];
+ current <=> root.weight-index;
+ changed(index) => {
+ root.set(ClipField.font-weight, root.weights[index]);
+ root.commit();
+ }
+ }
+ }
+
+ Param {
+ label: "Size";
+ value <=> root.size;
+ minimum: 0.01;
+ maximum: 0.5;
+ step: 0.005;
+ default-value: 0.09;
+ fmt: ParamFormat.height;
+ changed(v) => { root.set(ClipField.font-size, v); root.commit(); }
+ }
+
+ SwitchRow {
+ label: "Italic";
+ checked: root.selected.italic;
+ toggled(on) => { root.set(ClipField.italic, on ? 1 : 0); root.commit(); }
+ }
+ }
+ }
+
+ // ── colour ───────────────────────────────────────────────────────────
+ Section {
+ colour := SectionHeader {
+ title: "Colour";
+ collapsible: true;
+ summary: root.selected.fill-hex + " · "
+ + InspectorFmt.format(ParamFormat.fraction, root.alpha);
+ }
+
+ if colour.open: VerticalLayout {
+ ColourField {
+ label: "Fill";
+ value: root.selected.fill;
+ hex: root.selected.fill-hex;
+ changed(colour) => { root.set-colour(ClipTextField.color, colour); root.commit(); }
+ }
+
+ Param {
+ label: "Opacity";
+ value <=> root.alpha;
+ minimum: 0;
+ maximum: 1;
+ step: 0.01;
+ default-value: 1;
+ fmt: ParamFormat.fraction;
+ changed(v) => { root.set(ClipField.text-opacity, v); root.commit(); }
+ }
+
+ SwitchRow {
+ label: "Drop shadow";
+ checked: root.selected.shadow;
+
+ HelpButton {
+ open: root.shadow-help;
+ toggled => { root.shadow-help = self.open; }
+ }
+
+ toggled(on) => { root.set(ClipField.shadow, on ? 1 : 0); root.commit(); }
+ }
+
+ if root.shadow-help: Note {
+ text: "A soft shadow under the words, for titles that have to sit"
+ + " over footage you do not control.";
+ }
+
+ SwitchRow {
+ label: "Plate";
+ checked: root.selected.plated;
+
+ HelpButton {
+ open: root.plate-help;
+ toggled => { root.plate-help = self.open; }
+ }
+
+ toggled(on) => {
+ // A plate is a colour, not a flag: turning it off is clearing
+ // it. Fully transparent is what "no plate" is stored as.
+ root.set-colour(ClipTextField.background,
+ on ? Theme.plate-on : Colors.transparent);
+ root.commit();
+ }
+ }
+
+ if root.plate-help: Note {
+ text: "A solid band behind the words. Where a shadow softens the"
+ + " background, a plate replaces it — use it when the footage"
+ + " underneath is busy enough that neither weight nor outline"
+ + " will hold.";
+ }
+
+ if root.selected.plated: ColourField {
+ label: "Plate colour";
+ value: root.selected.plate;
+ hex: root.selected.plate-hex;
+ changed(shade) => {
+ root.set-colour(ClipTextField.background, shade);
+ root.commit();
+ }
+ }
+ }
+ }
+
+ // ── outline ──────────────────────────────────────────────────────────
+ Section {
+ outline := SectionHeader {
+ title: "Outline";
+ collapsible: true;
+ open: false;
+ summary: InspectorFmt.format(ParamFormat.outline, root.stroke-width);
+ }
+
+ if outline.open: VerticalLayout {
+ Param {
+ label: "Width";
+ value <=> root.stroke-width;
+ minimum: 0;
+ maximum: 0.15;
+ step: 0.005;
+ default-value: 0;
+ fmt: ParamFormat.outline;
+ changed(v) => { root.set(ClipField.stroke-width, v); root.commit(); }
+ }
+
+ // Only once there is an outline to colour: a swatch for a stroke of
+ // zero width sets something nobody can see.
+ if root.selected.stroke-width > 0: ColourField {
+ label: "Colour";
+ value: root.selected.stroke;
+ hex: root.selected.stroke-hex;
+ changed(shade) => {
+ root.set-colour(ClipTextField.stroke-color, shade);
+ root.commit();
+ }
+ }
+ }
+ }
+
+ // ── layout ───────────────────────────────────────────────────────────
+ Section {
+ layout := SectionHeader {
+ title: "Layout";
+ collapsible: true;
+ summary: (root.selected.align == TextAlignment.right ? "Right"
+ : root.selected.align == TextAlignment.center ? "Center" : "Left")
+ + " · " + InspectorFmt.format(ParamFormat.rate, root.line-height);
+ }
+
+ if layout.open: VerticalLayout {
+ Row {
+ SegmentedControl {
+ options: ["Left", "Center", "Right"];
+ current: root.selected.align == TextAlignment.right ? 2
+ : root.selected.align == TextAlignment.center ? 1 : 0;
+ changed(index) => { root.set(ClipField.align, index); root.commit(); }
+ }
+ }
+
+ Param {
+ label: "Line height";
+ value <=> root.line-height;
+ minimum: 0.7;
+ maximum: 2.5;
+ step: 0.05;
+ default-value: 1.2;
+ fmt: ParamFormat.rate;
+ changed(v) => { root.set(ClipField.line-height, v); root.commit(); }
+ }
+
+ Param {
+ label: "Tracking";
+ value <=> root.tracking;
+ minimum: -0.05;
+ maximum: 0.3;
+ step: 0.005;
+ default-value: 0;
+ fmt: ParamFormat.outline;
+ changed(v) => { root.set(ClipField.tracking, v); root.commit(); }
+ }
+ }
+ }
+
+ // ── position ─────────────────────────────────────────────────────────
+ Section {
+ position := SectionHeader {
+ title: "Position";
+ collapsible: true;
+ summary: InspectorFmt.format(ParamFormat.centred, root.offset-x)
+ + " · " + InspectorFmt.format(ParamFormat.centred, root.offset-y);
+ }
+
+ if position.open: VerticalLayout {
+ Param {
+ label: "Horizontal";
+ value <=> root.offset-x;
+ minimum: -0.5;
+ maximum: 0.5;
+ step: 0.005;
+ default-value: 0;
+ fmt: ParamFormat.centred;
+ changed(v) => { root.set(ClipField.offset-x, v); root.commit(); }
+ }
+
+ Param {
+ label: "Vertical";
+ value <=> root.offset-y;
+ minimum: -0.5;
+ maximum: 0.5;
+ step: 0.005;
+ default-value: 0;
+ fmt: ParamFormat.centred;
+ changed(v) => { root.set(ClipField.offset-y, v); root.commit(); }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/bezier-editor.slint b/engine/crates/concat/ui/primitives/bezier-editor.slint
new file mode 100644
index 00000000..40584b7d
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/bezier-editor.slint
@@ -0,0 +1,255 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt } from "../util.slint";
+
+// Cubic-bezier curve editor. The endpoints are pinned at (0,0) and (1,1); the
+// two control handles drag freely, with x clamped to 0..1 so the result stays
+// a legal CSS timing function.
+export component BezierEditor inherits Rectangle {
+ in-out property <float> x1: 0.42;
+ in-out property <float> y1: 0;
+ in-out property <float> x2: 0.58;
+ in-out property <float> y2: 1;
+ /// how far past 0..1 the handles may travel on the y axis
+ in property <float> overshoot: 0.3;
+ in property <bool> enabled: true;
+
+ callback changed();
+
+ property <length> pad: 16px;
+ property <length> inner-w: Math.max(root.width - 2 * root.pad, 1px);
+ property <length> inner-h: Math.max(root.height - 2 * root.pad, 1px);
+ property <float> y-range: 1 + root.overshoot * 2;
+ property <int> grabbed: -1;
+
+ min-height: 190px;
+ min-width: 200px;
+ horizontal-stretch: 1;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.line;
+ border-radius: Theme.r;
+ clip: true;
+ opacity: root.enabled ? 1.0 : 0.45;
+
+ // curve space <-> widget space
+ pure function to-x(v: float) -> length {
+ return root.pad + v * root.inner-w;
+ }
+ pure function to-y(v: float) -> length {
+ return root.pad + ((1 + root.overshoot - v) / root.y-range) * root.inner-h;
+ }
+ pure function from-x(p: length) -> float {
+ return (p - root.pad) / root.inner-w;
+ }
+ pure function from-y(p: length) -> float {
+ return 1 + root.overshoot - ((p - root.pad) / root.inner-h) * root.y-range;
+ }
+
+ function set-handle(index: int, x: float, y: float) {
+ if (index == 0) {
+ root.x1 = Fmt.round-to(Fmt.clamp(x, 0, 1), 3);
+ root.y1 = Fmt.round-to(Fmt.clamp(y, -root.overshoot, 1 + root.overshoot), 3);
+ } else {
+ root.x2 = Fmt.round-to(Fmt.clamp(x, 0, 1), 3);
+ root.y2 = Fmt.round-to(Fmt.clamp(y, -root.overshoot, 1 + root.overshoot), 3);
+ }
+ root.changed();
+ }
+
+ pure function distance(px: length, py: length, x: float, y: float) -> float {
+ return Math.sqrt(Math.pow((px - root.to-x(x)) / 1px, 2)
+ + Math.pow((py - root.to-y(y)) / 1px, 2));
+ }
+
+ // the 0 and 1 rails the curve travels between
+ Rectangle {
+ x: 0px;
+ y: root.to-y(1);
+ width: root.width;
+ height: 1px;
+ background: Theme.line;
+ }
+ Rectangle {
+ x: 0px;
+ y: root.to-y(0);
+ width: root.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ // leashes from each endpoint to its control point
+ Path {
+ width: root.width;
+ height: root.height;
+ viewbox-width: root.width / 1px;
+ viewbox-height: root.height / 1px;
+ stroke: Theme.accent;
+ stroke-width: 1.5px;
+ opacity: 0.9;
+
+ MoveTo { x: root.to-x(0) / 1px; y: root.to-y(0) / 1px; }
+ LineTo { x: root.to-x(root.x1) / 1px; y: root.to-y(root.y1) / 1px; }
+ MoveTo { x: root.to-x(1) / 1px; y: root.to-y(1) / 1px; }
+ LineTo { x: root.to-x(root.x2) / 1px; y: root.to-y(root.y2) / 1px; }
+ }
+
+ Path {
+ width: root.width;
+ height: root.height;
+ viewbox-width: root.width / 1px;
+ viewbox-height: root.height / 1px;
+ stroke: Theme.accent;
+ stroke-width: 2px;
+ stroke-line-cap: round;
+
+ MoveTo { x: root.to-x(0) / 1px; y: root.to-y(0) / 1px; }
+ CubicTo {
+ control-1-x: root.to-x(root.x1) / 1px;
+ control-1-y: root.to-y(root.y1) / 1px;
+ control-2-x: root.to-x(root.x2) / 1px;
+ control-2-y: root.to-y(root.y2) / 1px;
+ x: root.to-x(1) / 1px;
+ y: root.to-y(1) / 1px;
+ }
+ }
+
+ // endpoint anchors
+ Rectangle {
+ x: root.to-x(0) - 4px;
+ y: root.to-y(0) - 4px;
+ width: 8px;
+ height: 8px;
+ border-radius: 4px;
+ background: Theme.accent;
+ }
+ Rectangle {
+ x: root.to-x(1) - 4px;
+ y: root.to-y(1) - 4px;
+ width: 8px;
+ height: 8px;
+ border-radius: 4px;
+ background: Theme.accent;
+ }
+
+ // Each handle keeps its own focus scope, so Tab walks the two control
+ // points the way the two <g role="slider"> elements do on the web. They sit
+ // below the drag surface and are focused from it.
+ fs1 := FocusScope {
+ x: root.to-x(root.x1) - 12px;
+ y: root.to-y(root.y1) - 12px;
+ width: 24px;
+ height: 24px;
+ enabled: root.enabled;
+ key-pressed(event) => {
+ return root.key-nudge(0, event);
+ }
+ }
+ fs2 := FocusScope {
+ x: root.to-x(root.x2) - 12px;
+ y: root.to-y(root.y2) - 12px;
+ width: 24px;
+ height: 24px;
+ enabled: root.enabled;
+ key-pressed(event) => {
+ return root.key-nudge(1, event);
+ }
+ }
+
+ // Slint functions have no local bindings, so the current handle is read
+ // through the index on every use rather than lifted into a variable.
+ function nudge(index: int, dx: float, dy: float) {
+ root.set-handle(index,
+ (index == 0 ? root.x1 : root.x2) + dx,
+ (index == 0 ? root.y1 : root.y2) + dy);
+ }
+
+ function key-nudge(index: int, event: KeyEvent) -> EventResult {
+ if (event.text == Key.LeftArrow) {
+ root.nudge(index, event.modifiers.shift ? -0.1 : -0.01, 0);
+ return EventResult.accept;
+ }
+ if (event.text == Key.RightArrow) {
+ root.nudge(index, event.modifiers.shift ? 0.1 : 0.01, 0);
+ return EventResult.accept;
+ }
+ if (event.text == Key.UpArrow) {
+ root.nudge(index, 0, event.modifiers.shift ? 0.1 : 0.01);
+ return EventResult.accept;
+ }
+ if (event.text == Key.DownArrow) {
+ root.nudge(index, 0, event.modifiers.shift ? -0.1 : -0.01);
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+
+ // control points, drawn over the leashes
+ Rectangle {
+ property <bool> lit: root.grabbed == 0 || fs1.has-focus || surface.near == 0;
+ x: root.to-x(root.x1) - self.width / 2;
+ y: root.to-y(root.y1) - self.height / 2;
+ width: self.lit ? 14px : 10px;
+ height: self.width;
+ border-radius: self.width / 2;
+ background: Theme.accent;
+ border-width: 1.5px;
+ border-color: fs1.has-focus ? Theme.clip-ink : Theme.panel;
+ animate width { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+ Rectangle {
+ property <bool> lit: root.grabbed == 1 || fs2.has-focus || surface.near == 1;
+ x: root.to-x(root.x2) - self.width / 2;
+ y: root.to-y(root.y2) - self.height / 2;
+ width: self.lit ? 14px : 10px;
+ height: self.width;
+ border-radius: self.width / 2;
+ background: Theme.accent;
+ border-width: 1.5px;
+ border-color: fs2.has-focus ? Theme.clip-ink : Theme.panel;
+ animate width { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ // One drag surface for the whole canvas rather than a hit area per handle:
+ // a hit area that moves with the handle it is dragging feeds its own input
+ // back into itself.
+ surface := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: root.grabbed >= 0 ? MouseCursor.grabbing
+ : self.near >= 0 ? MouseCursor.grab
+ : MouseCursor.default;
+
+ /// handle under the pointer, or -1
+ property <int> near: root.distance(self.mouse-x, self.mouse-y, root.x1, root.y1) < 18
+ ? 0
+ : root.distance(self.mouse-x, self.mouse-y, root.x2, root.y2) < 18 ? 1 : -1;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.grabbed = root.distance(self.pressed-x, self.pressed-y, root.x1, root.y1) < 18
+ ? 0
+ : root.distance(self.pressed-x, self.pressed-y, root.x2, root.y2) < 18 ? 1 : -1;
+ if (root.grabbed == 0) {
+ fs1.focus();
+ } else if (root.grabbed == 1) {
+ fs2.focus();
+ }
+ } else if (event.kind == PointerEventKind.up
+ || event.kind == PointerEventKind.cancel) {
+ // Only a release ends the drag. Slint also delivers `move`
+ // events here, so a plain `else` would drop the handle the
+ // instant the pointer travelled — grab, move, nothing happens.
+ root.grabbed = -1;
+ }
+ }
+
+ moved => {
+ if (root.grabbed >= 0) {
+ root.set-handle(root.grabbed,
+ root.from-x(self.mouse-x), root.from-y(self.mouse-y));
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/context-menu.slint b/engine/crates/concat/ui/primitives/context-menu.slint
new file mode 100644
index 00000000..040ed147
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/context-menu.slint
@@ -0,0 +1,215 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+
+// The right-click menu, ported from web/'s full context menu: an icon slot
+// every row shares, a label, a right-set shortcut hint, checkbox rows, group
+// labels, separators, and one row that may be red.
+//
+// Two departures from the reference, both forced:
+//
+// Submenus are gone. A Slint struct cannot hold an array, so a row cannot
+// carry its own children; the reference's Speed submenu is expressed here as a
+// group label with its options under it, which is a row type the design
+// already has. Flat also happens to suit a timeline — the menu is a list of
+// verbs about one clip, and burying half of them one level down would be worse
+// even where it were possible.
+//
+// The surface is sized by the caller rather than by its content. Summing the
+// row heights means looping over a model, which the expression language cannot
+// do; whoever builds the items knows what they add up to, and says so.
+
+/// What a row *is*. Only `action` is selectable.
+export enum MenuRow {
+ action,
+ /// a group heading, e.g. SPEED
+ label,
+ separator,
+}
+
+export struct MenuItemData {
+ /// Reported on select. Empty for anything that is not an action.
+ id: string,
+ label: string,
+ kind: MenuRow,
+ /// leading glyph; rows without one still align, the slot is always there
+ glyph: Glyph,
+ /// right-set hint, e.g. "Ctrl+C". Display only — bind the key yourself.
+ shortcut: string,
+ enabled: bool,
+ /// paints the row red, for the one row that destroys something
+ danger: bool,
+ /// turns the row into a checkbox row: the slot carries a tick, not a glyph
+ checkable: bool,
+ checked: bool,
+}
+
+/// Row heights, so the caller can add them up without guessing.
+export global MenuMetrics {
+ out property <length> action: 26px;
+ out property <length> label: 24px;
+ out property <length> separator: 9px;
+ /// the surface's own padding, top and bottom together
+ out property <length> padding: 8px;
+ out property <length> width: 212px;
+}
+
+export component ContextMenu inherits Rectangle {
+ in property <[MenuItemData]> items;
+ /// The summed height of `items` plus MenuMetrics.padding.
+ in property <length> menu-height;
+
+ callback selected(id: string);
+
+ /// Where the menu was asked for, in this element's own coordinates.
+ property <length> at-x;
+ property <length> at-y;
+
+ /// Opened by a token rather than a flag: the surface can be dismissed by a
+ /// click outside without telling anyone, so a boolean the caller sets would
+ /// go stale and the next request at the same spot would be a no-op.
+ in property <int> token;
+ in property <length> request-x;
+ in property <length> request-y;
+
+ changed token => {
+ // Nothing to show is not a menu. Whoever bumps the token may find it
+ // has no rows to offer — a clip that has gone, a selection with
+ // nothing to say — and an empty surface hanging under the pointer is
+ // worse than none. It also lets a caller bump unconditionally, which
+ // is what keeps the arming in lanes.slint honest.
+ if (root.token > 0 && root.items.length > 0) {
+ // Flipped back over the pointer near an edge, so the menu is
+ // always fully on screen and always touching the click.
+ root.at-x = root.request-x + MenuMetrics.width > root.width
+ ? Math.max(0px, root.request-x - MenuMetrics.width)
+ : root.request-x;
+ root.at-y = root.request-y + root.menu-height > root.height
+ ? Math.max(0px, root.request-y - root.menu-height)
+ : root.request-y;
+ surface.show();
+ }
+ }
+
+ background: transparent;
+
+ surface := PopupWindow {
+ x: root.at-x;
+ y: root.at-y;
+ width: MenuMetrics.width;
+ height: root.menu-height;
+ close-policy: close-on-click-outside;
+
+ Rectangle {
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+ clip: true;
+
+ VerticalLayout {
+ padding: 4px;
+ alignment: start;
+
+ for item in root.items: Rectangle {
+ height: item.kind == MenuRow.separator ? MenuMetrics.separator
+ : item.kind == MenuRow.label ? MenuMetrics.label
+ : MenuMetrics.action;
+
+ if item.kind == MenuRow.separator: Rectangle {
+ x: 6px;
+ y: (parent.height - 1px) / 2;
+ width: parent.width - 12px;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ if item.kind == MenuRow.label: Text {
+ x: 8px;
+ y: 0;
+ width: parent.width - 16px;
+ height: parent.height;
+ text: item.label;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ letter-spacing: 0.72px;
+ vertical-alignment: bottom;
+ overflow: elide;
+ }
+
+ if item.kind == MenuRow.action: row := Rectangle {
+ border-radius: Theme.r-xs;
+ background: !(touch.has-hover && item.enabled) ? Colors.transparent
+ : item.danger ? Theme.danger-soft
+ : Theme.field;
+
+ property <brush> ink: !item.enabled ? Theme.fg-dim
+ : (item.danger && touch.has-hover) ? Theme.danger
+ : Theme.fg;
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ spacing: 8px;
+
+ // A fixed slot even when a row has no mark, so
+ // every label starts on the same x. Ragged labels
+ // are what make a menu feel thrown together.
+ VerticalLayout {
+ alignment: center;
+ Rectangle {
+ width: 14px;
+ height: 14px;
+
+ if item.checkable && item.checked: Icon {
+ x: 0;
+ y: 0;
+ glyph: Glyph.check;
+ size: 13px;
+ tint: item.enabled ? Theme.accent : Theme.fg-dim;
+ }
+
+ if !item.checkable && item.glyph != Glyph.none: Icon {
+ x: 0;
+ y: 0;
+ glyph: item.glyph;
+ size: 13px;
+ tint: item.enabled ? Theme.fg-muted : Theme.fg-dim;
+ }
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: item.label;
+ color: row.ink;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if item.shortcut != "": Text {
+ text: item.shortcut;
+ color: item.enabled ? Theme.fg-dim : Theme.line-strong;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+ }
+
+ touch := TouchArea {
+ enabled: item.enabled;
+ mouse-cursor: pointer;
+ clicked => {
+ surface.close();
+ root.selected(item.id);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/focus-ring.slint b/engine/crates/concat/ui/primitives/focus-ring.slint
new file mode 100644
index 00000000..a6525d2d
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/focus-ring.slint
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+
+// Slint has no box-shadow, so the `--cp-focus` token is drawn as two rings:
+// a 1px accent outline on the control's own edge and a 2px soft halo just
+// outside it. Drop it in as the last child of a non-layout parent, where it
+// fills the parent and paints over everything without taking pointer events.
+export component FocusRing inherits Rectangle {
+ in property <bool> active;
+ in property <length> radius: Theme.r;
+
+ background: transparent;
+
+ Rectangle {
+ x: -2px;
+ y: -2px;
+ width: parent.width + 4px;
+ height: parent.height + 4px;
+ border-radius: root.radius + 2px;
+ border-width: 2px;
+ border-color: root.active ? Theme.accent-soft : Colors.transparent;
+ }
+
+ Rectangle {
+ border-radius: root.radius;
+ border-width: 1px;
+ border-color: root.active ? Theme.accent : Colors.transparent;
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/knob.slint b/engine/crates/concat/ui/primitives/knob.slint
new file mode 100644
index 00000000..e11dbdc6
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/knob.slint
@@ -0,0 +1,212 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt, Geom } from "../util.slint";
+import { FocusRing } from "focus-ring.slint";
+
+// Rotary control. Drag up/down to turn, wheel to nudge, double-click to reset.
+export component Knob inherits Rectangle {
+ in-out property <float> value;
+ in property <float> minimum: 0;
+ in property <float> maximum: 1;
+ in property <float> step: 0.01;
+ in property <int> precision: 2;
+ /// value restored on double-click
+ in property <float> default-value: 0;
+ /// diameter of the dial
+ in property <length> diameter: 54px;
+ /// vertical drag distance that sweeps the full range
+ in property <length> travel: 170px;
+ in property <bool> enabled: true;
+
+ callback changed(value: float);
+
+ property <bool> ring;
+
+ // 270deg of sweep with the dead zone at the bottom, the way hardware knobs read.
+ property <float> start-angle: 135;
+ property <float> sweep: 270;
+
+ property <float> span: (root.maximum - root.minimum) == 0 ? 1 : root.maximum - root.minimum;
+ property <float> fraction: Fmt.clamp((root.value - root.minimum) / root.span, 0, 1);
+ property <float> angle: root.start-angle + root.fraction * root.sweep;
+
+ // Path coordinates are unitless, so everything below is in viewbox units
+ // that map 1:1 onto pixels.
+ property <float> units: root.diameter / 1px;
+ property <float> centre: root.units / 2;
+ property <float> radius: root.centre - 4;
+
+ width: root.diameter;
+ height: root.diameter;
+ horizontal-stretch: 0;
+ opacity: root.enabled ? 1.0 : 0.45;
+
+ function apply(next: float) {
+ root.value = Fmt.round-to(Fmt.clamp(next, root.minimum, root.maximum), root.precision);
+ root.changed(root.value);
+ }
+
+ // body
+ Rectangle {
+ x: 2px;
+ y: 2px;
+ width: parent.width - 4px;
+ height: parent.height - 4px;
+ border-radius: self.width / 2;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.line;
+ }
+
+ // unfilled track
+ Path {
+ width: root.diameter;
+ height: root.diameter;
+ viewbox-width: root.units;
+ viewbox-height: root.units;
+ stroke: Theme.line-strong;
+ stroke-width: 3px;
+ stroke-line-cap: round;
+
+ MoveTo {
+ x: Geom.polar-x(root.centre, root.radius, root.start-angle);
+ y: Geom.polar-y(root.centre, root.radius, root.start-angle);
+ }
+ ArcTo {
+ radius-x: root.radius;
+ radius-y: root.radius;
+ x: Geom.polar-x(root.centre, root.radius, root.start-angle + root.sweep);
+ y: Geom.polar-y(root.centre, root.radius, root.start-angle + root.sweep);
+ large-arc: true;
+ sweep: true;
+ }
+ }
+
+ // filled arc, suppressed at zero so the arc never degenerates
+ if root.fraction > 0.001: Path {
+ width: root.diameter;
+ height: root.diameter;
+ viewbox-width: root.units;
+ viewbox-height: root.units;
+ stroke: Theme.accent;
+ stroke-width: 3px;
+ stroke-line-cap: round;
+
+ MoveTo {
+ x: Geom.polar-x(root.centre, root.radius, root.start-angle);
+ y: Geom.polar-y(root.centre, root.radius, root.start-angle);
+ }
+ ArcTo {
+ radius-x: root.radius;
+ radius-y: root.radius;
+ x: Geom.polar-x(root.centre, root.radius, root.angle);
+ y: Geom.polar-y(root.centre, root.radius, root.angle);
+ large-arc: root.fraction * root.sweep > 180;
+ sweep: true;
+ }
+ }
+
+ // needle
+ Path {
+ width: root.diameter;
+ height: root.diameter;
+ viewbox-width: root.units;
+ viewbox-height: root.units;
+ stroke: Theme.fg;
+ stroke-width: 2px;
+ stroke-line-cap: round;
+
+ MoveTo {
+ x: Geom.polar-x(root.centre, root.radius * 0.3, root.angle);
+ y: Geom.polar-y(root.centre, root.radius * 0.3, root.angle);
+ }
+ LineTo {
+ x: Geom.polar-x(root.centre, root.radius - 9, root.angle);
+ y: Geom.polar-y(root.centre, root.radius - 9, root.angle);
+ }
+ }
+
+ fs := FocusScope {
+ enabled: root.enabled;
+ // :focus-visible — keyboard focus only, see IconButton.
+ focus-gained(reason) => {
+ root.ring = reason == FocusReason.tab-navigation;
+ }
+ focus-lost(reason) => {
+ root.ring = false;
+ }
+ key-pressed(event) => {
+ if (event.text == Key.Home) {
+ root.apply(root.minimum);
+ return EventResult.accept;
+ }
+ if (event.text == Key.End) {
+ root.apply(root.maximum);
+ return EventResult.accept;
+ }
+ if (event.text == Key.UpArrow || event.text == Key.RightArrow) {
+ root.apply(root.value + root.step);
+ return EventResult.accept;
+ }
+ if (event.text == Key.DownArrow || event.text == Key.LeftArrow) {
+ root.apply(root.value - root.step);
+ return EventResult.accept;
+ }
+ if (event.text == Key.PageUp) {
+ root.apply(root.value + root.step * 10);
+ return EventResult.accept;
+ }
+ if (event.text == Key.PageDown) {
+ root.apply(root.value - root.step * 10);
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: ns-resize;
+
+ property <float> origin;
+ property <bool> travelled;
+ property <bool> shift;
+
+ pointer-event(event) => {
+ self.shift = event.modifiers.shift;
+ if (event.kind == PointerEventKind.down) {
+ fs.focus();
+ self.origin = root.value;
+ self.travelled = false;
+ }
+ }
+
+ moved => {
+ if (Math.abs((self.mouse-y - self.pressed-y) / 1px) > 3) {
+ self.travelled = true;
+ }
+ if (self.travelled) {
+ root.apply(self.origin
+ + (-(self.mouse-y - self.pressed-y) / root.travel)
+ * root.span * (self.shift ? 0.25 : 1));
+ }
+ }
+
+ double-clicked => {
+ root.apply(root.default-value);
+ }
+
+ scroll-event(event) => {
+ root.apply(root.value
+ + (event.delta-y > 0px ? 1 : -1) * root.step * (event.modifiers.shift ? 0.25 : 1));
+ return EventResult.accept;
+ }
+ }
+
+ FocusRing {
+ active: root.ring;
+ radius: root.diameter / 2;
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/level-meter.slint b/engine/crates/concat/ui/primitives/level-meter.slint
new file mode 100644
index 00000000..efd67f94
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/level-meter.slint
@@ -0,0 +1,106 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt } from "../util.slint";
+
+// Audio level meter. The green/amber/red ramp is painted at full length and
+// revealed by a clipping window, so a colour always means the same level
+// regardless of how far the bar has filled — the same trick the web version
+// plays with clip-path.
+//
+// The root takes whatever the row gives it and the track is drawn `thickness`
+// across, centred inside it. Pinning the root itself would need a binding that
+// reads its own height on one axis and a constant on the other, which Slint
+// resolves as a loop.
+export component LevelMeter inherits Rectangle {
+ /// current level, 0..1
+ in property <float> value;
+ /// peak-hold marker, 0..1; negative hides it
+ in property <float> peak: -1;
+ in property <bool> vertical;
+ /// track thickness; defaults to 6px horizontal, 8px vertical
+ in property <length> thickness: root.vertical ? 8px : 6px;
+
+ /// True while the pointer is over the meter. The caller uses this to run
+ /// the feed only while someone is looking at it — see the note on the
+ /// TouchArea at the bottom of this file.
+ out property <bool> hovered: hover.has-hover;
+
+ property <float> level: Fmt.clamp(root.value, 0, 1);
+ property <float> hold: Fmt.clamp(root.peak, 0, 1);
+
+ min-height: root.vertical ? 40px : root.thickness;
+ min-width: root.vertical ? root.thickness : 40px;
+ horizontal-stretch: root.vertical ? 0 : 1;
+ vertical-stretch: root.vertical ? 1 : 0;
+ background: transparent;
+
+ track := Rectangle {
+ x: root.vertical ? (root.width - root.thickness) / 2 : 0px;
+ y: root.vertical ? 0px : (root.height - root.thickness) / 2;
+ width: root.vertical ? root.thickness : root.width;
+ height: root.vertical ? root.height : root.thickness;
+ background: Theme.well;
+ border-radius: (root.vertical ? self.width : self.height) / 2;
+ clip: true;
+
+ // reveal window
+ Rectangle {
+ x: 0px;
+ y: root.vertical ? track.height * (1 - root.level) : 0px;
+ width: root.vertical ? track.width : track.width * root.level;
+ height: root.vertical ? track.height * root.level : track.height;
+ clip: true;
+
+ // Deliberately not animated. The level already arrives at the feed
+ // rate, so animating only interpolates between samples that are
+ // smooth already — and because it re-arms on every sample it is
+ // permanently in flight, which pins Slint's render loop to the
+ // monitor refresh rate rather than the feed rate, and each of those
+ // frames repaints the whole window — see the note below. A real programme meter is sample-stepped anyway.
+
+ // full-length ramp, offset back so its stops stay anchored to the track
+ Rectangle {
+ x: 0px;
+ y: root.vertical ? -track.height * (1 - root.level) : 0px;
+ width: track.width;
+ height: track.height;
+ background: root.vertical
+ ? @linear-gradient(0deg,
+ Theme.meter-low 0%, Theme.meter-low 58%,
+ Theme.meter-mid 66%, Theme.meter-mid 80%,
+ Theme.meter-high 88%, Theme.meter-high 100%)
+ : @linear-gradient(90deg,
+ Theme.meter-low 0%, Theme.meter-low 58%,
+ Theme.meter-mid 66%, Theme.meter-mid 80%,
+ Theme.meter-high 88%, Theme.meter-high 100%);
+ }
+ }
+
+ if root.peak >= 0: Rectangle {
+ x: root.vertical ? 0px : track.width * root.hold - 1px;
+ y: root.vertical ? track.height * (1 - root.hold) - 1px : 0px;
+ width: root.vertical ? track.width : 2px;
+ height: root.vertical ? 2px : track.height;
+ background: Theme.fg;
+ opacity: 0.85;
+ }
+ }
+
+ // Hover is reported rather than acted on, because the samples come from
+ // Rust and only Rust can stop producing them.
+ //
+ // A level that changes 30 times a second is an animation whatever drives
+ // it: every sample dirties a property, and neither renderer this builds
+ // against draws partially, so each one repaints the whole window. Ungated that is a
+ // permanent 30fps redraw of a 1120x900 window to wiggle one bar — the app
+ // never goes idle. Gating it here rather than on the enclosing Section is
+ // the cheaper of the two: the section also covers the volume and trim
+ // knobs and the M/S buttons, so it would hold the feed open through every
+ // adjustment made near the meter, while this box is only the meter itself.
+ //
+ // It covers the root, not the track, so the target is the full 28px row
+ // the layout hands us and not the 6px bar.
+ hover := TouchArea { }
+}
diff --git a/engine/crates/concat/ui/primitives/modal.slint b/engine/crates/concat/ui/primitives/modal.slint
new file mode 100644
index 00000000..a2793682
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/modal.slint
@@ -0,0 +1,464 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+
+// The dialog layer this tree did not have.
+//
+// Slint has no portal, so a modal cannot be declared where it belongs and
+// rendered somewhere else: it is placed once at the window root, filling it,
+// and shown by a property. Everything under it keeps existing — a modal is a
+// scrim over the app, not a replacement for it — which is why the scrim takes
+// pointer events rather than merely painting over them.
+export component Modal inherits Rectangle {
+ in property <bool> open;
+ in property <string> title;
+ in property <Glyph> glyph;
+ /// A fact about what the sheet is acting on, set against the trailing edge
+ /// of its header — web/'s panels carry theirs the same way.
+ in property <string> note;
+ /// False while a job is running: a dialog you can dismiss out from under an
+ /// export is a dialog that loses the export.
+ in property <bool> dismissable: true;
+ in property <length> surface-width: 460px;
+ /// Zero fits the content, which is what a short dialog wants; a fixed
+ /// height is for the ones with their own scrolling body.
+ in property <length> surface-height: 0px;
+
+ callback closed();
+
+ visible: root.open;
+ // Dark rather than blurred: Slint has no backdrop filter, and a scrim that
+ // only dims is honest about that where a fake blur would not be.
+ background: Theme.overlay;
+
+ // Declared first, so the surface and everything in it sits above and takes
+ // its own presses. A click that lands here landed outside the dialog.
+ TouchArea {
+ clicked => {
+ if (root.dismissable) {
+ root.closed();
+ }
+ }
+ }
+
+ surface := Rectangle {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ width: root.surface-width;
+ height: root.surface-height > 0px ? root.surface-height : body.preferred-height;
+ background: Theme.panel;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r-xl;
+ clip: true;
+
+ // Swallows presses that land on the dialog, so they do not reach the
+ // scrim underneath and dismiss it.
+ TouchArea { }
+
+ body := VerticalLayout {
+ Rectangle {
+ height: 42px;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ // The note on one edge and the close on the other, so the
+ // centred title has matching weight either side of it rather
+ // than being pushed off true by whichever one is longer.
+ HorizontalLayout {
+ padding-left: 14px;
+ padding-right: 12px;
+ spacing: 8px;
+
+ if root.note != "": Text {
+ text: root.note;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ // Gone, not disabled, while a job is running: there is no
+ // safe answer to pressing it, so it should not be there to
+ // press.
+ if root.dismissable: VerticalLayout {
+ alignment: center;
+ Rectangle {
+ width: 26px;
+ height: 26px;
+ border-radius: Theme.r-sm;
+ background: shut.has-hover ? Theme.field : Colors.transparent;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.close;
+ size: 13px;
+ tint: shut.has-hover ? Theme.fg : Theme.fg-muted;
+ }
+
+ shut := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.closed(); }
+ }
+ }
+ }
+ }
+
+ // Placed against the whole strip rather than laid out, so it
+ // stays centred in the sheet and not in whatever space the
+ // note and the close button leave over — the same trick the
+ // window's own title bar uses for the project name.
+ centre := HorizontalLayout {
+ x: (parent.width - self.preferred-width) / 2;
+ y: 0;
+ width: self.preferred-width;
+ height: parent.height;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.glyph;
+ size: 16px;
+ tint: Theme.accent;
+ }
+ }
+
+ Text {
+ text: root.title;
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+ }
+ }
+
+ @children
+ }
+ }
+}
+
+// The push a dialog is built around.
+//
+// Four tones, from web/'s button: `default` is a bordered field, `primary`
+// fills with the accent, `ghost` is bare until hovered, and `danger` keeps its
+// normal ink and turns red only under the pointer — a row of permanently red
+// text is a row of alarms, where the warning belongs at the moment of pressing.
+export component Button inherits Rectangle {
+ in property <string> label;
+ in property <Glyph> glyph;
+ /// the one action the dialog exists for
+ in property <bool> primary;
+ in property <bool> danger;
+ /// bare until hovered, for a secondary action beside a real one
+ in property <bool> ghost;
+ in property <bool> enabled: true;
+ /// fill the width it is given, for a footer's single action
+ in property <bool> block;
+ /// 34px instead of 28px, for the action a sheet is built around
+ in property <bool> large;
+
+ callback clicked();
+
+ property <length> gap: root.glyph == Glyph.none ? 0px : 6px;
+ property <length> mark: root.glyph == Glyph.none ? 0px : 14px;
+ property <bool> lit: touch.has-hover && root.enabled;
+ /// the red the danger tone hovers into — a dark wash, not a fill
+ property <color> danger-wash: Theme.danger-wash;
+ property <color> danger-edge: Theme.danger-edge;
+
+ min-height: root.large ? 34px : 28px;
+ max-height: root.large ? 34px : 28px;
+ horizontal-stretch: root.block ? 1 : 0;
+ // From the label's *preferred* width, never its actual one: the layout
+ // below sizes the label from this button's width, so reading back the
+ // result is a loop.
+ min-width: root.block ? 0px
+ : text.preferred-width + root.mark + root.gap + (root.large ? 32px : 24px);
+ border-radius: Theme.r;
+ opacity: root.enabled ? 1.0 : 0.45;
+ border-width: root.ghost ? 0px : 1px;
+ border-color: root.primary ? (root.lit ? Theme.accent-hover : Theme.accent)
+ : (root.danger && root.lit) ? root.danger-edge
+ : root.lit ? Theme.line-strong
+ : Theme.line;
+ background: root.primary ? (root.lit ? Theme.accent-hover : Theme.accent)
+ : root.ghost ? (root.lit ? Theme.field : Colors.transparent)
+ : (root.danger && root.lit) ? root.danger-wash
+ : root.lit ? Theme.field-hover
+ : Theme.field;
+
+ animate background, border-color { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ property <brush> ink: root.primary ? Theme.on-accent
+ : root.ghost ? (root.lit ? Theme.fg : Theme.fg-muted)
+ : Theme.fg;
+
+ HorizontalLayout {
+ alignment: center;
+ spacing: root.gap;
+
+ if root.glyph != Glyph.none: VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.glyph;
+ size: 14px;
+ tint: root.ink;
+ }
+ }
+
+ text := Text {
+ text: root.label;
+ color: root.ink;
+ font-size: root.large ? Theme.fs-lg : Theme.fs;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+// A determinate bar. Nothing indeterminate: every job in this app can say how
+// far along it is, and a barber's pole for one that can is a lie.
+export component Progress inherits Rectangle {
+ in property <float> value;
+ /// Finished: the bar turns green rather than staying accent, so a glance
+ /// tells you it is over without reading the row above it.
+ in property <bool> done;
+
+ height: 4px;
+ border-radius: 2px;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.line;
+ clip: true;
+
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width * Math.clamp(root.value, 0, 1);
+ height: parent.height;
+ border-radius: 2px;
+ background: root.done ? Theme.green : Theme.accent;
+ }
+}
+
+// A group of rows inside a sheet, with a hairline above it.
+//
+// The heading is plain 13px in normal ink, not the small dim capitals a panel
+// uses. A dialog is one screen: its groups are landmarks in a short list, and
+// shouting at each other in capitals is exactly what they do not need to do.
+//
+// A collapsible group's header carries a raised tone as well as a chevron, so
+// the colour says "this bar does something" before the mark is even read —
+// which is why a plain group must not have it.
+export component DialogSection inherits VerticalLayout {
+ in property <string> title;
+ in property <bool> collapsible;
+ /// Shown in the header only while folded, so a closed group still reports
+ /// what it is holding.
+ in property <string> summary;
+ in-out property <bool> open: true;
+ /// suppress the leading hairline, for the first group in a sheet
+ in property <bool> first;
+
+ if !root.first: Rectangle {
+ height: 1px;
+ background: Theme.line;
+ }
+
+ Rectangle {
+ height: 36px;
+ background: !root.collapsible ? Colors.transparent
+ : head.has-hover ? Theme.field
+ : Theme.raised;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ head := TouchArea {
+ enabled: root.collapsible;
+ mouse-cursor: pointer;
+ clicked => { root.open = !root.open; }
+ }
+
+ HorizontalLayout {
+ padding-left: 14px;
+ padding-right: 14px;
+ spacing: 6px;
+
+ // web/ rotates one right-chevron through 90 degrees. Slint puts
+ // `rotation-angle` on Image and Path only, and an Icon is neither,
+ // so the two marks are swapped instead — the same two states, just
+ // without the quarter turn between them.
+ if root.collapsible: VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.open ? Glyph.chevron-down : Glyph.chevron-right;
+ size: 13px;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ Text {
+ text: root.title;
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ if root.collapsible && !root.open && root.summary != "": Text {
+ text: root.summary;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+ }
+
+ // Collapsed by height rather than by dropping out of the tree: `@children`
+ // cannot appear inside a conditional, so the body is always built and the
+ // clip is what hides it. It also leaves the height as the thing to animate
+ // the day this grows a transition.
+ Rectangle {
+ height: root.open ? body.preferred-height : 0px;
+ clip: true;
+
+ // An equal 14px inset on every side, matching the sheet's own gutter.
+ body := VerticalLayout {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: self.preferred-height;
+ padding: 14px;
+ spacing: 6px;
+ @children
+ }
+ }
+}
+
+// One line of a sheet's form: a fixed label column so every control in the
+// group starts at the same x, whatever its label says.
+export component DialogRow inherits HorizontalLayout {
+ in property <string> label;
+
+ min-height: 28px;
+ spacing: 10px;
+
+ if root.label != "": Text {
+ width: 78px;
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ HorizontalLayout {
+ spacing: 6px;
+ @children
+ }
+}
+
+// A single-line field. No border: the ground carries it, and the accent ring
+// only appears once it is being typed into.
+export component Field inherits Rectangle {
+ /// The value the caller owns. One-way: what is typed comes back through
+ /// `edited`, and this is re-seeded from whatever the caller does with it.
+ in property <string> value;
+ in property <string> placeholder;
+ /// numbers, paths and names read better in the technical face
+ in property <bool> technical;
+
+ callback edited(text: string);
+
+ // A layout owns its children's size on both axes: it reads min, preferred
+ // and max, and a bare `height` is none of those. Without a max the row
+ // stretches this to whatever the tallest thing beside it made it, which is
+ // exactly what left the field taller than the Browse button next to it.
+ min-height: 28px;
+ max-height: 28px;
+ horizontal-stretch: 1;
+ border-radius: Theme.r;
+ background: input.has-focus ? Theme.field
+ : touch.has-hover ? Theme.field-hover
+ : Theme.field;
+ border-width: 1px;
+ border-color: input.has-focus ? Theme.accent : Colors.transparent;
+ clip: true;
+
+ animate background, border-color { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ // The text being edited, held separately from `value`.
+ //
+ // A TextInput writes to whatever property it is two-way bound to, and an
+ // assignment in Slint replaces the binding the caller declared — so
+ // binding it straight to `value` works for exactly one keystroke and then
+ // goes deaf to the model. This is seeded instead, and never while the
+ // field has focus, so a republish mid-sentence cannot yank the caret.
+ property <string> draft;
+ function seed() {
+ root.draft = root.value;
+ }
+ init => { root.seed(); }
+ changed value => {
+ if (!input.has-focus) {
+ root.seed();
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: MouseCursor.text;
+ clicked => { input.focus(); }
+ }
+
+ input := TextInput {
+ x: 10px;
+ y: (parent.height - self.height) / 2;
+ width: parent.width - 20px;
+ // Without this the input takes the whole field's height — a child of a
+ // Rectangle fills it by default — so the centring above resolves to
+ // zero and the text draws hard against the top edge. Same fix, and the
+ // same reason, as SearchField in the inspector.
+ height: self.preferred-height;
+ text <=> root.draft;
+ color: Theme.fg;
+ font-family: root.technical ? Theme.font-technical : Theme.font;
+ font-size: Theme.fs;
+ single-line: true;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ edited => { root.edited(self.text); }
+ }
+
+ if root.draft == "" && !input.has-focus: Text {
+ x: 10px;
+ y: (parent.height - self.height) / 2;
+ height: self.preferred-height;
+ text: root.placeholder;
+ color: Theme.fg-dim;
+ font-size: Theme.fs;
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/number-field.slint b/engine/crates/concat/ui/primitives/number-field.slint
new file mode 100644
index 00000000..dcf67ff6
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/number-field.slint
@@ -0,0 +1,228 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt } from "../util.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { FocusRing } from "focus-ring.slint";
+
+// The workhorse of an inspector: drag left/right anywhere on the field to
+// scrub, click to type. Shift coarsens the scrub 10x, Alt refines it 10x.
+//
+// `value` is meant to be bound two-way (`value <=> some-property`), which is
+// how Slint expresses the controlled-component contract React gets from
+// `value` + `onChange`. `changed` is there for side effects.
+export component NumberField inherits Rectangle {
+ in-out property <float> value;
+ in property <float> minimum: -1000000000;
+ in property <float> maximum: 1000000000;
+ /// amount added per arrow key press, and per `px-per-step` of drag
+ in property <float> step: 1;
+ /// decimals kept on commit
+ in property <int> precision: 0;
+ /// horizontal drag distance that advances the value by one `step`
+ in property <length> px-per-step: 2px;
+ /// leading adornment: an axis letter or a unit
+ in property <string> prefix;
+ /// leading adornment as a glyph, e.g. the angle mark on a rotation field
+ in property <Glyph> prefix-glyph: Glyph.none;
+ /// appended to the displayed number, e.g. `%` or `s`
+ in property <string> suffix;
+ /// render the keyframe diamond on the trailing edge
+ in property <bool> keyframe;
+ in-out property <bool> keyframed;
+ in property <bool> enabled: true;
+
+ callback changed(value: float);
+ callback keyframe-toggled(on: bool);
+
+ // Display and parsing are overridable callbacks, the way the React version
+ // takes `format` and `parse` props. Defaults round to `precision` and
+ // append `suffix`.
+ pure callback format(value: float) -> string;
+ format(v) => {
+ return "\{Fmt.round-to(v, root.precision)}\{root.suffix}";
+ }
+
+ pure callback parse(text: string) -> float;
+ parse(t) => {
+ return t.is-float() ? t.to-float() : root.value;
+ }
+
+ property <string> display: root.format(root.value);
+ property <length> keyframe-slot: root.keyframe ? 27px : 0px;
+
+ height: Theme.h;
+ min-width: 44px;
+ horizontal-stretch: 1;
+ border-radius: Theme.r;
+ opacity: root.enabled ? 1.0 : 0.45;
+ background: (ti.has-focus || (scrub.has-hover && root.enabled)) ? Theme.field-hover : Theme.field;
+
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ // The TextInput's own `text` binding is dropped the first time it is
+ // assigned, so keep it in step with the value explicitly from here on.
+ changed display => {
+ if (!ti.has-focus) {
+ ti.text = root.display;
+ }
+ }
+
+ function apply(next: float, fine: bool) {
+ root.value = Fmt.round-to(Fmt.clamp(next, root.minimum, root.maximum),
+ fine ? root.precision + 1 : root.precision);
+ root.changed(root.value);
+ }
+
+ function nudge(direction: float, shift: bool, alt: bool) {
+ root.apply(root.value + direction * root.step * (shift ? 10 : alt ? 0.1 : 1), alt);
+ }
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 4px;
+ spacing: 5px;
+
+ if root.prefix != "": Text {
+ text: root.prefix;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+
+ if root.prefix-glyph != Glyph.none: VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.prefix-glyph;
+ size: 11px;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ ti := TextInput {
+ horizontal-stretch: 1;
+ text: root.display;
+ color: Theme.fg;
+ // A number, so the technical face — this is the control the rest
+ // of the app reaches for whenever it needs a dimension typed.
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ single-line: true;
+ enabled: root.enabled;
+ vertical-alignment: center;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ changed has-focus => {
+ if (self.has-focus) {
+ self.text = root.display;
+ self.select-all();
+ } else {
+ root.apply(root.parse(self.text), false);
+ self.text = root.display;
+ }
+ }
+
+ accepted => {
+ self.clear-focus();
+ }
+
+ key-pressed(event) => {
+ if (event.text == Key.Escape) {
+ // put the untouched display back, so the blur commits a no-op
+ self.text = root.display;
+ self.clear-focus();
+ return EventResult.accept;
+ }
+ if (event.text == Key.UpArrow || event.text == Key.DownArrow) {
+ root.nudge(event.text == Key.UpArrow ? 1 : -1,
+ event.modifiers.shift, event.modifiers.alt);
+ self.text = root.display;
+ self.select-all();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ // Wrapped, because a layout start-aligns a fixed-size child on the
+ // cross axis: an 18px button in a 28px field would ride 5px high.
+ if root.keyframe: VerticalLayout {
+ alignment: center;
+
+ Rectangle {
+ width: 18px;
+ height: 18px;
+ border-radius: Theme.r-xs;
+ background: kf.has-hover ? Theme.field-active : Colors.transparent;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.keyframe;
+ size: 10px;
+ filled: root.keyframed;
+ tint: root.keyframed ? Theme.accent
+ : kf.has-hover ? Theme.fg-muted
+ : Theme.fg-dim;
+ }
+
+ kf := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => {
+ root.keyframed = !root.keyframed;
+ root.keyframe-toggled(root.keyframed);
+ }
+ }
+ }
+ }
+ }
+
+ // Covers the text but stops short of the keyframe diamond, and steps aside
+ // once the field is being typed into so the caret and selection work. This
+ // is the Slint equivalent of the web version's preventDefault() on
+ // pointerdown: focus is withheld until the gesture resolves as a click.
+ scrub := TouchArea {
+ x: 0;
+ y: 0;
+ width: root.width - root.keyframe-slot;
+ height: root.height;
+ enabled: root.enabled && !ti.has-focus;
+ mouse-cursor: ew-resize;
+
+ property <float> origin;
+ property <bool> travelled;
+ property <bool> shift;
+ property <bool> alt;
+
+ pointer-event(event) => {
+ self.shift = event.modifiers.shift;
+ self.alt = event.modifiers.alt;
+ if (event.kind == PointerEventKind.down) {
+ self.origin = root.value;
+ self.travelled = false;
+ } else if (event.kind == PointerEventKind.up && !self.travelled) {
+ ti.focus();
+ }
+ }
+
+ moved => {
+ if (Math.abs((self.mouse-x - self.pressed-x) / 1px) > 3) {
+ self.travelled = true;
+ }
+ if (self.travelled) {
+ root.apply(self.origin
+ + ((self.mouse-x - self.pressed-x) / root.px-per-step)
+ * root.step * (self.shift ? 10 : self.alt ? 0.1 : 1),
+ self.alt);
+ }
+ }
+ }
+
+ FocusRing {
+ active: ti.has-focus;
+ radius: Theme.r;
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/panel.slint b/engine/crates/concat/ui/primitives/panel.slint
new file mode 100644
index 00000000..f2b34366
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/panel.slint
@@ -0,0 +1,301 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { FocusRing } from "focus-ring.slint";
+import { Tip } from "tooltip.slint";
+
+// The floating inspector shell.
+export component Panel inherits Rectangle {
+ width: 320px;
+ background: Theme.panel;
+ border-width: 1px;
+ border-color: Theme.line;
+ border-radius: Theme.r-lg;
+ clip: true;
+
+ VerticalLayout {
+ alignment: start;
+ @children
+ }
+}
+
+// Panel header: a title on the leading edge, `@children` as actions on the
+// trailing one.
+export component PanelHeader inherits Rectangle {
+ in property <string> title;
+
+ height: 42px;
+
+ HorizontalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 8px;
+
+ Text {
+ text: root.title;
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+
+ Rectangle {
+ horizontal-stretch: 1;
+ }
+
+ HorizontalLayout {
+ spacing: 2px;
+ @children
+ }
+ }
+}
+
+// A titled group of rows, separated from its neighbours by a hairline.
+//
+// React passes the header actions and the body as two props; a Slint component
+// has a single `@children` slot, so the two halves are separate components the
+// caller nests. That also makes collapsing explicit — an `if` on the body drops
+// it out of the layout, which is what `{showBody && ...}` does in JSX.
+//
+// Section {
+// hdr := SectionHeader { title: "Layout"; collapsible: true; }
+// if hdr.open: SectionBody { Row { ... } }
+// }
+export component Section inherits VerticalLayout {
+ /// suppress the leading hairline, for the first section in a panel
+ in property <bool> first;
+
+ padding-bottom: 8px;
+
+ if !root.first: Rectangle {
+ height: 1px;
+ background: Theme.line;
+ }
+
+ @children
+}
+
+export component SectionHeader inherits Rectangle {
+ in property <string> title;
+ in property <bool> collapsible;
+ /// Shown in the header only while the section is folded, so a closed
+ /// section still reports what it is holding. Folding a panel to get it out
+ /// of the way should not also hide what it was set to.
+ in property <string> summary;
+ in-out property <bool> open: true;
+
+ height: 36px;
+
+ // Sits below the row so action buttons, added later in the tree, stay on
+ // top of it; the title Text itself takes no pointer events.
+ if root.collapsible: TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.open = !root.open;
+ }
+ }
+
+ HorizontalLayout {
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 8px;
+
+ Text {
+ text: root.title;
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+
+ if root.collapsible: VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.open ? Glyph.chevron-down : Glyph.chevron-right;
+ size: 12px;
+ tint: Theme.fg-muted;
+ }
+ }
+
+ Rectangle {
+ horizontal-stretch: 1;
+ }
+
+ if root.collapsible && !root.open && root.summary != "": Text {
+ text: root.summary;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ HorizontalLayout {
+ spacing: 2px;
+ @children
+ }
+ }
+}
+
+export component SectionBody inherits VerticalLayout {
+ spacing: Theme.gap;
+ @children
+}
+
+// One line of the inspector form: muted label on the leading edge, controls on
+// the trailing one. Controls with `horizontal-stretch: 1` split the remaining
+// width evenly, which is what gives paired fields (X/Y, W/H) equal columns.
+export component Row inherits HorizontalLayout {
+ in property <string> label;
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 8px;
+ min-height: Theme.h;
+
+ if root.label != "": Text {
+ width: Theme.label-w;
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ HorizontalLayout {
+ spacing: Theme.gap;
+ @children
+ }
+}
+
+export component IconButton inherits Rectangle {
+ in property <Glyph> glyph;
+ /// text label instead of a glyph, for toggles like M / S
+ in property <string> text;
+ /// accessible name; also what a tooltip would show
+ in property <string> label;
+ in property <bool> checked;
+ in property <bool> enabled: true;
+ /// Destructive action: the button states in red instead of the neutral
+ /// hover, so a delete announces itself before it is pressed rather than
+ /// after. Idle it stays muted like any other — a permanently red button in
+ /// a tray is noise.
+ in property <bool> danger;
+ /// The one action in a tray worth reaching for blind — the monitor's play
+ /// button, and nothing else so far. Carries the accent at rest, not only
+ /// on hover, which is what separates it from `checked`.
+ in property <bool> accent;
+ /// widen past the square default
+ in property <bool> wide;
+ in property <length> icon-size: 14px;
+
+ callback clicked();
+
+ property <bool> lit: touch.has-hover && root.enabled;
+ // Checked is a lime *glyph* on a darker chip, never dark ink on a lime
+ // slab and not a lime-tinted one either. Both references are explicit
+ // about this — "an activated tool button: lime glyph on a slightly darker
+ // surface, so the toolbar reads as 'this mode is on' without shouting" —
+ // and with the accent itself now lime, even a 20% tint behind eight of
+ // them turned a tray into a row of green slabs. The glyph carries the
+ // state; the chip only has to sit back far enough to be seen behind it.
+ property <brush> tint: root.checked ? Theme.accent
+ : (root.lit && root.danger) ? Theme.danger
+ : root.accent ? (root.lit ? Theme.accent-hover : Theme.accent)
+ : root.lit ? Theme.fg
+ : Theme.fg-muted;
+ property <length> side: 26px;
+ property <bool> ring;
+
+ // Fixed across, free along. A Slint layout start-aligns a fixed-size child
+ // on the cross axis — there is no `align-items: center` — so the root takes
+ // whatever height the row hands it and the chip centres itself inside,
+ // which keeps the button honest in a 28px row and a 42px header alike.
+ width: root.wide ? 40px : root.side;
+ min-height: root.side;
+
+ // First in the tree, so the TouchArea below sits above it. A FocusScope
+ // takes pointer events to focus itself, and one declared last would eat the
+ // click before the button ever saw it — focus ring, no action.
+ fs := FocusScope {
+ enabled: root.enabled;
+ // :focus-visible — a ring for keyboard focus only. Slint keeps focus
+ // after a click and has no equivalent rule, so the reason is what
+ // separates a Tab from a press.
+ focus-gained(reason) => {
+ root.ring = reason == FocusReason.tab-navigation;
+ }
+ focus-lost(reason) => {
+ root.ring = false;
+ }
+ key-pressed(event) => {
+ if (event.text == " " || event.text == "\n") {
+ root.clicked();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ chip := Rectangle {
+ y: (root.height - root.side) / 2;
+ width: root.width;
+ height: root.side;
+ border-radius: Theme.r-sm;
+ opacity: root.enabled ? 1.0 : 0.4;
+ background: root.checked ? Theme.well
+ : !root.enabled ? Colors.transparent
+ : (touch.has-hover && root.danger) ? Theme.danger-soft
+ : (touch.has-hover && root.accent) ? Theme.accent-soft
+ : touch.pressed ? Theme.field-active
+ : touch.has-hover ? Theme.field
+ : Colors.transparent;
+
+ animate background {
+ duration: 100ms;
+ easing: cubic-bezier(0.4, 0, 0.2, 1);
+ }
+
+ if root.glyph != Glyph.none: Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: root.glyph;
+ size: root.icon-size;
+ tint: root.tint;
+ }
+
+ if root.text != "": Text {
+ text: root.text;
+ color: root.tint;
+ font-size: Theme.fs;
+ horizontal-alignment: center;
+ vertical-alignment: center;
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => {
+ fs.focus();
+ root.clicked();
+ }
+ }
+
+ // `label` was already the accessible name and already said it was
+ // "what a tooltip would show". This is that tooltip. Hover is taken
+ // from the TouchArea rather than from `enabled`, so a greyed-out
+ // button still explains itself — which is the moment the explanation
+ // is worth most.
+ Tip {
+ text: root.label;
+ active: touch.has-hover;
+ }
+
+ FocusRing {
+ active: root.ring;
+ radius: Theme.r-sm;
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/primitives.slint b/engine/crates/concat/ui/primitives/primitives.slint
new file mode 100644
index 00000000..1bc6fdca
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/primitives.slint
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// Barrel module, the counterpart of web/src/primitives/index.ts. Import from
+// here rather than reaching into individual files.
+export { NumberField } from "number-field.slint";
+export { Stepper } from "stepper.slint";
+export { SegmentedControl } from "segmented-control.slint";
+export { Select } from "select.slint";
+export { Knob } from "knob.slint";
+export { BezierEditor } from "bezier-editor.slint";
+export { LevelMeter } from "level-meter.slint";
+export { Panel, PanelHeader, Section, SectionHeader, SectionBody, Row, IconButton } from "panel.slint";
+export { FocusRing } from "focus-ring.slint";
+export { ContextMenu, MenuItemData, MenuMetrics, MenuRow } from "context-menu.slint";
+export { Modal, Button, Progress, DialogSection, DialogRow, Field } from "modal.slint";
+export { ThinScrollbar } from "scrollbar.slint";
+export { Glyph, Icon } from "../icons.slint";
+export { Theme } from "../theme/theme.slint";
+export { Fmt, Curves, Geom, Bezier, Payload } from "../util.slint";
+export { Tip, Tips, TooltipLayer } from "tooltip.slint";
+export { ToastData, ToastLayer } from "toast.slint";
diff --git a/engine/crates/concat/ui/primitives/scrollbar.slint b/engine/crates/concat/ui/primitives/scrollbar.slint
new file mode 100644
index 00000000..4cf4fa04
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/scrollbar.slint
@@ -0,0 +1,98 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+
+// The thin scrollbar, ported from the reference's `thin-scroll` utility.
+//
+// Its whole shape is in four declarations there: an 8px gutter, a transparent
+// track, no buttons and no corner, and a thumb in `hairline-strong` that is
+// fully rounded and inset with `border: 2px solid transparent` plus
+// `background-clip: content-box` — which is the CSS way of saying the visible
+// thumb is 4px wide and centred in a gutter twice that. So the gutter is a hit
+// target and the mark inside it is small enough to sit over content without
+// ever being mistaken for it.
+//
+// It is a control, not an indicator: the reference's is a real scrollbar and
+// can be dragged, and a bar that looks grabbable and is not is worse than none.
+export component ThinScrollbar inherits Rectangle {
+ /// visible extent of the thing being scrolled
+ in property <length> viewport;
+ /// its full extent
+ in property <length> content;
+ /// how far down it is parked, 0..overflow
+ in property <length> offset;
+ /// Floor on the thumb, so a very long list still leaves something to grab.
+ in property <length> min-thumb: 24px;
+ /// Ceiling, as a share of the gutter. 1 is the honest proportion — the
+ /// thumb is as much of the bar as the viewport is of the content — and is
+ /// right for a list that scrolls by pages. A stack that overflows by one
+ /// row would draw a thumb filling all but a few pixels of the gutter under
+ /// that rule, which is a slab that happens to be a control; capping it
+ /// costs proportionality and buys a bar that reads as one.
+ in property <float> max-thumb: 1.0;
+
+ callback scrolled(offset: length);
+
+ property <length> overflow: Math.max(0px, root.content - root.viewport);
+ property <length> thumb-h: Math.max(root.min-thumb,
+ Math.min(root.viewport * root.max-thumb,
+ root.viewport * root.viewport / Math.max(root.content, 1px)));
+ property <length> travel: Math.max(0px, root.viewport - root.thumb-h);
+ property <length> thumb-y: root.overflow > 0px
+ ? root.travel * Math.min(root.offset, root.overflow) / root.overflow
+ : 0px;
+
+ width: 8px;
+ background: transparent;
+ /// Nothing to scroll, nothing to draw. A permanent full-height thumb only
+ /// says "this does not scroll", which the absence of a bar says better.
+ visible: root.overflow > 0px;
+
+ thumb := Rectangle {
+ x: 2px;
+ y: root.thumb-y;
+ width: 4px;
+ height: root.thumb-h;
+ border-radius: 2px;
+ background: (grab.pressed || grab.has-hover) ? Theme.fg-dim : Theme.line-strong;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ // Over the whole gutter rather than the thumb: the thumb moves as it is
+ // dragged, and a hit area that travels with it feeds its own motion back
+ // into itself — the same reason the workspace splitters measure in window
+ // coordinates.
+ grab := TouchArea {
+ property <length> origin;
+ property <length> from;
+
+ mouse-cursor: default;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ self.origin = self.absolute-position.y + self.mouse-y;
+ // Pressing the track jumps the thumb to the pointer and then
+ // keeps dragging from there, so one gesture does both.
+ if (self.mouse-y < root.thumb-y || self.mouse-y > root.thumb-y + root.thumb-h) {
+ self.from = root.travel > 0px
+ ? root.overflow * Math.max(0px, self.mouse-y - root.thumb-h / 2)
+ / root.travel
+ : 0px;
+ root.scrolled(Math.max(0px, Math.min(root.overflow, self.from)));
+ } else {
+ self.from = root.offset;
+ }
+ }
+ }
+
+ moved => {
+ if (root.travel > 0px) {
+ root.scrolled(Math.max(0px, Math.min(root.overflow,
+ self.from + (self.absolute-position.y + self.mouse-y - self.origin)
+ * root.overflow / root.travel)));
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/segmented-control.slint b/engine/crates/concat/ui/primitives/segmented-control.slint
new file mode 100644
index 00000000..0b7479ae
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/segmented-control.slint
@@ -0,0 +1,107 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { FocusRing } from "focus-ring.slint";
+
+// Single-select tab row with a thumb that slides to the active segment.
+//
+// The React version measures each button to place the thumb because the
+// segments are `flex: 1 1 0`. Slint lays them out from the same rule, so the
+// geometry is computed directly instead of observed.
+export component SegmentedControl inherits Rectangle {
+ in property <[string]> options;
+ in-out property <int> current;
+ in property <bool> enabled: true;
+
+ callback changed(index: int);
+
+ property <bool> ring;
+
+ // 1px border + 2px padding, so the track insets by 3px on every side. A
+ // Slint border is drawn inside the bounds but children still measure from
+ // the outer edge, so the border has to be added in by hand.
+ property <length> inset: 3px;
+ property <length> seg-w: (root.width - 2 * root.inset) / Math.max(root.options.length, 1);
+
+ height: Theme.h;
+ min-width: 120px;
+ horizontal-stretch: 1;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.line;
+ border-radius: Theme.r;
+ opacity: root.enabled ? 1.0 : 0.45;
+
+ function select(index: int) {
+ if (index >= 0 && index < root.options.length) {
+ root.current = index;
+ root.changed(index);
+ }
+ }
+
+ fs := FocusScope {
+ enabled: root.enabled;
+ // :focus-visible — keyboard focus only, see IconButton.
+ focus-gained(reason) => {
+ root.ring = reason == FocusReason.tab-navigation;
+ }
+ focus-lost(reason) => {
+ root.ring = false;
+ }
+ key-pressed(event) => {
+ if (event.text == Key.RightArrow || event.text == Key.DownArrow) {
+ root.select(Math.mod(root.current + 1, root.options.length));
+ return EventResult.accept;
+ }
+ if (event.text == Key.LeftArrow || event.text == Key.UpArrow) {
+ root.select(Math.mod(root.current - 1 + root.options.length, root.options.length));
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ thumb := Rectangle {
+ x: root.inset + root.current * root.seg-w;
+ y: root.inset;
+ width: root.seg-w;
+ height: root.height - 2 * root.inset;
+ border-radius: Theme.r-sm;
+ background: Theme.field-hover;
+
+ animate x, width { duration: 180ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ for option[index] in root.options: Rectangle {
+ x: root.inset + index * root.seg-w;
+ y: root.inset;
+ width: root.seg-w;
+ height: root.height - 2 * root.inset;
+
+ Text {
+ text: option;
+ color: (index == root.current || segment.has-hover) ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ horizontal-alignment: center;
+ vertical-alignment: center;
+ overflow: elide;
+
+ animate color { duration: 140ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ segment := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => {
+ fs.focus();
+ root.select(index);
+ }
+ }
+ }
+
+ FocusRing {
+ active: root.ring;
+ radius: Theme.r;
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/select.slint b/engine/crates/concat/ui/primitives/select.slint
new file mode 100644
index 00000000..be1bfb45
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/select.slint
@@ -0,0 +1,234 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { FocusRing } from "focus-ring.slint";
+
+// Custom listbox dropdown rather than a native combo box, so options can carry
+// icons and match the panel styling. Arrows, Home/End, Enter and Escape all
+// work; the list flips above the trigger when there is no room below, which
+// Slint's PopupWindow does on its own.
+export component Select inherits Rectangle {
+ in property <[string]> options;
+ /// Optional second column, set against the trailing edge of each row —
+ /// the "1:2" beside "Half". Shorter than `options` is fine; rows past its
+ /// end simply have none. The trigger never shows it: it is what you open
+ /// the list to compare.
+ in property <[string]> details;
+ in-out property <int> current;
+ in property <string> placeholder: "Select";
+ /// leading adornment on the trigger
+ in property <Glyph> glyph: Glyph.none;
+ in property <bool> enabled: true;
+ /// drop the field background, for a select used as panel chrome
+ in property <bool> flat;
+
+ callback changed(index: int);
+
+ property <bool> ring;
+ property <length> row-h: 26px;
+ property <length> list-h: Math.min(240px, root.options.length * root.row-h + 8px);
+ // Read from the popup rather than tracked here: a click outside closes it
+ // without telling us, so a hand-rolled flag goes stale.
+ property <bool> open: list.is-open;
+ property <int> active;
+ property <string> label: (root.current >= 0 && root.current < root.options.length)
+ ? root.options[root.current]
+ : root.placeholder;
+
+ height: Theme.h;
+ min-width: 60px;
+ horizontal-stretch: 1;
+ border-radius: Theme.r;
+ opacity: root.enabled ? 1.0 : 0.45;
+ background: root.flat && !root.open ? Colors.transparent
+ : (root.open || (trigger.has-hover && root.enabled)) ? Theme.field-hover
+ : Theme.field;
+
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ function commit(index: int) {
+ if (index >= 0 && index < root.options.length) {
+ root.current = index;
+ root.changed(index);
+ }
+ list.close();
+ fs.focus();
+ }
+
+ function reveal() {
+ if (!root.enabled) {
+ return;
+ }
+ root.active = Math.max(root.current, 0);
+ list.show();
+ }
+
+ fs := FocusScope {
+ enabled: root.enabled;
+ // :focus-visible — keyboard focus only, see IconButton.
+ focus-gained(reason) => {
+ root.ring = reason == FocusReason.tab-navigation;
+ }
+ focus-lost(reason) => {
+ root.ring = false;
+ }
+ key-pressed(event) => {
+ if (event.text == Key.DownArrow || event.text == Key.UpArrow
+ || event.text == "\n" || event.text == " ") {
+ root.reveal();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 6px;
+ spacing: 6px;
+
+ if root.glyph != Glyph.none: VerticalLayout {
+ alignment: center;
+ Icon { glyph: root.glyph; size: 12px; tint: Theme.fg-dim; }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.label;
+ color: root.current >= 0 ? (root.flat ? Theme.fg-muted : Theme.fg) : Theme.fg-dim;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Icon { glyph: Glyph.chevron-down; size: 12px; tint: Theme.fg-muted; }
+ }
+ }
+
+ trigger := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => {
+ fs.focus();
+ root.reveal();
+ }
+ }
+
+ FocusRing {
+ active: root.ring || root.open;
+ radius: Theme.r;
+ }
+
+ list := PopupWindow {
+ x: 0;
+ y: root.height + 4px;
+ width: root.width;
+ height: root.list-h;
+ close-policy: close-on-click-outside;
+
+ // The popup is torn down on close, so `init` runs on every open.
+ init => {
+ keys.focus();
+ }
+
+ Rectangle {
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+ clip: true;
+
+ keys := FocusScope {
+ key-pressed(event) => {
+ if (event.text == Key.DownArrow) {
+ root.active = Math.min(root.active + 1, root.options.length - 1);
+ return EventResult.accept;
+ }
+ if (event.text == Key.UpArrow) {
+ root.active = Math.max(root.active - 1, 0);
+ return EventResult.accept;
+ }
+ if (event.text == Key.Home) {
+ root.active = 0;
+ return EventResult.accept;
+ }
+ if (event.text == Key.End) {
+ root.active = root.options.length - 1;
+ return EventResult.accept;
+ }
+ if (event.text == "\n" || event.text == " ") {
+ root.commit(root.active);
+ return EventResult.accept;
+ }
+ if (event.text == Key.Escape) {
+ list.close();
+ fs.focus();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ VerticalLayout {
+ padding: 4px;
+ alignment: start;
+
+ for option[index] in root.options: Rectangle {
+ height: root.row-h;
+ border-radius: Theme.r-sm;
+ background: index == root.active ? Theme.accent : Colors.transparent;
+
+ HorizontalLayout {
+ padding-left: 6px;
+ padding-right: 6px;
+ spacing: 6px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: option;
+ color: index == root.active ? Theme.on-accent : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if index < root.details.length: Text {
+ text: root.details[index];
+ color: index == root.active ? Theme.on-accent : Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+
+ if index == root.current: VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: Glyph.check;
+ size: 12px;
+ tint: index == root.active ? Theme.on-accent : Theme.accent;
+ }
+ }
+ }
+
+ TouchArea {
+ mouse-cursor: pointer;
+ // pointer-enter has no dedicated callback; has-hover
+ // drives the same highlight the web sets on hover.
+ changed has-hover => {
+ if (self.has-hover) {
+ root.active = index;
+ }
+ }
+ clicked => {
+ root.commit(index);
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/stepper.slint b/engine/crates/concat/ui/primitives/stepper.slint
new file mode 100644
index 00000000..e9501b07
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/stepper.slint
@@ -0,0 +1,161 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { FocusRing } from "focus-ring.slint";
+
+component StepButton inherits Rectangle {
+ in property <Glyph> glyph;
+ in property <bool> enabled: true;
+ callback pressed(shift: bool, alt: bool);
+ callback released();
+
+ width: 30px;
+ opacity: root.enabled ? 1.0 : 0.4;
+ background: !root.enabled ? Colors.transparent
+ : touch.pressed ? Theme.field-active
+ : touch.has-hover ? Theme.field-hover
+ : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: root.glyph;
+ size: 12px;
+ tint: (touch.has-hover && root.enabled) ? Theme.fg : Theme.fg-muted;
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.pressed(event.modifiers.shift, event.modifiers.alt);
+ } else if (event.kind == PointerEventKind.up
+ || event.kind == PointerEventKind.cancel) {
+ // `move` arrives here too; treating it as a release would stop
+ // the auto-repeat the moment the pointer twitched.
+ root.released();
+ }
+ }
+ }
+}
+
+// The minus/plus pair that sits beside a NumberField. Holding repeats: the
+// first press fires immediately, then a timer takes over after `repeat-delay`
+// and runs at `repeat-interval` — the same two-stage cadence the React version
+// builds from setTimeout plus setInterval.
+export component Stepper inherits Rectangle {
+ in property <bool> enabled: true;
+ in property <duration> repeat-delay: 380ms;
+ in property <duration> repeat-interval: 55ms;
+
+ callback stepped(direction: int, shift: bool, alt: bool);
+
+ property <bool> ring;
+ property <int> held: 0;
+ property <bool> repeating;
+ property <bool> shift;
+ property <bool> alt;
+
+ width: 61px;
+ height: Theme.h;
+ horizontal-stretch: 0;
+ background: Theme.field;
+ border-radius: Theme.r;
+ clip: true;
+
+ function begin(direction: int, shift-key: bool, alt-key: bool) {
+ root.shift = shift-key;
+ root.alt = alt-key;
+ root.repeating = false;
+ root.held = direction;
+ repeat.restart();
+ root.stepped(direction, shift-key, alt-key);
+ }
+
+ // Declared before the buttons so their TouchAreas sit above it; a
+ // FocusScope takes pointer events to focus itself and would otherwise
+ // swallow the press.
+ fs := FocusScope {
+ enabled: root.enabled;
+ // :focus-visible — keyboard focus only, see IconButton.
+ focus-gained(reason) => {
+ root.ring = reason == FocusReason.tab-navigation;
+ }
+ focus-lost(reason) => {
+ root.ring = false;
+ }
+ key-pressed(event) => {
+ if (event.text == Key.LeftArrow || event.text == Key.DownArrow) {
+ root.stepped(-1, event.modifiers.shift, event.modifiers.alt);
+ return EventResult.accept;
+ }
+ if (event.text == Key.RightArrow || event.text == Key.UpArrow) {
+ root.stepped(1, event.modifiers.shift, event.modifiers.alt);
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+
+ repeat := Timer {
+ interval: root.repeating ? root.repeat-interval : root.repeat-delay;
+ running: root.held != 0;
+ triggered => {
+ // A Timer keeps the period it was armed with, so dropping from the
+ // delay to the interval needs an explicit re-arm. Without it the
+ // whole hold ticks at 380ms instead of accelerating to 55ms.
+ if (!root.repeating) {
+ root.repeating = true;
+ repeat.restart();
+ }
+ root.stepped(root.held, root.shift, root.alt);
+ }
+ }
+
+ HorizontalLayout {
+ StepButton {
+ glyph: Glyph.minus;
+ enabled: root.enabled;
+ pressed(shift-key, alt-key) => {
+ fs.focus();
+ root.begin(-1, shift-key, alt-key);
+ }
+ released => {
+ root.held = 0;
+ }
+ }
+
+ Rectangle {
+ width: 1px;
+ VerticalLayout {
+ alignment: center;
+ Rectangle {
+ height: 14px;
+ background: Theme.line-strong;
+ }
+ }
+ }
+
+ StepButton {
+ glyph: Glyph.plus;
+ enabled: root.enabled;
+ pressed(shift-key, alt-key) => {
+ fs.focus();
+ root.begin(1, shift-key, alt-key);
+ }
+ released => {
+ root.held = 0;
+ }
+ }
+ }
+
+ FocusRing {
+ active: root.ring;
+ radius: Theme.r;
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/toast.slint b/engine/crates/concat/ui/primitives/toast.slint
new file mode 100644
index 00000000..d95d4247
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/toast.slint
@@ -0,0 +1,135 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+
+// The bottom-right notice, ported from the reference's Toast.tsx.
+//
+// Rises in, holds, sinks out. One at a time, and the next one replaces the
+// one before it rather than stacking under it: a column of notices is a log,
+// and what this is for is the one sentence about what just happened.
+
+/// A notice, as Rust hands it down.
+export struct ToastData {
+ /// Bumped once per notice, and the only thing the layer watches. It is
+ /// what lets the same sentence be said twice — "Project saved" after two
+ /// saves is two notices, and a message compared against the last one would
+ /// show the first and swallow the second.
+ token: int,
+ message: string,
+ /// Failed notices are red and hold long enough to actually be read;
+ /// confirmations only need a glance.
+ failed: bool,
+}
+
+export component ToastLayer inherits Rectangle {
+ in property <ToastData> data;
+
+ /// The reference's two holds, which are the reason it has this property at
+ /// all: an error you missed is an error you go looking for.
+ property <duration> hold: root.data.failed ? 6500ms : 3500ms;
+ /// Up and lit. Everything the toast does is this property animating.
+ property <bool> shown;
+ /// The one frame the risen toast spends at its start position, so the move
+ /// to `shown` animates rather than teleports — Slint gives a property its
+ /// first value without running its animation, exactly as a browser paints
+ /// the first frame without transitioning it, which is what the reference's
+ /// double requestAnimationFrame is working around.
+ property <bool> raising;
+
+ /// Watched instead of `data`, so the trigger is one integer changing and
+ /// not a struct comparison.
+ property <int> token: root.data.token;
+ changed token => {
+ root.shown = false;
+ root.raising = true;
+ }
+
+ // Nothing here is hit-testable: no TouchArea anywhere in the tree, so the
+ // layer sits over the whole window without taking a single event from it.
+ background: transparent;
+
+ Timer {
+ interval: 16ms;
+ running: root.raising;
+ triggered => {
+ root.raising = false;
+ root.shown = true;
+ }
+ }
+
+ // Stops itself: the trigger clears the flag it is running on. An idle
+ // window is left with no timer ticking in it, which is the same rule the
+ // tooltip layer's cooldown follows.
+ Timer {
+ interval: root.hold;
+ running: root.shown;
+ triggered => { root.shown = false; }
+ }
+
+ /// Measured rather than estimated, the way the tooltip's bubble is: a Text
+ /// parked at zero size still reports the width the string wants in the
+ /// real face, so the box can be sized before anything is placed.
+ measure := Text {
+ x: 0;
+ y: 0;
+ width: 0px;
+ height: 0px;
+ text: root.data.message;
+ font-size: Theme.fs;
+ visible: false;
+ }
+
+ Rectangle {
+ // 16px off both edges, like the reference's `bottom-4 right-4`. The
+ // 12px it is pushed down by when it is away is the rise.
+ x: root.width - self.width - 16px;
+ y: root.height - self.height - 16px + (root.shown ? 0px : 12px);
+ // Capped, then the label elides: a notice is a sentence, and one long
+ // enough to reach across the window has stopped being one.
+ width: Math.min(root.width - 32px,
+ 12px + icon.width + 8px + measure.preferred-width + 12px);
+ // The reference's px-3 py-2 around a 16px line.
+ height: 32px;
+ border-radius: Theme.r-lg;
+ // Elevated and ringed, because it floats over panes that are
+ // themselves `panel` — the same reason the tooltip and the menus are.
+ // The reference spends a drop shadow here as well; Slint has none, so
+ // the hairline does that work alone and is the strong one for it.
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ opacity: root.shown ? 1.0 : 0.0;
+ // Never up before there is something to say. Also what keeps the very
+ // first frame of the window from carrying an empty box.
+ visible: root.data.message != "";
+
+ // Out is slower than in, as it is in the reference: a notice arriving
+ // should catch the eye, and one leaving should not.
+ animate y, opacity {
+ duration: root.shown ? 260ms : 420ms;
+ easing: ease-out;
+ }
+
+ icon := Icon {
+ x: 12px;
+ y: (parent.height - self.height) / 2;
+ glyph: root.data.failed ? Glyph.close : Glyph.check;
+ size: 13px;
+ tint: root.data.failed ? Theme.danger : Theme.green;
+ }
+
+ Text {
+ x: icon.x + icon.width + 8px;
+ y: 0;
+ width: parent.width - self.x - 12px;
+ height: parent.height;
+ text: root.data.message;
+ color: root.data.failed ? Theme.danger : Theme.fg;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/primitives/tooltip.slint b/engine/crates/concat/ui/primitives/tooltip.slint
new file mode 100644
index 00000000..4824c743
--- /dev/null
+++ b/engine/crates/concat/ui/primitives/tooltip.slint
@@ -0,0 +1,172 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+
+// Tooltips.
+//
+// A browser gives these away: `title` on any element, positioned, delayed and
+// dismissed by the platform. Slint has no equivalent — and the obvious
+// substitute, a PopupWindow per control, is the wrong shape for one. A popup
+// is a modal-ish surface that takes the pointer and closes on the next click,
+// which is exactly what a tooltip must not do to the button it is describing.
+//
+// So: one bubble, drawn once at the root of the window, and a global holding
+// what it should say and where. Every control that wants one drops a `Tip`
+// inside itself and binds it to its own hover; the Tip reports the box it is
+// sitting in, in window coordinates, and the layer at the root draws the
+// bubble against it. Root, because a pane clips its contents and a tip on a
+// button near an edge belongs outside the pane.
+//
+// The delay is the part worth getting right. A fixed wait before every tip
+// makes a toolbar feel unresponsive; none at all makes bubbles flash past as
+// the pointer crosses a row of buttons. The rule every desktop toolkit lands
+// on, and the one here: wait before the *first* one, then stay warm — while a
+// tip is up, and for a moment after it closes, the next control shows at once.
+// Running the pointer along the tray reads as one label following it.
+export global Tips {
+ /// What the pointer is resting on. Empty is nothing to show.
+ in-out property <string> text;
+ /// The box it is resting on, in window coordinates.
+ in-out property <length> anchor-x;
+ in-out property <length> anchor-y;
+ in-out property <length> anchor-w;
+ in-out property <length> anchor-h;
+ /// A tip is up.
+ in-out property <bool> shown;
+ /// One was up recently, so the next skips the wait. Cleared by the layer.
+ in-out property <bool> warm;
+
+ /// The wait before the first tip of a run.
+ out property <duration> delay: 450ms;
+ /// And once warm — long enough to not fire while the pointer is merely
+ /// crossing a button on its way somewhere else.
+ out property <duration> warm-delay: 60ms;
+ /// How long warmth outlives the tip that earned it.
+ out property <duration> cooldown: 600ms;
+
+ public function close() {
+ Tips.shown = false;
+ Tips.text = "";
+ }
+}
+
+// Dropped inside a control, bound to that control's own hover.
+//
+// It draws nothing and takes no events — a bare Rectangle is not hit-testable,
+// so it can fill the control it describes without stealing the press it is
+// describing. Filling it is the point: the box this ends up with *is* the
+// anchor, so no control has to describe its own geometry twice.
+export component Tip inherits Rectangle {
+ in property <string> text;
+ /// Usually `touch.has-hover && root.enabled`. A disabled control still
+ /// wants its tip — often more than an enabled one, since the tip is where
+ /// "why is this greyed out" gets answered — so `enabled` is the caller's
+ /// choice and not this component's.
+ in property <bool> active;
+
+ /// Fired for this hover already. Without it the timer keeps ticking for as
+ /// long as the pointer rests, re-publishing the same tip every interval.
+ property <bool> spent;
+
+ Timer {
+ interval: Tips.warm ? Tips.warm-delay : Tips.delay;
+ running: root.active && root.text != "" && !root.spent;
+ triggered => {
+ root.spent = true;
+ Tips.text = root.text;
+ Tips.anchor-x = root.absolute-position.x;
+ Tips.anchor-y = root.absolute-position.y;
+ Tips.anchor-w = root.width;
+ Tips.anchor-h = root.height;
+ Tips.shown = true;
+ Tips.warm = true;
+ }
+ }
+
+ changed active => {
+ if (!root.active) {
+ root.spent = false;
+ // Whatever is up: the pointer can only rest on one thing, and a
+ // leave always lands before the next control's timer has run.
+ Tips.close();
+ }
+ }
+}
+
+// The bubble, placed once at the root of the window and given the window's own
+// box — which is what it measures against to decide whether a tip near the
+// bottom edge has to flip above its control.
+export component TooltipLayer inherits Rectangle {
+ /// Measured rather than estimated. A Text's `preferred-width` is its
+ /// intrinsic width — what it would like to be, not what it has been given
+ /// — so an element parked at zero size still reports the real width of the
+ /// string in the real face. That is what the bubble is sized from, and why
+ /// the bubble can be positioned against the window's edges in the same
+ /// pass: the number is known before anything is placed.
+ measure := Text {
+ x: 0;
+ y: 0;
+ width: 0px;
+ height: 0px;
+ text: Tips.text;
+ font-size: Theme.fs-sm;
+ visible: false;
+ }
+
+ property <length> bubble-w: measure.preferred-width + 16px;
+ property <length> bubble-h: 22px;
+ /// The gap between the control and the bubble.
+ property <length> gap: 6px;
+
+ /// Under the control by default, and over it when there is no room below.
+ /// Below first because a pointer sits at the bottom of what it is pointing
+ /// at, and a bubble above the control is a bubble under the cursor.
+ property <bool> above: Tips.anchor-y + Tips.anchor-h + root.gap + root.bubble-h
+ > root.height;
+ property <length> bubble-y: root.above
+ ? Tips.anchor-y - root.gap - root.bubble-h
+ : Tips.anchor-y + Tips.anchor-h + root.gap;
+ /// Centred on the control, then pulled back inside the window.
+ property <length> bubble-x: Math.max(4px, Math.min(root.width - root.bubble-w - 4px,
+ Tips.anchor-x + (Tips.anchor-w - root.bubble-w) / 2));
+
+ // Nothing here is hit-testable: no TouchArea anywhere in the tree, so the
+ // layer sits over the whole window without taking a single event from it.
+ background: transparent;
+
+ // Warmth outlives the tip it came from, so crossing a gap between two
+ // buttons does not put the wait back. Running only while it has something
+ // to clear, which is what keeps an idle window free of timers.
+ Timer {
+ interval: Tips.cooldown;
+ running: Tips.warm && !Tips.shown;
+ triggered => { Tips.warm = false; }
+ }
+
+ if Tips.shown && Tips.text != "": Rectangle {
+ x: root.bubble-x;
+ y: root.bubble-y;
+ width: root.bubble-w;
+ height: root.bubble-h;
+ border-radius: Theme.r-sm;
+ // Raised, not panel: this floats over panes that are themselves
+ // `panel`, and a bubble the colour of what it covers reads as a hole
+ // in it. The hairline is the strong one for the same reason.
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+
+ Text {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ text: Tips.text;
+ color: Theme.fg;
+ font-size: Theme.fs-sm;
+ horizontal-alignment: center;
+ vertical-alignment: center;
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/start.slint b/engine/crates/concat/ui/start.slint
new file mode 100644
index 00000000..1edebc12
--- /dev/null
+++ b/engine/crates/concat/ui/start.slint
@@ -0,0 +1,699 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "theme/theme.slint";
+import { Glyph, Icon } from "icons.slint";
+import { SegmentedControl } from "primitives/segmented-control.slint";
+import { ThinScrollbar } from "primitives/scrollbar.slint";
+
+// The launch screen, ported from the reference's StartScreen.tsx.
+//
+// Full-bleed on the window's own ground — no card, no border, no shadow. A
+// setup screen is not a dialog floating over something; it *is* the window,
+// and framing it as a card only adds an edge that means nothing. Hierarchy
+// comes from type size and whitespace instead, which is why this is the one
+// surface in the app with a 34px heading on it.
+//
+// An editor should not drop you straight into an untitled timeline either: the
+// frame rate, the frame size and where the folder goes are decisions the whole
+// edit depends on, and choosing them after material is cut is how you end up
+// conforming footage.
+//
+// What is not ported: the template shelf and its slot-filling mode. Both need
+// a template store, and there is none in this tree — the library's "save as
+// template" is an unwired seam for the same reason. The form and the recents
+// are the whole of the screen without them.
+
+/// One row of the Recent column.
+///
+/// The two lines under the name arrive formatted. A decimal frame rate to two
+/// places and a coarse "4 days ago" are both easier to produce where the
+/// numbers are than in an expression language with no printf and no clock.
+export struct RecentProjectData {
+ /// The folder, and the row's identity — what reopening and forgetting name.
+ path: string,
+ name: string,
+ /// "1080 x 1920 · 30.00 fps"
+ detail: string,
+ /// "yesterday", "4 days ago"
+ when: string,
+ /// A frame from the earliest clip on its timeline, once something has
+ /// produced one. Empty falls back to a quiet film mark rather than an
+ /// error: the launch screen is not the place to complain about footage.
+ poster: image,
+}
+
+/// The form, as one struct — the same shape the two dialogs use, and for the
+/// same reason: it is one screen's worth of state and a partial update is how
+/// a panel ends up showing half of two things.
+export struct StartData {
+ name: string,
+ location: string,
+ /// Index into `resolutions`; the numbers behind it are Rust's.
+ resolution: int,
+ /// Index into `rates`.
+ rate: int,
+ /// "1920 x 1080"
+ size-readout: string,
+ /// "30/1 fps" — the exact fraction, because 29.97 is 30000/1001 and never
+ /// anything else.
+ rate-readout: string,
+ /// Creating. The button says so and everything is refused meanwhile.
+ busy: bool,
+ /// Non-empty puts up the notice above the button.
+ error: string,
+}
+
+// A labelled row with a hairline under it, in the style of a settings list.
+component Field inherits Rectangle {
+ in property <string> label;
+ /// The last row carries no rule: there is nothing under it to divide from.
+ in property <bool> last;
+
+ /// The label column. Wide enough for "Resolution" and "Frame rate" at
+ /// 13px without wrapping, which is what keeps every value on one x.
+ property <length> label-w: 112px;
+
+ height: body.preferred-height + 32px;
+
+ Text {
+ x: 0;
+ y: 16px;
+ width: root.label-w;
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs-lg;
+ }
+
+ body := VerticalLayout {
+ x: root.label-w + 16px;
+ y: 16px;
+ width: root.width - root.label-w - 16px;
+ height: self.preferred-height;
+ spacing: 8px;
+
+ @children
+ }
+
+ if !root.last: Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+}
+
+// A field's editable line: no box, no ground, just the text on the row it is
+// in. The rules between the rows are already saying where one value ends and
+// the next begins, so a border round each one is the same fact twice.
+component PlainInput inherits Rectangle {
+ in property <string> text;
+ in property <string> placeholder;
+ in property <length> size: Theme.fs-input;
+ in property <string> face: Theme.font;
+ in property <bool> enabled: true;
+ /// Takes the caret when the screen opens, and selects what is there — so
+ /// the default name can be replaced by typing rather than by clearing it
+ /// first. The reference's `autoFocus` plus its `onFocus={select()}`.
+ in property <bool> autofocus;
+
+ callback edited(text: string);
+ callback accepted();
+
+ height: Math.max(22px, root.size + 8px);
+
+ // The text being edited, held apart from `text`.
+ //
+ // A TextInput writes to whatever it is bound to, and an assignment in
+ // Slint replaces the binding — so binding straight to the published value
+ // works for one keystroke and then goes deaf. Seeded instead, and never
+ // while the field has focus, so a republish mid-word cannot yank the
+ // caret. Same as `Field` in primitives/modal.slint, same reason.
+ property <string> draft;
+ function seed() { root.draft = root.text; }
+ init => {
+ root.seed();
+ if (root.autofocus) {
+ input.focus();
+ input.select-all();
+ }
+ }
+ changed text => {
+ if (!input.has-focus) {
+ root.seed();
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: MouseCursor.text;
+ clicked => { input.focus(); }
+ }
+
+ input := TextInput {
+ x: 0;
+ y: (parent.height - self.height) / 2;
+ width: parent.width;
+ text <=> root.draft;
+ color: Theme.fg;
+ font-family: root.face;
+ font-size: root.size;
+ single-line: true;
+ read-only: !root.enabled;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ edited => { root.edited(self.text); }
+ accepted => { root.accepted(); }
+ }
+
+ if root.draft == "": Text {
+ x: 0;
+ y: (parent.height - self.height) / 2;
+ text: root.placeholder;
+ color: Theme.fg-dim;
+ font-family: root.face;
+ font-size: root.size;
+ }
+}
+
+// The one accent-coloured word in the form. A link and not a button: it opens
+// a picker for the field beside it rather than doing anything to the project,
+// and a filled button here would out-shout Create.
+component LinkButton inherits Rectangle {
+ in property <string> label;
+ in property <bool> enabled: true;
+
+ callback clicked();
+
+ width: text.preferred-width;
+ height: 20px;
+ opacity: root.enabled ? (touch.has-hover ? 0.7 : 1.0) : 0.4;
+
+ animate opacity { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ text := Text {
+ x: 0;
+ y: (parent.height - self.height) / 2;
+ text: root.label;
+ color: Theme.accent;
+ font-size: Theme.fs-lg;
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+// One project in the Recent column: poster, name, what it is, when it was
+// last open — and, on hover, the cross that forgets it.
+component RecentRow inherits Rectangle {
+ in property <RecentProjectData> project;
+ in property <bool> enabled: true;
+
+ callback opened();
+ callback forgotten();
+
+ height: 76px;
+ border-radius: Theme.r-lg;
+ background: touch.has-hover ? Theme.field : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ touch := TouchArea {
+ mouse-cursor: root.enabled ? pointer : default;
+ clicked => { root.opened(); }
+
+ poster := Rectangle {
+ x: 8px;
+ y: (parent.height - self.height) / 2;
+ width: 96px;
+ height: self.width * 9 / 16;
+ border-radius: Theme.r;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.line;
+ clip: true;
+
+ if root.project.poster.width > 0: Image {
+ width: parent.width;
+ height: parent.height;
+ source: root.project.poster;
+ image-fit: cover;
+ }
+
+ if root.project.poster.width == 0: Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.film;
+ size: 17px;
+ weight: 1.5;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ VerticalLayout {
+ x: poster.x + poster.width + 12px;
+ y: (parent.height - self.preferred-height) / 2;
+ width: parent.width - poster.width - 20px - 34px;
+ height: self.preferred-height;
+ spacing: 2px;
+
+ Text {
+ text: root.project.name;
+ color: Theme.fg;
+ font-size: Theme.fs-xl;
+ overflow: elide;
+ }
+
+ Text {
+ text: root.project.detail;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ overflow: elide;
+ }
+
+ Text {
+ text: root.project.when;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ overflow: elide;
+ }
+ }
+
+ // Hover-only, like the bin's card: a permanent cross on every row of a
+ // list of your own work is a list of invitations to lose one.
+ if touch.has-hover: Rectangle {
+ x: parent.width - self.width - 8px;
+ y: (parent.height - self.height) / 2;
+ width: 22px;
+ height: 22px;
+ border-radius: Theme.r-xs;
+ background: forget.has-hover ? Theme.field-active : Colors.transparent;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.close;
+ size: 12px;
+ tint: forget.has-hover ? Theme.fg : Theme.fg-dim;
+ }
+
+ forget := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.forgotten(); }
+ }
+ }
+ }
+}
+
+// The Recent column. Its own component because it appears in two places: to
+// the right of the form when there is room, and under it when there is not.
+//
+// No empty state — a "Recent" heading over nothing is worse than no heading —
+// so whoever places this only places it when there is something to show.
+component RecentsColumn inherits VerticalLayout {
+ in property <[RecentProjectData]> recents;
+ in property <bool> enabled: true;
+ /// The rule above the heading, for the stacked arrangement. Beside the
+ /// form there is a whole column of air doing that job already.
+ in property <bool> ruled;
+
+ callback opened(path: string);
+ callback forgotten(path: string);
+
+ alignment: start;
+
+ if root.ruled: Rectangle {
+ height: 56px;
+
+ Rectangle {
+ x: 0;
+ y: 28px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+ }
+
+ Text {
+ text: "Recent";
+ color: Theme.fg-muted;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ }
+
+ Rectangle { height: 12px; }
+
+ for project in root.recents: RecentRow {
+ project: project;
+ enabled: root.enabled;
+ opened => { root.opened(project.path); }
+ forgotten => { root.forgotten(project.path); }
+ }
+}
+
+export component StartScreen inherits Rectangle {
+ in property <StartData> data;
+ /// The two ladders' labels. The numbers behind each index are Rust's, so
+ /// there is one place that knows 4K is 3840 x 2160 and 29.97 is 30000
+ /// over 1001 — see `RESOLUTIONS` and `START_RATES` in main.rs.
+ in property <[string]> resolutions;
+ in property <[string]> rates;
+ in property <[RecentProjectData]> recents;
+
+ callback name-edited(name: string);
+ callback location-edited(path: string);
+ callback browse();
+ callback resolution-changed(index: int);
+ callback rate-changed(index: int);
+ callback create();
+ callback open-recent(path: string);
+ callback forget-recent(path: string);
+ callback dismiss-error();
+
+ /// The form's own column, and the widest the pair may run to. The
+ /// reference's max-w-5xl and max-w-xl, which are these two numbers.
+ property <length> form-w: 700px;
+ property <length> recents-w: 340px;
+ property <length> column-gap: 64px;
+ /// Only two columns once there is history to show, and only when there is
+ /// room for both. Below that the recents go under the form, which is what
+ /// the reference's `lg:` breakpoint does.
+ property <bool> side-by-side: root.recents.length > 0
+ && root.width >= root.form-w + root.column-gap + root.recents-w + 96px;
+ property <length> pad: 48px;
+
+ property <length> overflow: Math.max(0px, sheet.height - root.height);
+ property <length> offset;
+ property <length> at: Math.max(-root.overflow, Math.min(0px, root.offset));
+
+ background: Theme.page;
+ clip: true;
+
+ wheel := TouchArea {
+ scroll-event(event) => {
+ root.offset = root.at + event.delta-y;
+ return EventResult.accept;
+ }
+
+ sheet := Rectangle {
+ // Centred when it fits and pinned to the top when it does not,
+ // which is what `justify-center` in a scroll container gives.
+ x: (parent.width - self.width) / 2;
+ y: root.overflow > 0px
+ ? root.at
+ : (parent.height - self.height) / 2;
+ width: Math.min(parent.width - 2 * root.pad,
+ root.side-by-side
+ ? root.form-w + root.column-gap + root.recents-w
+ : root.form-w);
+ height: columns.preferred-height;
+
+ columns := HorizontalLayout {
+ spacing: root.column-gap;
+
+ // ── the form ─────────────────────────────────────────────
+ VerticalLayout {
+ horizontal-stretch: 1;
+ alignment: start;
+
+ Text {
+ text: "New project";
+ color: Theme.fg;
+ // The one display-sized line in the app. The reference
+ // spends a third face on it (Cabinet Grotesk); this
+ // tree bundles two, so the interface face carries it at
+ // its heaviest weight and the reference's own tight
+ // tracking — -0.03em, which at 34px is a point.
+ font-size: Theme.fs-display;
+ font-weight: Theme.weight-display;
+ letter-spacing: -1px;
+ }
+
+ Rectangle { height: 6px; }
+
+ Text {
+ text: "These settings apply to the whole edit and cannot be changed later.";
+ color: Theme.fg-muted;
+ font-size: Theme.fs-xl;
+ wrap: word-wrap;
+ }
+
+ Rectangle { height: 40px; }
+
+ Field {
+ label: "Name";
+
+ PlainInput {
+ text: root.data.name;
+ placeholder: "Untitled project";
+ autofocus: true;
+ enabled: !root.data.busy;
+ edited(text) => { root.name-edited(text); }
+ accepted => { root.create(); }
+ }
+ }
+
+ Field {
+ label: "Location";
+
+ HorizontalLayout {
+ spacing: 12px;
+
+ PlainInput {
+ horizontal-stretch: 1;
+ text: root.data.location;
+ placeholder: "Choose a folder";
+ size: Theme.fs;
+ face: Theme.font-technical;
+ enabled: !root.data.busy;
+ edited(text) => { root.location-edited(text); }
+ accepted => { root.create(); }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ LinkButton {
+ label: "Choose…";
+ enabled: !root.data.busy;
+ clicked => { root.browse(); }
+ }
+ }
+ }
+ }
+
+ Field {
+ label: "Resolution";
+
+ HorizontalLayout {
+ alignment: start;
+ SegmentedControl {
+ width: 312px;
+ options: root.resolutions;
+ current <=> root.res-index;
+ enabled: !root.data.busy;
+ changed(index) => { root.resolution-changed(index); }
+ }
+ }
+
+ Text {
+ text: root.data.size-readout;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ }
+ }
+
+ Field {
+ label: "Frame rate";
+ last: true;
+
+ HorizontalLayout {
+ alignment: start;
+ SegmentedControl {
+ width: 300px;
+ options: root.rates;
+ current <=> root.rate-index;
+ enabled: !root.data.busy;
+ changed(index) => { root.rate-changed(index); }
+ }
+ }
+
+ Text {
+ text: root.data.rate-readout;
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ }
+ }
+
+ if root.data.error != "": Rectangle {
+ height: 46px;
+
+ Rectangle {
+ x: 0;
+ y: 12px;
+ width: parent.width;
+ height: 34px;
+ border-radius: Theme.r;
+ background: Theme.danger-soft;
+
+ Icon {
+ x: 10px;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.info;
+ size: 13px;
+ tint: Theme.danger;
+ }
+
+ Text {
+ x: 31px;
+ y: 0;
+ width: parent.width - 62px;
+ height: parent.height;
+ text: root.data.error;
+ color: Theme.danger;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ Rectangle {
+ x: parent.width - self.width - 6px;
+ y: (parent.height - self.height) / 2;
+ width: 22px;
+ height: 22px;
+ border-radius: Theme.r-xs;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.close;
+ size: 11px;
+ tint: Theme.danger;
+ }
+
+ TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.dismiss-error(); }
+ }
+ }
+ }
+ }
+
+ Rectangle { height: 40px; }
+
+ // ── the recents, under the form ──────────────────────
+ //
+ // Placed here rather than reflowed: a Slint layout has no
+ // wrap, so the two arrangements are two shapes and each is
+ // only built at the width the other cannot fit.
+ if !root.side-by-side && root.recents.length > 0: RecentsColumn {
+ recents: root.recents;
+ enabled: !root.data.busy;
+ ruled: true;
+ opened(path) => { root.open-recent(path); }
+ forgotten(path) => { root.forget-recent(path); }
+ }
+
+ HorizontalLayout {
+ alignment: start;
+ spacing: 16px;
+
+ // A pill, and the only filled accent in the form: it
+ // is the one thing on this screen that starts an edit.
+ create := Rectangle {
+ width: label.preferred-width + 48px;
+ height: 40px;
+ border-radius: self.height / 2;
+ background: go.has-hover ? Theme.accent-hover : Theme.accent;
+ opacity: root.can-create ? 1.0 : 0.4;
+
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ label := Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: root.data.busy ? "Creating…" : "Create";
+ color: Theme.on-accent;
+ font-size: Theme.fs-xl;
+ font-weight: Theme.weight-title;
+ }
+
+ go := TouchArea {
+ enabled: root.can-create;
+ mouse-cursor: pointer;
+ clicked => { root.create(); }
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ horizontal-stretch: 1;
+
+ HorizontalLayout {
+ spacing: 6px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: Glyph.info;
+ size: 12px;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: "The project folder is created now; the edit autosaves into it.";
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ wrap: word-wrap;
+ }
+ }
+ }
+ }
+ }
+
+ // ── the recents, beside the form ─────────────────────────
+ if root.side-by-side: RecentsColumn {
+ width: root.recents-w;
+ recents: root.recents;
+ enabled: !root.data.busy;
+ opened(path) => { root.open-recent(path); }
+ forgotten(path) => { root.forget-recent(path); }
+ }
+ }
+ }
+ }
+
+ // The segmented controls own their `current`: they write to it, and a
+ // write replaces whatever binding was declared. Seeded from the published
+ // form instead, the way the inspector's tab strip is.
+ property <int> res-index;
+ property <int> rate-index;
+ function seed() {
+ root.res-index = root.data.resolution;
+ root.rate-index = root.data.rate;
+ }
+ init => { root.seed(); }
+ changed data => { root.seed(); }
+
+ /// A project needs somewhere to go. Everything else has a default.
+ property <bool> can-create: !root.data.busy && root.data.location != "";
+
+ ThinScrollbar {
+ x: parent.width - self.width - 2px;
+ y: 0;
+ height: root.height;
+ viewport: root.height;
+ content: root.height + root.overflow;
+ offset: -root.at;
+ scrolled(to) => { root.offset = -to; }
+ }
+}
diff --git a/engine/crates/concat/ui/theme/dark.slint b/engine/crates/concat/ui/theme/dark.slint
new file mode 100644
index 00000000..9fba741a
--- /dev/null
+++ b/engine/crates/concat/ui/theme/dark.slint
@@ -0,0 +1,246 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// The dark palette — the colours the interface is made of, and one of the two
+// files in the tree allowed to name one.
+//
+// `theme.slint` next door picks between this and `light.slint` on a single
+// property. Nothing else in the tree knows a colour by anything but its name
+// in `Theme`, so a value changed here changes it everywhere and nowhere else
+// needs touching.
+//
+// ── what a palette has to keep ───────────────────────────────────────────────
+//
+// The values are not a list of favourite colours; they are a set of
+// relationships, and a fork that keeps them will look like a theme rather than
+// a recolour. This is where they are written down; the light palette answers
+// the same list, and its header only says where it had to answer differently.
+// The load-bearing ones:
+//
+// - `page` is under every surface, and stays there. The panes float on it,
+// and the gap between what a pane is and what the ground is *is* the
+// gutter — there are no outlines doing that job any more.
+// - The surface ladder `well < panel < raised < field < field-hover <
+// field-active` only means anything as a ladder. Each step exists to be
+// told from the one under it: a sunken well inside a panel, a raised card
+// on it, a field on the card, and the two answers a field gives a pointer.
+// Move them together or not at all. What the ladder is measuring is
+// prominence, and here prominence happens to run towards white; that is
+// the one thing about it a light palette cannot copy.
+// - `on-accent` is the ink that sits *on* the accent, and it is dark because
+// the accent is bright. Swap the accent for a dark one and this has to
+// become light in the same edit, or every activated control loses its
+// label — which is exactly what the light palette does. The same pairing
+// holds for `on-green` and `on-scrim`.
+// - The five media kinds are pairs: a vivid mark and the darker same-hue
+// ground it sits on. A card in the bin and the clip it becomes on a track
+// wear the same pair, which is what makes them read as one object moved.
+// - The lanes are *darker* than the pane they are in. A timeline is a well
+// the clips sit in, and lanes brighter than the pane make the empty
+// stretches read as content.
+// - The clip-ink family holds against all five kind hues, not against a
+// grey. It cannot be borrowed from the text colours for that reason.
+//
+// ── where the values came from ───────────────────────────────────────────────
+//
+// The surfaces are the web prototype's neutral grey scale (web/src/styles/
+// tokens.css), not the legacy editor's. The legacy panels were a blue-cast
+// near-black; the prototype's are flat neutral, which lets the accent and the
+// clip hues carry all of the colour in the window instead of competing with a
+// tinted ground.
+//
+// Everything else — the clip and media-kind hues, the meter ramp — still
+// mirrors the legacy editor (desktop/src/styles.css, the
+// `:root[data-theme="dark"]` block), because those name things the engine and
+// the project format also name.
+export global Dark {
+ // surfaces — web/src/styles/tokens.css
+ //
+ // Panels are a grey that visibly floats on the near-black ground — never
+ // the ground colour itself, or the panes melt into the window and their
+ // grab-able gutters vanish.
+ //
+ // The panel sits at the prototype's #111111 — the tone its preview
+ // viewport uses, which is the one surface in that design big enough to
+ // judge a ground by. Its #0d0d0d panel was a stop too dark once whole
+ // panes were painted in it rather than narrow strips.
+ //
+ // Moving the panel up makes room underneath, so `well` goes back to being
+ // genuinely sunken — darker than the surface it is cut into, the way the
+ // legacy theme has it and the way a sunken thing reads without having to
+ // be explained.
+ // The whole ladder moves together, not just the panel. Each step exists
+ // to be told apart from the one under it — a raised card has to read as
+ // raised, a field has to read as a field on top of that — so lifting the
+ // panel without lifting the rest would close those gaps instead of moving
+ // them. Only `page` stays where it is: it is the ground the panes float
+ // on, and holding it down is what widens the gutters as the panes lighten.
+ //
+ // Lifted a notch again once the outlines came off the panes. An outline
+ // was doing part of the work of separating a pane from the ground; with
+ // it gone the value step has to do all of it, and the darker ladder left
+ // the panes reading as holes in the window rather than as surfaces on it.
+ // Everything moves by the same amount, so no two steps change places.
+ out property <color> panel: #1c1c1c;
+ out property <color> raised: #262626;
+ out property <color> well: #131313;
+ out property <color> field: #2c2c2c;
+ out property <color> field-hover: #343434;
+ out property <color> field-active: #3f3f3f;
+
+ // hairlines — white-alpha like the reference, so they hold on panel,
+ // well, and ground alike.
+ out property <color> line: #ffffff1a; // rgb(255 255 255 / 0.1)
+ out property <color> line-strong: #ffffff33; // rgb(255 255 255 / 0.2)
+
+ // text
+ out property <color> fg: #f5f5f7; // --color-primary
+ out property <color> fg-muted: #a1a1a6; // --color-secondary
+ out property <color> fg-dim: #6e6e73; // --color-tertiary
+
+ // accents
+ //
+ // Lime, not blue. Both codebases land here from different directions: the
+ // prototype makes it the accent outright (--cp-accent), and the legacy
+ // editor keeps a blue --color-accent but spends the lime on the two places
+ // that carry the look — the selection highlight and every activated tool
+ // (--color-selection / --color-tool-active, both #c6f432). Taking it as
+ // the one accent says the same thing with one token instead of three.
+ //
+ // It is legible against near-black and near-white alike, which is what a
+ // selection has to be: it lands on whatever happens to be underneath it.
+ // What sits *on* it therefore has to be dark ink, and fixed — see
+ // `on-accent` below.
+ out property <color> accent: #cbf53f; // --cp-accent
+ out property <color> accent-hover: #d9ff63; // --cp-accent-hover
+ out property <color> accent-soft: #cbf53f33; // rgb(203 245 63 / 0.2)
+ out property <color> green: #30d158;
+ // Ink for text and glyphs sitting ON the accent. A bright accent needs a
+ // dark one; swap this back to #ffffff the day the accent goes dark again.
+ out property <color> on-accent: #15220a; // --cp-on-accent
+ out property <color> on-green: #06210f;
+
+ // meter ramp
+ out property <color> meter-low: #34c759;
+ out property <color> meter-mid: #ffd60a;
+ out property <color> meter-high: #ff453a;
+
+ // media kinds
+ //
+ // Each kind gets a vivid mark and the darker same-hue ground it sits on,
+ // taken from the reference editor's clip palette. The pair is deliberately
+ // shared with the timeline: a card in the bin and the clip it becomes on a
+ // track are the same two colours, so they read as one object moved rather
+ // than two things that happen to have the same name.
+ out property <color> kind-video: #4d8df6;
+ out property <color> kind-video-well: #142640;
+ out property <color> kind-audio: #f09e2f;
+ out property <color> kind-audio-well: #33220e;
+ out property <color> kind-image: #8b5cf6;
+ out property <color> kind-image-well: #251a3d;
+ out property <color> kind-text: #e8355e;
+ out property <color> kind-text-well: #38131d;
+ // A filter layer is not a medium — nothing was imported to make one — so
+ // it takes the one hue the four media kinds leave free rather than
+ // borrowing whichever of them it happens to sit over.
+ out property <color> kind-filter: #2bc2a8;
+ out property <color> kind-filter-well: #0e2f2a;
+
+ // timeline
+ //
+ // The lanes are darker than `panel`, not lighter: the timeline is a well
+ // the clips sit in, and a lane brighter than the pane would make the empty
+ // stretches read as content. `lane-alt` is the banded neighbour that keeps
+ // a stack of eight tracks countable without a rule between every pair.
+ //
+ // Two tones, alternating, and neither of them black. Both follow the
+ // panel ladder up: they are the floor of a pane, and a floor that stays
+ // put while the walls lift stops reading as part of the same room. Pitch black made the
+ // grid do all of the work: it answers "where in time" but never "which
+ // lane", so an eight-track stack had to be counted from the headers every
+ // time. Banding answers the second question for free, and the grid keeps
+ // answering the first — they are different axes and both are wanted.
+ //
+ // Black also cost the clips their mount. A dark neutral a few steps up
+ // still reads as a well cut into the pane, and a clip's own dark ground
+ // now sits *on* something rather than floating in a hole. Both stay well
+ // under `panel`, or the empty stretches would read as content.
+ out property <color> lane: #101011;
+ out property <color> lane-alt: #171718;
+ // The ruler is its own surface, not the first row of the stack: a step
+ // under the darker lane, so the strip carrying the timestamps reads as
+ // the floor of the pane and the banding starts below it. It followed
+ // `raised` before, which put it above the panel and made it the brightest
+ // thing in the pane — the opposite of what a ruler should be.
+ out property <color> ruler: #0b0b0c;
+ /// The vertical rules. 6% white was set against a lane that was still a
+ /// dark grey, and all but vanished when the lanes went black — a grid that
+ /// costs elements and reads as nothing. 14% clears both of the tones the
+ /// lanes now carry while staying under `line-strong`, so the rules place a
+ /// clip without competing with it.
+ out property <color> grid: #ffffff24;
+ // Red, and used for nothing else. A playhead that shared the accent would
+ // be one more blue line among the selection outlines.
+ out property <color> playhead: #ff453a; // --color-playhead
+ // Drawn on the audio clip's own dark ground, so it is a light wash of the
+ // kind's hue rather than the vivid mark itself.
+ out property <color> wave: #fad69eb3; // --color-clip-wave, 0.7 alpha
+
+ // clip ink
+ //
+ // Everything drawn *on* a clip rather than on a panel. A clip brings its
+ // own ground — the kind's mark for its header, the kind's well for its
+ // body — so none of these can be one of the greys above: they have to hold
+ // against five hues and their two tones, which is what makes them a family
+ // of their own rather than a reach into the text colours.
+ out property <color> clip-ink: #ffffff;
+ /// A title's words in the body of its clip. Warm and dimmed, so they read
+ /// as the content of the clip rather than as a second label.
+ out property <color> clip-body: #ffe4b2b8;
+ /// The chip a clip wears when effects are live on it.
+ out property <color> clip-chip: #00000059;
+ /// The centre line under a drawn envelope.
+ out property <color> wave-centre: #ffffff2e;
+ /// A fade: the wedge of what is being taken away, and the bright line of
+ /// the envelope itself over it.
+ out property <color> fade-shade: #00000073;
+ out property <color> fade-edge: #ffffffa6;
+ /// The two halves of a transition's wedge pair — the outgoing clip and
+ /// the incoming one, which is why they are not the same white.
+ out property <color> transition-in: #ffffffcc;
+ out property <color> transition-out: #ffffff73;
+
+ // the monitor
+ //
+ // The stage is the frame itself, so it is black and not a surface: what is
+ // drawn there is picture, and a tinted ground behind picture is a tinted
+ // picture. The dim ink is for the line that says there is none.
+ out property <color> stage: #000000;
+ out property <color> on-stage-dim: #ffffff6b;
+
+ // The sheet that covers the window behind a dialog. Dark rather than
+ // tinted: it has to work over the whole editor, and any hue in it would
+ // land differently on the timeline than on the monitor.
+ out property <color> overlay: #00000099;
+
+ // Chips that sit on artwork instead of on a panel, so they bring their own
+ // ground — the surface underneath is a video frame and cannot be relied on
+ // for contrast.
+ out property <color> scrim: #0000008c; // rgb(0 0 0 / 0.55)
+ out property <color> on-scrim: #ffffff;
+
+ // destructive
+ out property <color> danger: #ff453a;
+ out property <color> danger-soft: #ff453a24; // rgb(255 69 58 / 0.14)
+ /// A progress bar that has failed: the track it runs in, and the hairline
+ /// round it. Desaturated rather than `danger-soft` over the usual well,
+ /// because a bar is a large area and the alpha version of a saturated red
+ /// reads pink at that size.
+ out property <color> danger-wash: #2a1614;
+ out property <color> danger-edge: #5a2b28;
+
+ // window ground the panes float on — the prototype's page, a shade under
+ // the darkest panel so the gutters read as gaps and not as seams
+ out property <color> page: #08080a;
+ out property <color> page-fg-muted: #a1a1a6;
+}
diff --git a/engine/crates/concat/ui/theme/light.slint b/engine/crates/concat/ui/theme/light.slint
new file mode 100644
index 00000000..d632fd5a
--- /dev/null
+++ b/engine/crates/concat/ui/theme/light.slint
@@ -0,0 +1,206 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// The light palette — the same tokens as `dark.slint`, answered for a window
+// that is mostly white.
+//
+// Read the dark palette's header first: it is where the relationships a
+// palette has to keep are written down, and this file only records where it
+// had to answer them differently. Which is in three places, and all three are
+// why this is a file rather than a `1 - x` applied to the other one.
+//
+// - **The ladder does not invert.** `well < panel < raised < field <
+// field-hover < field-active` is a ladder of *prominence*, and in the dark
+// palette prominence happens to run towards white. Here it cannot: white
+// is the ceiling, and the panes are already sitting under it. So the
+// ladder is walked downwards — a raised card is the one pure white in the
+// window, and everything a pointer engages gets *darker* rather than
+// lighter. Two rungs then have to be placed by hand rather than by rule:
+// `field` and `field-hover` both stay above `well`, because the segmented
+// control's thumb is a `field-hover` riding on a `well` track and the
+// mute/solo pair are `field` buttons inset into one. `field-active` is the
+// rung that drops below the well, which is right — pressed is recessed.
+//
+// - **The accent comes down.** #cbf53f is a light on a dark ground. On a
+// near-white panel it is a highlighter: illegible as ink, and barely a
+// shape as a fill. This takes the same hue to where it can do both jobs —
+// dark enough to read as text on the panel, dark enough for white to read
+// on it — and `on-accent` flips to white in the same edit, which is
+// exactly the pairing the dark palette says has to hold. `green` and
+// `danger` move for the same reason and by the same amount.
+//
+// - **The clips are tinted, not shaded.** Each kind's `-well` is a light
+// wash of its hue here rather than a dark one, so everything drawn on the
+// body of a clip — a title's words, an envelope, a fade's wedge — is dark
+// ink where the dark palette has light. `clip-ink` is the exception and
+// stays white, because it is only ever drawn on the kind's own saturated
+// *mark*, which is a mid-tone in both themes.
+//
+// Everything else follows the dark palette's rules unchanged: `page` is under
+// every surface so the gutters read as gaps, the lanes are darker than the
+// pane they are cut into, the ruler is a step under the darker lane, and the
+// stage stays black because a tinted ground behind picture is a tinted
+// picture — a light theme does not get to relight the footage.
+//
+// The greys carry a trace of blue as they darken, the way `page` does in the
+// dark palette. It is what keeps a large field of light grey from going warm
+// and reading as paper.
+export global Light {
+ // surfaces
+ //
+ // The panes are near-white and the ground under them is a soft grey, which
+ // is the same arrangement as the dark palette read the other way up: the
+ // panes are the lit thing, the ground is not, and the step between them is
+ // the gutter. `raised` is the only pure white in the window and is spent
+ // where something genuinely floats — a menu, a tooltip, a dialog sheet.
+ out property <color> panel: #f7f7f8;
+ out property <color> raised: #ffffff;
+ out property <color> well: #dfdfe4;
+ out property <color> field: #f0f0f2;
+ out property <color> field-hover: #e8e8ec;
+ out property <color> field-active: #d6d6dd;
+
+ // hairlines — black-alpha, the mirror of the dark palette's white-alpha,
+ // so they hold on panel, well, and ground alike. A shade heavier than a
+ // straight inversion: dark hairlines on light surfaces are read at lower
+ // contrast than light ones on dark, and 10% black all but disappears.
+ out property <color> line: #0000001f; // rgb(0 0 0 / 0.12)
+ out property <color> line-strong: #00000038; // rgb(0 0 0 / 0.22)
+
+ // text — the three steps of the dark palette's ramp, matched on contrast
+ // against `panel` rather than by inverting the channels.
+ out property <color> fg: #16161a;
+ out property <color> fg-muted: #56565e;
+ out property <color> fg-dim: #86868c;
+
+ // accents
+ //
+ // Still the lime, taken down to where a near-white ground can hold it. At
+ // this value it clears 4.5:1 against `panel` as ink and white clears 5:1
+ // on it as a fill, which is what lets one token keep doing both jobs — the
+ // 41 places that tint a glyph or a border with it and the 26 that fill a
+ // control with it are the same token, and splitting them into an ink and a
+ // fill would be a second accent to keep in step.
+ //
+ // Hover goes darker, not lighter: on this ground more contrast is more
+ // engagement, which is the same sentence the dark palette's brighter hover
+ // is saying.
+ out property <color> accent: #4d7c0f;
+ out property <color> accent-hover: #3f680b;
+ out property <color> accent-soft: #4d7c0f2e; // rgb(77 124 15 / 0.18)
+ out property <color> green: #248a3d;
+ // Light ink, because the accent is now dark — the pairing the dark
+ // palette's `on-accent` comment insists on, honoured from the other side.
+ out property <color> on-accent: #ffffff;
+ out property <color> on-green: #ffffff;
+
+ // meter ramp — the same three readings, each deep enough to be told from
+ // the light well it is drawn in. The yellow is the one that has to move
+ // furthest: #ffd60a on near-white is a smear.
+ out property <color> meter-low: #2a9648;
+ out property <color> meter-mid: #c08a00;
+ out property <color> meter-high: #d70015;
+
+ // media kinds
+ //
+ // The pair is still a mark and the ground it sits on, and the bin card and
+ // the timeline clip still wear the same two. What changes is which way the
+ // ground goes: a light tint of the hue rather than a dark shade of it, so
+ // a clip reads as a coloured object on a light lane rather than as a hole
+ // punched in one. The marks are a step deeper than the dark palette's, so
+ // that `clip-ink` — white, on the mark, in both themes — still holds.
+ out property <color> kind-video: #2f6ad0;
+ out property <color> kind-video-well: #dbe6fa;
+ out property <color> kind-audio: #a8620a;
+ out property <color> kind-audio-well: #fbeacf;
+ out property <color> kind-image: #6d3fd6;
+ out property <color> kind-image-well: #e7dffb;
+ out property <color> kind-text: #cc2049;
+ out property <color> kind-text-well: #fbdde3;
+ out property <color> kind-filter: #0d7f6e;
+ out property <color> kind-filter-well: #d5f2ec;
+
+ // timeline
+ //
+ // Darker than `panel`, and banded, for the reasons the dark palette gives:
+ // the pane is a well the clips sit in, and the alternation answers "which
+ // lane" where the grid only answers "where in time". The ruler is a step
+ // under the darker of the two, so the strip carrying the timestamps is the
+ // floor of the pane and the banding starts below it.
+ out property <color> lane: #e9e9ed;
+ out property <color> lane-alt: #e2e2e6;
+ out property <color> ruler: #d9d9de;
+ /// The vertical rules. 13% black, under `line-strong` for the same reason
+ /// the dark palette's 14% white is: the grid places a clip, it does not
+ /// compete with one.
+ out property <color> grid: #00000021;
+ // Red, and used for nothing else.
+ out property <color> playhead: #d70015;
+ // Drawn on the audio clip's own light ground, so it is a *darker* wash of
+ // the kind's hue — the dark palette's light one would vanish into it.
+ out property <color> wave: #b06a12b3; // 0.7 alpha
+
+ // clip ink
+ //
+ // The family that has to hold against five hues rather than against a
+ // grey. Only the first of these is still light: it is drawn on the kind's
+ // saturated mark, which has not become a pale colour. Everything below it
+ // lands on the kind's tinted body, and is dark for that reason.
+ out property <color> clip-ink: #ffffff;
+ /// A title's words in the body of its clip. Warm and dimmed, the same
+ /// intent as the dark palette's — read as the content of the clip rather
+ /// than as a second label — inverted in value and not in temperature.
+ out property <color> clip-body: #3a2a10c7;
+ /// The chip a clip wears when effects are live on it. Still a dark wash:
+ /// it sits on the header's mark, next to `clip-ink`, not on the body.
+ out property <color> clip-chip: #00000059;
+ /// The centre line under a drawn envelope.
+ out property <color> wave-centre: #00000038;
+ /// A fade: the wedge of what is being taken away, and the line of the
+ /// envelope itself over it. Both dark now — on a tinted body the wedge is
+ /// still a shadow, and the envelope over it has to be darker still to be
+ /// the edge rather than part of the shade.
+ out property <color> fade-shade: #0000004d;
+ out property <color> fade-edge: #000000b3;
+ /// The two halves of a transition's wedge pair — the outgoing clip and
+ /// the incoming one, which is why they are not the same black.
+ out property <color> transition-in: #000000b3;
+ out property <color> transition-out: #00000059;
+
+ // the monitor
+ //
+ // Black in both themes, and deliberately: the stage is the frame, what is
+ // drawn there is picture, and a light ground behind picture is a lit
+ // picture. This is the one place a light theme is asked to stay dark.
+ out property <color> stage: #000000;
+ out property <color> on-stage-dim: #ffffff6b;
+
+ // The sheet that covers the window behind a dialog. Lighter than the dark
+ // palette's — it only has to push a light window back far enough for a
+ // white sheet to read as being in front of it, and 60% black over a light
+ // editor reads as the lights going out.
+ out property <color> overlay: #00000059;
+
+ // Chips that sit on artwork rather than on a panel, so they bring their
+ // own ground. Unchanged from the dark palette on purpose: the surface
+ // underneath is a video frame, which has no idea which theme is on.
+ out property <color> scrim: #0000008c;
+ out property <color> on-scrim: #ffffff;
+
+ // destructive
+ out property <color> danger: #d70015;
+ out property <color> danger-soft: #d7001524; // rgb(215 0 21 / 0.14)
+ /// A progress bar that has failed: the track it runs in, and the hairline
+ /// round it. Desaturated rather than `danger-soft` over the usual well,
+ /// because a bar is a large area and the alpha version of a saturated red
+ /// reads pink at that size.
+ out property <color> danger-wash: #fbe8e6;
+ out property <color> danger-edge: #eeb8b3;
+
+ // The window ground the panes float on. Far enough under the lightest
+ // panel for the gutters to read as gaps rather than as seams, and still a
+ // step under the darkest surface inside a pane, so a pane's floor never
+ // mistakes itself for the space between panes.
+ out property <color> page: #d2d2d9;
+ out property <color> page-fg-muted: #56565e;
+}
diff --git a/engine/crates/concat/ui/theme/theme.slint b/engine/crates/concat/ui/theme/theme.slint
new file mode 100644
index 00000000..5172e4d2
--- /dev/null
+++ b/engine/crates/concat/ui/theme/theme.slint
@@ -0,0 +1,209 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// The theme: the two palettes, and the one property that chooses between them.
+//
+// Everything the interface is made of — every colour, every radius, every
+// metric, every step of the type scale — is read from `Theme`, and nowhere
+// else. Nothing outside this directory names a colour. Which colour `Theme`
+// hands back depends on `dark`, and that is the whole of the switch.
+//
+// The split across the three files is by what a theme gets to decide:
+//
+// - `dark.slint` and `light.slint` are the palettes. Colours only, the same
+// token names in the same order, and each one complete — no palette
+// borrows a value from the other. Their headers say what the values mean
+// and which relationships between them are load-bearing; read the dark
+// one first, it is where those rules are written down.
+// - This file holds the switch, and everything a palette does *not* get to
+// decide: the type, the shape, and the content colours. A second theme is
+// a retone, not a redraw — the panels are the same size and the corners
+// are the same radius under both — and the colours a *title* can be belong
+// to the document, which is exported the same way whichever theme the
+// window happened to be wearing.
+//
+// To add a third theme: write the palette next door, import it here, and give
+// `dark` more than two answers to be. To fork the look wholesale: change the
+// values in a palette. Neither one touches a file outside this directory.
+//
+// Two things are deliberately *not* here:
+//
+// - The effect previews in ui/assets, which are photographs of what an
+// effect does rather than anything a theme decides.
+// - Sizes under about 5px — a 2px scrollbar thumb, a 1px splitter pill.
+// Those are shape at a scale nobody themes, and stay where they are drawn.
+import { Dark } from "dark.slint";
+import { Light } from "light.slint";
+
+export global Theme {
+ /// Which palette every colour below is read from. Settings > Appearance
+ /// picks it (main.rs, `on_settings_theme_changed`), and every binding in
+ /// the tree is a property read away from it, so the window retones in a
+ /// frame without anything being rebuilt.
+ in-out property <bool> dark: true;
+
+ // ── type ─────────────────────────────────────────────────────────────
+ //
+ // Two roles, not one, following the reference's own split.
+ //
+ // Synonym carries the interface. It is a text face, drawn for paragraph
+ // sizes, and it stays readable at the 10 and 11px this app is full of.
+ //
+ // Inter is the technical face: timecode, the ruler, clip labels, paths,
+ // dimensions, counts — anything you read as a *value* rather than as
+ // language. Its even, mechanical figures suit numbers, and keeping it off
+ // the prose is what stops the whole interface reading like a spec sheet.
+ //
+ // The reference spends a third face (Cabinet Grotesk) on display headings.
+ // There is nothing here big enough to need one yet.
+ out property <string> font: "Synonym";
+ out property <string> font-technical: "Inter";
+ /// The scale. `fs` is the body size everything inherits; the two either
+ /// side of it are the dense readout and the panel title. `xl` is for the
+ /// few lines that are content rather than chrome — a project's name in a
+ /// list — and `display` is the launch screen's heading and nothing else.
+ out property <length> fs-xs: 10px;
+ out property <length> fs-sm: 11px;
+ out property <length> fs: 12px;
+ out property <length> fs-lg: 13px;
+ out property <length> fs-xl: 14px;
+ out property <length> fs-input: 15px;
+ out property <length> fs-display: 34px;
+
+ // The weights the design actually calls for, uncompensated.
+ //
+ // Skia composites glyph coverage with gamma correction, so text comes out
+ // at the weight the tokens name — the same as it does in a browser.
+ // FemtoVG does not correct for it and thins small light-on-dark text,
+ // which is what the 500/600 these used to carry was compensating for. Put
+ // those back if you build --features wgpu; leave them alone otherwise, or
+ // the text is over-corrected and reads as too heavy.
+ //
+ // Weight is the one axis that can absorb a renderer difference without
+ // touching a colour token, and every face is bundled, so it costs nothing
+ // at runtime. Reach for it rather than nudging a surface to compensate.
+ out property <int> weight-body: 400; // 500 under --features wgpu
+ out property <int> weight-title: 500; // 600 under --features wgpu
+ /// The launch screen's heading, and the wordmark in the title bar. The one
+ /// weight above `title`, and the only place the type gets to be loud.
+ out property <int> weight-display: 600;
+
+ // ── shape ────────────────────────────────────────────────────────────
+ //
+ // radii
+ out property <length> r-xs: 3px;
+ out property <length> r-sm: 5px;
+ out property <length> r: 7px;
+ out property <length> r-lg: 12px;
+ /// The dialog sheet, and nothing smaller. A modal is the largest rounded
+ /// thing in the window and wants a corner to match.
+ out property <length> r-xl: 16px;
+
+ // metrics
+ out property <length> h: 28px; // standard control height
+ out property <length> gap: 6px;
+ out property <length> pad: 14px; // panel horizontal padding
+ out property <length> label-w: 62px;
+
+ // ── surfaces ─────────────────────────────────────────────────────────
+ out property <color> panel: dark ? Dark.panel : Light.panel;
+ out property <color> raised: dark ? Dark.raised : Light.raised;
+ out property <color> well: dark ? Dark.well : Light.well;
+ out property <color> field: dark ? Dark.field : Light.field;
+ out property <color> field-hover: dark ? Dark.field-hover : Light.field-hover;
+ out property <color> field-active: dark ? Dark.field-active : Light.field-active;
+
+ // hairlines
+ out property <color> line: dark ? Dark.line : Light.line;
+ out property <color> line-strong: dark ? Dark.line-strong : Light.line-strong;
+
+ // text
+ out property <color> fg: dark ? Dark.fg : Light.fg;
+ out property <color> fg-muted: dark ? Dark.fg-muted : Light.fg-muted;
+ out property <color> fg-dim: dark ? Dark.fg-dim : Light.fg-dim;
+
+ // accents
+ out property <color> accent: dark ? Dark.accent : Light.accent;
+ out property <color> accent-hover: dark ? Dark.accent-hover : Light.accent-hover;
+ out property <color> accent-soft: dark ? Dark.accent-soft : Light.accent-soft;
+ out property <color> green: dark ? Dark.green : Light.green;
+ out property <color> on-accent: dark ? Dark.on-accent : Light.on-accent;
+ out property <color> on-green: dark ? Dark.on-green : Light.on-green;
+
+ // meter ramp
+ out property <color> meter-low: dark ? Dark.meter-low : Light.meter-low;
+ out property <color> meter-mid: dark ? Dark.meter-mid : Light.meter-mid;
+ out property <color> meter-high: dark ? Dark.meter-high : Light.meter-high;
+
+ // media kinds
+ out property <color> kind-video: dark ? Dark.kind-video : Light.kind-video;
+ out property <color> kind-video-well: dark ? Dark.kind-video-well : Light.kind-video-well;
+ out property <color> kind-audio: dark ? Dark.kind-audio : Light.kind-audio;
+ out property <color> kind-audio-well: dark ? Dark.kind-audio-well : Light.kind-audio-well;
+ out property <color> kind-image: dark ? Dark.kind-image : Light.kind-image;
+ out property <color> kind-image-well: dark ? Dark.kind-image-well : Light.kind-image-well;
+ out property <color> kind-text: dark ? Dark.kind-text : Light.kind-text;
+ out property <color> kind-text-well: dark ? Dark.kind-text-well : Light.kind-text-well;
+ out property <color> kind-filter: dark ? Dark.kind-filter : Light.kind-filter;
+ out property <color> kind-filter-well: dark ? Dark.kind-filter-well : Light.kind-filter-well;
+
+ // timeline
+ out property <color> lane: dark ? Dark.lane : Light.lane;
+ out property <color> lane-alt: dark ? Dark.lane-alt : Light.lane-alt;
+ out property <color> ruler: dark ? Dark.ruler : Light.ruler;
+ out property <color> grid: dark ? Dark.grid : Light.grid;
+ out property <color> playhead: dark ? Dark.playhead : Light.playhead;
+ out property <color> wave: dark ? Dark.wave : Light.wave;
+
+ // clip ink
+ out property <color> clip-ink: dark ? Dark.clip-ink : Light.clip-ink;
+ out property <color> clip-body: dark ? Dark.clip-body : Light.clip-body;
+ out property <color> clip-chip: dark ? Dark.clip-chip : Light.clip-chip;
+ out property <color> wave-centre: dark ? Dark.wave-centre : Light.wave-centre;
+ out property <color> fade-shade: dark ? Dark.fade-shade : Light.fade-shade;
+ out property <color> fade-edge: dark ? Dark.fade-edge : Light.fade-edge;
+ out property <color> transition-in: dark ? Dark.transition-in : Light.transition-in;
+ out property <color> transition-out: dark ? Dark.transition-out : Light.transition-out;
+
+ // the monitor
+ out property <color> stage: dark ? Dark.stage : Light.stage;
+ out property <color> on-stage-dim: dark ? Dark.on-stage-dim : Light.on-stage-dim;
+
+ // sheets over things that are not panels
+ out property <color> overlay: dark ? Dark.overlay : Light.overlay;
+ out property <color> scrim: dark ? Dark.scrim : Light.scrim;
+ out property <color> on-scrim: dark ? Dark.on-scrim : Light.on-scrim;
+
+ // destructive
+ out property <color> danger: dark ? Dark.danger : Light.danger;
+ out property <color> danger-soft: dark ? Dark.danger-soft : Light.danger-soft;
+ out property <color> danger-wash: dark ? Dark.danger-wash : Light.danger-wash;
+ out property <color> danger-edge: dark ? Dark.danger-edge : Light.danger-edge;
+
+ // the window ground the panes float on
+ out property <color> page: dark ? Dark.page : Light.page;
+ out property <color> page-fg-muted: dark ? Dark.page-fg-muted : Light.page-fg-muted;
+
+ // ── content ──────────────────────────────────────────────────────────
+ //
+ // Colours the *edit* can be made of, as opposed to the interface — and the
+ // one group here that does not follow the switch. A title's colour is
+ // baked into the export; the video does not have a theme, and a shelf that
+ // offered different colours depending on which way the toggle was pointing
+ // would be offering to change the cut by changing the lighting in the room.
+ //
+ // They live here rather than beside the control that offers them because
+ // there is exactly one shelf and it belongs to the whole application. The
+ // list is the neutrals first, then the interface's own status hues, then
+ // the clip palette's marks — both palettes' accents are in it, so the row
+ // agrees with the window whichever way it is set.
+ out property <[color]> swatches: [
+ #ffffff, #f5f5f7, #a1a1a6, #6e6e73, #15220a, #000000,
+ #cbf53f, #4d7c0f, #30d158, #ffd60a, #f09e2f, #ff453a,
+ #e8355e, #8b5cf6, #4d8df6, #142640,
+ ];
+ /// What a title's plate is set to when the switch is turned on. A colour
+ /// and not a flag: turning it off is clearing it, and this is what "on"
+ /// means the first time.
+ out property <color> plate-on: #000000cc;
+}
diff --git a/engine/crates/concat/ui/timeline/lanes.slint b/engine/crates/concat/ui/timeline/lanes.slint
new file mode 100644
index 00000000..5d8735f9
--- /dev/null
+++ b/engine/crates/concat/ui/timeline/lanes.slint
@@ -0,0 +1,817 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt, Payload } from "../util.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { ClipData, ClipKind, DropData, TimelineTool, TrackData } from "model.slint";
+import { ContextMenu, MenuItemData } from "../primitives/context-menu.slint";
+
+// The lanes: the ruler, the banded track stack, the clips on it, the playhead
+// and the two band gestures.
+//
+// The reference draws all of this into a 2D canvas and hit-tests it by hand.
+// Slint has no canvas, so it is a scene graph instead — which costs an element
+// per clip and buys back the hit testing: a clip carries its own TouchArea, so
+// there is no `clipAt(x, y)` to keep in step with the renderer, and no way for
+// the two to disagree about where a clip is.
+//
+// Everything is positioned from *seconds*: `px-per-second` is the only bridge,
+// so zooming and panning are one property change rather than a model rewrite.
+// Nothing is culled beyond `visible` — a project this size does not need it,
+// and a windowing scheme is worth writing the day one does.
+
+// ── what a kind looks like ───────────────────────────────────────────────────
+
+// The two colours and the mark a clip wears, by kind. A global rather than
+// three properties on `Clip`, because the drop ghost is not a Clip and still
+// has to be painted as the clip it is about to become — and a ghost that is
+// the wrong colour is worse than no ghost.
+global Paint {
+ public pure function mark(kind: ClipKind) -> color {
+ return kind == ClipKind.audio ? Theme.kind-audio
+ : kind == ClipKind.image ? Theme.kind-image
+ : kind == ClipKind.text ? Theme.kind-text
+ : kind == ClipKind.filter ? Theme.kind-filter
+ : Theme.kind-video;
+ }
+ public pure function well(kind: ClipKind) -> color {
+ return kind == ClipKind.audio ? Theme.kind-audio-well
+ : kind == ClipKind.image ? Theme.kind-image-well
+ : kind == ClipKind.text ? Theme.kind-text-well
+ : kind == ClipKind.filter ? Theme.kind-filter-well
+ : Theme.kind-video-well;
+ }
+ public pure function badge(kind: ClipKind) -> Glyph {
+ return kind == ClipKind.audio ? Glyph.music
+ : kind == ClipKind.image ? Glyph.image
+ : kind == ClipKind.text ? Glyph.sparkle
+ : kind == ClipKind.filter ? Glyph.waveform
+ : Glyph.film;
+ }
+}
+
+// ── one clip ─────────────────────────────────────────────────────────────────
+
+component Clip inherits Rectangle {
+ in property <ClipData> item;
+ in property <length> px-per-second;
+ in property <TimelineTool> tool;
+ /// how close to an edge counts as grabbing it
+ in property <length> edge-grab: 6px;
+
+ /// A press landed: the caller resolves the selection before any drag.
+ callback pressed(additive: bool, edge: int);
+ /// Window-space delta since the press: seconds across, pixels down. Not
+ /// lanes down — the lanes are no longer one height, so which row a drag
+ /// has reached is a question only the side holding the heights can answer.
+ callback dragged(seconds: float, pixels: length);
+ callback released();
+ callback razored(seconds: float);
+ callback context-requested();
+
+ property <color> mark: Paint.mark(root.item.kind);
+ property <color> well: Paint.well(root.item.kind);
+ property <Glyph> badge: Paint.badge(root.item.kind);
+
+ /// The coloured name strip; the rest of the clip is its body.
+ property <length> header-h: 17px;
+ property <length> body-h: Math.max(0px, root.height - root.header-h);
+ /// A fade on a picture clip is shaded in a band at the foot instead of
+ /// over the whole body: the fade is an *audio* property, and shading the
+ /// picture would say it fades to black. A filter layer has no picture to
+ /// mislead about, and its ramp is the whole layer coming up, so it shades
+ /// like sound does.
+ property <bool> fade-whole: root.item.kind == ClipKind.audio
+ || root.item.kind == ClipKind.filter;
+ property <length> fade-h: root.fade-whole ? root.body-h : root.body-h * 0.45;
+
+ /// -1 body, 0 leading edge, 1 trailing edge
+ property <int> edge-at: touch.mouse-x < root.edge-grab ? 0
+ : touch.mouse-x > root.width - root.edge-grab ? 1
+ : -1;
+ /// Its lane is locked. Rust refuses the gestures either way; this is so
+ /// the clip says why before you try, rather than feeling broken.
+ in property <bool> locked;
+
+ opacity: root.locked ? 0.55 : 1.0;
+ border-radius: Theme.r-sm;
+ background: root.well;
+ border-width: root.item.selected ? 2px : 1px;
+ border-color: root.item.selected ? Theme.accent : root.mark;
+ clip: true;
+
+ // ── body ─────────────────────────────────────────────────────────────
+ Rectangle {
+ x: 0;
+ y: root.header-h;
+ width: parent.width;
+ height: root.body-h;
+ clip: true;
+
+ // The audio envelope. The commands arrive normalised into a 1x1 box
+ // and `fit: fill` stretches that onto whatever width the clip has, so
+ // the shape survives a zoom without Rust rebuilding the string. What
+ // it gives up against the reference is per-pixel extremes when zoomed
+ // right in — there the envelope is a stretched polyline rather than a
+ // fresh scan of the buckets.
+ if root.item.wave != "": Path {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ commands: root.item.wave;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: Theme.wave;
+ }
+
+ if root.item.wave != "": Rectangle {
+ x: 0;
+ y: (parent.height - 1px) / 2;
+ width: parent.width;
+ height: 1px;
+ background: Theme.wave-centre;
+ }
+
+ // A title has no media to draw, so the body shows the words — also the
+ // fastest way to tell two titles apart at a glance.
+ if root.item.kind == ClipKind.text && root.width > 24px: Text {
+ x: 7px;
+ y: 0;
+ width: parent.width - 14px;
+ height: parent.height;
+ text: root.item.text-body;
+ color: Theme.clip-body;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ // Where the reference tiles a filmstrip. Nothing in this tree decodes
+ // a frame yet, so a picture clip falls back to its kind's mark the way
+ // a bin card does — faint and large, so it reads as a placeholder and
+ // not as a badge. A filter layer takes the same treatment for the
+ // opposite reason: there is no picture to draw, and there never will
+ // be one.
+ if (root.item.kind == ClipKind.video || root.item.kind == ClipKind.image
+ || root.item.kind == ClipKind.filter) && root.width > 40px: Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: root.badge;
+ size: Math.min(22px, parent.height - 6px);
+ tint: root.mark.with-alpha(0.3);
+ }
+
+ // The fade ramps. The shaded wedge is the part being taken away and
+ // the bright line is the envelope itself — the shape every editor
+ // draws, because it reads as "this much is being attenuated".
+ if root.item.fade-in > 0: Rectangle {
+ x: 0;
+ y: parent.height - root.fade-h;
+ width: Math.min(parent.width, root.item.fade-in * root.px-per-second);
+ height: root.fade-h;
+
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: Theme.fade-shade;
+ commands: "M 0 0 L 1 0 L 0 1 Z";
+ }
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ stroke: Theme.fade-edge;
+ stroke-width: 1px;
+ commands: "M 0 1 L 1 0";
+ }
+ }
+
+ if root.item.fade-out > 0: Rectangle {
+ x: parent.width - self.width;
+ y: parent.height - root.fade-h;
+ width: Math.min(parent.width, root.item.fade-out * root.px-per-second);
+ height: root.fade-h;
+
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: Theme.fade-shade;
+ commands: "M 0 0 L 1 0 L 1 1 Z";
+ }
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ stroke: Theme.fade-edge;
+ stroke-width: 1px;
+ commands: "M 0 0 L 1 1";
+ }
+ }
+
+ // A transition on the cut into this clip: the wedge pair every editor
+ // uses for "these two dissolve".
+ if root.item.transition-in && root.width > 16px: Rectangle {
+ x: 1px;
+ y: (parent.height - self.height) / 2;
+ width: Math.min(9px, parent.height / 2);
+ height: self.width * 2;
+
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: Theme.transition-in;
+ commands: "M 0 0 L 1 0.5 L 0 1 Z";
+ }
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: Theme.transition-out;
+ commands: "M 1 0 L 0 0.5 L 1 1 Z";
+ }
+ }
+ }
+
+ // ── header ───────────────────────────────────────────────────────────
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: root.header-h;
+ background: root.mark;
+
+ if root.width > 30px: Text {
+ x: 7px;
+ y: 0;
+ width: parent.width - 14px - (root.item.fx && root.width > 60px ? 20px : 0px);
+ height: parent.height;
+ text: root.item.name;
+ color: Theme.clip-ink;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ // An `fx` chip when effects are live on the clip, so a styled clip is
+ // tellable from a plain one without opening a panel.
+ if root.item.fx && root.width > 60px: Rectangle {
+ x: parent.width - self.width - 4px;
+ y: 2.5px;
+ width: 14px;
+ height: parent.height - 5px;
+ border-radius: Theme.r-xs;
+ background: Theme.clip-chip;
+
+ Text {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ text: "fx";
+ color: Theme.clip-ink;
+ // Not a step of the scale: it is sized to the 12px chip it is
+ // centred in, the way a glyph is, and moves with that and not
+ // with the type.
+ font-size: 9px;
+ horizontal-alignment: center;
+ vertical-alignment: center;
+ }
+ }
+ }
+
+ // ── the gesture ──────────────────────────────────────────────────────
+ //
+ // The delta is taken in window coordinates — `absolute-position + mouse-x`
+ // — and not as `mouse-x - pressed-x`. A clip moves as it is dragged, so a
+ // local delta is measured against its own moving origin and cancels
+ // itself out; the drag stalls after the first frame. Same reasoning, and
+ // the same fix, as the workspace splitters.
+ touch := TouchArea {
+ enabled: !root.locked;
+ mouse-cursor: root.tool == TimelineTool.razor ? MouseCursor.crosshair
+ : root.edge-at >= 0 ? MouseCursor.ew-resize
+ : MouseCursor.grab;
+
+ pointer-event(event) => {
+ // The right button opens the menu and does nothing else — it must
+ // not also start a move, or the menu would appear over a clip that
+ // had already jumped.
+ if (event.kind == PointerEventKind.down
+ && event.button == PointerEventButton.right) {
+ root.context-requested();
+ return;
+ }
+ if (event.kind == PointerEventKind.down
+ && event.button == PointerEventButton.left) {
+ if (root.tool == TimelineTool.razor) {
+ // The razor cuts where you click, not at the playhead.
+ root.razored(self.mouse-x / root.px-per-second);
+ return;
+ }
+ self.origin-x = self.absolute-position.x + self.mouse-x;
+ self.origin-y = self.absolute-position.y + self.mouse-y;
+ root.pressed(event.modifiers.shift || event.modifiers.control
+ || event.modifiers.meta, root.edge-at);
+ } else if (event.kind == PointerEventKind.up
+ || event.kind == PointerEventKind.cancel) {
+ // Only a release ends it. Slint delivers `move` here too, so a
+ // plain `else` would end the gesture the moment it began.
+ root.released();
+ }
+ }
+
+ moved => {
+ if (root.tool == TimelineTool.select) {
+ root.dragged(
+ (self.absolute-position.x + self.mouse-x - self.origin-x)
+ / root.px-per-second,
+ self.absolute-position.y + self.mouse-y - self.origin-y);
+ }
+ }
+
+ property <length> origin-x;
+ property <length> origin-y;
+ }
+}
+
+// ── the lanes ────────────────────────────────────────────────────────────────
+
+export component Lanes inherits Rectangle {
+ in property <[TrackData]> tracks;
+ in property <[ClipData]> clips;
+ in property <TimelineTool> tool: TimelineTool.select;
+ in property <float> playhead;
+ in property <float> frame-rate: 30;
+ /// Seconds at the left edge of the lanes.
+ in property <float> scroll-left;
+ /// The zoom, as the reference spells it: seconds covered by one pixel.
+ in property <float> seconds-per-pixel: 0.05;
+ in property <length> track-scroll;
+ in property <length> ruler-height: 28px;
+
+ callback scrubbed(seconds: float);
+ callback clip-pressed(id: string, additive: bool, edge: int);
+ callback clip-dragged(seconds: float, pixels: length);
+ callback clip-released();
+ callback razored(id: string, seconds: float);
+ /// Right-click on a clip. The caller fills the menu and bumps `menu-token`;
+ /// where it opens is decided here, because only this side knows where the
+ /// pointer was.
+ callback clip-context(id: string);
+ callback menu-selected(id: string);
+
+ in property <[MenuItemData]> menu-items;
+ in property <length> menu-height;
+ in property <int> menu-token;
+
+ /// The token, but only for the Lanes that asked.
+ ///
+ /// `menu-token` is one number for the whole window, and a bump on it used
+ /// to open every menu bound to it. That was exactly one menu while there
+ /// was exactly one timeline; a second timeline seat makes it two, and the
+ /// one that was not right-clicked opens at the corner of itself, because
+ /// the position was only set on the one that was. So the pane that asked
+ /// says so, and only its own token moves.
+ property <bool> asked;
+ property <int> own-token;
+ changed menu-token => {
+ if (root.asked) {
+ root.asked = false;
+ root.own-token = root.menu-token;
+ }
+ }
+ /// A band closed over this box. Committed on release rather than live:
+ /// selecting as the band sweeps looks busy and makes a mistaken sweep hard
+ /// to back out of.
+ callback band-selected(from-seconds: float, to-seconds: float,
+ from-y: length, to-y: length, additive: bool);
+ callback scrolled(seconds: float);
+ callback track-scrolled(pixels: length);
+ callback zoomed(factor: float, anchor-seconds: float);
+
+ /// A drag from the library is over the lanes at this moment and this
+ /// place. Asked on every move of it, because the answer — the ghost below
+ /// — is where the drop would land, and that has to be recomputed as the
+ /// pointer travels.
+ callback drag-hovered(payload: string, seconds: float, y: length);
+ /// Released here. Same three arguments: the drop is the hover, committed.
+ callback dropped(payload: string, seconds: float, y: length);
+ /// The answer to the last hover. `active` is also the verdict — false is
+ /// how the drag is refused, and the cursor says so.
+ in property <DropData> drop;
+
+ property <length> px-per-second: 1px / Math.max(root.seconds-per-pixel, 0.000001);
+ property <length> lanes-h: Math.max(0px, root.height - root.ruler-height);
+ /// x of a moment, in the lanes' own coordinates
+ pure function at(seconds: float) -> length {
+ return (seconds - root.scroll-left) * root.px-per-second;
+ }
+ pure function seconds-at(x: length) -> float {
+ return root.scroll-left + x / root.px-per-second;
+ }
+ /// Pixels down the stack, from a y inside the lane area — which is what
+ /// both gestures that used to resolve a row now send instead. The band and
+ /// the drop target both start at the foot of the ruler, so their local y
+ /// needs only the scroll adding to it.
+ pure function stack-y(y: length) -> length {
+ return y + root.track-scroll;
+ }
+ /// The top of a row inside the lane area, scroll included.
+ pure function row-y(row: int) -> length {
+ return root.ruler-height + root.tracks[row].top - root.track-scroll;
+ }
+
+ // The ruler's tick ladder, from Rust. Zero means unbound, which draws no
+ // ticks rather than dividing by it.
+ property <float> tick: Fmt.tick-interval(root.seconds-per-pixel);
+ property <float> first-tick: root.tick > 0
+ ? Math.ceil(root.scroll-left / root.tick) * root.tick : 0;
+
+ background: Theme.lane;
+ clip: true;
+
+ // Ancestor of everything below, so a wheel the clips do not handle bubbles
+ // up to here. A sibling would not see it.
+ wheel := TouchArea {
+ scroll-event(event) => {
+ if (event.modifiers.control || event.modifiers.meta) {
+ // Proportional to the gesture rather than a fixed notch per
+ // event. A trackpad sends a stream of small deltas, and a flat
+ // 1.15 on each one slammed through the whole zoom range in a
+ // gesture; scaling the factor by the distance travelled makes
+ // a pinch feel like it is pulling the ruler apart.
+ //
+ // Negated because Slint's delta-y is positive scrolling *up*,
+ // which is the opposite of the DOM the reference was written
+ // against — and up is zoom in, which means a *smaller*
+ // seconds-per-pixel. This read backwards before.
+ //
+ // Clamped so one enormous delta — some mice send a whole
+ // page — cannot jump several octaves in a single event.
+ root.zoomed(
+ Fmt.clamp(Math.pow(1.0025, -event.delta-y / 1px), 0.5, 2.0),
+ root.seconds-at(self.mouse-x));
+ return EventResult.accept;
+ }
+ // A trackpad's horizontal axis always pans time. Shift does the
+ // same for a wheel, which has no horizontal axis of its own.
+ // Everything else scrolls the stack, which is what a plain wheel
+ // means in every other list.
+ if (event.delta-x != 0px || event.modifiers.shift) {
+ root.scrolled(Math.max(0, root.scroll-left
+ - (event.delta-x != 0px ? event.delta-x : event.delta-y)
+ / root.px-per-second));
+ return EventResult.accept;
+ }
+ root.track-scrolled(-event.delta-y);
+ return EventResult.accept;
+ }
+
+ // ── banded lanes ─────────────────────────────────────────────────
+ for track[row] in root.tracks: Rectangle {
+ x: 0;
+ y: root.ruler-height + track.top - root.track-scroll;
+ width: parent.width;
+ height: track.height;
+ background: Math.mod(row, 2) == 0 ? Theme.lane : Theme.lane-alt;
+ visible: self.y + track.height > root.ruler-height && self.y < root.height;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+ }
+
+ // The grid: one rule per ruler tick, so a clip edge can be read
+ // against the ruler without following it all the way up there. Same
+ // ladder, same positions — they are the same `tick`.
+ for step in 64: Rectangle {
+ property <float> seconds: root.first-tick + step * root.tick;
+
+ x: root.at(self.seconds);
+ y: root.ruler-height;
+ width: 1px;
+ height: root.lanes-h;
+ background: Theme.grid;
+ visible: root.tick > 0 && self.x >= 0px && self.x < parent.width;
+ }
+
+ // Declared before the clips, so each clip takes its own press and what
+ // is left is the empty lane — which starts a band.
+ band := TouchArea {
+ x: 0;
+ y: root.ruler-height;
+ width: parent.width;
+ height: root.lanes-h;
+
+ property <bool> drawing;
+ property <bool> additive;
+ property <length> from-x;
+ property <length> from-y;
+ property <length> to-x;
+ property <length> to-y;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ self.additive = event.modifiers.shift;
+ self.from-x = self.mouse-x;
+ self.from-y = self.mouse-y;
+ self.to-x = self.mouse-x;
+ self.to-y = self.mouse-y;
+ self.drawing = true;
+ } else if (event.kind == PointerEventKind.up
+ || event.kind == PointerEventKind.cancel) {
+ if (self.drawing) {
+ self.drawing = false;
+ root.band-selected(
+ root.seconds-at(Math.min(self.from-x, self.to-x)),
+ root.seconds-at(Math.max(self.from-x, self.to-x)),
+ root.stack-y(Math.min(self.from-y, self.to-y)),
+ root.stack-y(Math.max(self.from-y, self.to-y)),
+ self.additive);
+ }
+ }
+ }
+
+ moved => {
+ self.to-x = self.mouse-x;
+ self.to-y = self.mouse-y;
+ }
+ }
+
+ // ── the clips ────────────────────────────────────────────────────
+ for entry in root.clips: Clip {
+ x: root.at(entry.start);
+ // Both from the lane it sits on, so a clip follows its row's
+ // height without a second copy of it to keep in step.
+ y: root.row-y(entry.row) + 4px;
+ width: Math.max(2px, entry.duration * root.px-per-second);
+ height: Math.max(2px, root.tracks[entry.row].height - 10px);
+ visible: self.x + self.width > 0 && self.x < root.width
+ && self.y + self.height > root.ruler-height && self.y < root.height;
+
+ item: entry;
+ px-per-second: root.px-per-second;
+ tool: root.tool;
+ // Read back through the lane the clip sits on rather than carried
+ // on the clip: locking is a property of the lane, and copying it
+ // onto every clip would be one more thing to keep in step.
+ locked: root.tracks[entry.row].locked;
+
+ pressed(additive, edge) => { root.clip-pressed(entry.id, additive, edge); }
+ dragged(seconds, pixels) => { root.clip-dragged(seconds, pixels); }
+ released => { root.clip-released(); }
+ razored(seconds) => { root.razored(entry.id, entry.start + seconds); }
+ context-requested => {
+ // Captured before the round trip: by the time the items come
+ // back the pointer may have moved, and a menu that opens away
+ // from the click reads as a misfire. `asked` goes up first for
+ // the same reason — the call below publishes before it
+ // returns, so the token can arrive inside it.
+ menu.request-x = wheel.mouse-x;
+ menu.request-y = wheel.mouse-y;
+ root.asked = true;
+ root.clip-context(entry.id);
+ }
+ }
+
+ // ── the band being drawn ─────────────────────────────────────────
+ if band.drawing: Rectangle {
+ x: Math.min(band.from-x, band.to-x);
+ y: root.ruler-height + Math.min(band.from-y, band.to-y);
+ width: Math.max(band.from-x, band.to-x) - Math.min(band.from-x, band.to-x);
+ height: Math.max(band.from-y, band.to-y) - Math.min(band.from-y, band.to-y);
+ background: Theme.accent-soft;
+ border-width: 1px;
+ border-color: Theme.accent;
+ }
+
+ // ── the drop target ──────────────────────────────────────────────
+ //
+ // Declared after the clips, so a drag reaches it before them — but a
+ // TouchArea ignores drag events and a DropArea ignores everything
+ // else, so the two never take each other's. It covers the lanes and
+ // not the ruler: a drop is a placement on a track, and the ruler is
+ // where time is scrubbed.
+ landing := DropArea {
+ x: 0;
+ y: root.ruler-height;
+ width: parent.width;
+ height: root.lanes-h;
+
+ can-drop(event) => {
+ // Rust is asked rather than told: it is the side that knows
+ // how long the media runs, what the payload names, and where
+ // the snap will pull the start to. It answers by publishing
+ // `drop`, which is both the ghost and the verdict — so this
+ // reads its own answer back, one statement later.
+ root.drag-hovered(Payload.text(event.data),
+ root.seconds-at(event.position.x),
+ root.stack-y(event.position.y));
+ return root.drop.active ? DragAction.copy : DragAction.none;
+ }
+
+ dropped(event) => {
+ root.dropped(Payload.text(event.data),
+ root.seconds-at(event.position.x),
+ root.stack-y(event.position.y));
+ return DragAction.copy;
+ }
+ }
+
+ // ── the ghost ────────────────────────────────────────────────────
+ //
+ // The clip the drop will make, drawn where it will make it. Gated on
+ // `has-drag` as well as on Rust's verdict: a drag that leaves the
+ // lanes gets an Exit and no further hover, so without it the ghost
+ // would sit there after the pointer had gone.
+ if root.drop.active && landing.has-drag: Rectangle {
+ x: root.at(root.drop.start);
+ y: root.row-y(root.drop.row) + 4px;
+ width: Math.max(2px, root.drop.duration * root.px-per-second);
+ height: Math.max(2px, root.tracks[root.drop.row].height - 10px);
+ border-radius: Theme.r-sm;
+ background: Paint.well(root.drop.kind);
+ // The accent, not the kind's mark: this is a target, and every
+ // other target in the window — the band, a selected clip — is
+ // outlined in it.
+ border-width: 2px;
+ border-color: Theme.accent;
+ opacity: 0.85;
+ clip: true;
+
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: 17px;
+ background: Paint.mark(root.drop.kind);
+
+ if parent.width > 30px: Text {
+ x: 7px;
+ y: 0;
+ width: parent.width - 14px;
+ height: parent.height;
+ text: root.drop.label;
+ color: Theme.clip-ink;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+ }
+
+ // ── the razor guide ──────────────────────────────────────────────
+ //
+ // Follows the pointer so the cut is visible before it is made. The
+ // outer TouchArea is hovered even while the pointer is over a clip,
+ // which is what keeps the guide alive across one.
+ if root.tool == TimelineTool.razor && wheel.has-hover: Rectangle {
+ x: wheel.mouse-x;
+ y: root.ruler-height;
+ width: 1px;
+ height: root.lanes-h;
+ background: Theme.fg;
+ opacity: 0.5;
+ }
+
+ // ── the ruler ────────────────────────────────────────────────────
+ //
+ // Last, so it paints over any lane scrolled up behind it, and so its
+ // scrub area sits above the band's.
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: root.ruler-height;
+ background: Theme.ruler;
+ clip: true;
+
+ // Fixed count, clipped to the pane. A tick count derived from the
+ // width would tear down and rebuild the whole row on every frame
+ // of a splitter drag; 64 covers any window at the 90px minimum
+ // spacing the ladder guarantees.
+ for step in 64: Rectangle {
+ property <float> seconds: root.first-tick + step * root.tick;
+
+ x: root.at(self.seconds);
+ y: 0;
+ // Wide enough for the label it carries; the mark itself is the
+ // 1px child pinned at this cell's leading edge.
+ width: 64px;
+ height: root.ruler-height;
+ background: Colors.transparent;
+ visible: root.tick > 0 && self.x < parent.width;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 7px;
+ width: 1px;
+ height: 7px;
+ background: Theme.line-strong;
+ }
+
+ Text {
+ x: 5px;
+ y: 0;
+ width: parent.width - 7px;
+ height: parent.height - 7px;
+ text: Fmt.frames-timecode(parent.seconds, root.frame-rate);
+ color: Theme.fg-dim;
+ font-size: Theme.fs-xs;
+ vertical-alignment: center;
+ }
+ }
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ // The ruler is the scrub strip. Dragging in the lanes draws a
+ // band instead — the convention every NLE shares, and the only way
+ // the two gestures can share one surface.
+ scrub := TouchArea {
+ mouse-cursor: pointer;
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.scrubbed(Math.max(0, root.seconds-at(self.mouse-x)));
+ }
+ }
+ moved => {
+ if (self.pressed) {
+ root.scrubbed(Math.max(0, root.seconds-at(self.mouse-x)));
+ }
+ }
+ }
+ }
+
+ // Last of all, so its surface is over everything. A PopupWindow is its
+ // own layer and escapes this pane's clip, but the element that places
+ // it still has to be able to measure the space it is placing into.
+ menu := ContextMenu {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ items: root.menu-items;
+ menu-height: root.menu-height;
+ token: root.own-token;
+ selected(id) => { root.menu-selected(id); }
+ }
+
+ // ── the playhead ─────────────────────────────────────────────────
+ //
+ // Over everything, ruler included: it is the one thing that must never
+ // be behind a clip.
+ Rectangle {
+ x: root.at(root.playhead);
+ y: 0;
+ width: 1px;
+ height: root.height;
+ background: Theme.playhead;
+ visible: self.x >= -1px && self.x <= root.width;
+
+ Rectangle {
+ x: -5px;
+ y: 0;
+ width: 11px;
+ height: 9px;
+
+ Path {
+ width: parent.width;
+ height: parent.height;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: Theme.playhead;
+ commands: "M 0 0 L 1 0 L 0.5 1 Z";
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/timeline/model.slint b/engine/crates/concat/ui/timeline/model.slint
new file mode 100644
index 00000000..d6c730d3
--- /dev/null
+++ b/engine/crates/concat/ui/timeline/model.slint
@@ -0,0 +1,197 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// The timeline's shared vocabulary: what a tab, a lane and a clip are.
+//
+// One file rather than a struct beside each component, because these cross
+// every boundary in the panel — Rust publishes them, the tab strip, the track
+// column and the lanes all read them — and a struct declared in the file that
+// happens to draw it first makes the import graph say something untrue about
+// who owns it.
+
+/// Wider than MediaKind: a title has no file behind it, it *is* its content,
+/// and a filter has no file either — it is a preset dragged from the library's
+/// Filters page that covers a span of time and treats whatever plays under it,
+/// the way CapCut's filter bars do. Mirrors the reference's ClipKind, plus
+/// that layer.
+export enum ClipKind { video, audio, image, text, filter }
+
+/// What a press on a clip means.
+export enum TimelineTool {
+ /// grab, move, trim, band-select
+ select,
+ /// cut where you click, not where the playhead is
+ razor,
+}
+
+/// One tab. A project holds several timelines the way it holds sequences in
+/// any other editor; the active one is what the lanes, the preview and the
+/// exporter all show.
+export struct TimelineTabData {
+ id: string,
+ name: string,
+}
+
+/// How tall a lane is drawn.
+///
+/// `auto` is the default, and the only one that thinks: a lane is as tall as
+/// the tallest thing on it, so a lane of footage opens large, a lane of sound
+/// medium, and a lane of filter layers minimal. That is the shape CapCut gets
+/// by typing its tracks — arrived at here without typing them, which matters
+/// because these lanes are deliberately untyped and a mixed one still has to
+/// be right. The other three are the override, per lane, from the dropdown in
+/// its header.
+export enum TrackSize { auto, small, medium, large }
+
+/// One lane. Deliberately untyped, like the reference's Track: any media goes
+/// on any track, which is why every lane carries both a visibility and a mute
+/// switch rather than one or the other.
+export struct TrackData {
+ id: string,
+ name: string,
+ visible: bool,
+ muted: bool,
+ /// What the header's dropdown shows, and what `height` was resolved from.
+ size: TrackSize,
+ /// The lane's drawn height, and its top edge measured down the stack from
+ /// the first lane. Both resolved by Rust: the stack is no longer a
+ /// multiple of one pitch, and a running total over a model is not
+ /// something Slint's expression language can express.
+ height: length,
+ top: length,
+ /// Clips on a locked lane cannot be selected, moved, trimmed or cut, and
+ /// nothing can be dropped onto it. Not a flag the reference carries — its
+ /// TrackFlag is visible/muted only — but a lane you can see and hear and
+ /// still knock sideways by accident is the one every editor locks.
+ locked: bool,
+}
+
+/// One placed clip, already reduced to what drawing it needs.
+///
+/// Positions are in *seconds*, not pixels. Zoom and pan are then a property
+/// change on the lanes and not a republish of the model — panning a timeline
+/// would otherwise rewrite every row of it on every frame of the drag.
+export struct ClipData {
+ id: string,
+ name: string,
+ kind: ClipKind,
+ /// index into the track list as the lanes draw it, top lane first
+ row: int,
+ /// seconds from the start of the timeline
+ start: float,
+ /// seconds of timeline occupied
+ duration: float,
+ selected: bool,
+ /// at least one video effect is live: draws the `fx` chip in the header
+ fx: bool,
+ /// there is a transition on the cut into this clip
+ transition-in: bool,
+ /// seconds of audio ramp at each end; zero for none
+ fade-in: float,
+ fade-out: float,
+ /// linear gain, 1 being unity — the drawn waveform follows it
+ volume: float,
+ /// a title's words, for the body of a text clip
+ text-body: string,
+ /// The audio envelope as SVG path commands in a 1x1 viewbox, or empty.
+ ///
+ /// Normalised rather than in pixels so the shape survives zoom: the Path
+ /// that draws it is `fit: fill`, which stretches the box onto whatever
+ /// width the clip currently has. Built once in Rust, where the peaks are.
+ wave: string,
+}
+
+/// What a drag from the library will leave on the timeline if it is released
+/// where the pointer is now.
+///
+/// Published by Rust while a drag hovers the lanes rather than worked out in
+/// the panel, so the ghost the lanes draw *is* the drop: the snap, the lane it
+/// lands on and how long it runs are all decided once, in the place that will
+/// have to decide them again when the mouse comes up.
+export struct DropData {
+ /// A drag the timeline will accept is over the lanes. False hides the
+ /// ghost — including for a drag that came from another application, whose
+ /// payload this tree cannot read.
+ active: bool,
+ kind: ClipKind,
+ /// What the clip will be called; drawn in the ghost's header.
+ label: string,
+ start: float,
+ duration: float,
+ row: int,
+}
+
+/// Which axis the alignment segmented control is on. Mirrors TextAlign.
+export enum TextAlignment { left, center, right }
+
+/// One editable property of the selected clip.
+///
+/// The inspector sends a field and a number rather than a struct: a patch of
+/// "everything, with one thing different" makes a late-arriving gesture
+/// overwrite whatever landed while it was in flight. Booleans travel as 0/1
+/// and alignment as its ordinal, which keeps this to two callbacks instead of
+/// one per control.
+export enum ClipField {
+ scale, offset-x, offset-y, rotation, opacity,
+ volume, speed, preserve-pitch, fade-in, fade-out,
+ font-size, font-weight, italic, text-opacity, align,
+ stroke-width, shadow, line-height, tracking,
+}
+
+/// The same again for the properties that are text rather than numbers.
+export enum ClipTextField {
+ content, font-family, color, stroke-color, background,
+}
+
+/// The selected clip, flattened for the inspector.
+///
+/// One struct rather than a model of one, because there is either a selection
+/// or there is not — `present` is what says which, since a struct cannot be
+/// null. Published whole on every change: it is one row, and a partial update
+/// is how a panel ends up showing two clips at once.
+export struct SelectedClipData {
+ present: bool,
+ id: string,
+ name: string,
+ kind: ClipKind,
+ /// Seconds, and the ceiling on a fade: longer than half the clip and the
+ /// two ramps would overlap.
+ duration: float,
+
+ // transform — video and stills
+ scale: float,
+ offset-x: float,
+ offset-y: float,
+ rotation: float,
+ opacity: float,
+
+ // sound — everything but a still
+ /// linear gain; the fader works in decibels and converts
+ volume: float,
+ speed: float,
+ preserve-pitch: bool,
+ fade-in: float,
+ fade-out: float,
+
+ // the overlay, when this is a text clip
+ content: string,
+ font-family: string,
+ /// share of frame height, not points: the frame can be any resolution
+ font-size: float,
+ font-weight: float,
+ italic: bool,
+ fill: color,
+ fill-hex: string,
+ align: TextAlignment,
+ text-opacity: float,
+ stroke-width: float,
+ stroke: color,
+ stroke-hex: string,
+ shadow: bool,
+ /// the plate behind the words; fully transparent means no plate
+ plate: color,
+ plate-hex: string,
+ plated: bool,
+ line-height: float,
+ tracking: float,
+}
diff --git a/engine/crates/concat/ui/timeline/tabs.slint b/engine/crates/concat/ui/timeline/tabs.slint
new file mode 100644
index 00000000..ed4404bf
--- /dev/null
+++ b/engine/crates/concat/ui/timeline/tabs.slint
@@ -0,0 +1,265 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { TimelineTabData } from "model.slint";
+
+// The timeline tabs, one per timeline in the project — sequences, in the
+// vocabulary every other editor uses. Kept above the tool tray so switching
+// reads as changing documents rather than changing tools.
+//
+// Behaviour is the reference's (TimelinePanel.tsx): click switches,
+// double-click renames in place committing on blur, and the close button asks
+// — deleting a timeline throws away every clip on it, so this strip never
+// deletes directly. The shape is the one from web/'s timeline: a squared-off
+// tab whose active state is a raised ground plus a 2px accent bar on its *top*
+// edge, inset from the corners. The bar sits away from the content it opens
+// onto, so it reads as a label on the tab and not as an underline on the panel.
+//
+// Not ported: dragging a tab to reorder. It wants a lifted tab riding the
+// pointer while its neighbours ease aside, which is a whole gesture rather
+// than a detail of this one.
+
+component Tab inherits Rectangle {
+ in property <string> name;
+ in property <bool> current;
+ /// last tab standing: nothing to close down to
+ in property <bool> closable;
+
+ callback selected();
+ callback renamed(name: string);
+ callback close-requested();
+
+ property <bool> renaming;
+ /// The label's natural width, capped. Read from `preferred-width` and not
+ /// from the label's actual width: the label is sized *from* this, and
+ /// asking it how wide it ended up is a loop.
+ property <length> text-w: Math.min(130px, label.preferred-width);
+ /// room for the padding, plus the close button when there is one
+ property <length> furniture: root.closable ? 38px : 22px;
+
+ width: renaming ? 112px : root.text-w + root.furniture;
+ height: 30px;
+ border-radius: Theme.r-sm;
+ // Bottom corners squared: the tab meets the strip's edge, it does not
+ // float above it. Slint has no per-corner radius, so the two lower corners
+ // are filled back in by the band below.
+ background: root.current ? Theme.raised
+ : touch.has-hover ? Theme.field
+ : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ // squares off the bottom corners the radius above rounded
+ Rectangle {
+ x: 0;
+ y: parent.height - Theme.r-sm;
+ width: parent.width;
+ height: Theme.r-sm;
+ background: parent.background;
+ }
+
+ if root.current: Rectangle {
+ x: 6px;
+ y: 0;
+ width: parent.width - 12px;
+ height: 2px;
+ background: Theme.accent;
+ }
+
+ // Everything sits inside the hover target, so the close button revealed on
+ // hover cannot blink itself out of existence by taking the hover away from
+ // the tab underneath it. Same rule as MediaCard.
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.selected();
+ }
+ double-clicked => {
+ root.renaming = true;
+ }
+
+ label := Text {
+ x: 10px;
+ y: (parent.height - self.height) / 2;
+ width: root.text-w;
+ text: root.name;
+ color: root.current ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ visible: !root.renaming;
+ }
+
+ // Revealed on hover, like the reference's — a row of permanent x's over
+ // a strip of tabs is a row of invitations to lose an edit.
+ if root.closable && touch.has-hover && !root.renaming: Rectangle {
+ x: parent.width - self.width - 5px;
+ y: (parent.height - self.height) / 2;
+ width: 16px;
+ height: 16px;
+ border-radius: Theme.r-xs;
+ background: shut.has-hover ? Theme.danger-soft : Colors.transparent;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.close;
+ size: 10px;
+ tint: shut.has-hover ? Theme.danger : Theme.fg-dim;
+ }
+
+ shut := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ // Must not also switch tabs: closing an inactive timeline
+ // should not first drag the editor onto it. A TouchArea
+ // declared inside another one takes the click outright, so
+ // this stops here without needing to say so.
+ root.close-requested();
+ }
+ }
+ }
+ }
+
+ if root.renaming: Rectangle {
+ x: 4px;
+ y: 4px;
+ width: parent.width - 8px;
+ height: parent.height - 8px;
+ border-radius: Theme.r-xs;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.accent;
+ clip: true;
+
+ rename := TextInput {
+ x: 5px;
+ y: (parent.height - self.height) / 2;
+ width: parent.width - 10px;
+ text: root.name;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ single-line: true;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ init => {
+ self.focus();
+ self.select-all();
+ }
+
+ // Commit on blur, so clicking away saves rather than discards —
+ // the rule every rename-in-place in this app follows.
+ changed has-focus => {
+ if (!self.has-focus && root.renaming) {
+ root.renamed(self.text);
+ root.renaming = false;
+ }
+ }
+
+ accepted => {
+ self.clear-focus();
+ }
+
+ key-pressed(event) => {
+ if (event.text == Key.Escape) {
+ self.text = root.name;
+ self.clear-focus();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+ }
+}
+
+export component TimelineTabs inherits Rectangle {
+ in property <[TimelineTabData]> tabs;
+ in property <int> current;
+
+ callback selected(index: int);
+ callback renamed(index: int, name: string);
+ callback close-requested(index: int);
+ callback added();
+
+ height: 32px;
+ background: Theme.well;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ // Bottom-aligned: the tabs stand on the strip's edge, and the add
+ // button beside them sits on the same baseline rather than floating.
+ alignment: start;
+ spacing: 2px;
+
+ for tab[index] in root.tabs: VerticalLayout {
+ alignment: end;
+ Tab {
+ name: tab.name;
+ current: index == root.current;
+ closable: root.tabs.length > 1;
+
+ selected => { root.selected(index); }
+ renamed(name) => { root.renamed(index, name); }
+ close-requested => { root.close-requested(index); }
+ }
+ }
+
+ VerticalLayout {
+ alignment: end;
+ padding-left: 2px;
+ padding-bottom: 4px;
+
+ add := Rectangle {
+ width: 22px;
+ height: 22px;
+ border-radius: Theme.r-xs;
+ background: plus.has-hover ? Theme.field : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.plus;
+ size: 12px;
+ tint: plus.has-hover ? Theme.fg : Theme.fg-dim;
+ }
+
+ plus := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.added(); }
+ }
+ }
+ }
+ }
+
+ // The trailing slot, for whatever the pane wants in the corner of its
+ // top bar. A second layer over the strip rather than a child of its
+ // layout: that one is start-aligned so the tabs keep their own width, and
+ // a start-aligned layout has no spare space to push a trailing child into.
+ // Nothing here is hit-testable, so the tabs underneath keep their clicks.
+ //
+ // End-aligned rather than placed at a coordinate, so whatever is put in it
+ // is asked how wide it is instead of being told.
+ HorizontalLayout {
+ alignment: end;
+ padding-right: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ @children
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/timeline/track-header.slint b/engine/crates/concat/ui/timeline/track-header.slint
new file mode 100644
index 00000000..520eedce
--- /dev/null
+++ b/engine/crates/concat/ui/timeline/track-header.slint
@@ -0,0 +1,382 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { IconButton } from "../primitives/panel.slint";
+import { ThinScrollbar } from "../primitives/scrollbar.slint";
+import { TrackData, TrackSize } from "model.slint";
+
+// The lane labels, in a fixed column beside the lanes.
+//
+// Both a visibility and a mute toggle on every row, because a track is not
+// typed — the same lane can be carrying a video clip and an mp3 side by side,
+// and each needs its own switch.
+//
+// The column scrolls with the lanes rather than on its own: the offset is the
+// caller's `track-scroll`, so the labels and the lanes cannot drift apart.
+// There is one source of truth for how far down the stack we are.
+//
+// The bar that drives it lives here, at the leading edge of this column — the
+// reference gets one for free by making the header column a real scroll
+// container, and this is the same bar in the one place a stack of lanes can
+// carry one without landing on top of a clip.
+
+// The row-height dropdown, one per lane.
+//
+// A menu and not a cycling button: four values is one too many to walk
+// through blind, and the list is also where "Auto" gets to say that it is the
+// default rather than a fourth size. Sized and placed like the switches beside
+// it, so the row reads as one strip of controls.
+component SizeMenu inherits Rectangle {
+ in property <TrackSize> current;
+ in property <string> name;
+
+ callback picked(size: TrackSize);
+
+ width: 26px;
+ min-height: 26px;
+
+ property <[string]> labels: ["Auto", "Small", "Medium", "Large"];
+ property <length> row-h: 24px;
+ /// The two directions between a TrackSize and its row. Slint has no map,
+ /// and four values do not earn one.
+ pure function chosen() -> int {
+ return root.current == TrackSize.small ? 1
+ : root.current == TrackSize.medium ? 2
+ : root.current == TrackSize.large ? 3
+ : 0;
+ }
+ pure function size-at(index: int) -> TrackSize {
+ return index == 1 ? TrackSize.small
+ : index == 2 ? TrackSize.medium
+ : index == 3 ? TrackSize.large
+ : TrackSize.auto;
+ }
+
+ IconButton {
+ glyph: Glyph.rows;
+ label: "Row height for " + root.name;
+ icon-size: 12px;
+ // Lit only when the lane has been sized by hand: auto is the resting
+ // state, and a button lit on every row would say nothing.
+ checked: root.current != TrackSize.auto;
+ clicked => { list.show(); }
+ }
+
+ list := PopupWindow {
+ // Hung from the button's trailing edge rather than its leading one:
+ // this is the last control in the row on a narrow column, and a list
+ // opening rightwards would open off the pane.
+ x: 26px - self.width;
+ y: 26px;
+ width: 116px;
+ height: 4 * root.row-h + 8px;
+ close-policy: close-on-click-outside;
+
+ Rectangle {
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+ clip: true;
+
+ VerticalLayout {
+ padding: 4px;
+ alignment: start;
+
+ for label[index] in root.labels: Rectangle {
+ height: root.row-h;
+ border-radius: Theme.r-sm;
+ background: pick.has-hover ? Theme.field-hover : Colors.transparent;
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ spacing: 6px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: label;
+ color: pick.has-hover ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ if index == root.chosen(): VerticalLayout {
+ alignment: center;
+ Icon { glyph: Glyph.check; size: 12px; tint: Theme.accent; }
+ }
+ }
+
+ pick := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.picked(root.size-at(index));
+ list.close();
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+component Header inherits Rectangle {
+ in property <TrackData> track;
+ in property <bool> removable;
+
+ callback flag-changed(visible: bool, muted: bool, locked: bool);
+ callback sized(size: TrackSize);
+ callback removed();
+ callback renamed(name: string);
+
+ property <bool> renaming;
+ /// Neither seen nor heard: the name goes dim, so a lane that contributes
+ /// nothing to the render says so at a glance.
+ property <bool> silent: !root.track.visible && root.track.muted;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ row := TouchArea {
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 4px;
+ padding-top: 6px;
+ spacing: 1px;
+ // No `alignment: start` here. A start-aligned row gives every
+ // child its preferred width and stops stretching altogether — and
+ // the name column's preferred width is nothing, so the label
+ // vanished and the lane read as a bare row of switches. The
+ // switches are start-aligned on the *cross* axis individually,
+ // which is the part that was actually wanted.
+
+ VerticalLayout {
+ alignment: start;
+ horizontal-stretch: 1;
+
+ Rectangle {
+ height: 20px;
+ horizontal-stretch: 1;
+
+ name := Text {
+ x: 0;
+ y: (parent.height - self.height) / 2;
+ width: parent.width;
+ text: root.track.name;
+ color: root.silent ? Theme.fg-dim : Theme.fg;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ visible: !root.renaming;
+ }
+
+ // Double-click to rename, commit on blur — the same rule
+ // the tab strip follows.
+ if !root.renaming: TouchArea {
+ double-clicked => { root.renaming = true; }
+ }
+
+ if root.renaming: Rectangle {
+ border-radius: Theme.r-xs;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: Theme.accent;
+ clip: true;
+
+ rename := TextInput {
+ x: 4px;
+ y: (parent.height - self.height) / 2;
+ width: parent.width - 8px;
+ text: root.track.name;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ single-line: true;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+
+ init => {
+ self.focus();
+ self.select-all();
+ }
+
+ changed has-focus => {
+ if (!self.has-focus && root.renaming) {
+ root.renamed(self.text);
+ root.renaming = false;
+ }
+ }
+
+ accepted => { self.clear-focus(); }
+
+ key-pressed(event) => {
+ if (event.text == Key.Escape) {
+ self.text = root.track.name;
+ self.clear-focus();
+ return EventResult.accept;
+ }
+ return EventResult.reject;
+ }
+ }
+ }
+ }
+ }
+
+ // Revealed on hover, and never on the last lane standing.
+ if root.removable && row.has-hover && !root.renaming: VerticalLayout {
+ alignment: start;
+ IconButton {
+ glyph: Glyph.close;
+ label: "Remove " + root.track.name;
+ icon-size: 11px;
+ danger: true;
+ clicked => { root.removed(); }
+ }
+ }
+
+ VerticalLayout {
+ alignment: start;
+ SizeMenu {
+ current: root.track.size;
+ name: root.track.name;
+ picked(size) => { root.sized(size); }
+ }
+ }
+
+ VerticalLayout {
+ alignment: start;
+ IconButton {
+ glyph: root.track.locked ? Glyph.lock : Glyph.unlock;
+ label: root.track.locked ? "Unlock " + root.track.name
+ : "Lock " + root.track.name;
+ icon-size: 12px;
+ checked: root.track.locked;
+ clicked => {
+ root.flag-changed(root.track.visible, root.track.muted,
+ !root.track.locked);
+ }
+ }
+ }
+
+ VerticalLayout {
+ alignment: start;
+ IconButton {
+ // Checked when the lane is *off*: the button is lit to say
+ // something is being withheld, which is the state worth
+ // announcing.
+ glyph: root.track.visible ? Glyph.eye : Glyph.eye-off;
+ label: root.track.visible ? "Hide " + root.track.name
+ : "Show " + root.track.name;
+ icon-size: 12px;
+ checked: !root.track.visible;
+ clicked => {
+ root.flag-changed(!root.track.visible, root.track.muted,
+ root.track.locked);
+ }
+ }
+ }
+
+ VerticalLayout {
+ alignment: start;
+ IconButton {
+ glyph: root.track.muted ? Glyph.volume-off : Glyph.volume;
+ label: root.track.muted ? "Unmute " + root.track.name
+ : "Mute " + root.track.name;
+ icon-size: 12px;
+ checked: root.track.muted;
+ clicked => {
+ root.flag-changed(root.track.visible, !root.track.muted,
+ root.track.locked);
+ }
+ }
+ }
+ }
+ }
+}
+
+export component TrackHeaders inherits Rectangle {
+ /// Top lane first, so index 0 is the row drawn at the top of the lanes.
+ /// Each row carries its own height and where it starts; see TrackData.
+ in property <[TrackData]> tracks;
+ in property <length> ruler-height: 28px;
+ in property <length> track-scroll;
+ /// How much taller the stack is than the room it has. Handed down rather
+ /// than measured here: the pane already works it out to clamp the offset,
+ /// and two answers to one question is one answer too many.
+ in property <length> overflow;
+
+ /// The bar was dragged. Absolute, and already inside 0..overflow.
+ callback scrolled(offset: length);
+
+ callback flag-changed(index: int, visible: bool, muted: bool, locked: bool);
+ callback sized(index: int, size: TrackSize);
+ callback removed(index: int);
+ callback renamed(index: int, name: string);
+
+ clip: true;
+
+ for track[index] in root.tracks: Header {
+ x: 0;
+ y: root.ruler-height + track.top - root.track-scroll;
+ width: parent.width;
+ height: track.height;
+ // Clipped to the stack rather than allowed to ride over the ruler,
+ // which a scrolled row would otherwise do.
+ visible: self.y + track.height > root.ruler-height && self.y < root.height;
+
+ track: track;
+ removable: root.tracks.length > 1;
+
+ flag-changed(visible, muted, locked) => {
+ root.flag-changed(index, visible, muted, locked);
+ }
+ sized(size) => { root.sized(index, size); }
+ removed => { root.removed(index); }
+ renamed(name) => { root.renamed(index, name); }
+ }
+
+ // The bar, over the rows and under the corner. On the trailing edge,
+ // where the stack it scrolls ends and where a scroll container puts one —
+ // the reference gets exactly this bar there by making the header column a
+ // real one. Short and inset rather than full-height: a stack that
+ // overflows by a row would otherwise draw a thumb the length of the
+ // column, and a mark that long stops reading as something you can take
+ // hold of.
+ ThinScrollbar {
+ x: parent.width - self.width - 1px;
+ y: root.ruler-height + 4px;
+ height: Math.max(0px, root.height - root.ruler-height - 8px);
+ viewport: self.height;
+ content: self.height + root.overflow;
+ offset: root.track-scroll;
+ min-thumb: 16px;
+ max-thumb: 0.5;
+ scrolled(to) => { root.scrolled(to); }
+ }
+
+ // The ruler corner: opposite the ruler, and not part of the scrolling
+ // stack. Declared after the rows so it paints over whichever one is
+ // half-scrolled behind it — `visible` above drops a row only once it is
+ // fully past, and this covers the sliver in between.
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: root.ruler-height;
+ background: Theme.ruler;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/timeline/tray.slint b/engine/crates/concat/ui/timeline/tray.slint
new file mode 100644
index 00000000..9116e714
--- /dev/null
+++ b/engine/crates/concat/ui/timeline/tray.slint
@@ -0,0 +1,210 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { IconButton } from "../primitives/panel.slint";
+import { TimelineTool } from "model.slint";
+
+// The timeline's tool tray.
+//
+// The tool set is the reference's (TimelinePanel.tsx): pointer and razor, then
+// the three edit actions, then snapping and the A/V tools, then add-track, and
+// the view controls pushed to the far end behind the timecode readout. The
+// metrics are web/'s bar — 40px tall, 4px between buttons, an 18px hairline
+// with 4px of air on each side between groups — which reads tighter than the
+// reference's 44px without crowding a 26px button.
+//
+// Two of the reference's affordances are missing and worth naming. A disabled
+// Merge there carries the reason in its tooltip, because a button that greys
+// out without saying why leaves you guessing at the rule; this tree has no
+// tooltip primitive, so `merge-blocked-because` is accepted and shown as a
+// line beside the button instead of on hover. And the A/V tools open a menu
+// there; here the button reports a press and the popup is the caller's to
+// grow.
+
+component Divider inherits Rectangle {
+ width: 9px;
+
+ Rectangle {
+ x: 4px;
+ y: (parent.height - self.height) / 2;
+ width: 1px;
+ height: 18px;
+ background: Theme.line;
+ }
+}
+
+export component TimelineTray inherits Rectangle {
+ in property <TimelineTool> tool: TimelineTool.select;
+ in property <bool> snap: true;
+ in property <int> selected-count;
+ /// Empty when the selection can be merged; otherwise why it cannot.
+ in property <string> merge-blocked-because;
+ /// The selected clip has sound to detach or words to speak.
+ in property <bool> has-av-tools;
+ /// hh:mm:ss:ff at the playhead, formatted by the caller
+ in property <string> readout;
+
+ callback tool-changed(tool: TimelineTool);
+ callback snap-changed(snap: bool);
+ callback split();
+ callback merge();
+ callback delete-selected();
+ callback av-tools(at-x: length);
+ callback add-track();
+ callback fit();
+ callback zoom(factor: float);
+
+ height: 40px;
+ background: Theme.panel;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ padding-top: 7px;
+ padding-bottom: 7px;
+ spacing: 4px;
+
+ IconButton {
+ glyph: Glyph.pointer;
+ label: "Select (V)";
+ icon-size: 16px;
+ checked: root.tool == TimelineTool.select;
+ clicked => { root.tool-changed(TimelineTool.select); }
+ }
+ IconButton {
+ glyph: Glyph.razor;
+ label: "Razor (B)";
+ icon-size: 16px;
+ checked: root.tool == TimelineTool.razor;
+ clicked => { root.tool-changed(TimelineTool.razor); }
+ }
+
+ Divider { }
+
+ IconButton {
+ glyph: Glyph.split;
+ label: "Split at playhead (S)";
+ icon-size: 16px;
+ clicked => { root.split(); }
+ }
+ IconButton {
+ glyph: Glyph.merge;
+ // The reason a blocked Merge is blocked rides on the button rather
+ // than being spelled out beside it. The reference keeps it in a
+ // tooltip; this tree has no tooltip yet, so `label` — the
+ // accessible name, and where a tooltip will read from — is the
+ // honest place to park it. A permanent caption in the tray was
+ // answering a question nobody had asked yet.
+ label: root.merge-blocked-because == "" ? "Merge selected"
+ : root.merge-blocked-because;
+ enabled: root.merge-blocked-because == "";
+ icon-size: 16px;
+ clicked => { root.merge(); }
+ }
+ IconButton {
+ glyph: Glyph.trash;
+ label: "Delete selected";
+ danger: true;
+ icon-size: 16px;
+ enabled: root.selected-count > 0;
+ clicked => { root.delete-selected(); }
+ }
+
+ // The count of a multiple selection, in the accent so it reads as a
+ // fact about the selection rather than another control.
+ if root.selected-count > 1: Text {
+ width: 16px;
+ text: "\{root.selected-count}";
+ color: Theme.accent;
+ font-size: Theme.fs-sm;
+ horizontal-alignment: center;
+ vertical-alignment: center;
+ }
+
+ Divider { }
+
+ IconButton {
+ glyph: Glyph.magnet;
+ label: "Snap to edges";
+ icon-size: 16px;
+ checked: root.snap;
+ clicked => { root.snap-changed(!root.snap); }
+ }
+
+ // Only while the selected clip has tools to offer — sound to detach or
+ // transcribe, or a title's words to speak. A menu of grey rows teaches
+ // nothing, so the button is absent rather than disabled.
+ if root.has-av-tools: HorizontalLayout {
+ spacing: 0px;
+ Divider { }
+ av := IconButton {
+ glyph: Glyph.waveform;
+ label: "Audio and video tools";
+ icon-size: 16px;
+ wide: true;
+ // Reported in the tray's own coordinates: the button slides
+ // along the bar as the selection count and the merge reason
+ // come and go, and a menu pinned to a guess would drift off it.
+ clicked => {
+ root.av-tools(av.absolute-position.x - root.absolute-position.x);
+ }
+ }
+ }
+
+ Divider { }
+
+ IconButton {
+ glyph: Glyph.plus;
+ label: "Add track";
+ icon-size: 14px;
+ clicked => { root.add-track(); }
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ // Fixed width, right-aligned: without it every control to its right
+ // shuffles sideways each time the frame digits change.
+ Text {
+ width: 92px;
+ text: root.readout;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ letter-spacing: 0.24px;
+ horizontal-alignment: right;
+ vertical-alignment: center;
+ }
+
+ Divider { }
+
+ IconButton {
+ glyph: Glyph.fit;
+ label: "Zoom to fit";
+ icon-size: 15px;
+ clicked => { root.fit(); }
+ }
+ IconButton {
+ glyph: Glyph.minus;
+ label: "Zoom out";
+ icon-size: 14px;
+ // Above 1 is out: the factor multiplies seconds-per-pixel, so a
+ // bigger number is more seconds in the same pixel.
+ clicked => { root.zoom(1.4); }
+ }
+ IconButton {
+ glyph: Glyph.plus;
+ label: "Zoom in";
+ icon-size: 14px;
+ clicked => { root.zoom(1 / 1.4); }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/title-bar.slint b/engine/crates/concat/ui/title-bar.slint
new file mode 100644
index 00000000..396379e0
--- /dev/null
+++ b/engine/crates/concat/ui/title-bar.slint
@@ -0,0 +1,272 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "theme/theme.slint";
+import { Glyph, Icon } from "icons.slint";
+import { AddPaneButton, PaneKind } from "workspace/pane-switcher.slint";
+
+// The custom title bar, ported from the reference's TitleBar.tsx.
+//
+// On macOS the native traffic lights are overlaid: main.rs hides the real
+// title bar (titlebar_transparent + title_hidden + fullsize_content_view, the
+// winit spelling of Tauri's titleBarStyle: Overlay) and this strip leaves
+// room for the lights on the left. Everything that is not a control is a drag
+// region — the TouchArea at the bottom of the tree starts a native window
+// drag on press, and controls declared after it take their own presses.
+
+component MenuLabel inherits Rectangle {
+ in property <string> label;
+ /// this label's menu is the one currently open
+ in property <bool> current;
+
+ callback clicked();
+
+ width: text.preferred-width + 16px;
+ border-radius: Theme.r-sm;
+ background: (root.current || touch.has-hover) ? Theme.field : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ text := Text {
+ x: 8px;
+ y: (parent.height - self.height) / 2;
+ text: root.label;
+ color: (root.current || touch.has-hover) ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+component HeaderIconButton inherits Rectangle {
+ in property <Glyph> glyph;
+
+ callback clicked();
+
+ width: 24px;
+ height: 24px;
+ border-radius: Theme.r-sm;
+ background: touch.has-hover ? Theme.field : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: root.glyph;
+ size: 14px;
+ tint: touch.has-hover ? Theme.fg : Theme.fg-muted;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.clicked(); }
+ }
+}
+
+export component TitleBar inherits Rectangle {
+ in property <string> project-name: "Untitled project";
+ /// "saved", "saving…" — the little truth beside the name. Empty hides it.
+ in property <string> status: "saved";
+ /// Leaves room for the traffic lights and drops nothing else; on other
+ /// platforms the strip starts at the left edge.
+ in property <bool> macos: true;
+ /// The launch screen's face: the wordmark and the theme toggle, and
+ /// nothing else. The menus act on a project, the panel picker and Export
+ /// act on an edit, and on this screen there is neither — a strip of
+ /// controls that all refuse is worse than a strip without them.
+ in property <bool> minimal;
+
+ callback begin-drag();
+ callback toggle-maximize();
+ /// A menu was asked for: which one, and where its label sits in the strip,
+ /// so the sheet can hang off it.
+ callback menu-opened(index: int, at-x: length);
+ /// Which menu is open, or -1.
+ in property <int> menu: -1;
+ callback open-settings();
+ /// A view was picked from the add-panel list.
+ callback add-pane(kind: PaneKind);
+ callback export-clicked();
+
+ height: 32px;
+ background: Theme.panel;
+
+ // Whatever is not a control drags the window. Declared first so every
+ // control sits above it and takes its own presses; Texts and plain
+ // Rectangles are not hit targets, so presses on them fall through here.
+ drag := TouchArea {
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down
+ && event.button == PointerEventButton.left) {
+ root.begin-drag();
+ }
+ }
+ double-clicked => {
+ root.toggle-maximize();
+ }
+ }
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ padding-left: root.macos ? 80px : 8px;
+ padding-right: 8px;
+ spacing: 2px;
+
+ // mark + wordmark
+ VerticalLayout {
+ alignment: center;
+ Image {
+ width: 16px;
+ height: 16px;
+ source: @image-url("assets/concat-logo.png");
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ padding-left: 6px;
+ padding-right: 6px;
+ Text {
+ text: "Concat";
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-display;
+ }
+ }
+
+ // Each label reports its own position rather than a fixed one: they
+ // are sized from their text, so where "View" starts depends on how
+ // long "File" and "Edit" are.
+ if !root.minimal: file := MenuLabel {
+ label: "File";
+ current: root.menu == 0;
+ clicked => {
+ root.menu-opened(0, file.absolute-position.x - root.absolute-position.x);
+ }
+ }
+ if !root.minimal: edit := MenuLabel {
+ label: "Edit";
+ current: root.menu == 1;
+ clicked => {
+ root.menu-opened(1, edit.absolute-position.x - root.absolute-position.x);
+ }
+ }
+ if !root.minimal: view := MenuLabel {
+ label: "View";
+ current: root.menu == 2;
+ clicked => {
+ root.menu-opened(2, view.absolute-position.x - root.absolute-position.x);
+ }
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ // Beside Settings, because it is the same sort of thing: neither one
+ // is about the project, both are about the window you are looking at
+ // it through. A seat's own corner button changes or closes that seat;
+ // this is the only place a seat can be brought into existence, which
+ // is why it lives on the window and not in a pane.
+ if !root.minimal: VerticalLayout {
+ alignment: center;
+ AddPaneButton {
+ added(kind) => { root.add-pane(kind); }
+ }
+ }
+
+ // The one control that is on both screens, and the theme's sun and
+ // moon gave it the job when they moved into Settings > Appearance.
+ // Nothing behind this gear needs a project — a theme, a transcriber
+ // model, a voice, a version number are all facts about the
+ // application — so the launch screen has no reason to be shut out of
+ // it, and every reason not to be: it is now the only way through to
+ // the theme.
+ VerticalLayout {
+ alignment: center;
+ HeaderIconButton {
+ glyph: Glyph.settings;
+ clicked => { root.open-settings(); }
+ }
+ }
+
+ if !root.minimal: VerticalLayout {
+ alignment: center;
+ padding-left: 4px;
+
+ export-button := Rectangle {
+ width: label.width + icon.width + 26px;
+ height: 24px;
+ border-radius: Theme.r-sm;
+ background: export-touch.has-hover ? Theme.accent-hover : Theme.accent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ icon := Icon {
+ x: 9px;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.export;
+ size: 12px;
+ tint: Theme.on-accent;
+ }
+
+ label := Text {
+ x: icon.x + icon.width + 5px;
+ y: (parent.height - self.height) / 2;
+ text: "Export";
+ color: Theme.on-accent;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ }
+
+ export-touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.export-clicked(); }
+ }
+ }
+ }
+ }
+
+ // Centre: the project name, placed against the whole strip rather than
+ // laid out, so it stays centred in the window and not in whatever space
+ // the menus leave over.
+ centre := HorizontalLayout {
+ visible: !root.minimal;
+ x: (parent.width - self.preferred-width) / 2;
+ y: 0;
+ width: self.preferred-width;
+ height: parent.height;
+ spacing: 6px;
+
+ VerticalLayout {
+ alignment: center;
+ Text {
+ text: root.project-name;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Text {
+ text: root.status;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-xs;
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/util.slint b/engine/crates/concat/ui/util.slint
new file mode 100644
index 00000000..7ec0f024
--- /dev/null
+++ b/engine/crates/concat/ui/util.slint
@@ -0,0 +1,135 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+// Small numeric and string helpers shared by the primitives, plus the two
+// globals whose bodies live in Rust.
+
+export struct Bezier {
+ x1: float,
+ y1: float,
+ x2: float,
+ y2: float,
+}
+
+export global Fmt {
+ public pure function clamp(v: float, lo: float, hi: float) -> float {
+ return Math.max(lo, Math.min(hi, v));
+ }
+
+ public pure function round-to(v: float, digits: int) -> float {
+ return Math.round(v * Math.pow(10, digits)) / Math.pow(10, digits);
+ }
+
+ public pure function pad2(n: int) -> string {
+ return n < 10 ? "0\{n}" : "\{n}";
+ }
+
+ // hh:mm:ss, the format the reference In/Out fields print.
+ public pure function timecode(seconds: float) -> string {
+ return Fmt.pad2(Math.floor(seconds / 3600))
+ + ":" + Fmt.pad2(Math.mod(Math.floor(seconds / 60), 60))
+ + ":" + Fmt.pad2(Math.mod(Math.floor(seconds), 60));
+ }
+
+ // "m:ss" — the compact duration a bin thumbnail carries, where the hours
+ // field of a full timecode would be three characters of nothing. Minutes
+ // are not wrapped at 60: a two-hour clip should read 120:00, not 0:00.
+ public pure function short-duration(seconds: float) -> string {
+ return "\{Math.floor(Math.max(0, seconds) / 60)}"
+ + ":" + Fmt.pad2(Math.mod(Math.floor(Math.max(0, seconds)), 60));
+ }
+
+ // hh:mm:ss:ff — the ruler's spelling, and the tray readout's. Both fields
+ // derive from the frame count rather than from the wall clock, which is
+ // non-drop-frame timecode: at 29.97 a seconds field taken from the clock
+ // disagrees with its own frame field near the boundaries. NDF runs
+ // slightly behind the clock at NTSC rates; that is the standard trade.
+ public pure function frames-timecode(seconds: float, rate: float) -> string {
+ return Fmt.pad2(Math.floor(Fmt.total-frames(seconds, rate) / Math.round(rate) / 3600))
+ + ":" + Fmt.pad2(Math.mod(Math.floor(Fmt.total-frames(seconds, rate) / Math.round(rate) / 60), 60))
+ + ":" + Fmt.pad2(Math.mod(Math.floor(Fmt.total-frames(seconds, rate) / Math.round(rate)), 60))
+ + ":" + Fmt.pad2(Math.mod(Fmt.total-frames(seconds, rate), Math.round(rate)));
+ }
+
+ pure function total-frames(seconds: float, rate: float) -> int {
+ return Math.floor(Math.max(0, seconds) * rate);
+ }
+
+ public pure function decibels(v: float) -> string {
+ return (v > 0 ? "+" : "") + "\{Fmt.round-to(v, 1)} dB";
+ }
+
+ // Slint's string type has no split(), so the inverse of timecode() is
+ // implemented in Rust and bound in main.rs.
+ pure callback parse-timecode(text: string) -> float;
+
+ // The ruler's tick spacing: the smallest interval from a fixed ladder of
+ // musical-looking durations (a frame, a tenth, a quarter, ... an hour)
+ // that is still at least 90px apart at this zoom. Picking from a table
+ // means searching one, which is a loop — so it lives in Rust with the
+ // bezier solve. Unbound it returns 0, which the ruler reads as "draw no
+ // ticks" rather than dividing by it.
+ pure callback tick-interval(seconds-per-pixel: float) -> float;
+
+ // hh:mm:ss:ff -> frames. The monitor counts in frames, so its field parses
+ // in frames; `parse-timecode` above stops at seconds and would drop the
+ // one field that makes a monitor a monitor. Rust, for want of split().
+ pure callback parse-frames(text: string, rate: float) -> float;
+}
+
+export global Curves {
+ // Solving a CSS cubic-bezier for y at a given x needs an iterative solve,
+ // which Slint's expression language cannot express. Bound in main.rs.
+ pure callback ease(x1: float, y1: float, x2: float, y2: float, at: float) -> float;
+
+ // "0.42, 0, 0.58, 1" -> Bezier. Also Rust, for want of split().
+ pure callback parse(text: string, fallback: Bezier) -> Bezier;
+}
+
+// The drag payloads the library panels hand the timeline.
+//
+// A `data-transfer` is opaque in Slint — it is the platform's clipboard/drag
+// object, and only the host language can build or read one. So the payload
+// travels as text through these two, and every drag in this tree names itself
+// the way the menus do: "media:12", "text:default", "filter:telephone".
+export global Payload {
+ /// Wrap a payload string for a DragArea's `data`. A DragArea whose data is
+ /// empty never starts a drag, which is how a card opts out.
+ pure callback of(text: string) -> data-transfer;
+ /// Read one back in a DropArea. Empty for a drag from another application,
+ /// which is how the timeline rejects one.
+ pure callback text(payload: data-transfer) -> string;
+
+ /// The picture that hangs off the cursor while one of these is in flight.
+ ///
+ /// A `DragArea` with no `drag-image` gives the pointer nothing but a
+ /// cursor, and the cursor spends most of a drag saying "no drop here" —
+ /// which is true of the panel you started in and of every pane between it
+ /// and the lanes, and reads as the drag having failed rather than as being
+ /// under way. So each source hands over a chip naming what it is carrying.
+ ///
+ /// Built in Rust, and for the same reason the ghost is: the payload names
+ /// a row of the bin or an entry of a catalogue, and this side has neither.
+ /// It comes back as an SVG image — Slint rasterises those through the
+ /// window's own font collection, so the name on the chip is set in the
+ /// same Inter the cards are. Unbound it returns an empty image, which
+ /// draws nothing: the drag still works, it just goes back to bare cursors.
+ pure callback preview(text: string) -> image;
+
+ /// The seat index in a `pane:N:...` payload, or -1 for anything else —
+ /// including a drag from another application, whose payload this tree
+ /// cannot read. Rust, for want of split(); see `parse-timecode`.
+ pure callback pane-seat(text: string) -> int;
+}
+
+export global Geom {
+ // Point on a circle, in path (viewbox) units. Degrees run clockwise from
+ // 3 o'clock, matching the SVG convention the web Knob uses.
+ public pure function polar-x(cx: float, radius: float, degrees: float) -> float {
+ return cx + radius * Math.cos(degrees * 1deg);
+ }
+
+ public pure function polar-y(cy: float, radius: float, degrees: float) -> float {
+ return cy + radius * Math.sin(degrees * 1deg);
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/config-pane.slint b/engine/crates/concat/ui/workspace/config-pane.slint
new file mode 100644
index 00000000..82a1f77d
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/config-pane.slint
@@ -0,0 +1,430 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme, SegmentedControl } from "../primitives/primitives.slint";
+import { Pane, PaneBody, PaneScroll } from "pane.slint";
+import { PaneKind, PaneSwitcher } from "pane-switcher.slint";
+import { EffectData } from "../demo/effects-panel.slint";
+import {
+ AdjustPanel, AppliedPresetData, FilterPanel, PresetCatalog, PresetStack,
+} from "../inspector/clip-inspector.slint";
+import { TextPanel } from "../inspector/text-panel.slint";
+import {
+ ClipField, ClipKind, ClipTextField, SelectedClipData,
+} from "../timeline/model.slint";
+
+// The inspector column, in the legacy app's two states:
+//
+// - Nothing selected: the Details panel — the project's facts, read-only,
+// with Modify pinned to the foot.
+// - Something selected: the clip inspector — Adjust, Filters, Effects —
+// ported from web/src/demo/inspector. The custom-primitives demo panels
+// that used to live here were design inspiration, not something the legacy
+// app carried, so they are gone from the pane (the primitives they proved
+// out live on underneath these controls).
+
+// One fact: muted label left, value right. The value wraps rather than
+// elides — a folder path you cannot read is a path you have to go find.
+component FactRow inherits HorizontalLayout {
+ in property <string> label;
+ in property <string> value;
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ spacing: 12px;
+ min-height: 21px;
+
+ Text {
+ text: root.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ // A read-only TextInput and not a Text, so it can be selected and copied.
+ // Half of what this panel holds is only useful somewhere else — a folder
+ // path pasted into a terminal, an output size quoted to somebody — and a
+ // fact you cannot lift off the screen is a fact you have to retype.
+ TextInput {
+ horizontal-stretch: 1;
+ text: root.value;
+ color: Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ horizontal-alignment: right;
+ // Selectable, never editable: this is a readout of the project, and
+ // the Modify button is where changing it lives.
+ read-only: true;
+ single-line: false;
+ wrap: word-wrap;
+ selection-background-color: Theme.accent;
+ selection-foreground-color: Theme.on-accent;
+ }
+}
+
+// "PROJECT", "CONTENTS" — the muted caps that break the facts into groups.
+component FactHeading inherits HorizontalLayout {
+ in property <string> title;
+
+ padding-left: Theme.pad;
+ padding-right: Theme.pad;
+ // The air belongs between the groups, not between the lines inside one.
+ padding-top: 12px;
+ padding-bottom: 3px;
+
+ Text {
+ text: root.title;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ font-weight: Theme.weight-title;
+ letter-spacing: 1px;
+ }
+}
+
+export component ConfigPane inherits Rectangle {
+ // ── the demo-era seams, kept so main.rs keeps compiling ──────────────
+ // The meter/mute machinery has nothing to drive since the demo effects
+ // panel left the pane; the properties stay declared because app.slint
+ // and main.rs read them for the life of the process. Strip the whole
+ // group when the Rust side sheds its demo plumbing.
+ in property <[EffectData]> video-effects;
+ in property <[EffectData]> audio-effects;
+ in property <float> level;
+ in property <float> peak;
+ out property <bool> muted;
+ out property <bool> meter-hovered;
+ callback add-effect(audio: bool);
+ callback remove-effect(id: int);
+
+ // ── details ──────────────────────────────────────────────────────────
+ /// The selected clip, or `present: false` for the project details.
+ in property <SelectedClipData> selected;
+ property <bool> has-selection: root.selected.present;
+ in property <string> project-name: "Untitled project";
+ in property <string> project-folder: "—";
+ in property <string> project-output: "1080 x 1920";
+ in property <string> project-rate: "30.00 fps";
+ in property <string> project-duration: "00:00:00:00";
+ in property <int> count-media;
+ in property <int> count-tracks;
+ in property <int> count-clips;
+
+ callback modify-project();
+
+ /// The corner button: show something else in this pane's seat.
+ callback pane-picked(kind: PaneKind);
+ /// Which seat this pane is in. It travels no further than the corner
+ /// button, whose drag payload has to say where it is being taken from.
+ in property <int> pane-seat;
+ /// False when this is the last panel on screen. Travels the same way, and
+ /// only greys the one row that would close it.
+ in property <bool> pane-removable: true;
+ /// That row was used.
+ callback pane-removed();
+
+ // ── the clip inspector's chains, owned by Rust ───────────────────────
+ in property <[AppliedPresetData]> filters-applied;
+ in property <[AppliedPresetData]> effects-applied;
+
+ callback filters-add(preset: AppliedPresetData);
+ callback filters-toggle(index: int);
+ callback filters-move-by(index: int, delta: int);
+ callback filters-remove(index: int);
+ callback filters-set-param(index: int, second: bool, value: float);
+
+ callback clip-set(field: ClipField, value: float);
+ callback clip-set-text(field: ClipTextField, value: string);
+ callback clip-set-colour(field: ClipTextField, value: color);
+ callback clip-commit();
+
+ callback effects-add(preset: AppliedPresetData);
+ callback effects-toggle(index: int);
+ callback effects-move-by(index: int, delta: int);
+ callback effects-remove(index: int);
+ callback effects-set-param(index: int, second: bool, value: float);
+
+ // The tab strip follows the selection, exactly as the reference's
+ // RightPanel does: nothing selected shows only Details, since there is
+ // nothing to edit; a media clip shows what can be changed and what can be
+ // added; a still gets Effects but not Filters, because it has picture and
+ // no sound; and a title gets Text alone — it has no volume, no speed and
+ // no audio filters, and offering those tabs would be offering panels that
+ // can only say "nothing here".
+ property <bool> is-text: root.selected.kind == ClipKind.text;
+ property <bool> is-image: root.selected.kind == ClipKind.image;
+ /// A filter layer gets its own lone tab for the same reason a title does:
+ /// it has no transform, no gain and no rate, and every other tab could
+ /// only say "nothing here".
+ property <bool> is-layer: root.selected.kind == ClipKind.filter;
+ property <[string]> tabs: root.is-text ? ["Text"]
+ : root.is-layer ? ["Filter"]
+ : root.is-image ? ["Adjust", "Effects"]
+ : ["Adjust", "Filters", "Effects"];
+ /// A one-segment segmented control is a label wearing a costume, so a lone
+ /// tab renders as the panel's plain heading instead.
+ property <bool> single: root.tabs.length < 2;
+
+ // The segmented control owns this: it writes to `current`, which would
+ // drop any binding declared here, so it is assigned and never bound.
+ property <int> tab;
+ /// The kind the strip was last built for. A selection change can leave the
+ /// strip pointing past the end of a shorter list — Filters on a still,
+ /// anything at all on a title — so the index is pulled back in when the
+ /// shape of the strip changes, and left alone when it has not.
+ property <ClipKind> strip-kind;
+ changed selected => {
+ if (root.selected.kind != root.strip-kind) {
+ root.strip-kind = root.selected.kind;
+ // Clamped rather than reset: going from a video to a still should
+ // stay on Effects, which both offer, instead of jumping back to
+ // Adjust.
+ root.tab = Math.min(root.tab, root.tabs.length - 1);
+ }
+ }
+
+ /// Which panel the index names, resolved once rather than at each `if`:
+ /// the same number means different things depending on what is selected.
+ property <string> showing: root.tabs[Math.max(0,
+ Math.min(root.tab, root.tabs.length - 1))];
+
+ Pane {
+ // ── details ──────────────────────────────────────────────────────
+ if !root.has-selection: Rectangle {
+ // The same 44px as the panes either side of it; see PaneHeader.
+ height: 44px;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding-left: Theme.pad;
+ padding-right: 8px;
+ spacing: 8px;
+
+ Text {
+ text: "DETAILS";
+ color: Theme.fg-muted;
+ // The small size, not the body one. Caps at 12px with a
+ // point and a half of tracking is nearly as wide as the
+ // Preview pane's 13px title and reads heavier than it —
+ // which puts the loudest thing in the column on the one
+ // panel that has nothing to say. It is a section label,
+ // so it takes the same size and tracking as the FactHeadings
+ // under it.
+ font-size: Theme.fs-sm;
+ font-weight: Theme.weight-title;
+ letter-spacing: 1px;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ VerticalLayout {
+ alignment: center;
+ PaneSwitcher {
+ kind: PaneKind.inspector;
+ seat: root.pane-seat;
+ removable: root.pane-removable;
+ picked(kind) => { root.pane-picked(kind); }
+ removed => { root.pane-removed(); }
+ }
+ }
+ }
+ }
+
+ if !root.has-selection: PaneBody {
+ padding: 0px;
+ spacing: 0px;
+
+ PaneScroll {
+ VerticalLayout {
+ padding-top: 4px;
+ // No gap: the rows carry their own height and a spacing on
+ // top of it opens the table back up.
+ spacing: 0px;
+
+ FactHeading { title: "PROJECT"; }
+ FactRow { label: "Name"; value: root.project-name; }
+ FactRow { label: "Folder"; value: root.project-folder; }
+ FactRow { label: "Output"; value: root.project-output; }
+ FactRow { label: "Rate"; value: root.project-rate; }
+ FactRow { label: "Duration"; value: root.project-duration; }
+
+ FactHeading { title: "CONTENTS"; }
+ FactRow { label: "Media"; value: "\{root.count-media}"; }
+ FactRow { label: "Tracks"; value: "\{root.count-tracks}"; }
+ FactRow { label: "Clips"; value: "\{root.count-clips}"; }
+ }
+ }
+ }
+
+ if !root.has-selection: Rectangle {
+ height: 49px;
+
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ modify := Rectangle {
+ x: parent.width - self.width - 10px;
+ y: (parent.height - self.height) / 2;
+ width: modify-label.width + 30px;
+ height: 30px;
+ // The control radius, not the pane's. It was the roundest of
+ // the named radii on the theory that the one button in the
+ // panel should stand apart from the fields; at 30px tall that
+ // is most of the way to a pill, and it stood apart from every
+ // other button in the window instead.
+ border-radius: Theme.r;
+ background: modify-touch.has-hover ? Theme.field-hover : Theme.field;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ modify-label := Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "Modify";
+ color: Theme.fg;
+ font-size: Theme.fs;
+ font-weight: Theme.weight-title;
+ }
+
+ modify-touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.modify-project(); }
+ }
+ }
+ }
+
+ // ── the clip inspector ───────────────────────────────────────────
+ if root.has-selection: Rectangle {
+ // Matched to the Details bar above, or the top of the column
+ // would jump by four pixels every time a clip was selected.
+ height: 44px;
+
+ Rectangle {
+ x: 0;
+ y: parent.height - 1px;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding-left: root.single ? Theme.pad : 8px;
+ padding-right: 8px;
+ spacing: 8px;
+
+ if root.single: Text {
+ text: root.tabs[0];
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ font-weight: Theme.weight-title;
+ letter-spacing: 1px;
+ vertical-alignment: center;
+ }
+
+ if root.single: Rectangle { horizontal-stretch: 1; }
+
+ // The clip's own name on the trailing edge, so a panel of
+ // numbers says which clip it is describing. The strip below
+ // has no room for it, which is why it only appears here.
+ if root.single: Text {
+ text: root.selected.name;
+ color: Theme.fg-dim;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if !root.single: VerticalLayout {
+ alignment: center;
+ SegmentedControl {
+ options: root.tabs;
+ current <=> root.tab;
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ PaneSwitcher {
+ kind: PaneKind.inspector;
+ seat: root.pane-seat;
+ removable: root.pane-removable;
+ picked(kind) => { root.pane-picked(kind); }
+ removed => { root.pane-removed(); }
+ }
+ }
+ }
+ }
+
+ if root.has-selection: PaneBody {
+ // No padding: the inspector rows carry their own 14px inset, and
+ // sections run edge to edge so their hairlines reach both sides.
+ padding: 0px;
+
+ PaneScroll {
+ if root.showing == "Adjust": AdjustPanel {
+ selected: root.selected;
+ set(field, value) => { root.clip-set(field, value); }
+ commit => { root.clip-commit(); }
+ }
+
+ if root.showing == "Filter": FilterPanel {
+ selected: root.selected;
+ set(field, value) => { root.clip-set(field, value); }
+ commit => { root.clip-commit(); }
+ }
+
+ if root.showing == "Text": TextPanel {
+ selected: root.selected;
+ set(field, value) => { root.clip-set(field, value); }
+ set-text(field, value) => { root.clip-set-text(field, value); }
+ set-colour(field, value) => { root.clip-set-colour(field, value); }
+ commit => { root.clip-commit(); }
+ }
+
+ if root.showing == "Filters": PresetStack {
+ noun: "filter";
+ library-title: "Filter library";
+ group-labels: PresetCatalog.filter-groups;
+ catalogue: PresetCatalog.filters;
+ applied: root.filters-applied;
+
+ add(preset) => { root.filters-add(preset); }
+ toggle(index) => { root.filters-toggle(index); }
+ move-by(index, delta) => { root.filters-move-by(index, delta); }
+ remove(index) => { root.filters-remove(index); }
+ set-param(index, second, value) => {
+ root.filters-set-param(index, second, value);
+ }
+ }
+
+ if root.showing == "Effects": PresetStack {
+ noun: "effect";
+ library-title: "Effect library";
+ group-labels: PresetCatalog.effect-groups;
+ catalogue: PresetCatalog.effects;
+ applied: root.effects-applied;
+
+ add(preset) => { root.effects-add(preset); }
+ toggle(index) => { root.effects-toggle(index); }
+ move-by(index, delta) => { root.effects-move-by(index, delta); }
+ remove(index) => { root.effects-remove(index); }
+ set-param(index, second, value) => {
+ root.effects-set-param(index, second, value);
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/media-pane.slint b/engine/crates/concat/ui/workspace/media-pane.slint
new file mode 100644
index 00000000..7e974ab9
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/media-pane.slint
@@ -0,0 +1,1588 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme, Fmt, Glyph, Icon, Payload } from "../primitives/primitives.slint";
+import { Pane, PaneScroll } from "pane.slint";
+import { HairlineSplitter } from "splitter.slint";
+import { PaneKind, PaneSwitcher } from "pane-switcher.slint";
+
+// The library pane: a strip of pages across the top, then a narrow category
+// sidebar and the browsing area beside it. Ported from the reference editor's
+// MediaBin, which is one 1100-line React file; this is the Media page of it.
+//
+// The other four pages (Text, Transitions, Effects, Templates) are chrome
+// here and nothing else — each browses a catalogue that has no counterpart in
+// this tree yet, so the tab exists, switches, and says so. Porting one of them
+// is porting its catalogue, which is a separate panel's worth of work.
+
+export enum MediaKind { video, audio, image }
+
+/// What the sidebar has narrowed the bin to. `all` is not "no filter": it is
+/// the row that is highlighted when every kind is on, which is why it is a
+/// value here and not the absence of one.
+export enum MediaFilter { all, video, audio, images }
+
+export struct MediaItemData {
+ id: int,
+ name: string,
+ kind: MediaKind,
+ /// seconds; ignored for a still, which shows "still" where a time would go
+ duration: float,
+ /// The artwork, once something has produced it — the first frame of a
+ /// filmstrip for footage, a drawn waveform for audio. Empty until then,
+ /// which is what the tinted fallback below is for. Nothing decodes yet, so
+ /// today it is always empty; the seam is here so the card does not have to
+ /// be rewritten the day it isn't.
+ thumbnail: image,
+ /// The audio envelope as SVG path commands in a 1x1 viewbox, or empty.
+ /// Same shape, same source and same normalisation as a timeline clip's:
+ /// a file should look like itself wherever it is drawn.
+ wave: string,
+ selected: bool,
+}
+
+// ── the page strip ───────────────────────────────────────────────────────────
+
+component LibraryTab inherits Rectangle {
+ in property <string> label;
+ in property <bool> current;
+
+ callback clicked();
+
+ // flex-auto, not flex-1: the label is the basis and only the surplus is
+ // shared, so "Transitions" is never crammed to make room for padding
+ // around "Text". A Slint layout distributes spare width on top of each
+ // child's own preferred width, which is the same rule.
+ horizontal-stretch: 1;
+ border-radius: Theme.r-sm;
+ // The current page is a chip lifted out of the track. The reference lifts
+ // it with a shadow as well as a fill; Slint has no box-shadow, so the
+ // value step carries it alone — which is why this is `field` and not the
+ // lighter `field-hover`, whose job is to answer the pointer.
+ background: root.current ? Theme.field : Colors.transparent;
+
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ HorizontalLayout {
+ padding-left: 6px;
+ padding-right: 6px;
+
+ Text {
+ text: root.label;
+ color: (root.current || touch.has-hover) ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ horizontal-alignment: center;
+ vertical-alignment: center;
+ overflow: elide;
+
+ animate color { duration: 140ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+ }
+
+ drag := DragArea {
+ // The one style there is, so the payload names no preset — only what
+ // the drop should build.
+ data: Payload.of("text:default:Title");
+ drag-image: Payload.preview("text:default:Title");
+ drag-image-offset-x: -8;
+ drag-image-offset-y: -4;
+ allow-copy: true;
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.clicked();
+ }
+ }
+ }
+}
+
+// ── the category sidebar ─────────────────────────────────────────────────────
+
+// The heading over a list of category rows, and the control that collapses
+// them. The rows are not its children: whoever places it also places them,
+// under an `if` on the open state — the same split `Section`/`SectionHeader`
+// uses in primitives/panel.slint, because dropping a body out of the layout is
+// what collapsing means and an `if` is what does it.
+component CategoryHeading inherits Rectangle {
+ in property <string> title;
+ in property <bool> open: true;
+
+ callback toggled();
+
+ height: 26px;
+ border-radius: Theme.r-sm;
+ background: heading.has-hover ? Theme.field : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ HorizontalLayout {
+ padding-left: 6px;
+ padding-right: 6px;
+ spacing: 4px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.open ? Glyph.chevron-down : Glyph.chevron-right;
+ size: 10px;
+ tint: heading.has-hover ? Theme.fg : Theme.fg-muted;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.title;
+ color: heading.has-hover ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+
+ heading := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.toggled();
+ }
+ }
+}
+
+component CategoryRow inherits Rectangle {
+ in property <string> label;
+ /// -1 hides the count entirely, which is what an undefined count means in
+ /// the reference; 0 shows nothing either, since an empty bin needs no
+ /// zero beside every row to say so.
+ in property <int> count: -1;
+ in property <bool> current;
+
+ callback clicked();
+
+ height: 24px;
+ border-radius: Theme.r-sm;
+ background: root.current ? Theme.field-active
+ : touch.has-hover ? Theme.field
+ : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ HorizontalLayout {
+ // Indented past the group heading's chevron, so the rows read as
+ // hanging off it rather than sitting beside it.
+ padding-left: 18px;
+ padding-right: 6px;
+ spacing: 4px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.label;
+ color: root.current ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if root.count > 0: Text {
+ text: "\{root.count}";
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-xs;
+ vertical-alignment: center;
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.clicked();
+ }
+ }
+}
+
+// ── the drop zone ────────────────────────────────────────────────────────────
+
+// The import button, whose dashed border says "you may also drop files here".
+//
+// Slint's Path has no stroke-dash-array and a Rectangle border is solid, so
+// the dashes are subtracted rather than drawn: a solid rounded border, then
+// short rectangles in the button's own ground colour laid over it. That keeps
+// the corner radii exactly round — a hand-drawn dashed rounded rect has to
+// approximate the arcs — and leaves one place to change the border colour.
+//
+// The dash counts are fixed and their pitch follows the width, rather than the
+// other way round. A count derived from the width would tear down and rebuild
+// every rectangle on every frame of a splitter drag; a pitch that drifts a
+// pixel between panel sizes is not visible.
+component ImportButton inherits Rectangle {
+ in property <bool> busy;
+ // Reused by the templates page as "save as template", so the words and
+ // the mark are parameters with the import ones as defaults.
+ in property <string> label: "Import media";
+ in property <string> busy-label: "Importing…";
+ in property <Glyph> glyph: Glyph.import;
+
+ callback clicked();
+
+ /// where the straight runs start, i.e. clear of the rounded corners
+ property <length> inset: Theme.r;
+ property <length> run-h: Math.max(0px, root.width - 2 * root.inset);
+ property <length> run-v: Math.max(0px, root.height - 2 * root.inset);
+
+ /// A dash and the gap after it, in pixels — the rhythm the whole outline
+ /// is cut to.
+ ///
+ /// Derived from it rather than fixed: the counts used to be constants, 14
+ /// across and 3 down, so the pitch was whatever the button's width made
+ /// it. On a 300px button that is a 4px gap every 20px across and a 3.7px
+ /// gap every 7.3px down — two different dashed lines meeting at the
+ /// corners, which is what made the outline read as a mistake rather than
+ /// as a style. Counting instead of spacing puts both axes on one rhythm,
+ /// and the rounding spreads the remainder evenly over the run rather than
+ /// leaving it all at one end.
+ property <length> pitch: 8px;
+ property <int> dashes-h: Math.max(1, Math.round(root.run-h / root.pitch));
+ property <int> dashes-v: Math.max(1, Math.round(root.run-v / root.pitch));
+ property <length> pitch-h: root.run-h / root.dashes-h;
+ property <length> pitch-v: root.run-v / root.dashes-v;
+ // Half of it, so dash and gap are the same length on both axes — which is
+ // the whole of what "even" means in a dashed line.
+ property <length> bite-h: root.pitch-h / 2;
+ property <length> bite-v: root.pitch-v / 2;
+ property <brush> ground: (touch.has-hover && !root.busy) ? Theme.field : Theme.panel;
+
+ height: 36px;
+ border-width: 1px;
+ border-radius: Theme.r;
+ border-color: (touch.has-hover && !root.busy) ? Theme.accent : Theme.line-strong;
+ background: root.ground;
+ opacity: root.busy ? 0.4 : 1.0;
+
+ animate background, border-color { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ HorizontalLayout {
+ alignment: center;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.glyph;
+ size: 14px;
+ tint: touch.has-hover ? Theme.fg : Theme.fg-muted;
+ }
+ }
+
+ Text {
+ text: root.busy ? root.busy-label : root.label;
+ color: touch.has-hover ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+ }
+
+ // The bites. Two runs across, two down; each run is divided into equal
+ // pitches and one bite is centred in each.
+ // Both axes pinned on every bite: an element given only one coordinate is
+ // centred on the other axis by default, which drew the top run's dashes
+ // across the middle of the button.
+ for step in root.dashes-h: Rectangle {
+ x: root.inset + (step + 0.5) * root.pitch-h - root.bite-h / 2;
+ y: 0;
+ width: root.bite-h;
+ height: 1px;
+ background: root.ground;
+ }
+ for step in root.dashes-h: Rectangle {
+ x: root.inset + (step + 0.5) * root.pitch-h - root.bite-h / 2;
+ y: root.height - 1px;
+ width: root.bite-h;
+ height: 1px;
+ background: root.ground;
+ }
+ for step in root.dashes-v: Rectangle {
+ x: 0;
+ y: root.inset + (step + 0.5) * root.pitch-v - root.bite-v / 2;
+ width: 1px;
+ height: root.bite-v;
+ background: root.ground;
+ }
+ for step in root.dashes-v: Rectangle {
+ x: root.width - 1px;
+ y: root.inset + (step + 0.5) * root.pitch-v - root.bite-v / 2;
+ width: 1px;
+ height: root.bite-v;
+ background: root.ground;
+ }
+
+ touch := TouchArea {
+ enabled: !root.busy;
+ mouse-cursor: pointer;
+ clicked => {
+ root.clicked();
+ }
+ }
+}
+
+// ── one card ─────────────────────────────────────────────────────────────────
+
+component MediaCard inherits Rectangle {
+ in property <MediaItemData> item;
+
+ /// Faded while it is in the air, so the ghost on the timeline reads as
+ /// this card moved rather than as a second copy of it.
+ opacity: drag.dragging ? 0.45 : 1.0;
+
+ /// modifier-held click: add to or remove from the selection
+ callback clicked(additive: bool);
+ /// double click: put it on the timeline at the playhead
+ callback activated();
+ callback removed();
+
+ property <color> mark: root.item.kind == MediaKind.audio ? Theme.kind-audio
+ : root.item.kind == MediaKind.image ? Theme.kind-image
+ : Theme.kind-video;
+ property <color> well: root.item.kind == MediaKind.audio ? Theme.kind-audio-well
+ : root.item.kind == MediaKind.image ? Theme.kind-image-well
+ : Theme.kind-video-well;
+ property <Glyph> badge: root.item.kind == MediaKind.audio ? Glyph.music
+ : root.item.kind == MediaKind.image ? Glyph.image
+ : Glyph.film;
+
+ /// modifier state at the moment of the press — `clicked` does not carry it
+ property <bool> additive;
+
+ // The whole card is the drag handle, the way it is in the reference:
+ // dragging one onto the timeline is how material gets into an edit. The
+ // DragArea only intercepts once the press has travelled far enough to be a
+ // drag, so the TouchArea inside keeps its click and its double-click.
+ drag := DragArea {
+ // Copy, not move: the bin keeps the file. A DragArea whose data is
+ // empty never starts a drag, which is the whole of the opt-out.
+ data: Payload.of("media:\{root.item.id}");
+ // The chip under the cursor. Same payload as the data, so what is
+ // drawn and what would be dropped cannot come apart.
+ drag-image: Payload.preview("media:\{root.item.id}");
+ // Below and right of the cursor, not under it: the hot spot is where
+ // the drop lands, and a chip centred on it would cover the very lane
+ // edge you are aiming at. Negative, because the offset is measured
+ // into the image — see the DragArea docs.
+ drag-image-offset-x: -8;
+ drag-image-offset-y: -4;
+ allow-copy: true;
+
+ // Everything is *inside* the card's TouchArea rather than beside it. A
+ // sibling would lose its hover the moment the pointer crossed onto the
+ // remove button — the button is the topmost hit, so nothing behind it
+ // is told the pointer is there any more, and a control revealed on
+ // hover would blink itself out of existence. An ancestor TouchArea is
+ // marked hovered on the way down to its children, before any of them
+ // can take the event, so it keeps the hover the whole time; a
+ // descendant that grabs a press still stops the press from reaching it.
+ card := TouchArea {
+ mouse-cursor: pointer;
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.additive = event.modifiers.shift || event.modifiers.control
+ || event.modifiers.meta;
+ }
+ }
+ clicked => {
+ root.clicked(root.additive);
+ }
+ double-clicked => {
+ root.activated();
+ }
+
+ thumb := Rectangle {
+ // aspect-video, and the card's height is derived from the same
+ // ratio, so the label lands exactly under it. y pinned: with only
+ // a height set, the default would centre the tile over the label.
+ y: 0;
+ height: root.width * 9 / 16;
+ border-radius: Theme.r;
+ // The kind's darker hue as the ground, so a card whose artwork has
+ // not arrived is already colour-coded rather than a black hole.
+ background: root.well;
+ border-width: root.item.selected ? 2px : 1px;
+ border-color: root.item.selected ? Theme.accent
+ : card.has-hover ? Theme.line-strong
+ : Theme.line;
+ clip: true;
+
+ if root.item.thumbnail.width > 0: Image {
+ // Sized by hand for the same reason the sidebar is: a
+ // conditional element gets no default fill from its parent.
+ width: parent.width;
+ height: parent.height;
+ source: root.item.thumbnail;
+ // Cover, not contain: letterboxing an 88px thumbnail spends
+ // most of it on bars, and a crop reads better at this size.
+ image-fit: cover;
+ }
+
+ // Sound draws itself. The envelope and the duration stamp between
+ // them already say "this is an audio file", so there is no mark on
+ // top of them — a badge over a waveform is the same fact twice,
+ // and the one that costs the tile its whole middle.
+ if root.item.wave != "": Path {
+ x: 8px;
+ y: 0;
+ width: parent.width - 16px;
+ height: parent.height;
+ commands: root.item.wave;
+ viewbox-width: 1;
+ viewbox-height: 1;
+ fit: fill;
+ fill: root.mark;
+ }
+
+ // What everything else shows before its artwork exists. Large and
+ // faint on purpose: at the badge's own size and colour it read as
+ // a corner mark duplicated into the middle of the tile rather than
+ // as a placeholder.
+ if root.item.thumbnail.width == 0 && root.item.wave == "": Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: root.badge;
+ size: 26px;
+ tint: root.mark.with-alpha(0.32);
+ }
+
+ // No corner kind badge, on purpose: web/'s bin relies on what the
+ // artwork already says — footage carries a duration stamp, audio
+ // is a waveform, a still says "still" — so a badge would repeat
+ // information the card gives away at a glance.
+
+ // Duration, bottom right, on its own scrim because what is behind
+ // it is a video frame and cannot be relied on for contrast.
+ Rectangle {
+ x: parent.width - self.width - 4px;
+ y: parent.height - self.height - 4px;
+ width: stamp.width + 7px;
+ height: stamp.height + 2px;
+ border-radius: Theme.r-xs;
+ background: Theme.scrim;
+
+ stamp := Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: root.item.kind == MediaKind.image
+ ? "still"
+ : Fmt.short-duration(root.item.duration);
+ color: Theme.on-scrim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-xs;
+ }
+ }
+
+ // Hover-only, like the reference: a permanent delete button on
+ // every card in a full bin is one bin's worth of invitations to
+ // lose work.
+ if card.has-hover: Rectangle {
+ x: parent.width - self.width - 4px;
+ y: 4px;
+ width: 18px;
+ height: 18px;
+ border-radius: Theme.r-xs;
+ background: remove.has-hover ? Theme.danger : Theme.scrim;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.close;
+ size: 10px;
+ tint: Theme.on-scrim;
+ }
+
+ remove := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.removed();
+ }
+ }
+ }
+ }
+
+ Text {
+ y: thumb.height + 4px;
+ width: root.width;
+ height: 14px;
+ text: root.item.name;
+ color: root.item.selected ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+ }
+}
+
+// ── the card grid ────────────────────────────────────────────────────────────
+
+// `grid-cols-[repeat(auto-fill,minmax(88px,1fr))]`, arithmetic instead of a
+// layout: Slint has no auto-fill grid, and a GridLayout wants its cells named
+// at compile time, which a model cannot do.
+component MediaGrid inherits Rectangle {
+ in property <[MediaItemData]> items;
+ /// A floor under the grid's own height, so the empty page below the last
+ /// row still belongs to it.
+ ///
+ /// Without it the grid is exactly as tall as its cards, and the only
+ /// pixels left to press are the 8px seams between them — a marquee you
+ /// have to thread a needle to start, which is no marquee at all. The
+ /// timeline has this for free: its lanes run the width of the pane and
+ /// most of one is empty. This is the bin's version of that empty lane.
+ in property <length> page-floor;
+
+ callback clicked(id: int, additive: bool);
+ callback activated(id: int);
+ callback removed(id: int);
+ /// A marquee closed over the grid, given as the block of cells it caught:
+ /// the two corners inclusive, and the column count they were measured
+ /// against. A block and not a list of ids, because the cards are placed by
+ /// arithmetic rather than by a layout — the geometry lives on this side,
+ /// so this side is what resolves it, and a rectangle of cells is the whole
+ /// answer without a model to carry it. An empty block — `to` before
+ /// `from` on either axis — is a press that caught nothing, which for a
+ /// plain band is how the selection gets cleared.
+ callback band-selected(columns: int, from-col: int, to-col: int,
+ from-row: int, to-row: int, additive: bool);
+
+ property <length> gap: 8px;
+ property <length> min-card: 88px;
+
+ property <int> cols: Math.max(1,
+ Math.floor((root.width + root.gap) / (root.min-card + root.gap)));
+ property <length> card-w: (root.width - (root.cols - 1) * root.gap) / root.cols;
+ /// thumbnail + the 4px gap + one line of label
+ property <length> card-h: root.card-w * 9 / 16 + 4px + 14px;
+ property <int> rows: Math.ceil(root.items.length / root.cols);
+ /// One card and the gutter after it — what a column, or a row, advances by.
+ property <length> col-pitch: root.card-w + root.gap;
+ property <length> row-pitch: root.card-h + root.gap;
+
+ property <length> cards-h:
+ root.rows > 0 ? root.rows * root.row-pitch - root.gap : 0px;
+
+ height: Math.max(root.cards-h, root.page-floor);
+
+ // Which cards a band's edges touch. The reference asks every card for its
+ // rect and tests them one by one; the grid here is arithmetic, so the
+ // question inverts — an edge maps straight to a column, and the four
+ // answers are the block. The tests are the reference's, strict on both
+ // sides (`left < right && right > left`), so a band that stops exactly on
+ // a gutter catches neither of the cards it runs between.
+ pure function first-col(edge: length) -> int {
+ return Math.max(0, Math.floor((edge - root.card-w) / root.col-pitch) + 1);
+ }
+ pure function last-col(edge: length) -> int {
+ return Math.min(root.cols - 1, Math.ceil(edge / root.col-pitch) - 1);
+ }
+ pure function first-row(edge: length) -> int {
+ return Math.max(0, Math.floor((edge - root.card-h) / root.row-pitch) + 1);
+ }
+ pure function last-row(edge: length) -> int {
+ return Math.min(root.rows - 1, Math.ceil(edge / root.row-pitch) - 1);
+ }
+
+ // Pressing the background drags a selection band, the way pressing empty
+ // space in the reference's grid does. Declared first, so the cards take
+ // their own presses and what is left to press is the gutter between them.
+ //
+ // Committed on release rather than as it sweeps — the timeline's band is
+ // the same gesture in the same window and does the same, for the reason
+ // written there: selecting live looks busy and makes a mistaken sweep hard
+ // to back out of. It also keeps the bin off the pointer-rate path, which
+ // it has no cheap publish for; the reference re-derives on every move
+ // because a React list can afford to.
+ //
+ // A press that never moves closes an empty band, which is a click on empty
+ // space and clears the selection — the same event doing the same job, so
+ // there is no second handler that could disagree with this one about what
+ // a press on the background means.
+ //
+ // It fills the root, which is why `page-floor` exists: the surface this
+ // gesture is made on is the grid's box, and a box drawn tight around the
+ // cards has nothing in it but seams.
+ band := TouchArea {
+ property <bool> drawing;
+ property <bool> additive;
+ property <length> from-x;
+ property <length> from-y;
+ property <length> to-x;
+ property <length> to-y;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ self.additive = event.modifiers.shift;
+ self.from-x = self.mouse-x;
+ self.from-y = self.mouse-y;
+ self.to-x = self.mouse-x;
+ self.to-y = self.mouse-y;
+ self.drawing = true;
+ } else if (event.kind == PointerEventKind.up
+ || event.kind == PointerEventKind.cancel) {
+ if (self.drawing) {
+ self.drawing = false;
+ root.band-selected(
+ root.cols,
+ root.first-col(Math.min(self.from-x, self.to-x)),
+ root.last-col(Math.max(self.from-x, self.to-x)),
+ root.first-row(Math.min(self.from-y, self.to-y)),
+ root.last-row(Math.max(self.from-y, self.to-y)),
+ self.additive);
+ }
+ }
+ }
+
+ moved => {
+ self.to-x = self.mouse-x;
+ self.to-y = self.mouse-y;
+ }
+ }
+
+ for entry[index] in root.items: MediaCard {
+ x: Math.mod(index, root.cols) * (root.card-w + root.gap);
+ y: Math.floor(index / root.cols) * (root.card-h + root.gap);
+ width: root.card-w;
+ height: root.card-h;
+ item: entry;
+
+ clicked(additive) => {
+ root.clicked(entry.id, additive);
+ }
+ activated => {
+ root.activated(entry.id);
+ }
+ removed => {
+ root.removed(entry.id);
+ }
+ }
+
+ // The band being drawn, declared last so it lies over the cards it is
+ // closing on. Same wash and same edge as the timeline's: one gesture, one
+ // look, wherever in the window it is made.
+ if band.drawing: Rectangle {
+ x: Math.min(band.from-x, band.to-x);
+ y: Math.min(band.from-y, band.to-y);
+ width: Math.max(band.from-x, band.to-x) - Math.min(band.from-x, band.to-x);
+ height: Math.max(band.from-y, band.to-y) - Math.min(band.from-y, band.to-y);
+ background: Theme.accent-soft;
+ border-width: 1px;
+ border-color: Theme.accent;
+ }
+}
+
+// ── the catalogue pages ──────────────────────────────────────────────────────
+
+// One entry of the transitions or effects catalogue. Display data only: the
+// id is what Rust is handed when a card is applied, mirroring lib/effects.ts
+// in the reference, where ids are forever because project files store them.
+struct CatalogueItemData {
+ id: string,
+ label: string,
+ /// False keeps the card browsable with a "Soon" badge — the reference's
+ /// honest version of a disabled control, used by the motion transitions
+ /// the engine cannot animate yet.
+ enabled: bool,
+ /// The rendered preview, for effects; empty for transitions and filters,
+ /// whose tiles carry a mark on a sunken ground instead.
+ art: image,
+ /// What that tile shows when there is no artwork. Carried per entry rather
+ /// than fixed by the card, because a transition and an audio filter are
+ /// both artless and are not the same thing.
+ glyph: Glyph,
+}
+
+// A catalogue card: preview tile, label under it, and the apply affordance —
+// a plus on hover when it works, a "Soon" badge when it does not.
+component CatalogueCard inherits Rectangle {
+ in property <CatalogueItemData> item;
+ /// What this card leaves on the timeline when it is dragged there, or
+ /// empty for a page whose entries are applied to the selection rather than
+ /// placed — a DragArea with no data never starts a drag, so one property
+ /// is the whole difference between a draggable page and a clickable one.
+ in property <string> payload;
+
+ callback applied();
+
+ opacity: drag.dragging ? 0.45 : 1.0;
+
+ drag := DragArea {
+ data: Payload.of(root.payload);
+ // Empty on a click-only page, where it resolves to an empty image and
+ // draws nothing — the same one property that decides whether the card
+ // drags at all.
+ drag-image: Payload.preview(root.payload);
+ drag-image-offset-x: -8;
+ drag-image-offset-y: -4;
+ allow-copy: true;
+
+ card := TouchArea {
+ enabled: root.item.enabled;
+ mouse-cursor: root.item.enabled ? pointer : default;
+ clicked => { root.applied(); }
+
+ tile := Rectangle {
+ y: 0;
+ height: root.width * 9 / 16;
+ border-radius: Theme.r;
+ background: Theme.well;
+ border-width: 1px;
+ border-color: (card.has-hover && root.item.enabled)
+ ? Theme.line-strong : Theme.line;
+ clip: true;
+
+ if root.item.art.width > 0: Image {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ source: root.item.art;
+ image-fit: cover;
+ }
+
+ if root.item.art.width == 0: Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: root.item.glyph;
+ size: 22px;
+ tint: Theme.fg-dim;
+ }
+
+ if !root.item.enabled: Rectangle {
+ x: parent.width - self.width - 4px;
+ y: parent.height - self.height - 4px;
+ width: soon.width + 8px;
+ height: soon.height + 2px;
+ border-radius: Theme.r-xs;
+ background: Theme.scrim;
+
+ soon := Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "Soon";
+ color: Theme.on-scrim;
+ font-size: Theme.fs-xs;
+ }
+ }
+
+ if root.item.enabled && card.has-hover: Rectangle {
+ x: parent.width - self.width - 4px;
+ y: parent.height - self.height - 4px;
+ width: 20px;
+ height: 20px;
+ border-radius: Theme.r-xs;
+ background: Theme.scrim;
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.plus;
+ size: 11px;
+ tint: Theme.on-scrim;
+ }
+ }
+ }
+
+ Text {
+ x: 0;
+ y: tile.height + 4px;
+ width: root.width;
+ height: 14px;
+ text: root.item.label;
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+ }
+}
+
+// The same auto-fill arithmetic as MediaGrid, over catalogue entries.
+component CatalogueGrid inherits Rectangle {
+ in property <[CatalogueItemData]> items;
+ /// Names the page for the timeline: "filter" makes every card here a drag
+ /// source that leaves a layer clip, and empty leaves the page click-only.
+ /// The label rides along in the payload because it is written here, in the
+ /// catalogue, and nothing on the Rust side has a copy of it.
+ in property <string> payload-kind;
+
+ /// The label rides along with the id: a page that places something has to
+ /// say what to call it, and the catalogue is the only place that knows.
+ callback applied(id: string, label: string);
+
+ property <length> gap: 8px;
+ property <length> min-card: 88px;
+
+ property <int> cols: Math.max(1,
+ Math.floor((root.width + root.gap) / (root.min-card + root.gap)));
+ property <length> card-w: (root.width - (root.cols - 1) * root.gap) / root.cols;
+ property <length> card-h: root.card-w * 9 / 16 + 4px + 14px;
+ property <int> rows: Math.ceil(root.items.length / root.cols);
+
+ height: root.rows > 0 ? root.rows * (root.card-h + root.gap) - root.gap : 0px;
+
+ for entry[index] in root.items: CatalogueCard {
+ x: Math.mod(index, root.cols) * (root.card-w + root.gap);
+ y: Math.floor(index / root.cols) * (root.card-h + root.gap);
+ width: root.card-w;
+ height: root.card-h;
+ item: entry;
+ payload: root.payload-kind == "" || !entry.enabled ? ""
+ : "\{root.payload-kind}:\{entry.id}:\{entry.label}";
+
+ applied => { root.applied(entry.id, entry.label); }
+ }
+}
+
+// The text page: the one title style that exists, as a card. Clicking adds a
+// title at the playhead. Sized like one grid cell so the card matches its
+// neighbours on the other pages.
+component TextPage inherits Rectangle {
+ callback add-text();
+
+ opacity: drag.dragging ? 0.45 : 1.0;
+
+ property <length> gap: 8px;
+ property <length> min-card: 88px;
+ property <int> cols: Math.max(1,
+ Math.floor((root.width + root.gap) / (root.min-card + root.gap)));
+ property <length> card-w: (root.width - (root.cols - 1) * root.gap) / root.cols;
+
+ height: root.card-w * 9 / 16 + 4px + 14px;
+
+ // Pinned to the card and not to the page: a DragArea left to expand would
+ // start a drag from the empty half of the row beside the one card.
+ drag := DragArea {
+ x: 0;
+ y: 0;
+ width: root.card-w;
+ height: root.height;
+ // The one title style there is, so the payload names no preset — only
+ // what the drop should build, and what to call it.
+ data: Payload.of("text:default:Title");
+ drag-image: Payload.preview("text:default:Title");
+ drag-image-offset-x: -8;
+ drag-image-offset-y: -4;
+ allow-copy: true;
+
+ touch := TouchArea {
+ x: 0;
+ y: 0;
+ width: root.card-w;
+ height: root.height;
+ mouse-cursor: pointer;
+ clicked => { root.add-text(); }
+ double-clicked => { root.add-text(); }
+
+ tile := Rectangle {
+ y: 0;
+ height: root.card-w * 9 / 16;
+ border-radius: Theme.r;
+ // Titles wear the rose the timeline gives them.
+ background: Theme.kind-text-well;
+ border-width: 1px;
+ border-color: touch.has-hover ? Theme.line-strong : Theme.line;
+
+ Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "Aa";
+ color: Theme.kind-text;
+ // A mark drawn as type rather than a line of text, so it
+ // is sized to the tile it sits in like the kind glyphs on
+ // every other card are.
+ font-size: 20px;
+ font-weight: Theme.weight-display;
+ }
+ }
+
+ Text {
+ x: 0;
+ y: tile.height + 4px;
+ width: root.card-w;
+ height: 14px;
+ text: "Default title";
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+ }
+}
+
+// ── the pane ─────────────────────────────────────────────────────────────────
+
+// Centred placeholder for a page with nothing on it.
+component Empty inherits VerticalLayout {
+ in property <Glyph> glyph;
+ in property <string> text;
+
+ padding: 16px;
+ padding-top: 32px;
+ spacing: 8px;
+
+ HorizontalLayout {
+ alignment: center;
+ Icon {
+ glyph: root.glyph;
+ size: 28px;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ Text {
+ text: root.text;
+ color: Theme.fg-dim;
+ font-size: Theme.fs;
+ horizontal-alignment: center;
+ wrap: word-wrap;
+ }
+}
+
+export component MediaPane inherits Rectangle {
+ /// The bin, already narrowed to `filter`. Filtering happens on the Rust
+ /// side because a Slint model cannot be filtered in the language, and
+ /// filtering inside the `for` would leave holes in the grid's indices.
+ in property <[MediaItemData]> items;
+ in property <int> count-all;
+ in property <int> count-video;
+ in property <int> count-audio;
+ in property <int> count-images;
+ /// how many of the whole bin are selected, not how many of `items` are
+ in property <int> selected-count;
+ in property <bool> importing;
+
+ out property <MediaFilter> filter: MediaFilter.all;
+
+ callback import-media();
+ callback filter-changed(filter: MediaFilter);
+ callback select(id: int, additive: bool);
+ /// A marquee closed over the card grid — see MediaGrid.band-selected.
+ callback band-selected(columns: int, from-col: int, to-col: int,
+ from-row: int, to-row: int, additive: bool);
+ callback remove(id: int);
+ callback remove-selected();
+ /// double-clicked: place it on the timeline at the playhead
+ callback activate(id: int);
+
+ /// Text page: add a title at the playhead.
+ callback add-text();
+ /// Catalogue pages: apply to the selected clip; Rust validates & explains.
+ callback apply-effect(effect-id: string);
+ callback apply-transition(transition-id: string);
+ callback apply-filter(filter-id: string, label: string);
+ /// Templates page: open the save-as-template flow for this project.
+ callback save-template();
+
+ /// The corner button: show something else in this pane's seat.
+ callback pane-picked(kind: PaneKind);
+ /// Which seat this pane is in. It travels no further than the corner
+ /// button, whose drag payload has to say where it is being taken from.
+ in property <int> pane-seat;
+ /// False when this is the last panel on screen. Travels the same way, and
+ /// only greys the one row that would close it.
+ in property <bool> pane-removable: true;
+ /// That row was used.
+ callback pane-removed();
+
+ property <int> tab;
+ property <bool> categories-open: true;
+ property <bool> text-open: true;
+ property <bool> transitions-open: true;
+ property <bool> effects-open: true;
+ property <bool> filters-open: true;
+ property <bool> templates-open: true;
+ /// 0 = Basic, 1 = Motion
+ property <int> transition-category;
+ /// 0 = Basic, 1 = Blur, 2 = Color, 3 = Stylize, 4 = Distort
+ property <int> effect-category;
+ /// 0 = Voice, 1 = Tone, 2 = Space — the inspector's filter shelves
+ property <int> filter-category;
+ /// The category column. In-out, because it is dragged.
+ in-out property <length> sidebar-w: 104px;
+ /// Narrow enough to be a real squeeze, wide enough that a category name
+ /// still says which category.
+ in property <length> min-sidebar: 76px;
+ /// Where the column was when the divider went down. A drag is one pointer,
+ /// so one slot is enough.
+ property <length> press-sidebar;
+
+ /// The sidebar as it is actually drawn — see `headers-w` in the timeline
+ /// pane, which has the same problem for the same reason. A library
+ /// dropped into a narrow seat would otherwise hand the card grid a
+ /// negative width.
+ property <length> sidebar: Math.max(0px,
+ Math.min(root.sidebar-w, root.width / 2));
+
+ // The catalogues, mirrored from lib/effects.ts in the reference: same ids
+ // (they are written into project files there — pick them like you mean
+ // them), same labels, same category split. The effect artwork is the
+ // reference's own rendered previews, each effect's real FFmpeg chain run
+ // over one source still.
+ property <[CatalogueItemData]> transitions-basic: [
+ { id: "cross-fade", label: "Cross Fade", enabled: true, glyph: Glyph.transition },
+ { id: "fade-black", label: "Fade to Black", enabled: true, glyph: Glyph.transition },
+ { id: "fade-white", label: "Fade to White", enabled: true, glyph: Glyph.transition },
+ ];
+ property <[CatalogueItemData]> transitions-motion: [
+ { id: "wipe-left", label: "Wipe Left", enabled: false, glyph: Glyph.transition },
+ { id: "wipe-right", label: "Wipe Right", enabled: false, glyph: Glyph.transition },
+ { id: "push", label: "Push", enabled: false, glyph: Glyph.transition },
+ { id: "zoom", label: "Zoom", enabled: false, glyph: Glyph.transition },
+ ];
+
+ // The audio filters, mirroring PresetCatalog.filters in the inspector —
+ // same ids, same shelves. They have no artwork and never will: a picture
+ // of a sound is a waveform, and every one of these would draw the same
+ // one. The mark says "this is audio" and the name does the rest.
+ property <[CatalogueItemData]> filters-voice: [
+ { id: "sweet", label: "Sweet", enabled: true, glyph: Glyph.waveform },
+ { id: "deep", label: "Deep", enabled: true, glyph: Glyph.waveform },
+ { id: "chipmunk", label: "Chipmunk", enabled: true, glyph: Glyph.waveform },
+ { id: "robot", label: "Robot", enabled: true, glyph: Glyph.waveform },
+ ];
+ property <[CatalogueItemData]> filters-tone: [
+ { id: "warm", label: "Warm", enabled: true, glyph: Glyph.waveform },
+ { id: "bright", label: "Bright", enabled: true, glyph: Glyph.waveform },
+ { id: "telephone", label: "Telephone", enabled: true, glyph: Glyph.waveform },
+ { id: "radio", label: "Radio", enabled: true, glyph: Glyph.waveform },
+ ];
+ property <[CatalogueItemData]> filters-space: [
+ { id: "room", label: "Room", enabled: true, glyph: Glyph.waveform },
+ { id: "hall", label: "Hall", enabled: true, glyph: Glyph.waveform },
+ { id: "plate", label: "Plate", enabled: true, glyph: Glyph.waveform },
+ { id: "cathedral", label: "Cathedral", enabled: true, glyph: Glyph.waveform },
+ ];
+ property <[CatalogueItemData]> effects-basic: [
+ { id: "black-white", label: "Black & White", enabled: true,
+ art: @image-url("../assets/effect-previews/black-white.jpg") },
+ { id: "sepia", label: "Sepia", enabled: true,
+ art: @image-url("../assets/effect-previews/sepia.jpg") },
+ { id: "invert", label: "Invert", enabled: true,
+ art: @image-url("../assets/effect-previews/invert.jpg") },
+ { id: "sharpen", label: "Sharpen", enabled: true,
+ art: @image-url("../assets/effect-previews/sharpen.jpg") },
+ ];
+ property <[CatalogueItemData]> effects-blur: [
+ { id: "gaussian-blur", label: "Gaussian Blur", enabled: true,
+ art: @image-url("../assets/effect-previews/gaussian-blur.jpg") },
+ { id: "box-blur", label: "Box Blur", enabled: true,
+ art: @image-url("../assets/effect-previews/box-blur.jpg") },
+ { id: "motion-blur", label: "Motion Blur", enabled: true,
+ art: @image-url("../assets/effect-previews/motion-blur.jpg") },
+ ];
+ property <[CatalogueItemData]> effects-color: [
+ { id: "warm", label: "Warm", enabled: true,
+ art: @image-url("../assets/effect-previews/warm.jpg") },
+ { id: "cool", label: "Cool", enabled: true,
+ art: @image-url("../assets/effect-previews/cool.jpg") },
+ { id: "vibrance", label: "Vibrance", enabled: true,
+ art: @image-url("../assets/effect-previews/vibrance.jpg") },
+ { id: "contrast-pop", label: "Contrast Pop", enabled: true,
+ art: @image-url("../assets/effect-previews/contrast-pop.jpg") },
+ ];
+ property <[CatalogueItemData]> effects-stylize: [
+ { id: "vignette", label: "Vignette", enabled: true,
+ art: @image-url("../assets/effect-previews/vignette.jpg") },
+ { id: "film-grain", label: "Film Grain", enabled: true,
+ art: @image-url("../assets/effect-previews/film-grain.jpg") },
+ { id: "glow", label: "Glow", enabled: true,
+ art: @image-url("../assets/effect-previews/glow.jpg") },
+ { id: "posterize", label: "Posterize", enabled: true,
+ art: @image-url("../assets/effect-previews/posterize.jpg") },
+ ];
+ property <[CatalogueItemData]> effects-distort: [
+ { id: "pixelate", label: "Pixelate", enabled: true,
+ art: @image-url("../assets/effect-previews/pixelate.jpg") },
+ { id: "mirror", label: "Mirror", enabled: true,
+ art: @image-url("../assets/effect-previews/mirror.jpg") },
+ { id: "fisheye", label: "Fisheye", enabled: true,
+ art: @image-url("../assets/effect-previews/fisheye.jpg") },
+ { id: "shake", label: "Shake", enabled: true,
+ art: @image-url("../assets/effect-previews/shake.jpg") },
+ ];
+
+ function narrow(to: MediaFilter) {
+ root.filter = to;
+ root.filter-changed(to);
+ }
+
+ Pane {
+ // The page strip. Its bottom edge is the pane's full-width divider,
+ // which is why the hairline is a child of this row and not a border on
+ // the pill below it.
+ Rectangle {
+ height: 44px;
+
+ Rectangle {
+ y: parent.height - 1px;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding: 8px;
+ spacing: 8px;
+
+ // A sunken track and nothing else. No border: this sits
+ // inside a pane that is already outlined, and a second rule
+ // 8px in from the first reads as a box in a box. The
+ // reference draws it the same way — `rounded-lg bg-sunken
+ // p-0.5`, no border — which is what separates it from
+ // `SegmentedControl`, where the border is doing real work
+ // because that control sits loose in a form row with nothing
+ // else to bound it.
+ Rectangle {
+ background: Theme.well;
+ border-radius: Theme.r;
+
+ HorizontalLayout {
+ padding: 2px;
+ spacing: 2px;
+
+ LibraryTab {
+ label: "Media";
+ current: root.tab == 0;
+ clicked => { root.tab = 0; }
+ }
+ LibraryTab {
+ label: "Text";
+ current: root.tab == 1;
+ clicked => { root.tab = 1; }
+ }
+ LibraryTab {
+ label: "Transitions";
+ current: root.tab == 2;
+ clicked => { root.tab = 2; }
+ }
+ LibraryTab {
+ label: "Effects";
+ current: root.tab == 3;
+ clicked => { root.tab = 3; }
+ }
+ LibraryTab {
+ label: "Filters";
+ current: root.tab == 4;
+ clicked => { root.tab = 4; }
+ }
+ LibraryTab {
+ label: "Templates";
+ current: root.tab == 5;
+ clicked => { root.tab = 5; }
+ }
+ }
+ }
+
+ // Outside the sunken track, not in it: the track holds the
+ // pages of *this* view and this button changes which view the
+ // pane is, which is a different question about a different
+ // thing.
+ VerticalLayout {
+ alignment: center;
+ PaneSwitcher {
+ kind: PaneKind.media;
+ seat: root.pane-seat;
+ removable: root.pane-removable;
+ picked(kind) => { root.pane-picked(kind); }
+ removed => { root.pane-removed(); }
+ }
+ }
+ }
+ }
+
+ // The page: category sidebar, hairline, browsing area. Positioned by
+ // hand for the reason the workspace is — the sidebar is a fixed column
+ // and the rest is the remainder, and saying that directly is shorter
+ // than a layout plus the stretch factors that would express it.
+ body := Rectangle {
+ vertical-stretch: 1;
+
+ // The divider is the grab handle, exactly as it is between the
+ // track column and the lanes. The sidebar is the only fixed
+ // column in the window that could not be resized, and it is the
+ // one carrying the longest labels — "Transitions", a category
+ // name — so it was also the one most likely to be wrong for a
+ // given page at a given window width.
+ HairlineSplitter {
+ x: root.sidebar;
+ y: 0;
+ height: parent.height;
+
+ pressed => { root.press-sidebar = root.sidebar-w; }
+ moved(delta) => {
+ // Floored so the labels keep their room, and capped at
+ // half the pane so the grid it is squeezing always has
+ // more of the pane than the list of what to put in it.
+ root.sidebar-w = Math.max(root.min-sidebar,
+ Math.min(parent.width / 2, root.press-sidebar + delta));
+ }
+ }
+
+ Rectangle {
+ // Pinned: an element with an explicit width but no x is
+ // CENTRED in its parent by Slint's default geometry, and this
+ // column spent two rounds of debugging drifting into the card
+ // grid because of exactly that. Every element in this file
+ // that sets one dimension must pin the other axis too.
+ x: 0;
+ width: root.sidebar;
+ clip: true;
+
+ // One group per page, each behind its own `if`.
+ //
+ // These were plain children with a `visible` toggle and a
+ // height of zero when hidden, to keep a tab switch from
+ // re-instantiating anything. That was wrong in a way that only
+ // showed up on the later tabs: a zero-height child still takes
+ // its share of the layout's `spacing`, so every group started
+ // one pixel lower for each hidden row above it, and Templates
+ // sat a dozen pixels below Media. A conditional group costs a
+ // rebuild on a tab switch — which the pages themselves already
+ // pay, a few lines down — and cannot drift.
+ VerticalLayout {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ alignment: start;
+ padding: 4px;
+
+ if root.tab == 0: VerticalLayout {
+ spacing: 1px;
+ CategoryHeading {
+ height: 26px;
+ title: "Media";
+ open: root.categories-open;
+ toggled => { root.categories-open = !root.categories-open; }
+ }
+ if root.categories-open: CategoryRow {
+ height: 24px;
+ label: "All media";
+ count: root.count-all;
+ current: root.filter == MediaFilter.all;
+ clicked => { root.narrow(MediaFilter.all); }
+ }
+ if root.categories-open: CategoryRow {
+ height: 24px;
+ label: "Video";
+ count: root.count-video;
+ current: root.filter == MediaFilter.video;
+ clicked => { root.narrow(MediaFilter.video); }
+ }
+ if root.categories-open: CategoryRow {
+ height: 24px;
+ label: "Audio";
+ count: root.count-audio;
+ current: root.filter == MediaFilter.audio;
+ clicked => { root.narrow(MediaFilter.audio); }
+ }
+ if root.categories-open: CategoryRow {
+ height: 24px;
+ label: "Images";
+ count: root.count-images;
+ current: root.filter == MediaFilter.images;
+ clicked => { root.narrow(MediaFilter.images); }
+ }
+ }
+
+ if root.tab == 1: VerticalLayout {
+ spacing: 1px;
+ CategoryHeading {
+ height: 26px;
+ title: "Text";
+ open: root.text-open;
+ toggled => { root.text-open = !root.text-open; }
+ }
+ if root.text-open: CategoryRow {
+ height: 24px;
+ label: "Titles";
+ current: true;
+ }
+ }
+
+ if root.tab == 2: VerticalLayout {
+ spacing: 1px;
+ CategoryHeading {
+ height: 26px;
+ title: "Transitions";
+ open: root.transitions-open;
+ toggled => { root.transitions-open = !root.transitions-open; }
+ }
+ if root.transitions-open: CategoryRow {
+ height: 24px;
+ label: "Basic";
+ current: root.transition-category == 0;
+ clicked => { root.transition-category = 0; }
+ }
+ if root.transitions-open: CategoryRow {
+ height: 24px;
+ label: "Motion";
+ current: root.transition-category == 1;
+ clicked => { root.transition-category = 1; }
+ }
+ }
+
+ if root.tab == 3: VerticalLayout {
+ spacing: 1px;
+ CategoryHeading {
+ height: 26px;
+ title: "Video Effects";
+ open: root.effects-open;
+ toggled => { root.effects-open = !root.effects-open; }
+ }
+ if root.effects-open: CategoryRow {
+ height: 24px;
+ label: "Basic";
+ current: root.effect-category == 0;
+ clicked => { root.effect-category = 0; }
+ }
+ if root.effects-open: CategoryRow {
+ height: 24px;
+ label: "Blur";
+ current: root.effect-category == 1;
+ clicked => { root.effect-category = 1; }
+ }
+ if root.effects-open: CategoryRow {
+ height: 24px;
+ label: "Color";
+ current: root.effect-category == 2;
+ clicked => { root.effect-category = 2; }
+ }
+ if root.effects-open: CategoryRow {
+ height: 24px;
+ label: "Stylize";
+ current: root.effect-category == 3;
+ clicked => { root.effect-category = 3; }
+ }
+ if root.effects-open: CategoryRow {
+ height: 24px;
+ label: "Distort";
+ current: root.effect-category == 4;
+ clicked => { root.effect-category = 4; }
+ }
+ }
+
+ if root.tab == 4: VerticalLayout {
+ spacing: 1px;
+ CategoryHeading {
+ height: 26px;
+ title: "Audio Filters";
+ open: root.filters-open;
+ toggled => { root.filters-open = !root.filters-open; }
+ }
+ if root.filters-open: CategoryRow {
+ height: 24px;
+ label: "Voice";
+ current: root.filter-category == 0;
+ clicked => { root.filter-category = 0; }
+ }
+ if root.filters-open: CategoryRow {
+ height: 24px;
+ label: "Tone";
+ current: root.filter-category == 1;
+ clicked => { root.filter-category = 1; }
+ }
+ if root.filters-open: CategoryRow {
+ height: 24px;
+ label: "Space";
+ current: root.filter-category == 2;
+ clicked => { root.filter-category = 2; }
+ }
+ }
+
+ if root.tab == 5: VerticalLayout {
+ spacing: 1px;
+ CategoryHeading {
+ height: 26px;
+ title: "Templates";
+ open: root.templates-open;
+ toggled => { root.templates-open = !root.templates-open; }
+ }
+ if root.templates-open: CategoryRow {
+ height: 24px;
+ label: "My templates";
+ current: true;
+ }
+ }
+ }
+ }
+
+ pages := PaneScroll {
+ x: root.sidebar + 1px;
+ width: Math.max(0px, parent.width - root.sidebar - 1px);
+ height: parent.height;
+
+ if root.tab == 0: HorizontalLayout {
+ padding: 8px;
+ ImportButton {
+ busy: root.importing;
+ clicked => { root.import-media(); }
+ }
+ }
+
+ // Only worth a row when a multiple selection exists — one
+ // selected card is deleted from the card itself.
+ if root.tab == 0 && root.selected-count > 1: HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ padding-bottom: 8px;
+
+ Rectangle {
+ height: 28px;
+ background: Theme.well;
+ border-radius: Theme.r;
+
+ HorizontalLayout {
+ padding-left: 10px;
+ padding-right: 4px;
+ spacing: 8px;
+
+ Text {
+ horizontal-stretch: 1;
+ text: "\{root.selected-count} selected";
+ color: Theme.fg-muted;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Rectangle {
+ width: wipe.width + 16px;
+ height: 20px;
+ border-radius: Theme.r-xs;
+ background: bin.has-hover ? Theme.danger-soft
+ : Colors.transparent;
+
+ wipe := Text {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ text: "Delete";
+ color: Theme.danger;
+ font-size: Theme.fs-sm;
+ }
+
+ bin := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.remove-selected(); }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ if root.tab == 0 && root.items.length == 0: Empty {
+ glyph: Glyph.import;
+ text: root.count-all > 0
+ ? "Nothing of that kind in this project."
+ : "Drop video and audio files anywhere in the window to import them.";
+ }
+
+ if root.tab == 0 && root.items.length > 0: HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ padding-bottom: 8px;
+
+ MediaGrid {
+ horizontal-stretch: 1;
+ items: root.items;
+ // Whatever the page has left after the rows above it:
+ // the import row is 8 + 36 + 8, the delete strip 28
+ // and its own 8, and this row keeps 8 under itself.
+ // Counted rather than measured, because reading a
+ // sibling's laid-out height from inside the layout
+ // that assigns it is a binding loop waiting to happen.
+ page-floor: Math.max(0px, pages.height - 52px
+ - (root.selected-count > 1 ? 36px : 0px) - 8px);
+
+ clicked(id, additive) => { root.select(id, additive); }
+ activated(id) => { root.activate(id); }
+ removed(id) => { root.remove(id); }
+ band-selected(columns, from-col, to-col, from-row, to-row, additive) => {
+ root.band-selected(columns, from-col, to-col,
+ from-row, to-row, additive);
+ }
+ }
+ }
+
+ if root.tab == 1: HorizontalLayout {
+ padding: 8px;
+
+ TextPage {
+ horizontal-stretch: 1;
+ add-text => { root.add-text(); }
+ }
+ }
+
+ if root.tab == 2: HorizontalLayout {
+ padding: 8px;
+
+ CatalogueGrid {
+ horizontal-stretch: 1;
+ items: root.transition-category == 0
+ ? root.transitions-basic
+ : root.transitions-motion;
+ applied(id, label) => { root.apply-transition(id); }
+ }
+ }
+
+ if root.tab == 3: HorizontalLayout {
+ padding: 8px;
+
+ CatalogueGrid {
+ horizontal-stretch: 1;
+ items: root.effect-category == 0 ? root.effects-basic
+ : root.effect-category == 1 ? root.effects-blur
+ : root.effect-category == 2 ? root.effects-color
+ : root.effect-category == 3 ? root.effects-stylize
+ : root.effects-distort;
+ applied(id, label) => { root.apply-effect(id); }
+ }
+ }
+
+ if root.tab == 4: HorizontalLayout {
+ padding: 8px;
+
+ // The one catalogue that is placed rather than applied:
+ // a filter is a layer over a span of the timeline, so it
+ // is dragged onto the lanes like a piece of media. The
+ // click is kept as the shortcut for the same thing — it
+ // lands at the playhead instead of under the pointer.
+ CatalogueGrid {
+ horizontal-stretch: 1;
+ payload-kind: "filter";
+ items: root.filter-category == 0 ? root.filters-voice
+ : root.filter-category == 1 ? root.filters-tone
+ : root.filters-space;
+ applied(id, label) => { root.apply-filter(id, label); }
+ }
+ }
+
+ // Templates: the save affordance, then the gallery — which is
+ // engine-backed in the reference (templateList), and nothing
+ // in this tree persists projects yet, so the gallery is its
+ // empty state until that seam exists.
+ if root.tab == 5: HorizontalLayout {
+ padding: 8px;
+
+ ImportButton {
+ label: "Save this project as a template";
+ glyph: Glyph.slot;
+ clicked => { root.save-template(); }
+ }
+ }
+
+ if root.tab == 5: Empty {
+ glyph: Glyph.slot;
+ text: "No templates yet. Mark media as slots, then save this project as a template.";
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/pane-switcher.slint b/engine/crates/concat/ui/workspace/pane-switcher.slint
new file mode 100644
index 00000000..b4f2baf7
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/pane-switcher.slint
@@ -0,0 +1,459 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { Payload } from "../util.slint";
+import { Tip } from "../primitives/tooltip.slint";
+
+// Which editor a seat is showing, and the control that changes it.
+//
+// Blender's model, reduced to the part that earns its keep. There, every area
+// carries an editor-type dropdown in its corner and any editor can be put in
+// any area; areas can also be split and joined by dragging their corners. The
+// dropdown is the half that changes how the window is used day to day — it is
+// what lets someone who lives in the timeline give it the whole top of the
+// screen — and it is the half that does not need a new layout engine.
+//
+// A view can be up in more than one seat at once, as it can in Blender. Each
+// seat builds its own instance, and they all read the same Editor global — so
+// two monitors show one playhead and two libraries show one bin, while each
+// keeps its own local state: which catalogue page is open, how wide its
+// sidebar is, where it is scrolled to. Picking is an assignment and nothing
+// else; nothing is taken away from anywhere.
+//
+// The corollary is that a view can also be absent — set all four seats to the
+// library and there is no timeline on screen. That is the user's business, and
+// the state it was showing is untouched: it is in the global, not in the pane
+// that was drawing it.
+export enum PaneKind {
+ /// the bin and the catalogues
+ media,
+ /// the monitor
+ preview,
+ /// details, adjust, text, the preset stacks
+ inspector,
+ /// tabs, tray, lanes
+ timeline,
+}
+
+export global Panes {
+ public pure function label(kind: PaneKind) -> string {
+ return kind == PaneKind.media ? "Library"
+ : kind == PaneKind.preview ? "Preview"
+ : kind == PaneKind.inspector ? "Inspector"
+ : "Timeline";
+ }
+
+ /// The name a view goes by in a drag payload — stable, lower-case, and
+ /// the same string Rust matches on to draw the chip under the cursor.
+ /// Not the label: that is prose and could be translated tomorrow.
+ public pure function id(kind: PaneKind) -> string {
+ return kind == PaneKind.media ? "media"
+ : kind == PaneKind.preview ? "preview"
+ : kind == PaneKind.inspector ? "inspector"
+ : "timeline";
+ }
+
+ /// The mark a view is known by, and the one the corner button wears.
+ /// Chosen to be tellable apart at 13px rather than to be the most literal
+ /// picture of each: a strip of film, a still frame, the inspector's own
+ /// sliders, and a stack of lanes.
+ public pure function glyph(kind: PaneKind) -> Glyph {
+ return kind == PaneKind.media ? Glyph.film
+ : kind == PaneKind.preview ? Glyph.image
+ : kind == PaneKind.inspector ? Glyph.settings
+ : Glyph.rows;
+ }
+}
+
+// One row of the dropdown: the view's mark, its name, and a tick on the one
+// that is already here.
+component SwitchRow inherits Rectangle {
+ in property <PaneKind> kind;
+ in property <bool> current;
+
+ callback chosen();
+
+ height: 26px;
+
+ Rectangle {
+ x: 4px;
+ y: 0;
+ width: parent.width - 8px;
+ height: parent.height;
+ // Inset 4px inside a surface rounded to 7, so 5 keeps the two curves
+ // concentric — the same pairing the library's page strip uses for a
+ // selected tab inside its track.
+ border-radius: Theme.r-sm;
+ background: touch.has-hover ? Theme.field-hover : Colors.transparent;
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: Panes.glyph(root.kind);
+ size: 13px;
+ tint: root.current ? Theme.accent : Theme.fg-muted;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: Panes.label(root.kind);
+ color: root.current ? Theme.fg : Theme.fg-muted;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ if root.current: VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: Glyph.check;
+ size: 12px;
+ tint: Theme.accent;
+ }
+ }
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { root.chosen(); }
+ }
+ }
+}
+
+// The rule above the row that removes the panel. A list of four views and a
+// fifth row that closes one are not the same kind of thing, and a menu that
+// runs them together is a menu you can misfire.
+component SwitchDivider inherits Rectangle {
+ height: 9px;
+
+ Rectangle {
+ x: 6px;
+ y: (parent.height - 1px) / 2;
+ width: parent.width - 12px;
+ height: 1px;
+ background: Theme.line;
+ }
+}
+
+// "Remove panel". Red on hover like every other destructive row in the
+// window, and greyed when it is the last panel there is: a window with no
+// seats has nowhere to put anything back, so the tree refuses to lose its
+// last leaf and the row says so before you try rather than after.
+component RemoveRow inherits Rectangle {
+ in property <bool> enabled: true;
+
+ callback chosen();
+
+ height: 26px;
+
+ row := Rectangle {
+ x: 4px;
+ y: 0;
+ width: parent.width - 8px;
+ height: parent.height;
+ border-radius: Theme.r-sm;
+ background: (touch.has-hover && root.enabled) ? Theme.danger-soft
+ : Colors.transparent;
+
+ property <brush> ink: !root.enabled ? Theme.fg-dim
+ : touch.has-hover ? Theme.danger
+ : Theme.fg-muted;
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 8px;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ Icon {
+ glyph: Glyph.trash;
+ size: 13px;
+ tint: row.ink;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.enabled ? "Remove panel" : "Only panel";
+ color: row.ink;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+ }
+
+ touch := TouchArea {
+ enabled: root.enabled;
+ mouse-cursor: pointer;
+ clicked => { root.chosen(); }
+ }
+ }
+}
+
+// The button in a pane's top-right corner: the mark of what this pane is
+// currently showing, and the two ways to change it.
+//
+// Click it and a list drops down — pick a view and this seat shows it. Drag it
+// onto another seat and the two trade places, which is the same operation said
+// with the pointer: it answers "put this *there*" without having to work out
+// which of the four boxes "there" is and then name the view that is in it.
+// Blender's corner drag does the same job; a browser's tab strip is the other
+// place everyone has already learnt it.
+export component PaneSwitcher inherits Rectangle {
+ /// What this pane is right now.
+ in property <PaneKind> kind;
+ /// Which of the workspace's boxes it is in, so a drop knows where it came
+ /// from. See the payload below.
+ in property <int> seat;
+
+ /// False when this is the last panel on screen, which cannot be removed.
+ in property <bool> removable: true;
+ callback picked(kind: PaneKind);
+ /// The bottom row of the list was used: close this panel.
+ callback removed();
+
+ /// `pane:<seat>:<name>:<slug>` — the seat for the drop, the name for the
+ /// chip under the cursor, and the slug for the mark on it.
+ property <string> payload:
+ "pane:\{root.seat}:\{Panes.label(root.kind)}:\{Panes.id(root.kind)}";
+
+ property <length> menu-w: 168px;
+ /// Four view rows, then the rule and the row that removes the panel, then
+ /// the surface's own padding. Summed here because a PopupWindow is sized
+ /// by whoever places it — the same rule the context menu follows, and the
+ /// same reason: a layout cannot report its height back up before it has
+ /// somewhere to be laid out.
+ property <length> menu-h: 4 * 26px + 9px + 26px + 8px;
+
+ // The mark, a gap, and the chevron, with even padding either side.
+ property <length> mark: 14px;
+ property <length> caret: 10px;
+ property <length> pad: 6px;
+
+ width: 2 * root.pad + root.mark + 3px + root.caret;
+ height: 24px;
+
+ // The drag only starts once the press has travelled past the threshold,
+ // so the TouchArea inside keeps its click and the menu still opens — the
+ // same arrangement the bin's cards use.
+ drag := DragArea {
+ // Move, not copy: a panel is somewhere, and dropping it somewhere else
+ // is where it now is.
+ allow-move: true;
+ data: Payload.of(root.payload);
+ drag-image: Payload.preview(root.payload);
+ drag-image-offset-x: -8;
+ drag-image-offset-y: -4;
+
+ chip := Rectangle {
+ width: parent.width;
+ height: parent.height;
+ // The radius every other input in the window carries — a number
+ // field, a dialog button, a text field. This wore the chip radius,
+ // which is for marks *inside* a control (the fx badge on a clip, a
+ // swatch in a row) and reads as barely rounded at 24px tall.
+ border-radius: Theme.r;
+ // Filled at rest, unlike every other icon button in this window,
+ // which idles transparent and only takes a ground when the pointer
+ // finds it. Those are actions, and a tray of them wants to read as a
+ // row of marks; this one is a *state*, and the one control in the pane
+ // that says what the pane is. Blender does the same and for the same
+ // reason — its editor-type button is a raised well in a header of flat
+ // ones — and it is the only way to find the thing without knowing
+ // already that it is there.
+ background: touch.pressed ? Theme.field-active
+ : touch.has-hover ? Theme.field-hover
+ : Theme.field;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ Icon {
+ x: root.pad;
+ y: (parent.height - self.height) / 2;
+ glyph: Panes.glyph(root.kind);
+ size: root.mark;
+ tint: touch.has-hover ? Theme.fg : Theme.fg-muted;
+ }
+
+ // The chevron: what says this is a picker and not a button that does
+ // something. Dimmer than the mark beside it, because the mark is the
+ // answer and this is only the invitation to change it.
+ Icon {
+ x: parent.width - root.pad - self.width;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.chevron-down;
+ size: root.caret;
+ // Heavier than the set's own weight, because it is drawn smaller
+ // than anything else in the window: at 1.9 on a 10-unit glyph the
+ // stroke is under a pixel and the chevron greys out to a smudge.
+ weight: 2.6;
+ tint: touch.has-hover ? Theme.fg-muted : Theme.fg-dim;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { menu.show(); }
+ }
+
+ Tip {
+ text: "Change what this panel shows, or drag it onto another";
+ active: touch.has-hover;
+ }
+ }
+ }
+
+ // Hung under the button and aligned to its trailing edge, which is also
+ // the pane's: this control is always in a top-right corner, so a menu that
+ // opened rightwards would open off the pane every time. A PopupWindow is
+ // its own layer, so it clears the pane's clip on its own.
+ menu := PopupWindow {
+ x: root.width - root.menu-w;
+ y: root.height + 4px;
+ width: root.menu-w;
+ height: root.menu-h;
+ close-policy: close-on-click-outside;
+
+ Rectangle {
+ // The tone the library's page strip gives its selected tab, which
+ // is also what the button that opened this wears. A picker and the
+ // list it opens are one control in two states, and one tone for
+ // both is what says so; `raised` put the list a step off the thing
+ // it belongs to.
+ background: Theme.field;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+ clip: true;
+
+ VerticalLayout {
+ padding: 4px;
+ alignment: start;
+
+ // Written out rather than looped: four is the whole list, and
+ // a `for` over it would need the array to exist somewhere the
+ // rows could reach, which is more machinery than the rows.
+ SwitchRow {
+ kind: PaneKind.media;
+ current: root.kind == PaneKind.media;
+ chosen => { menu.close(); root.picked(PaneKind.media); }
+ }
+ SwitchRow {
+ kind: PaneKind.preview;
+ current: root.kind == PaneKind.preview;
+ chosen => { menu.close(); root.picked(PaneKind.preview); }
+ }
+ SwitchRow {
+ kind: PaneKind.inspector;
+ current: root.kind == PaneKind.inspector;
+ chosen => { menu.close(); root.picked(PaneKind.inspector); }
+ }
+ SwitchRow {
+ kind: PaneKind.timeline;
+ current: root.kind == PaneKind.timeline;
+ chosen => { menu.close(); root.picked(PaneKind.timeline); }
+ }
+
+ SwitchDivider { }
+
+ RemoveRow {
+ enabled: root.removable;
+ chosen => { menu.close(); root.removed(); }
+ }
+ }
+ }
+ }
+}
+
+// "Add a panel", for the window's own top-right corner.
+//
+// The same list as a seat's own dropdown, minus the tick and the remove row:
+// there is nothing here yet to be current and nothing yet to close. What it
+// adds goes wherever there is most room — see `dock-add` in main.rs, which
+// halves the largest seat along its longer side, the way a tiling window
+// manager places a new window.
+export component AddPaneButton inherits Rectangle {
+ callback added(kind: PaneKind);
+
+ property <length> menu-w: 168px;
+ property <length> menu-h: 4 * 26px + 8px;
+
+ width: 24px;
+ height: 24px;
+ border-radius: Theme.r-sm;
+ background: touch.has-hover ? Theme.field : Colors.transparent;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ Icon {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ glyph: Glyph.slot;
+ size: 14px;
+ tint: touch.has-hover ? Theme.fg : Theme.fg-muted;
+ }
+
+ touch := TouchArea {
+ mouse-cursor: pointer;
+ clicked => { menu.show(); }
+ }
+
+ Tip {
+ text: "Add a panel";
+ active: touch.has-hover;
+ }
+
+ // Under the button and pulled back inside the window: this one sits within
+ // a few pixels of the right edge of the strip, so a menu hung from its
+ // leading edge would fall off the screen.
+ menu := PopupWindow {
+ x: root.width - root.menu-w;
+ y: root.height + 4px;
+ width: root.menu-w;
+ height: root.menu-h;
+ close-policy: close-on-click-outside;
+
+ Rectangle {
+ // The tone the library's page strip gives its selected tab, which
+ // is also what the button that opened this wears. A picker and the
+ // list it opens are one control in two states, and one tone for
+ // both is what says so; `raised` put the list a step off the thing
+ // it belongs to.
+ background: Theme.field;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+ clip: true;
+
+ VerticalLayout {
+ padding: 4px;
+ alignment: start;
+
+ SwitchRow {
+ kind: PaneKind.media;
+ chosen => { menu.close(); root.added(PaneKind.media); }
+ }
+ SwitchRow {
+ kind: PaneKind.preview;
+ chosen => { menu.close(); root.added(PaneKind.preview); }
+ }
+ SwitchRow {
+ kind: PaneKind.inspector;
+ chosen => { menu.close(); root.added(PaneKind.inspector); }
+ }
+ SwitchRow {
+ kind: PaneKind.timeline;
+ chosen => { menu.close(); root.added(PaneKind.timeline); }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/pane.slint b/engine/crates/concat/ui/workspace/pane.slint
new file mode 100644
index 00000000..1ff60e8f
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/pane.slint
@@ -0,0 +1,135 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { ThinScrollbar } from "../primitives/scrollbar.slint";
+
+// The workspace shell: one of the four resizable regions the editor is built
+// out of, as opposed to `Panel` in primitives/, which is the floating
+// inspector card that lives *inside* a pane.
+//
+// A pane is a rounded surface that takes whatever box the workspace hands it,
+// so nothing in here may set a width or a height — every size is inherited
+// from the parent and every child stretches to fill it.
+export component Pane inherits Rectangle {
+ /// A hairline all the way round. Off by default: the panes float on a
+ /// ground several stops darker than they are, so the gutters already draw
+ /// every edge — and an outline on top of that reads as a box around
+ /// something rather than as the edge of a surface. What is left where a
+ /// pane does need an edge is a single rule on the one side that needs it,
+ /// which is what the timeline does across its top.
+ in property <bool> outlined: false;
+
+ background: Theme.panel;
+ border-width: root.outlined ? 1px : 0px;
+ border-color: Theme.line;
+ border-radius: Theme.r-lg;
+ // Rounded corners only cut the pane's own fill; the body has to be clipped
+ // to them as well or a full-bleed child squares them off again.
+ clip: true;
+
+ VerticalLayout {
+ @children
+ }
+}
+
+// Pane title bar. `@children` are the trailing actions, the same contract
+// PanelHeader uses.
+export component PaneHeader inherits Rectangle {
+ in property <string> title;
+
+ // 44px, which is the library pane's tab strip — the tallest of the three
+ // top bars, because that one has a row of chips in it and the other two
+ // have a line of text. One height across all three is worth more than
+ // each pane's own minimum: the three panes sit side by side, and a header
+ // that steps down twice across the top of the window reads as three
+ // panels bolted together rather than as one shell.
+ height: 44px;
+
+ // Hairline on the bottom edge rather than a border on the body, so the
+ // line runs the full width of the pane and not the width of the content.
+ Rectangle {
+ y: parent.height - 1px;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding-left: Theme.pad;
+ padding-right: 8px;
+ spacing: 8px;
+
+ Text {
+ text: root.title;
+ color: Theme.fg;
+ font-size: Theme.fs-lg;
+ font-weight: Theme.weight-title;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ HorizontalLayout {
+ spacing: 2px;
+ @children
+ }
+ }
+}
+
+// Everything below the header. Carries the stretch factor that makes the pane
+// body — and not the header — absorb the space a drag adds or takes away.
+export component PaneBody inherits VerticalLayout {
+ vertical-stretch: 1;
+ padding: 10px;
+ spacing: 8px;
+
+ @children
+}
+
+// A wheel-scrolled body for panes whose content is taller than the pane.
+//
+// Not a Flickable: a Flickable claims any drag that crosses its threshold, and
+// the inspector is full of controls that are themselves dragged — a number
+// field scrubbed sideways, a knob, a bezier handle. Losing those gestures to
+// the scroller is worse than losing kinetic scrolling, and a wheel is what a
+// desktop editor is driven with anyway.
+export component PaneScroll inherits Rectangle {
+ // The offset is clamped on read rather than only on write, so a pane that
+ // shrinks under the content — or content that gets shorter — cannot leave
+ // the viewport parked past the end.
+ property <length> overflow: Math.max(0px, content.preferred-height - root.height);
+ property <length> offset;
+ property <length> at: Math.max(-root.overflow, Math.min(0px, root.offset));
+
+ clip: true;
+
+ wheel := TouchArea {
+ // A scroll the inner controls do not handle bubbles up to here; this
+ // is an ancestor of the content, not a sibling, which is what makes
+ // that work.
+ scroll-event(event) => {
+ root.offset = root.at + event.delta-y;
+ return EventResult.accept;
+ }
+
+ content := VerticalLayout {
+ y: root.at;
+ height: self.preferred-height;
+
+ @children
+ }
+ }
+
+ // The same bar the track stack uses, rather than a second hand-rolled one
+ // a pixel narrower. This offset runs negative — the content is moved up to
+ // scroll down — so it is flipped on the way in and back on the way out.
+ ThinScrollbar {
+ x: parent.width - self.width - 1px;
+ y: 0;
+ height: root.height;
+ viewport: root.height;
+ content: root.height + root.overflow;
+ offset: -root.at;
+ scrolled(to) => { root.offset = -to; }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/preview-pane.slint b/engine/crates/concat/ui/workspace/preview-pane.slint
new file mode 100644
index 00000000..8cf41294
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/preview-pane.slint
@@ -0,0 +1,498 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt } from "../util.slint";
+import { Glyph, Icon } from "../icons.slint";
+import { IconButton } from "../primitives/panel.slint";
+import { NumberField } from "../primitives/number-field.slint";
+import { Select } from "../primitives/select.slint";
+import { Pane, PaneHeader } from "pane.slint";
+import { PaneKind, PaneSwitcher } from "pane-switcher.slint";
+
+// The programme monitor, ported from web/'s preview panel: a header that says
+// what the output is, a stage on a sunken viewport, and a transport tray under
+// it in three parts — timecode on the leading edge, the buttons dead centre,
+// the output and zoom pickers on the trailing edge.
+//
+// Time is held in frames, not seconds. A monitor that cannot land on a frame
+// is not a monitor, and every rounding question disappears once the unit is
+// the frame. The readout is a NumberField, so the same drag-to-scrub gesture
+// that moves a position field moves the playhead.
+//
+// The stage is black and empty. web/ draws a generated scene into it to prove
+// the monitor moves; there is no decoder in this tree, so what it shows is the
+// state a real monitor spends plenty of its time in — nothing under the
+// playhead — and the seam for a frame is the stage rectangle itself.
+
+/// An outline in the shape of the thing it selects. Beats any label at saying
+/// "tall" or "wide" at a glance, and it is drawn at ratio rather than to a
+/// fixed box, capped into a 14px slot so a row of them stays aligned.
+component RatioGlyph inherits Rectangle {
+ in property <float> ratio-w: 16;
+ in property <float> ratio-h: 9;
+ in property <brush> tint: Theme.fg-dim;
+
+ property <float> scale: 14 / Math.max(root.ratio-w, root.ratio-h);
+
+ width: 14px;
+ height: 14px;
+ background: transparent;
+
+ Rectangle {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ width: Math.round(root.ratio-w * root.scale) * 1px;
+ height: Math.round(root.ratio-h * root.scale) * 1px;
+ border-width: 1px;
+ border-color: root.tint;
+ border-radius: 2px;
+ }
+}
+
+// The output picker.
+//
+// Not the shared `Select`: that takes a list of strings and renders one label
+// per row, and this control wants three things on a row — a rectangle drawn at
+// the ratio it names, the ratio itself, and the pixel size. The size is set
+// against the trailing edge rather than joined on with a dash, so the column
+// of ratios stays scannable and the sizes line up as a column of their own.
+//
+// The trigger carries only the ratio and its glyph. The full size is what you
+// open the list to compare; repeating it on a closed control spends the width
+// of the whole tray on something already stated in the panel's header.
+component RatioPicker inherits Rectangle {
+ in property <[int]> widths;
+ in property <[int]> heights;
+ in property <[string]> names;
+ in-out property <int> current;
+
+ callback changed(index: int);
+
+ // Read from the popup rather than tracked here: a click outside closes it
+ // without telling us, so a hand-rolled flag goes stale.
+ property <bool> open: list.is-open;
+ property <int> active;
+ property <length> row-h: 26px;
+
+ width: 92px;
+ height: Theme.h;
+ border-radius: Theme.r;
+ background: (root.open || trigger.has-hover) ? Theme.field-hover : Theme.field;
+
+ animate background { duration: 120ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ function commit(index: int) {
+ if (index >= 0 && index < root.names.length) {
+ root.current = index;
+ root.changed(index);
+ }
+ list.close();
+ }
+
+ HorizontalLayout {
+ padding-left: 8px;
+ padding-right: 6px;
+ spacing: 6px;
+
+ VerticalLayout {
+ alignment: center;
+ RatioGlyph {
+ ratio-w: root.widths[root.current];
+ ratio-h: root.heights[root.current];
+ tint: Theme.fg-muted;
+ }
+ }
+
+ Text {
+ horizontal-stretch: 1;
+ text: root.names[root.current];
+ color: Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ overflow: elide;
+ }
+
+ VerticalLayout {
+ alignment: center;
+ Icon { glyph: Glyph.chevron-down; size: 12px; tint: Theme.fg-muted; }
+ }
+ }
+
+ trigger := TouchArea {
+ mouse-cursor: pointer;
+ clicked => {
+ root.active = root.current;
+ list.show();
+ }
+ }
+
+ list := PopupWindow {
+ // Right-aligned to the trigger: the list is wider than the control and
+ // the control is already hard against the panel's trailing edge.
+ x: root.width - 208px;
+ y: root.height + 4px;
+ width: 208px;
+ height: root.names.length * root.row-h + 8px;
+ close-policy: close-on-click-outside;
+
+ Rectangle {
+ background: Theme.raised;
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ border-radius: Theme.r;
+ clip: true;
+
+ VerticalLayout {
+ padding: 4px;
+ alignment: start;
+
+ for name[index] in root.names: Rectangle {
+ height: root.row-h;
+ border-radius: Theme.r-sm;
+ background: index == root.active ? Theme.accent : Colors.transparent;
+
+ HorizontalLayout {
+ padding-left: 6px;
+ padding-right: 8px;
+ spacing: 8px;
+
+ VerticalLayout {
+ alignment: center;
+ RatioGlyph {
+ ratio-w: root.widths[index];
+ ratio-h: root.heights[index];
+ tint: index == root.active ? Theme.on-accent : Theme.fg-muted;
+ }
+ }
+
+ Text {
+ text: name;
+ color: index == root.active ? Theme.on-accent : Theme.fg;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+
+ Rectangle { horizontal-stretch: 1; }
+
+ Text {
+ text: "\{root.widths[index]} × \{root.heights[index]}";
+ color: index == root.active ? Theme.on-accent : Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs-sm;
+ vertical-alignment: center;
+ }
+ }
+
+ TouchArea {
+ mouse-cursor: pointer;
+ changed has-hover => {
+ if (self.has-hover) {
+ root.active = index;
+ }
+ }
+ clicked => { root.commit(index); }
+ }
+ }
+ }
+ }
+ }
+}
+
+export component PreviewPane inherits Rectangle {
+ // ── what the output is ───────────────────────────────────────────────
+ in property <int> output-width: 1920;
+ in property <int> output-height: 1080;
+ in property <float> frame-rate: 30;
+ in property <int> ratio-index;
+ in property <int> quality-index;
+
+ // ── where the playhead is ────────────────────────────────────────────
+ in property <float> playhead;
+ in property <float> duration;
+ in property <bool> playing;
+ /// Whether anything is under the playhead, and what. "Nothing under the
+ /// playhead" is a real state a monitor has to render, not a placeholder
+ /// for one.
+ in property <bool> has-picture;
+ in property <string> clip-name;
+
+ callback play-toggled();
+ /// Absolute, in seconds.
+ callback seek(seconds: float);
+ /// Relative, in frames — one for an arrow, a second's worth for shift.
+ callback step(frames: float);
+ callback ratio-changed(index: int);
+ callback quality-changed(index: int);
+
+ /// The corner button: show something else in this pane's seat.
+ callback pane-picked(kind: PaneKind);
+ /// Which seat this pane is in. It travels no further than the corner
+ /// button, whose drag payload has to say where it is being taken from.
+ in property <int> pane-seat;
+ /// False when this is the last panel on screen. Travels the same way, and
+ /// only greys the one row that would close it.
+ in property <bool> pane-removable: true;
+ /// That row was used.
+ callback pane-removed();
+
+ property <[int]> ratios-w: [1920, 3840, 1080, 1080, 1440, 2560];
+ property <[int]> ratios-h: [1080, 2160, 1920, 1080, 1080, 1080];
+ property <[string]> ratio-names: ["16:9", "16:9 4K", "9:16", "1:1", "4:3", "21:9"];
+
+ property <float> aspect: root.output-height > 0
+ ? root.output-width / root.output-height : 16 / 9;
+ property <float> total-frames: Math.round(root.duration * root.frame-rate);
+ property <float> frames: Math.round(root.playhead * root.frame-rate);
+ property <bool> at-start: root.frames <= 0;
+ property <bool> at-end: root.frames >= root.total-frames;
+
+ // The NumberField writes to its own `value`, and an assignment in Slint
+ // replaces whatever binding the parent declared — so this is seeded, not
+ // bound. Same shape as the inspector panels.
+ property <float> shown-frames;
+ function seed() { root.shown-frames = root.frames; }
+ init => { root.seed(); }
+ changed frames => { root.seed(); }
+
+ Pane {
+ PaneHeader {
+ title: "Preview";
+
+ // The output, stated rather than implied. Tabular-ish and dim: it
+ // is a fact about the project, not a control.
+ VerticalLayout {
+ alignment: center;
+ Text {
+ text: "\{root.output-width} × \{root.output-height} · "
+ + "\{Math.round(root.frame-rate)} fps";
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+ }
+
+ VerticalLayout {
+ alignment: center;
+ PaneSwitcher {
+ kind: PaneKind.preview;
+ seat: root.pane-seat;
+ removable: root.pane-removable;
+ picked(kind) => { root.pane-picked(kind); }
+ removed => { root.pane-removed(); }
+ }
+ }
+ }
+
+ // ── the viewport ─────────────────────────────────────────────────
+ viewport := Rectangle {
+ vertical-stretch: 1;
+ // Sunken, and darker than the header and transport either side of
+ // it. This briefly took the panel's own tone, back when the panel
+ // sat at the value web/'s viewport uses; the ladder has moved up a
+ // step since, and a monitor's ground should fall away from the
+ // chrome around it rather than sit level with it — the darker the
+ // surround, the less the picture has to fight to be the brightest
+ // thing in the pane.
+ background: Theme.well;
+ clip: true;
+
+ property <length> pad: 16px;
+ property <length> room-w: Math.max(1px, self.width - 2 * self.pad);
+ property <length> room-h: Math.max(1px, self.height - 2 * self.pad);
+ /// Always fitted, on whichever axis runs out first. The picker in
+ /// the tray sets how much of the frame the engine composites, not
+ /// how large it is drawn — the monitor shows the whole frame
+ /// either way, which is the point of a monitor.
+ property <length> stage-w: Math.min(self.room-w / root.output-width,
+ self.room-h / root.output-height) * root.output-width;
+
+ stage := Rectangle {
+ x: (parent.width - self.width) / 2;
+ y: (parent.height - self.height) / 2;
+ width: viewport.stage-w;
+ height: self.width / root.aspect;
+ background: Theme.stage;
+ // web/ lifts the stage off the well with a 1px ring and a soft
+ // drop shadow. Slint has no box-shadow, so the ring does the
+ // work alone — which is also why it is `line-strong` and not
+ // the hairline every other edge uses.
+ border-width: 1px;
+ border-color: Theme.line-strong;
+ clip: true;
+
+ // Where a decoded frame will be drawn. Until then the stage
+ // reports what is actually under the playhead.
+ if !root.has-picture: VerticalLayout {
+ alignment: center;
+ spacing: 10px;
+
+ HorizontalLayout {
+ alignment: center;
+ Icon {
+ glyph: Glyph.film;
+ size: 22px;
+ tint: Theme.fg-dim;
+ }
+ }
+
+ Text {
+ text: "Nothing under the playhead";
+ color: Theme.fg-dim;
+ font-size: Theme.fs;
+ horizontal-alignment: center;
+ }
+ }
+
+ // The clip that would be showing, named in the corner. The
+ // reference has a picture to identify itself; without one, the
+ // name is the only thing that says the monitor is live.
+ if root.has-picture: Text {
+ x: 8px;
+ y: parent.height - self.height - 8px;
+ width: parent.width - 16px;
+ text: root.clip-name;
+ color: Theme.on-stage-dim;
+ font-size: Theme.fs-sm;
+ overflow: elide;
+ }
+ }
+ }
+
+ // ── the transport ────────────────────────────────────────────────
+ Rectangle {
+ height: 46px;
+ background: Theme.panel;
+
+ Rectangle {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: 1px;
+ background: Theme.line;
+ }
+
+ HorizontalLayout {
+ padding-left: 10px;
+ padding-right: 10px;
+ spacing: 12px;
+
+ // Leading: where the playhead is, and how far it has to go.
+ HorizontalLayout {
+ horizontal-stretch: 1;
+ spacing: 8px;
+ alignment: start;
+
+ VerticalLayout {
+ alignment: center;
+ NumberField {
+ width: 116px;
+ value <=> root.shown-frames;
+ minimum: 0;
+ maximum: root.total-frames;
+ step: 1;
+ // Scrubbing a timecode should walk frames at the
+ // speed a hand expects, not fly a hundred at once.
+ px-per-step: 3px;
+ format(v) => {
+ return Fmt.frames-timecode(v / root.frame-rate,
+ root.frame-rate);
+ }
+ parse(text) => {
+ return Fmt.parse-frames(text, root.frame-rate);
+ }
+ changed(v) => { root.seek(v / root.frame-rate); }
+ }
+ }
+
+ Text {
+ text: "/ " + Fmt.frames-timecode(root.duration, root.frame-rate);
+ color: Theme.fg-dim;
+ font-family: Theme.font-technical;
+ font-size: Theme.fs;
+ vertical-alignment: center;
+ }
+ }
+
+ // Centre: the transport itself.
+ HorizontalLayout {
+ horizontal-stretch: 0;
+ spacing: 2px;
+ alignment: center;
+
+ IconButton {
+ glyph: Glyph.skip-back;
+ label: "Go to start";
+ enabled: !root.at-start;
+ clicked => { root.seek(0); }
+ }
+ IconButton {
+ glyph: Glyph.step-back;
+ label: "Previous frame";
+ enabled: !root.at-start;
+ clicked => { root.step(-1); }
+ }
+
+ // The one control you reach for without looking, so it is
+ // the one control that carries a colour.
+ IconButton {
+ glyph: root.playing ? Glyph.pause : Glyph.play;
+ label: root.playing ? "Pause" : "Play";
+ icon-size: 16px;
+ accent: true;
+ clicked => { root.play-toggled(); }
+ }
+
+ IconButton {
+ glyph: Glyph.step-forward;
+ label: "Next frame";
+ enabled: !root.at-end;
+ clicked => { root.step(1); }
+ }
+ IconButton {
+ glyph: Glyph.skip-forward;
+ label: "Go to end";
+ enabled: !root.at-end;
+ clicked => { root.seek(root.duration); }
+ }
+ }
+
+ // Trailing: what the output is and how close we are looking.
+ HorizontalLayout {
+ horizontal-stretch: 1;
+ spacing: 6px;
+ alignment: end;
+
+ VerticalLayout {
+ alignment: center;
+ RatioPicker {
+ widths: root.ratios-w;
+ heights: root.ratios-h;
+ names: root.ratio-names;
+ current: root.ratio-index;
+ changed(index) => { root.ratio-changed(index); }
+ }
+ }
+
+ // What fraction of the frame the engine composites for the
+ // monitor — the reference's own control, and the reason a
+ // 4K timeline stays scrubbable on a laptop. Nothing
+ // composites here yet, so today it states intent only.
+ VerticalLayout {
+ alignment: center;
+ Select {
+ width: 104px;
+ current: root.quality-index;
+ options: ["Full", "Half", "Quarter"];
+ details: ["1:1", "1:2", "1:4"];
+ changed(index) => { root.quality-changed(index); }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/seat.slint b/engine/crates/concat/ui/workspace/seat.slint
new file mode 100644
index 00000000..208bf2e8
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/seat.slint
@@ -0,0 +1,303 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Payload } from "../util.slint";
+import { DockSide } from "../dock.slint";
+import { PaneKind } from "pane-switcher.slint";
+import { Editor } from "../editor.slint";
+import { ConfigPane } from "config-pane.slint";
+import { MediaPane } from "media-pane.slint";
+import { PreviewPane } from "preview-pane.slint";
+import { TimelinePane } from "timeline-pane.slint";
+
+// One box of the workspace, showing whichever view its `kind` names.
+//
+// The four `if`s are what let a view appear in two seats at once: each seat
+// builds its own instance of what it is showing, so two Preview seats are two
+// monitors and not one monitor that has to be in two places. Only the seat
+// that is showing a view pays for it — an `if` that is false instantiates
+// nothing at all, so a window with no inspector up has no inspector built.
+//
+// This is also the only forwarding left in the tree. Every binding below reads
+// the Editor global rather than a property passed down from the workspace,
+// which is what stops this file being four hundred lines times four seats.
+export component Seat inherits Rectangle {
+ /// What to show here.
+ in property <PaneKind> kind;
+ /// Which box this is, 0..3. Travels in the drag payload so a drop can say
+ /// where the panel came from.
+ in property <int> index;
+
+ /// Its corner button was used.
+ callback picked(kind: PaneKind);
+ /// The bottom row of its dropdown was used: close this seat.
+ callback removed();
+
+ /// A panel was dropped here from another seat, on this part of it.
+ callback dropped-on(from: int, side: DockSide);
+
+ /// How much of a seat's edge is that edge's own.
+ ///
+ /// A quarter, but never more than 72px: on a wide seat a flat quarter is
+ /// two hundred pixels of "left", which makes the middle hard to hit; on a
+ /// narrow one a flat 72 is the entire seat and the middle disappears. The
+ /// quarter is what keeps a small seat usable and the cap is what keeps a
+ /// large one from being all edge.
+ ///
+ /// Floored at a pixel because `side-at` divides by them, and a seat can
+ /// be handed a zero box — on the frame before the first layout, and any
+ /// time a gutter is dragged to the end of its travel.
+ property <length> margin-x: Math.max(1px, Math.min(72px, root.width / 4));
+ property <length> margin-y: Math.max(1px, Math.min(72px, root.height / 4));
+
+ /// Whether this seat has the room to be cut in two along each axis.
+ ///
+ /// Below this a split makes two seats too small to use — and, worse, too
+ /// small to *undo*, since the corner button that would put them back is
+ /// the first thing a narrow header loses. So the edge stops being an edge
+ /// and the whole seat is the middle: what the drop would do is what the
+ /// outline shows, which is a trade rather than a split.
+ /// Different numbers per axis, because the two halves are different
+ /// shapes: a pane needs width for a header with a name and a corner button
+ /// in it, and only enough height to draw that header and a row under it.
+ property <bool> splits-across: root.width >= 320px;
+ property <bool> splits-down: root.height >= 200px;
+
+ /// Which part of the seat a point is in.
+ ///
+ /// The nearer edge wins where two overlap, so a corner belongs to whichever
+ /// of its two sides the pointer is further into — which is what makes the
+ /// corners feel like they have a rule rather than a coin toss.
+ pure function side-at(x: length, y: length) -> DockSide {
+ return x >= root.margin-x && x <= root.width - root.margin-x
+ && y >= root.margin-y && y <= root.height - root.margin-y
+ ? DockSide.centre
+ : Math.min(x, root.width - x) / root.margin-x
+ <= Math.min(y, root.height - y) / root.margin-y
+ ? (!root.splits-across ? DockSide.centre
+ : x < root.width / 2 ? DockSide.left : DockSide.right)
+ : (!root.splits-down ? DockSide.centre
+ : y < root.height / 2 ? DockSide.top : DockSide.bottom);
+ }
+
+ if root.kind == PaneKind.media: MediaPane {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+
+ pane-picked(kind) => { root.picked(kind); }
+ pane-seat: root.index;
+ pane-removable: Editor.seats.length > 1;
+ pane-removed => { root.removed(); }
+
+ items: Editor.media;
+ count-all: Editor.media-count-all;
+ count-video: Editor.media-count-video;
+ count-audio: Editor.media-count-audio;
+ count-images: Editor.media-count-images;
+ selected-count: Editor.media-selected-count;
+ importing: Editor.importing;
+
+ import-media => { Editor.import-media(); }
+ filter-changed(filter) => { Editor.media-filter-changed(filter); }
+ select(id, additive) => { Editor.media-select(id, additive); }
+ band-selected(columns, from-col, to-col, from-row, to-row, additive) => {
+ Editor.media-band-selected(columns, from-col, to-col,
+ from-row, to-row, additive);
+ }
+ remove(id) => { Editor.media-remove(id); }
+ remove-selected => { Editor.media-remove-selected(); }
+ activate(id) => { Editor.media-activate(id); }
+
+ add-text => { Editor.library-add-text(); }
+ apply-effect(id) => { Editor.library-apply-effect(id); }
+ apply-transition(id) => { Editor.library-apply-transition(id); }
+ apply-filter(id, label) => { Editor.library-apply-filter(id, label); }
+ save-template => { Editor.library-save-template(); }
+ }
+
+ if root.kind == PaneKind.preview: PreviewPane {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+
+ pane-picked(kind) => { root.picked(kind); }
+ pane-seat: root.index;
+ pane-removable: Editor.seats.length > 1;
+ pane-removed => { root.removed(); }
+
+ output-width: Editor.output-width;
+ output-height: Editor.output-height;
+ frame-rate: Editor.frame-rate;
+ ratio-index: Editor.ratio-index;
+ quality-index: Editor.quality-index;
+ playhead: Editor.playhead;
+ duration: Editor.preview-duration;
+ playing: Editor.playing;
+ has-picture: Editor.has-picture;
+ clip-name: Editor.preview-clip-name;
+
+ play-toggled => { Editor.play-toggled(); }
+ seek(seconds) => { Editor.seek(seconds); }
+ step(frames) => { Editor.step-frames(frames); }
+ ratio-changed(index) => { Editor.ratio-changed(index); }
+ quality-changed(index) => { Editor.quality-changed(index); }
+ }
+
+ if root.kind == PaneKind.inspector: ConfigPane {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+
+ pane-picked(kind) => { root.picked(kind); }
+ pane-seat: root.index;
+ pane-removable: Editor.seats.length > 1;
+ pane-removed => { root.removed(); }
+
+ video-effects: Editor.video-effects;
+ audio-effects: Editor.audio-effects;
+ level: Editor.level;
+ peak: Editor.peak;
+ add-effect(audio) => { Editor.add-effect(audio); }
+ remove-effect(id) => { Editor.remove-effect(id); }
+
+ selected: Editor.selected-clip;
+ clip-set(field, value) => { Editor.clip-set(field, value); }
+ clip-set-text(field, value) => { Editor.clip-set-text(field, value); }
+ clip-set-colour(field, value) => { Editor.clip-set-colour(field, value); }
+ clip-commit => { Editor.clip-commit(); }
+ }
+
+ // Declared before the views, so anything inside one of them that takes
+ // drops — the lanes — is hit first and this only ever sees what that
+ // refused. A DropArea that answers `none` passes the event on rather than
+ // swallowing it, which is what lets the two live over each other: a clip
+ // dragged from the bin onto the timeline seat lands on the lanes, and a
+ // panel dragged onto the same pixel lands here.
+ landing := DropArea {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+
+ /// Where the pointer is now, as a side. Kept so the outline below can
+ /// draw the shape the drop would leave without asking again.
+ property <DockSide> side;
+
+ can-drop(event) => {
+ self.side = root.side-at(event.position.x, event.position.y);
+ // Never its own seat, on any part of it. The middle would be a
+ // trade with itself, and an edge would split a seat and then take
+ // the panel out of the very seat being split — both of which are
+ // "nothing happens", and a target that lights up and then does
+ // nothing is worse than one that never lit up.
+ return Payload.pane-seat(Payload.text(event.data)) >= 0
+ && Payload.pane-seat(Payload.text(event.data)) != root.index
+ ? DragAction.move : DragAction.none;
+ }
+
+ dropped(event) => {
+ root.dropped-on(Payload.pane-seat(Payload.text(event.data)),
+ root.side-at(event.position.x, event.position.y));
+ return DragAction.move;
+ }
+ }
+
+ if root.kind == PaneKind.timeline: TimelinePane {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+
+ pane-picked(kind) => { root.picked(kind); }
+ pane-seat: root.index;
+ pane-removable: Editor.seats.length > 1;
+ pane-removed => { root.removed(); }
+
+ tabs: Editor.timeline-tabs;
+ current-tab: Editor.timeline-current-tab;
+ tracks: Editor.tracks;
+ clips: Editor.clips;
+ tool: Editor.tool;
+ snap: Editor.snap;
+ selected-count: Editor.selected-count;
+ merge-blocked-because: Editor.merge-blocked-because;
+ has-av-tools: Editor.has-av-tools;
+ playhead: Editor.playhead;
+ frame-rate: Editor.frame-rate;
+ scroll-left: Editor.scroll-left;
+ seconds-per-pixel: Editor.seconds-per-pixel;
+
+ tab-selected(index) => { Editor.tab-selected(index); }
+ tab-renamed(index, name) => { Editor.tab-renamed(index, name); }
+ tab-close-requested(index) => { Editor.tab-close-requested(index); }
+ tab-added => { Editor.tab-added(); }
+ tool-changed(tool) => { Editor.tool-changed(tool); }
+ snap-changed(snap) => { Editor.snap-changed(snap); }
+ split => { Editor.split(); }
+ merge => { Editor.merge(); }
+ delete-selected => { Editor.delete-selected(); }
+ av-tools => { Editor.av-tools(); }
+ av-items: Editor.av-items;
+ av-height: Editor.av-height;
+ av-token: Editor.av-token;
+ av-selected(id) => { Editor.av-selected(id); }
+ add-track => { Editor.add-track(); }
+ zoom-to-fit(width) => { Editor.zoom-to-fit(width); }
+ zoom(factor, anchor) => { Editor.zoom(factor, anchor); }
+ scrubbed(seconds) => { Editor.scrubbed(seconds); }
+ clip-pressed(id, additive, edge) => { Editor.clip-pressed(id, additive, edge); }
+ clip-dragged(seconds, pixels) => { Editor.clip-dragged(seconds, pixels); }
+ clip-released => { Editor.clip-released(); }
+ razored(id, seconds) => { Editor.razored(id, seconds); }
+ menu-items: Editor.menu-items;
+ menu-height: Editor.menu-height;
+ menu-token: Editor.menu-token;
+ clip-context(id) => { Editor.clip-context(id); }
+ menu-selected(id) => { Editor.menu-selected(id); }
+ band-selected(a, b, c, d, additive) => { Editor.band-selected(a, b, c, d, additive); }
+ scrolled(seconds) => { Editor.scrolled(seconds); }
+ drop: Editor.drop;
+ drag-hovered(payload, seconds, row) => {
+ Editor.drag-hovered(payload, seconds, row);
+ }
+ dropped(payload, seconds, row) => { Editor.dropped(payload, seconds, row); }
+ track-flag-changed(index, visible, muted, locked) => {
+ Editor.track-flag-changed(index, visible, muted, locked);
+ }
+ track-sized(index, size) => { Editor.track-sized(index, size); }
+ track-removed(index) => { Editor.track-removed(index); }
+ track-renamed(index, name) => { Editor.track-renamed(index, name); }
+ }
+
+ // What says where the drop will land — and, on an edge, how much of the
+ // seat the panel is about to take. Half the box, on the side the pointer
+ // is in, is the shape the split will actually make: a preview of the
+ // layout rather than a light on the target.
+ //
+ // Over the view rather than under it, and the accent, which is what every
+ // other target in this window is drawn in — a selected clip, a band, the
+ // timeline's own ghost. Nothing in it is hit-testable, so it takes nothing
+ // from the DropArea underneath.
+ if landing.has-drag: Rectangle {
+ x: landing.side == DockSide.right ? root.width / 2 : 0;
+ y: landing.side == DockSide.bottom ? root.height / 2 : 0;
+ width: (landing.side == DockSide.left || landing.side == DockSide.right)
+ ? root.width / 2 : root.width;
+ height: (landing.side == DockSide.top || landing.side == DockSide.bottom)
+ ? root.height / 2 : root.height;
+ border-radius: Theme.r-lg;
+ background: Theme.accent-soft;
+ border-width: 2px;
+ border-color: Theme.accent;
+
+ animate x, y, width, height {
+ duration: 90ms;
+ easing: cubic-bezier(0.4, 0, 0.2, 1);
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/splitter.slint b/engine/crates/concat/ui/workspace/splitter.slint
new file mode 100644
index 00000000..93efa3c9
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/splitter.slint
@@ -0,0 +1,139 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+
+// The drag handles between panes.
+//
+// Nothing is drawn until the pointer is on one. The panes either side already
+// have their own edges; a third line permanently between them is just noise.
+// What appears is the full length of the gutter, not a short grip in the
+// middle of it — a nub says "grab me here", and the whole edge is draggable.
+// Lime, like the active tools and the selection: grabbing a divider is an
+// action, and actions read lime everywhere else in the app.
+//
+// Both report a delta in pixels from where the pointer went down and leave the
+// arithmetic to the workspace, because a handle cannot know what its
+// neighbours are allowed to give up.
+//
+// The delta is measured in window coordinates — `absolute-position + mouse-x`
+// — not as `mouse-x - pressed-x`. A handle moves as it is dragged, and a
+// local delta is measured against the handle's own moving origin, so it
+// cancels itself out and the drag stalls. The absolute position moves with the
+// handle too, but adding the local pointer offset back cancels that exactly.
+
+export component ColSplitter inherits Rectangle {
+ callback pressed();
+ callback moved(delta: length);
+
+ property <length> origin;
+
+ Rectangle {
+ x: (parent.width - self.width) / 2;
+ // Held off the ends so the line stops short of the pane corners it
+ // runs between, which are rounded away there anyway.
+ y: 8px;
+ width: 2px;
+ height: Math.max(0px, parent.height - 16px);
+ border-radius: 1px;
+ background: Theme.accent;
+ opacity: (touch.has-hover || touch.pressed) ? 1.0 : 0.0;
+
+ animate opacity { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ // A little wider than the gutter it sits in. The reference makes its hit
+ // area exactly the gutter; two more pixels a side costs the panes nothing
+ // they use and turns an 8px target into a 12px one.
+ touch := TouchArea {
+ x: -2px;
+ width: root.width + 4px;
+ mouse-cursor: ew-resize;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.origin = self.absolute-position.x + self.mouse-x;
+ root.pressed();
+ }
+ }
+ moved => {
+ root.moved(self.absolute-position.x + self.mouse-x - root.origin);
+ }
+ }
+}
+
+export component RowSplitter inherits Rectangle {
+ callback pressed();
+ callback moved(delta: length);
+
+ property <length> origin;
+
+ Rectangle {
+ x: 8px;
+ y: (parent.height - self.height) / 2;
+ width: Math.max(0px, parent.width - 16px);
+ height: 2px;
+ border-radius: 1px;
+ background: Theme.accent;
+ opacity: (touch.has-hover || touch.pressed) ? 1.0 : 0.0;
+
+ animate opacity { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+ }
+
+ touch := TouchArea {
+ y: -2px;
+ height: root.height + 4px;
+ mouse-cursor: ns-resize;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.origin = self.absolute-position.y + self.mouse-y;
+ root.pressed();
+ }
+ }
+ moved => {
+ root.moved(self.absolute-position.y + self.mouse-y - root.origin);
+ }
+ }
+}
+
+// A divider *inside* a pane, as opposed to the two above, which are the gutters
+// between panes.
+//
+// The difference is that this one is always drawn: the gutter splitters can
+// stay invisible until grabbed because the panes either side have their own
+// edges, but a hairline dividing one pane's interior is the only thing saying
+// the two halves are separate. So it is a permanent 1px rule that turns lime
+// when you are on it — the same lime, for the same reason, as the gutters.
+//
+// Like them, it reports a delta in window coordinates and leaves the
+// arithmetic to whoever owns the two sides.
+export component HairlineSplitter inherits Rectangle {
+ callback pressed();
+ callback moved(delta: length);
+
+ property <length> origin;
+
+ width: 1px;
+ background: (touch.has-hover || touch.pressed) ? Theme.accent : Theme.line;
+
+ animate background { duration: 100ms; easing: cubic-bezier(0.4, 0, 0.2, 1); }
+
+ // Three pixels each side of a one-pixel line: a 1px grab target is the
+ // single most common way a docked layout feels bad to use.
+ touch := TouchArea {
+ x: -3px;
+ width: root.width + 6px;
+ mouse-cursor: ew-resize;
+
+ pointer-event(event) => {
+ if (event.kind == PointerEventKind.down) {
+ root.origin = self.absolute-position.x + self.mouse-x;
+ root.pressed();
+ }
+ }
+ moved => {
+ root.moved(self.absolute-position.x + self.mouse-x - root.origin);
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/timeline-pane.slint b/engine/crates/concat/ui/workspace/timeline-pane.slint
new file mode 100644
index 00000000..b1ac8f63
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/timeline-pane.slint
@@ -0,0 +1,323 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Fmt } from "../util.slint";
+import { Pane } from "pane.slint";
+import { PaneKind, PaneSwitcher } from "pane-switcher.slint";
+import { ContextMenu, MenuItemData } from "../primitives/context-menu.slint";
+import { HairlineSplitter } from "splitter.slint";
+import { ThinScrollbar } from "../primitives/scrollbar.slint";
+import {
+ ClipData, DropData, TimelineTabData, TimelineTool, TrackData, TrackSize,
+} from "../timeline/model.slint";
+import { TimelineTabs } from "../timeline/tabs.slint";
+import { TimelineTray } from "../timeline/tray.slint";
+import { TrackHeaders } from "../timeline/track-header.slint";
+import { Lanes } from "../timeline/lanes.slint";
+
+// The timeline pane: tabs, tray, and then the lane grid — a fixed header
+// column beside the lanes themselves.
+//
+// No PaneHeader, unlike the other three panes. The reference's timeline owns
+// its whole interior (it reuses PANEL_SHELL rather than the Panel component
+// for exactly this reason), and a title strip above the tabs would be a third
+// bar over a panel that already has two.
+export component TimelinePane inherits Rectangle {
+ // ── the tabs ─────────────────────────────────────────────────────────
+ in property <[TimelineTabData]> tabs;
+ in property <int> current-tab;
+
+ callback tab-selected(index: int);
+ callback tab-renamed(index: int, name: string);
+ callback tab-close-requested(index: int);
+ callback tab-added();
+
+ // ── the tray ─────────────────────────────────────────────────────────
+ in property <TimelineTool> tool: TimelineTool.select;
+ in property <bool> snap: true;
+ in property <int> selected-count;
+ in property <string> merge-blocked-because;
+ in property <bool> has-av-tools;
+
+ callback tool-changed(tool: TimelineTool);
+ callback snap-changed(snap: bool);
+ callback split();
+ callback merge();
+ callback delete-selected();
+ callback av-tools();
+
+ in property <[MenuItemData]> av-items;
+ in property <length> av-height;
+ in property <int> av-token;
+
+ /// The token, but only for the pane that asked — see the same pair in
+ /// lanes.slint. Two timeline seats share one token, and a bump on it
+ /// would open a menu in both.
+ property <bool> asked-av;
+ property <int> own-av-token;
+ changed av-token => {
+ if (root.asked-av) {
+ root.asked-av = false;
+ root.own-av-token = root.av-token;
+ }
+ }
+ callback av-selected(id: string);
+ callback add-track();
+ callback zoom-to-fit(width: length);
+ callback zoom(factor: float, anchor-seconds: float);
+
+ // ── the grid ─────────────────────────────────────────────────────────
+ in property <[TrackData]> tracks;
+ in property <[ClipData]> clips;
+ in property <float> playhead;
+ in property <float> frame-rate: 30;
+ in property <float> scroll-left;
+ in property <float> seconds-per-pixel: 0.05;
+ in-out property <length> track-scroll;
+
+ callback scrubbed(seconds: float);
+ callback clip-pressed(id: string, additive: bool, edge: int);
+ callback clip-dragged(seconds: float, pixels: length);
+ callback clip-released();
+ callback razored(id: string, seconds: float);
+ in property <[MenuItemData]> menu-items;
+ in property <length> menu-height;
+ in property <int> menu-token;
+ callback clip-context(id: string);
+ callback menu-selected(id: string);
+
+ callback band-selected(from-seconds: float, to-seconds: float,
+ from-y: length, to-y: length, additive: bool);
+ callback scrolled(seconds: float);
+
+ /// A library card dragged over the lanes, and let go of. See DropData.
+ in property <DropData> drop;
+ callback drag-hovered(payload: string, seconds: float, y: length);
+ callback dropped(payload: string, seconds: float, y: length);
+ callback track-flag-changed(index: int, visible: bool, muted: bool, locked: bool);
+ callback track-sized(index: int, size: TrackSize);
+ callback track-removed(index: int);
+ callback track-renamed(index: int, name: string);
+
+ /// The corner button: show something else in this pane's seat.
+ callback pane-picked(kind: PaneKind);
+ /// Which seat this pane is in. It travels no further than the corner
+ /// button, whose drag payload has to say where it is being taken from.
+ in property <int> pane-seat;
+ /// False when this is the last panel on screen. Travels the same way, and
+ /// only greys the one row that would close it.
+ in property <bool> pane-removable: true;
+ /// That row was used.
+ callback pane-removed();
+
+ /// Wide enough for a lane name and its switches without eliding the name
+ /// at every default. The reference opens at 164px and carries two toggles;
+ /// this column carries four, and 164 left the name with about six
+ /// characters once the remove button appeared on hover. Both numbers went
+ /// up by one 26px slot when the row-height menu joined the switches —
+ /// the alternative was a name that elided at the default width, which is
+ /// the thing this width exists to prevent.
+ in-out property <length> header-width: 234px;
+ /// Narrow enough to be useful as a squeeze, wide enough that the switches
+ /// never overlap the name.
+ in property <length> min-header: 158px;
+
+ /// Where the column was when the divider went down. A drag is one pointer,
+ /// so one slot is enough.
+ property <length> press-width;
+
+ /// The column as it is actually drawn.
+ ///
+ /// `header-width` is where the divider was left, and it outlives the pane
+ /// it was left in: a timeline dropped into a narrow seat, or squeezed by a
+ /// gutter drag, can be narrower than the column it is carrying — and then
+ /// the lanes get a negative width and the whole grid folds up. Capped at
+ /// half, which is the same rule the divider drag below enforces, so a
+ /// pane that grows again finds its column where it left it.
+ property <length> headers-w: Math.max(0px,
+ Math.min(root.header-width, root.width / 2));
+ in property <length> ruler-height: 28px;
+
+ /// Clamped here rather than only where it is written, so a pane dragged
+ /// taller than its own track stack cannot stay parked past the end. The
+ /// stack is measured off its last lane, since the lanes are no longer one
+ /// height to multiply out.
+ property <length> stack-h: root.tracks.length > 0
+ ? root.tracks[root.tracks.length - 1].top
+ + root.tracks[root.tracks.length - 1].height
+ : 0px;
+ property <length> overflow: Math.max(0px,
+ root.stack-h - Math.max(0px, lanes.height - root.ruler-height));
+ property <length> at: Math.max(0px, Math.min(root.overflow, root.track-scroll));
+
+ Pane {
+ // The one edge kept when the outlines came off. The timeline sits
+ // under the three panes above it rather than beside anything, so its
+ // top is the only pane edge in the window that a gutter does not
+ // already draw against a darker ground — and the tab strip runs right
+ // up to it, which without a rule reads as tabs hanging off nothing.
+ //
+ // Inside the Pane and above the tabs, so the layout gives it a row of
+ // its own and nothing has to be nudged down by a pixel to make room.
+ Rectangle {
+ height: 1px;
+ background: Theme.line;
+ }
+
+ TimelineTabs {
+ tabs: root.tabs;
+ current: root.current-tab;
+
+ selected(index) => { root.tab-selected(index); }
+ renamed(index, name) => { root.tab-renamed(index, name); }
+ close-requested(index) => { root.tab-close-requested(index); }
+ added => { root.tab-added(); }
+
+ PaneSwitcher {
+ kind: PaneKind.timeline;
+ seat: root.pane-seat;
+ removable: root.pane-removable;
+ picked(kind) => { root.pane-picked(kind); }
+ removed => { root.pane-removed(); }
+ }
+ }
+
+ TimelineTray {
+ tool: root.tool;
+ snap: root.snap;
+ selected-count: root.selected-count;
+ merge-blocked-because: root.merge-blocked-because;
+ has-av-tools: root.has-av-tools;
+ readout: Fmt.frames-timecode(root.playhead, root.frame-rate);
+
+ tool-changed(tool) => { root.tool-changed(tool); }
+ snap-changed(snap) => { root.snap-changed(snap); }
+ split => { root.split(); }
+ merge => { root.merge(); }
+ delete-selected => { root.delete-selected(); }
+ av-tools(at-x) => {
+ root.asked-av = true;
+ av.request-x = at-x;
+ // Just under the tray: the menu's own origin is the top of
+ // the lane grid, so a couple of pixels is all the air it
+ // needs to clear the button it hangs from.
+ av.request-y = 2px;
+ root.av-tools();
+ }
+ add-track => { root.add-track(); }
+ fit => { root.zoom-to-fit(lanes.width); }
+ // No anchor from a button: the reference zooms about the pointer
+ // for a wheel and about the view for a press, and a press has no
+ // pointer to speak of. -1 is read as "keep the left edge".
+ zoom(factor) => { root.zoom(factor, -1); }
+ }
+
+ // The lane grid. Positioned by hand for the reason the workspace is:
+ // the header column is a fixed width and the lanes are the remainder,
+ // and saying that outright is shorter than a layout and the stretch
+ // factors that would express it.
+ Rectangle {
+ vertical-stretch: 1;
+ clip: true;
+
+ // Inside the grid rather than beside it: a Pane lays its children
+ // out and a layout owns their y, so a menu placed as a sibling of
+ // the tabs and the tray cannot position itself. Here the origin is
+ // the top of the lanes, which is where the tray's button points
+ // anyway. The popup escapes this element's clip on its own.
+ av := ContextMenu {
+ x: 0;
+ y: 0;
+ width: parent.width;
+ height: parent.height;
+ items: root.av-items;
+ menu-height: root.av-height;
+ token: root.own-av-token;
+ selected(id) => { root.av-selected(id); }
+ }
+
+ TrackHeaders {
+ x: 0;
+ y: 0;
+ width: root.headers-w;
+ height: parent.height;
+
+ tracks: root.tracks;
+ ruler-height: root.ruler-height;
+ track-scroll: root.at;
+ overflow: root.overflow;
+
+ scrolled(to) => { root.track-scroll = to; }
+ flag-changed(index, visible, muted, locked) => {
+ root.track-flag-changed(index, visible, muted, locked);
+ }
+ sized(index, size) => { root.track-sized(index, size); }
+ removed(index) => { root.track-removed(index); }
+ renamed(index, name) => { root.track-renamed(index, name); }
+ }
+
+ HairlineSplitter {
+ x: root.headers-w;
+ y: 0;
+ height: parent.height;
+
+ pressed => { root.press-width = root.header-width; }
+ moved(delta) => {
+ // Capped at half the pane as well as floored: a header
+ // column dragged past the lanes leaves nothing to edit.
+ root.header-width = Math.max(root.min-header,
+ Math.min(parent.width / 2, root.press-width + delta));
+ }
+ }
+
+ lanes := Lanes {
+ x: root.headers-w + 1px;
+ y: 0;
+ width: Math.max(0px, parent.width - root.headers-w - 1px);
+ height: parent.height;
+
+ tracks: root.tracks;
+ clips: root.clips;
+ tool: root.tool;
+ playhead: root.playhead;
+ frame-rate: root.frame-rate;
+ scroll-left: root.scroll-left;
+ seconds-per-pixel: root.seconds-per-pixel;
+ track-scroll: root.at;
+ ruler-height: root.ruler-height;
+
+ scrubbed(seconds) => { root.scrubbed(seconds); }
+ clip-pressed(id, additive, edge) => { root.clip-pressed(id, additive, edge); }
+ clip-dragged(seconds, pixels) => { root.clip-dragged(seconds, pixels); }
+ clip-released => { root.clip-released(); }
+ razored(id, seconds) => { root.razored(id, seconds); }
+ menu-items: root.menu-items;
+ menu-height: root.menu-height;
+ menu-token: root.menu-token;
+ clip-context(id) => { root.clip-context(id); }
+ menu-selected(id) => { root.menu-selected(id); }
+ band-selected(a, b, c, d, additive) => {
+ root.band-selected(a, b, c, d, additive);
+ }
+ scrolled(seconds) => { root.scrolled(seconds); }
+
+ drop: root.drop;
+ drag-hovered(payload, seconds, row) => {
+ root.drag-hovered(payload, seconds, row);
+ }
+ dropped(payload, seconds, row) => {
+ root.dropped(payload, seconds, row);
+ }
+ // The stack scrolls here rather than in Rust: it is a property
+ // of looking at the timeline, not of the edit, and nothing on
+ // the Rust side needs to know where the view is parked.
+ track-scrolled(pixels) => {
+ root.track-scroll = Math.max(0px,
+ Math.min(root.overflow, root.at + pixels));
+ }
+ zoomed(factor, anchor) => { root.zoom(factor, anchor); }
+ }
+ }
+ }
+}
diff --git a/engine/crates/concat/ui/workspace/workspace.slint b/engine/crates/concat/ui/workspace/workspace.slint
new file mode 100644
index 00000000..629e56b5
--- /dev/null
+++ b/engine/crates/concat/ui/workspace/workspace.slint
@@ -0,0 +1,80 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { Theme } from "../theme/theme.slint";
+import { Editor } from "../editor.slint";
+import { ColSplitter, RowSplitter } from "splitter.slint";
+import { Seat } from "seat.slint";
+
+// The editor shell: whatever arrangement of views the layout tree currently
+// describes, drawn out of the two lists Rust publishes.
+//
+// This file used to hold the arrangement itself — three boxes across the top
+// and one along the bottom, with two shares and a splitter for each boundary.
+// That is one layout, and hard-coding it is what made it the only one. The
+// arrangement is a tree now (see dock.slint), it lives in Rust because Slint
+// has no recursion to walk one with, and what arrives here is that tree
+// already walked: a box per view, a box per gutter.
+//
+// So there is nothing to lay out here and nothing to arbitrate. The one thing
+// this side knows and Rust does not is how big it is, which is why it says so.
+export component Workspace inherits Rectangle {
+ // One value for the margin and the gutters, so the border around the
+ // workspace and the space between any two panes read as the same gap.
+ // 8px, matching the reference exactly: its resizers are `w-2`/`h-2` and
+ // the layout around them is `p-2`, which is the same single value said
+ // twice. 12px here read as loose beside it.
+ //
+ // Applied on the Rust side rather than here: the gutters are between the
+ // halves of a split, at whatever depth, and only the side walking the tree
+ // knows where those are.
+
+ background: Theme.page;
+
+ // The box, on the way up. `init` as well as the two `changed` handlers,
+ // because a window that opens and is never resized still has to be laid
+ // out once — and the first layout is exactly when nothing has changed yet.
+ init => { Editor.workspace-resized(root.width, root.height); }
+ changed width => { Editor.workspace-resized(root.width, root.height); }
+ changed height => { Editor.workspace-resized(root.width, root.height); }
+
+ for seat in Editor.seats: Seat {
+ x: seat.x;
+ y: seat.y;
+ width: seat.width;
+ height: seat.height;
+ kind: seat.kind;
+ index: seat.index;
+
+ picked(kind) => { Editor.dock-set(seat.index, kind); }
+ dropped-on(from, side) => { Editor.dock-dropped(from, seat.index, side); }
+ removed => { Editor.dock-remove(seat.index); }
+ }
+
+ // Declared after the seats so a gutter is hit before the panes either side
+ // of it. The two orientations are the same two handles the fixed layout
+ // used; which one a gutter gets is a fact about its split, so it comes
+ // down with the box rather than being decided here.
+ for divider in Editor.dividers: Rectangle {
+ x: divider.x;
+ y: divider.y;
+ width: divider.width;
+ height: divider.height;
+
+ if divider.columns: ColSplitter {
+ width: parent.width;
+ height: parent.height;
+
+ pressed => { Editor.divider-pressed(divider.index); }
+ moved(delta) => { Editor.divider-dragged(divider.index, delta); }
+ }
+
+ if !divider.columns: RowSplitter {
+ width: parent.width;
+ height: parent.height;
+
+ pressed => { Editor.divider-pressed(divider.index); }
+ moved(delta) => { Editor.divider-dragged(divider.index, delta); }
+ }
+ }
+}
diff --git a/engine/crates/wolfcut-cli/Cargo.toml b/engine/crates/wolfcut-cli/Cargo.toml
deleted file mode 100644
index 23f0a212..00000000
--- a/engine/crates/wolfcut-cli/Cargo.toml
+++ /dev/null
@@ -1,20 +0,0 @@
-[package]
-name = "wolfcut-cli"
-version.workspace = true
-edition.workspace = true
-rust-version.workspace = true
-license.workspace = true
-description = "Command line driver for the WolfCut engine."
-
-[[bin]]
-name = "wolfcut"
-path = "src/main.rs"
-
-[dependencies]
-wolfcut-core.workspace = true
-wolfcut-media.workspace = true
-wolfcut-render.workspace = true
-clap.workspace = true
-
-[lints]
-workspace = true
diff --git a/flake.nix b/flake.nix
index 35ba654f..9bb1e02b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,9 +2,9 @@
# Nix support (#7). Linux only on purpose: Tauri under Nix on macOS means
# Apple SDK juggling, and the people asking for a flake run Linux.
#
- # nix build .#wolfcut the app, with ffmpeg and whisper-cli wired in
+ # nix build .#concat the app, with ffmpeg and whisper-cli wired in
# nix develop a shell with everything `npm run app` needs
- description = "WolfCut - free and open source video editor";
+ description = "Concat - free and open source video editor";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@@ -19,9 +19,9 @@
in
{
packages = eachSystem (pkgs: rec {
- default = wolfcut;
- wolfcut = pkgs.rustPlatform.buildRustPackage rec {
- pname = "wolfcut";
+ default = concat;
+ concat = pkgs.rustPlatform.buildRustPackage rec {
+ pname = "concat";
version = "0.2.0";
src = self;
@@ -39,7 +39,7 @@
# binaries because a Finder/desktop launch has no PATH to fall back
# on. The Nix wrapper guarantees them on PATH, so this build opts
# out of bundling explicitly.
- env.WOLFCUT_SYSTEM_TOOLS = "1";
+ env.CONCAT_SYSTEM_TOOLS = "1";
nativeBuildInputs = with pkgs; [
cargo-tauri.hook
@@ -86,10 +86,10 @@
desktopItems = [
(pkgs.makeDesktopItem {
- name = "wolfcut";
- exec = "wolfcut-desktop";
- icon = "wolfcut";
- desktopName = "WolfCut";
+ name = "concat";
+ exec = "concat-desktop";
+ icon = "concat";
+ desktopName = "Concat";
comment = "Free and open source video editor";
categories = [
"AudioVideo"
@@ -100,22 +100,22 @@
postInstall = ''
install -Dm644 desktop/src-tauri/icons/128x128.png \
- $out/share/icons/hicolor/128x128/apps/wolfcut.png
+ $out/share/icons/hicolor/128x128/apps/concat.png
'';
meta = {
description = "Free and open source video editor";
- homepage = "https://github.com/jub0t/WolfCut";
- license = pkgs.lib.licenses.mpl20;
+ homepage = "https://github.com/jub0t/Concat";
+ license = pkgs.lib.licenses.agpl3Plus;
platforms = systems;
- mainProgram = "wolfcut-desktop";
+ mainProgram = "concat-desktop";
};
};
});
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
- inputsFrom = [ self.packages.${pkgs.system}.wolfcut ];
+ inputsFrom = [ self.packages.${pkgs.system}.concat ];
packages = with pkgs; [
cargo
rustc
diff --git a/scripts/editor-preview-sop.md b/scripts/editor-preview-sop.md
index b5c0216d..5d8495ce 100644
--- a/scripts/editor-preview-sop.md
+++ b/scripts/editor-preview-sop.md
@@ -13,7 +13,7 @@ preview pane.
somewhere interesting. Avoid personal file names in the media panel.
2. **Take the dark screenshot.** With the app in dark theme, press
- `⌘⇧4`, then `Space`, then click the WolfCut window (captures just the
+ `⌘⇧4`, then `Space`, then click the Concat window (captures just the
window). Don't move or resize the window after this.
3. **Switch to light theme** (the sun/moon toggle in the title bar) and take
diff --git a/scripts/generate-effect-previews.mjs b/scripts/generate-effect-previews.mjs
index 61b73b4e..ef27b3d5 100644
--- a/scripts/generate-effect-previews.mjs
+++ b/scripts/generate-effect-previews.mjs
@@ -38,7 +38,7 @@ const TILE = { width: 320, height: 180 };
// script reads the same source of truth the app ships.
const require = createRequire(path.join(root, "desktop/package.json"));
const esbuild = require("esbuild");
-const scratch = mkdtempSync(path.join(tmpdir(), "wolfcut-previews-"));
+const scratch = mkdtempSync(path.join(tmpdir(), "concat-previews-"));
const bundled = path.join(scratch, "effects.mjs");
await esbuild.build({
entryPoints: [path.join(root, "desktop/src/lib/effects.ts")],
diff --git a/scripts/generate-icons.sh b/scripts/generate-icons.sh
index 6ed7e360..a8216ed4 100755
--- a/scripts/generate-icons.sh
+++ b/scripts/generate-icons.sh
@@ -5,14 +5,14 @@
# scripts/generate-icons.sh [source.png] [output-dir]
#
# Defaults:
-# source assets/wolfcut_logo_512.png
+# source assets/concat_logo_512.png
# output-dir assets/icons
#
# Uses sips on macOS, ImageMagick (magick/convert) elsewhere.
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
-SRC="${1:-$REPO_ROOT/assets/wolfcut_logo_512.png}"
+SRC="${1:-$REPO_ROOT/assets/concat_logo_512.png}"
OUT="${2:-$REPO_ROOT/assets/icons}"
SIZES=(512 256 128 64 32 16)
diff --git a/scripts/generate-ipc-types.sh b/scripts/generate-ipc-types.sh
index 5db43316..a5ad2fd1 100755
--- a/scripts/generate-ipc-types.sh
+++ b/scripts/generate-ipc-types.sh
@@ -15,8 +15,8 @@ export TS_RS_EXPORT_DIR="$root/desktop/src/lib/generated"
part="${1:-all}"
if [ "$part" = "engine" ] || [ "$part" = "all" ]; then
- (cd "$root/engine" && cargo test -p wolfcut-project -p wolfcut-export \
- --features wolfcut-project/types,wolfcut-export/types export_bindings)
+ (cd "$root/engine" && cargo test -p concat-project -p concat-export \
+ --features concat-project/types,concat-export/types export_bindings)
fi
if [ "$part" = "host" ] || [ "$part" = "all" ]; then
diff --git a/test/README.md b/test/README.md
index c694307a..1760ed1f 100644
--- a/test/README.md
+++ b/test/README.md
@@ -44,7 +44,7 @@ file (`face_detection_yunet_*.onnx` from the OpenCV zoo) beside it or via
## Findings worth keeping
- The `sweet` chain graduated: `desktop/src/lib/filters.ts` and
- `wolfcut-export::chains` carry it verbatim.
+ `concat-export::chains` carry it verbatim.
- `enhance_voice.py`'s stage *order* is the finding: surgical repairs
(clicks, plosives) must run before the neural pass - networks trained on
additive noise smear impulses instead of removing them - and loudness