Skip to content

armgit / nota

Public Imported from GitHub
0

Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.

(feat) Studio: a new look, colour themes, UI polish and browser category chips (#34)

Chris Laupama6c66916b938c
diff --git a/.claude/skills/nota-design/SKILL.md b/.claude/skills/nota-design/SKILL.md
index 06354df8..2e4037db 100644
--- a/.claude/skills/nota-design/SKILL.md
+++ b/.claude/skills/nota-design/SKILL.md
@@ -1,29 +1,33 @@
---
name: nota-design
-description: Nota's UI design language — "Ember", warm neutrals with a single brass accent, in two variants (Ember Graphite dark, Ember Paper light), derived from the Nota Design Almanac and used across the Avalonia/C# desktop app. Use whenever building or restyling any Nota UI (windows, panels, controls, device cards, custom-drawn views like the piano roll / waveform / arrangement) so everything stays visually consistent. Points at the authoritative token files and the full guideline rather than restating values.
+description: Nota's UI design language — "Studio": the work carries the colour, the interface steps back — neutral greys on dark 1px seams, one orange accent reserved for what is live or chosen, sentence-case labels, in colour themes (Studio Dark — the default — Studio Light, Ember Graphite, Ember Paper). Use whenever building or restyling any Nota UI (windows, panels, controls, device cards, custom-drawn views like the piano roll / waveform / arrangement) so everything stays visually consistent. Points at the authoritative token files and the full guideline rather than restating values.
user-invocable: true
---
-# Nota design language — Ember
+# Nota design language — Studio
-Warm neutrals (hue ~40°) lit by exactly one accent, **brass**, in two variants:
-**Ember Graphite** (dark, the default) and **Ember Paper** (light — same roles, brass
-darkened to bronze). Preferences → Appearance picks Graphite / Paper / System; the switch
-is live. The rules come from the **Nota Design Almanac** (`nota-design/Nota.html`, beside
-the mockups); `DESIGN.md` is that almanac as the app implements it, plus the departures
+The work carries the colour; the interface steps back. Neutral greys stepped in a
+few exact tones (well · ground · panel · raised), flat panels butted against dark 1px
+seams, small crisp type, and **one orange accent that appears only where something is
+live or chosen**. Colour is a **theme**: one fixed look, dark or light, that gives every
+token a value — Studio Dark (the default), Studio Light, Ember Graphite, Ember Paper. The
+structure (layout, type, geometry, where the accent goes) is the same in every theme.
+Preferences → Appearance picks a theme or Follow system (a dark-mode and a light-mode
+theme); the switch is live. `DESIGN.md` is the guideline, plus the exceptions
the project accepted.
## Read these first — do not work from memory
| File | What it gives you |
|---|---|
-| `DESIGN.md` | **The guideline.** Rules, every token value for both variants, type scales, number setting, controls and states, device cards, shell, the tests, accepted departures, known drift. Start here. |
-| `DESIGN.html` | The same thing rendered — swatches, control specimens, a device card at true size, Graphite/Paper toggle. Generated by `scripts/design-html.py`. |
-| `src/managed/Nota.App/Theme/NotaTheme.axaml` | **Definitive** colour (Dark + Light), geometry, type classes, control styles. |
-| `Theme/NotaPalette.cs` | Colour slots for custom-drawn views (`Wash`, `Ink`, `Derived`). |
-| `Theme/NotaGeometry.cs` · `NotaFonts.cs` · `NotaNum.cs` | Radii/sizes/spacing · Geist typefaces and type scale · number formatting. |
+| `DESIGN.md` | **The guideline.** Rules, colour themes and the readability bar, every Studio token value, elevation, type scales, number setting, controls and states, device cards, shell, the tests, accepted exceptions, known drift. Start here. |
+| `DESIGN.html` | The same thing rendered — swatches, control specimens, a device card at true size, a theme toggle. Generated by `scripts/design-html.py`. |
+| `src/managed/Nota.App/Theme/Themes/*.json` | **Definitive colour**: one file per theme, one value per token (incl. shadow colours and Fluent's accent ramp). |
+| `src/managed/Nota.App/Theme/NotaTheme.axaml` | **Definitive** geometry, type classes, control styles. Holds no colour. |
+| `Theme/NotaPalette.cs` · `NotaColourTheme.cs` · `NotaThemeService.cs` | The token slots (the catalogue) and helpers (`Wash`, `InkOn`, `Ink`, `Derived`) · loading and validating themes · applying a theme: slots re-tinted, the same brushes published as `Brush.*`, `Shadow.*` built. |
+| `Theme/NotaGeometry.cs` · `NotaFonts.cs` · `NotaText.cs` · `NotaNum.cs` | Radii/sizes/spacing · Geist typefaces and type scale · sentence-case labels · number formatting. |
| `DeviceCardKit.cs`, `Controls/` | The shared controls and card builders; `Controls/NotaGraph.cs` for graph windows. |
-| `tests/Nota.SmokeTest/DesignTokenCheck.cs` | The guard tests — run the smoke test after any UI change. |
+| `tests/Nota.SmokeTest/DesignTokenCheck*.cs` | The guard tests (incl. `RunStudio`, `RunThemes`, `RunLabels`, `RunIcons`) and their ratchet lists (`*AllowList.txt`, which only shrink) — run the smoke test after any UI change. |
If `DESIGN.md` / `DESIGN.html` disagree with the theme files, **the theme files win** and
the docs need fixing. Say so rather than propagating the drift.
@@ -35,44 +39,90 @@ the docs need fixing. Say so rather than propagating the drift.
Most of these are enforced by `DesignTokenCheck`; the smoke test fails when one breaks.
-- **No literals in views.** XAML: `{DynamicResource Brush.*}` (a `StaticResource` cannot
- follow the variant) and `{StaticResource Radius.*|Control.*|Space.*}`. C#: `NotaPalette`
- (a slot, `Wash(slot, alpha)`, `Ink("#hex")` for a one-off device hue), `NotaRadius`,
- `NotaSize`, `NotaSpace`, `NotaFonts`, `NotaType`. No hex outside `Ink()`, no RGB typed as
- numbers, no `Colors.X` / `Brushes.X` except `Transparent`, no font family names.
+- **No literals in views.** XAML: `{DynamicResource Brush.*}` / `{DynamicResource Shadow.*}`
+ (a `StaticResource` cannot follow a theme change) and
+ `{StaticResource Radius.*|Control.*|Space.*}`. C#: `NotaPalette` (a slot,
+ `Wash(slot, alpha)`, `InkOn(fill)`, `Ink("#hex")` for a one-off device hue),
+ `NotaRadius`, `NotaSize`, `NotaSpace`, `NotaFonts`, `NotaType`. No hex outside `Ink()`,
+ no RGB typed as numbers, no `Colors.X` / `Brushes.X` except `Transparent`, no font
+ family names, no `new BoxShadows` in a view.
- **Nothing may snapshot a colour.** `new SolidColorBrush(slot.Color)`, a
`static readonly Color` or brush built from the palette, or a static array of palette
- colours freezes the view in one variant. Use the slot, `Wash`, `Derived`, a property, or
- read `.Color` inside `Render`. Track colours: `ArrangementView.TrackBrush(index)`.
-- **One accent.** Brass means active, selected, changed. Red is recording and overload
- only; green and yellow are meter zones and live signal. There is no second accent.
-- **Role chromas (brass · teal · rose · steel) live only inside graphs**, in that order,
- never on buttons or as state. A modulated knob's arc takes its source's chroma.
-- **Flat, three levels deep.** No gradients, glow, textures or drop shadows (only a
- floating plugin window has one). Depth is lightness + hairline + an inner top line.
-- **Opacity is not a state.** Disabled and muted take the next Ink step; use
+ colours freezes the view in one theme. Use the slot, `Wash`, `InkOn`, `Derived`, a
+ property, or read `.Color` inside `Render`. Track colours:
+ `ArrangementView.TrackBrush(index)`.
+- **Accent = live or chosen, only.** Playing, selected, the playhead, the loop, a toggle
+ that is on, a chosen segment, menu hover, the device power switch, and a value control
+ *while hovered or dragged*. If it is orange and none of those, it is wrong. **Resting
+ values are neutral `VizInk`** — knob arcs, fader and slider fills, value bars, graph
+ curves, waveforms. A modulation arc keeps its source chroma. There is no second accent.
+- **Semantic fills with derived ink.** Mute on = `Mute` (amber), solo on = `Solo` (blue),
+ arm / record on = `Record` (red), solid, with `NotaPalette.InkOn(fill)` for the text or
+ glyph — never a fixed label colour on a themed fill. Green is positive status and the
+ meter's safe range. Graph chromas (viz ink · teal · rose · blue) live only inside graphs.
+- **Seam between, rule within.** Panels meet on `Seam` and so do keys in a segmented
+ group; items inside a panel are divided by `Rule` (separators, field edges, graph
+ frames).
+- **Flat docked, blur only floating.** No gradients, glow or textures. Depth is a tone
+ step + a 1px seam + the `Shadow.Raised` top bevel on raised controls. Only a floating
+ layer drawn in the main window (`Shadow.Popover`, `Shadow.Modal`) carries a blur; menus
+ and popups get a seam ring only (Avalonia clips a popup's shadow at its window edge).
+- **Radii 2 / 3 / 4.** `Radius.Clip`/`Badge` 2 for inner keys, rows, clips, menu items;
+ `Control`/`Tile`/`Panel`/`Body`/`Pill` 3 for controls, cards, graph windows, popovers;
+ `Modal` 4 for modals only; `Docked` 0; `Bar` 1 for bars inside a plot.
+- **Geist for words, Geist Mono for every number a user reads.** Names are never mono.
+ Nothing under 7 px.
+- **Sentence case, no tracking — every label.** Menu items, command titles, palette
+ headings, window titles, tooltips, buttons: "Save as…", "Export audio", "Recent". Capitals
+ stay only on acronyms and units (`NotaText.Fixed`), "Nota …" product and device names,
+ the view names (Arrangement, Session, Modular, Mixer), proper nouns, and a page after
+ "Settings: ". Route labels through `NotaText.Label` (it sentence-cases caps literals and
+ keeps acronyms and units: `LFO rate`, `Gain dB`). Never `ToUpperInvariant()` a label,
+ never set `LetterSpacing`. `RunLabels` fails on an all-caps or Title Case literal;
+ `LabelAllowList.txt` is for data only (preset, mode, proper names).
+- **Opacity is not a state.** Disabled and muted take the next ink step; use
`Inactive.Set` for a subtree. The only allowed `Opacity` is a drag ghost.
- **State changes colour only** — never size, border width or position. Hover and colour
transitions 120 ms ease-out; meters, playhead and spectra are never animated.
-- **Geist for words, Geist Mono for measurements.** Nothing under 7 px.
- **Numbers are set, not printed.** The app installs a display culture (point decimal,
- U+2212 minus). Put a thin space (`\u2009` in source) before units, keep precision fixed (dB one
- decimal, tempo two, percent whole, Hz up to 999 then `3.2 k`) — use `NotaNum` helpers.
-- **Icons are geometry.** `Glyph` / `GlyphKind`; no unicode symbols (`■ ▶ ● ✓ ★ ▾`…) and
- no emoji as text. `·` separates meta; `→` in prose is fine.
-- **Copy:** English. Parameter labels caps, one word, no vowel-dropped contractions
- (`FEEDBACK`, not `FDBK`; `FREQ`/`RESO`/`THRESH` are allowed). Tooltips short and
- verb-first. Sentence case. Empty states are one Ink 5 line.
+ U+2212 minus — typed literals too, `"−12"`, never `"-12"`). Put a thin space (` ` in
+ source) before units, keep precision fixed (dB one decimal, tempo two, percent whole, Hz
+ up to 999 then `3.2 k`) — use `NotaNum` helpers. Ranges take an en dash, closed between
+ plain numbers (`1–127`), spaced when an endpoint has a space (`20 Hz – 20 kHz`).
+- **Every icon is a `Glyph`.** `Controls/Glyph.cs` is the one icon set: path kinds on a
+ 16-unit grid, scaled as a whole (never `Stretch.Uniform`); stroked parts take the shared
+ pen (round caps and joins, `max(1.2, size × 1.5/16)`), filled parts the ink (transport
+ shapes, the Arrangement / Session view keys, OS marks, `StarFilled`, carets, Snap). A
+ missing icon is a new `GlyphKind` with a one-line comment, never a path in a view —
+ `RunIcons` fails on `Geometry.Parse`, `Data="M…"` or a path string outside `Glyph.cs`.
+ No unicode symbols (`■ ▶ ● ✓ ★ ▾`…) and no emoji as text. `·` separates meta; `→` in
+ prose is fine.
+- **Copy:** English. Labels one word where it fits, no vowel-dropped contractions
+ (`Feedback`, not `Fdbk`; `Freq`/`Reso`/`Thresh` are allowed). Tooltips short and
+ verb-first. Empty states are one Ink 5 line.
## Device cards
-- **700 × 260** (`DeviceCardKit.CardH`; width exceptions are listed in `DESIGN.md`).
-- **Header 22:** name left; preset picker `‹ Name ⌄ ›` (when the device has presets),
- processing-type badge (mono caps) and bypass right — nothing else. A/B, move and delete
- go in the header's right-click menu.
-- **Body:** inset 6, sections radius 6 with gap 5; columns choice → work → output.
-- Brass for the audio path and active state; modulation shows its source chroma; graphs go
- through `NotaGraph` (Well, hairline, radius 4, corner axis labels, no fills under curves).
+- **700 × 260** (`DeviceCardKit.CardH`; width exceptions are listed in `DESIGN.md`): panel
+ body, radius 3, seam frame.
+- **Header 22** (`BuildCardShell` in `DeviceChainView.Shell.cs` — every card uses it,
+ racks, the generic instrument card, plug-ins and Sends included; never build a header of
+ your own): a raised strip with the `Shadow.Raised` bevel, in fixed slots **name · preset ·
+ badges · power**. The preset picker `‹ Name ⌄ ›` is centred in the header between two
+ equal halves (name left, badges and power right), only when the device has presets; the badges — the
+ type badge (mono, muted, sentence case) and the card's accessories (`HeaderExtra`: Learn,
+ S / L) — right-aligned; the power switch (accent while on) last, its slot reserved even
+ on a card that cannot be bypassed. A/B, move and delete go in the right-click menu.
+- **Body:** inset 6; columns choice → work → output. **Sections are
+ `DeviceCardKit.Section(body)`** — no fill, no frame, a 1 px `Rule` on a top or left edge
+ facing a neighbouring section (found from the layout, or pass `SectionEdge`); never a
+ framed `Border` box. Graph windows and wells keep their frames; chips, tiles, pads and
+ readouts are not sections. Titled in `DeviceSection` (muted 600). Device text keeps the
+ device scale (7.5–10.5 px) because the frame is kept.
+- Values at rest neutral, the accent only for what is live or chosen; modulation shows its
+ source chroma; graphs go through `NotaGraph` (well, rule frame, radius 3, `VizGrid`,
+ `VizInk` primary curve, accent only on the active node, corner axis labels, no fills
+ under curves).
## Adding a control
@@ -91,22 +141,35 @@ A new value control **must** match the interaction contract:
- Register with `MidiLearn.Bind`
- Live-follow refresher that **skips while dragging**
- Mono readout so width does not jump; the value is always visible, not only in a tooltip
+- Its value drawn in `VizInk` at rest and the accent only while hovered or dragged
## Applying it (Avalonia)
-- `NotaTheme.axaml` is merged in `App.axaml`; `NotaThemeService` applies the variant to both
- layers. `NotaNum.Install()` runs in `App.Initialize`.
-- Buttons: default (raised), `primary` (one solid brass action per context), `ghost`,
- `cell`, `chip`, `tp-icon`, `tp-play`; `ToggleButton.seg` inside `Border.segmented`.
+- `NotaTheme.axaml` is merged in `App.axaml`; `NotaThemeService` applies the colour theme
+ (resolved from settings by `Nota.Application.Appearance`) to both layers. `NotaNum.Install()` runs in `App.Initialize`.
+- Buttons: default (raised, seam border, bevel), `primary` (weight and one tone step —
+ not colour), `ghost`, `cell` (a readout well), `chip`, `tp-icon`, `tp-play`; a
+ `ToggleButton` that is checked is a solid accent key with derived ink.
+ `ToggleButton.seg` inside `Border.segmented` (keys butted on 1px seams).
Containers: `Border.Panel`, `Border.Card`, `Border.well`, `Border.transport`,
`Border.console`. Fields: `TextBox.field`, `TextBox.search`.
-- Text: shell `Title`, `Heading`, `Name`, `Caption`, `SectionLabel`, `Readout`, `Value`,
- `Eyebrow`; device `DeviceName`, `DeviceSection`, `RowLabel`, `KnobLabel`, `KnobValue`,
- `Axis`.
+- Text: shell `Title`, `Heading`, `Name`, `Caption`, `SectionLabel`, `CellLabel`,
+ `Readout`, `Value`, `Eyebrow`; device `DeviceName`, `DeviceSection`, `RowLabel`,
+ `KnobLabel`, `KnobValue`, `Axis`.
+- Elevation: `BindResource(Border.BoxShadowProperty, "Shadow.Raised" | "Shadow.Sunken" |
+ "Shadow.Popover" | "Shadow.Modal")` — never a literal.
## When you change a token
-1. Edit **both** branches in `NotaTheme.axaml` — `Dark` and `Light`.
-2. Mirror the pair into the `NotaPalette` slot — the smoke test checks the pair.
+1. Change the value in each theme file in `Theme/Themes/` it should change in (both Studio
+ themes at least). A **new** token is a `T(nameof(X))` slot in `NotaPalette`, a value in
+ **every** theme file (the smoke test names a file that lacks it), and a `KeyMap` entry
+ if XAML uses it.
+2. Every theme must still pass the readability bar (`DESIGN.md` § Readability bar).
3. Run `python3 scripts/design-html.py` and update the table in `DESIGN.md`.
-4. Check both variants — in the app and in `DESIGN.html` (`?variant=paper`).
+4. Check every theme — in the app and in `DESIGN.html` (`?variant=light`, `?variant=ember-paper`…).
+
+## When you add a theme
+
+Add `Theme/Themes/<id>.json` (every token; `kind` dark or light) and append the id to
+`NotaThemes.BuiltInOrder`. Nothing else names a theme. Run the smoke test (`RunThemes`).
diff --git a/.claude/skills/nota-instrument/SKILL.md b/.claude/skills/nota-instrument/SKILL.md
index cd92b82a..4c522c80 100644
--- a/.claude/skills/nota-instrument/SKILL.md
+++ b/.claude/skills/nota-instrument/SKILL.md
@@ -68,7 +68,9 @@ lighter path — see the end of this section.**
(wrapper), `IAudioEngine.cs` (interface); `Nota.Application/Palette/BuiltinDeviceCatalog.cs`
(the one device list the browser and the command palette read: name, `Kind = N`, sub text **and
a semantic descriptor** — role, aliases, character, sound/source, genre, a one-line
-description; the palette smoke test `--palette` fails without a role and aliases);
+description; the palette smoke test `--palette` fails without a role and aliases), and its
+browser category in `Nota.Application/Palette/DeviceCategories.cs` (the category chip it is listed
+under — Synths, Dynamics…; the `-- design: browser --` check fails until it has one);
`DeviceInsertService.CreateInstrumentTrack` in Nota.Presentation (`N => Engine.Add…` — the
one place drag & drop, the browser and the palette create the track);
`ProjectService.cs` (`{ Kind: N }`) + `PresetService.cs` (`N =>`); rack/drum
@@ -94,7 +96,7 @@ No track, no C ABI, no `Engine.h` method: effects are added generically by
`getState`/`setState`, no per-kind managed persist code.
- **Managed:** `DeviceCardFactory` `[kind] = new NameDeviceBody()`; a
`BuiltinDeviceCatalog.cs` entry (`AudioEffect`, kind N, with its semantic descriptor —
- role, aliases, character, source, task). The add/drop path (`DeviceInsertService`) is
+ role, aliases, character, source, task) and its category in `DeviceCategories.cs`. The add/drop path (`DeviceInsertService`) is
already generic. Factory presets get their descriptor from their folder and name
(`PresetDescriptors`); a new folder whose name isn't vocabulary goes into its folder map.
@@ -102,7 +104,7 @@ No track, no C ABI, no `Engine.h` method: effects are added generically by
Mirror an existing `MidiDevice` (e.g. `Arpeggiator.h`) with `midiKind()`; register
in the engine's MIDI-device factory + `MidiDeviceCardFactory` `[kind]` + a `MidiEffect`
-entry with its descriptor in `BuiltinDeviceCatalog.cs`. Params/persist/clone are generic like audio effects. Cards sit
+entry with its descriptor in `BuiltinDeviceCatalog.cs` (and its category in `DeviceCategories.cs`). Params/persist/clone are generic like audio effects. Cards sit
**before** the instrument in the chain.
## 3. Editor card architecture
diff --git a/.specify/memory/constitution.md b/.specify/memory/constitution.md
index 2de5f241..aa13cf4b 100644
--- a/.specify/memory/constitution.md
+++ b/.specify/memory/constitution.md
@@ -44,7 +44,7 @@ what each line does. Match the style of the code around you.
User-visible changes get a `CHANGELOG.md` `[Unreleased]` entry. When working in this
repository with an agent that has the Nota skills, run `nota-features` (FEATURES.md),
`nota-docs` (user manual), and `nota-shortcuts` (keyboard bindings) as applicable. UI
-work follows [`DESIGN.md`](../../DESIGN.md) (the Ember design language).
+work follows [`DESIGN.md`](../../DESIGN.md) (the Studio design language).
### VII. Spec-First for Non-Trivial Work
@@ -74,4 +74,4 @@ This constitution governs AI agents working in this repository;
above. Amendments require a pull request that updates the source-of-truth doc first,
then this file, and must not weaken principles I–III.
-**Version**: 1.0.0 | **Ratified**: 2026-10-11 | **Last Amended**: 2026-10-11
+**Version**: 1.0.1 | **Ratified**: 2026-10-11 | **Last Amended**: 2026-10-13
diff --git a/.specify/templates/overrides/plan-template.md b/.specify/templates/overrides/plan-template.md
index 4ef00a0c..01caa78b 100644
--- a/.specify/templates/overrides/plan-template.md
+++ b/.specify/templates/overrides/plan-template.md
@@ -15,7 +15,7 @@
Consult the matching source of truth before designing:
- **Engine work** → [`ARCHITECTURE.md`](../../ARCHITECTURE.md): the AR rules table is binding (AR-4 lock-free queue, AR-5 immutable snapshots, AR-6 audio-thread restrictions, AR-7 pure C ABI, AR-9 `Transport` is the only source of musical time).
-- **UI work** → [`DESIGN.md`](../../DESIGN.md) (Ember design language) and the `nota-design` skill.
+- **UI work** → [`DESIGN.md`](../../DESIGN.md) (Studio design language) and the `nota-design` skill.
- **A built-in instrument / audio or MIDI effect** → the `nota-instrument` skill (DSP class, kind registration across C++ and C#, device-card UI).
- **Build / packaging** → [`BUILD.md`](../../BUILD.md).
- **Anything** → [`CONTRIBUTING.md`](../../CONTRIBUTING.md): licensing, dependency policy, PR expectations.
diff --git a/.specify/templates/overrides/spec-template.md b/.specify/templates/overrides/spec-template.md
index ca413f42..d117f28c 100644
--- a/.specify/templates/overrides/spec-template.md
+++ b/.specify/templates/overrides/spec-template.md
@@ -14,7 +14,7 @@
- [ ] Engine (C++, `src/native/nota.engine`) — real-time audio rules apply, see `ARCHITECTURE.md` AR table
- [ ] Managed app (C#, `src/managed/*`) — domain, application, infrastructure, presentation
-- [ ] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Ember)
+- [ ] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Studio)
- [ ] Plugin hosting (`pluginhost/`) — the only place JUCE is allowed
- [ ] Build / packaging / CI (`scripts/`, `.github/`) — see `BUILD.md`
- [ ] Docs only
@@ -155,4 +155,4 @@ expectations), [`BUILD.md`](../../BUILD.md), [`DESIGN.md`](../../DESIGN.md),
- [ ] Managed/native crossings go through the pure C ABI in `nota_engine.h` only (AR-7); no JUCE outside `pluginhost/`
- [ ] Smoke-test impact assessed: engine behaviour change → extend `tests/Nota.SmokeTest`
- [ ] User-visible change → `CHANGELOG.md` `[Unreleased]` entry planned (and FEATURES.md / user docs via the nota-features / nota-docs skills when working with an agent that has them)
-- [ ] UI change → follows `DESIGN.md` (Ember design language)
+- [ ] UI change → follows `DESIGN.md` (Studio design language)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3d8cedb9..bc4c8c16 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,68 @@ Entry categories: `Added`, `Changed`, `Fixed`, `Removed`.
## [Unreleased]
+### Added
+- **Colour themes:** Preferences → Appearance now offers colour themes — Studio Dark,
+ Studio Light, and **Ember Graphite** / **Ember Paper**, the warm browns and brass of
+ Nota's earlier look, on the new layout. Choose **Dark**, **Light** or **Follow system**,
+ then a theme: each is a card showing a miniature Nota window in its own colours, and
+ picking one recolours every window at once. Themes change colours only, and each gives the track
+ colours its own shades — your projects are untouched.
+- **Follow system, with a theme for each mode:** choose a theme for when your computer is
+ in dark mode and one for light mode, and Nota switches between them with the OS.
+- **Category chips in the browser:** the Instruments, Audio effects and MIDI effects tabs
+ have a row of category chips above the list — Synths, Drums, Samplers…; EQ & filter,
+ Dynamics, Reverb & delay, Modulation…; Generate and Shape. Click one to see only that
+ kind of device, and click it again to see everything. Each tab remembers its pick while
+ you switch tabs, and the chips combine with search, Favorites and tags. Installed
+ plug-ins join the same categories from the category they report (anything unrecognised
+ under Other). "Category chips" in the ⋮ menu hides the row.
+
+### Changed
+- **A new look, Studio:** your music carries the colour now, and the interface steps back
+ — neutral greys with one orange accent. The panels — browser, arrangement, detail panel
+ — now sit edge to edge on thin seams instead of floating as rounded islands, and the
+ transport is a slimmer, flat row with its readouts set in small wells ("120.00 BPM",
+ "1/4 Grid"). Orange now means only "playing, selected or switched on": knob arcs, faders
+ and device graphs are neutral at rest and light up while you hover or drag them; a
+ toggled-on button fills solid orange. Mute fills amber, solo blue and record-arm red.
+ Labels are in sentence case instead of spaced capitals, corners are nearly square, and
+ clips in the arrangement are drawn in their full track colour with a darker title band.
+ Studio Light follows the same system in light greys (see *Colour themes* above; your
+ Dark / Light / System choice carries over). Every feature, shortcut and menu stays where
+ it was, and projects open unchanged (track colours keep their place in the new palette).
+- **View switcher as icons:** Arrangement, Session and Modular are now three small icon
+ keys in the transport instead of words, freeing about 140 px. Hover one for its name.
+ Every icon in the app now comes from one set, drawn at one line weight.
+- **Calmer device cards:** sections inside a card are no longer boxes — they sit on the
+ card and a thin line divides neighbours, with every control where it was. Every card,
+ including the Instrument Rack, the generic instrument card and Sends, has the same
+ header: name, presets, badges, then the power switch, each in the same place, so presets
+ and power switches line up down a chain.
+- **A mixer window that fits:** in the Strips view the Mixer window is as wide as its
+ channel strips (up to the screen width) and resizes as you add or remove tracks — no
+ more empty space beside the master. Escape closes it, and cancels Export.
+- **One labelling voice:** menus, the command palette, window titles, the Session view,
+ Preferences and the mixer use sentence case throughout ("Save as…", "Export audio",
+ "Recent") instead of a mix of capitals and Title Case.
+- **A quieter browser list:** built-in devices are listed by their short name ("Aurora",
+ not "Nota Aurora" — searching either still finds it), and the type on the right is a
+ shade quieter.
+- **A slimmer "add device" target:** the end of a device chain is a narrow "+" instead of
+ a large dashed tile; the dashed outline appears only while you drag a device over the
+ chain.
+
+### Fixed
+- **New tracks scroll into view:** a track added to a full arrangement was drawn under the
+ pinned Return and Master rows. The arrangement now scrolls to show it, and the pinned
+ rows sit on a line of their own.
+- **The Session toolbar fits small windows:** controls no longer run off the edge — when
+ space runs out, the least-used ones move into a "⋯" menu. The inspector is narrower and
+ can be hidden with the new Inspector key (the sidebar icon); Nota remembers your choice.
+- **Modular lists your tracks on open:** opening Modular after loading a project showed an
+ empty track list. It now lists the tracks and opens on the first one, and an empty
+ project says "No tracks yet".
+
## [0.53.1] — 2026-10-15
### Added
diff --git a/DESIGN.html b/DESIGN.html
index 3c457071..56c0a240 100644
--- a/DESIGN.html
+++ b/DESIGN.html
@@ -4,70 +4,262 @@
<html lang="en">
<head>
<meta charset="utf-8">
-<title>Ember</title>
+<title>Studio</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">
<style>
/* ============================================================================
- Ember — Nota's design system, documented in its own palette.
- The colour variables below are generated from
- src/managed/Nota.App/Theme/NotaTheme.axaml (Dark → :root, Light → [data-variant=paper]).
- Generated by scripts/design-html.py — edit that, then rerun it. Every specimen on the page is painted
- through these variables — nothing uses a raw hex.
+ Studio — Nota's design system, documented in its own palette.
+ The colour and shadow variables below are generated from the colour themes in
+ src/managed/Nota.App/Theme/Themes/ (Studio Dark → :root, every other theme →
+ [data-variant=…]).
+ Generated by scripts/design-html.py — edit that, then rerun it. Every specimen on the page
+ is painted through these variables — nothing uses a raw hex.
========================================================================= */
:root {
+ --r-docked: 0px; --r-bar: 1px; --r-clip: 2px; --r-badge: 2px;
+ --r-control: 3px; --r-tile: 3px; --r-panel: 3px; --r-body: 3px;
+ --r-pill: 3px; --r-modal: 4px;
+ --font-ui: "Geist", system-ui, sans-serif;
+ --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
+}
+:root {
+ --surface-abyss: #17181A;
+ --gutter: #141517;
+ --bg-sunken: #17181A;
+ --chrome-bg: #17181A;
+ --bg-app: #1E1F22;
+ --lane-b: #222326;
+ --panel: #2B2D31;
+ --track-off: #17181A;
+ --surface-card: #2B2D31;
+ --surface-raised: #34363B;
+ --surface-inset: #232427;
+ --surface-hover: #393C41;
+ --surface-active: #17181A;
+ --surface-selected: #393C41;
+ --grid-beat: #2A2C30;
+ --grid-bar: #3A3C41;
+ --hairline: #45484E;
+ --text-heading: #F4F5F6;
+ --text-primary: #E8E9EB;
+ --text-strong: #D4D6DA;
+ --text-secondary: #C0C4C9;
+ --text-muted: #A4A9B0;
+ --text-tertiary: #92969D;
+ --text-disabled: #82868C;
+ --text-axis: #82868C;
+ --text-on-accent: #17181A;
+ --border-default: #141517;
+ --border-strong: #45484E;
+ --border-brass: #BF7D22;
+ --accent: #FF9F1C;
+ --accent-hover: #FFB547;
+ --accent-bright: #FFB547;
+ --accent-deep: #C77612;
+ --accent-dim: #C77612;
+ --accent-edge: #BF7D22;
+ --accent-subtle: #4D3F2E;
+ --record: #F06A6E;
+ --record-ink: #FFFFFF;
+ --success: #6CC673;
+ --success-dim: #3F8A45;
+ --warning: #F2B53C;
+ --danger: #F06A6E;
+ --danger-hover: #F48386;
+ --danger-bright: #F58F92;
+ --chroma-teal: #5FB3A8;
+ --chroma-teal-light: #86C9C0;
+ --chroma-rose: #D77A8F;
+ --chroma-rose-light: #E49EAE;
+ --chroma-steel: #6A9FD8;
+ --seam: #141517;
+ --rule: #45484E;
+ --text-faint: #82868C;
+ --mute: #F2B53C;
+ --solo: #6A9FD8;
+ --viz-ink: #D7D8DA;
+ --viz-grid: #2E2F32;
+ --track1: #7FB87A;
+ --track2: #5FB3A8;
+ --track3: #5AA6C4;
+ --track4: #6A9FD8;
+ --track5: #E0A84A;
+ --track6: #9D90C9;
+ --track7: #D77A8F;
+ --track8: #B3B45E;
+ --track9: #8E9DB0;
+ --return-a: #8E9DB0;
+ --return-b: #7A889A;
+ --master: #A4A9B0;
+ --surface-hover-clear: rgba(57,60,65,0.000);
+ --danger-subtle: rgba(240,106,110,0.200);
+ --shadow-raised: inset 0 1px 0 0 rgba(255,255,255,0.071);
+ --shadow-sunken: inset 0 0 0 1px #45484E;
+ --shadow-popover: 0 0 0 1px #141517, 0 10px 28px 0 rgba(0,0,0,0.420);
+ --shadow-modal: 0 0 0 1px #141517, 0 24px 64px 0 rgba(0,0,0,0.502);
+ --ink-on-mute: #17181A;
+ --ink-on-solo: #17181A;
+ --ink-on-record: #17181A;
+ --t0-body: #7FB87A; --t0-band: #5F885D; --t0-ink: #17181A; --t0-cont: #425B42;
+ --t1-body: #5FB3A8; --t1-band: #49847D; --t1-ink: #FFFFFF; --t1-cont: #355955;
+ --t2-body: #5AA6C4; --t2-band: #457B91; --t2-ink: #FFFFFF; --t2-cont: #335361;
+ --t3-body: #6A9FD8; --t3-band: #51769F; --t3-ink: #FFFFFF; --t3-cont: #395069;
+ --t4-body: #E0A84A; --t4-band: #A37C3B; --t4-ink: #17181A; --t4-cont: #6B542E;
+ --t5-body: #9D90C9; --t5-band: #746C94; --t5-ink: #FFFFFF; --t5-cont: #4F4A63;
+ --t6-body: #D77A8F; --t6-band: #9D5C6B; --t6-ink: #FFFFFF; --t6-cont: #67414B;
+ --t7-body: #B3B45E; --t7-band: #848549; --t7-ink: #17181A; --t7-cont: #585936;
+ --t8-body: #8E9DB0; --t8-band: #6A7583; --t8-ink: #FFFFFF; --t8-cont: #484F59;
+ color-scheme: dark;
+}
+:root[data-variant="light"] {
+ --surface-abyss: #D6D8DB;
+ --gutter: #9DA0A6;
+ --bg-sunken: #D6D8DB;
+ --chrome-bg: #D6D8DB;
+ --bg-app: #C9CBCF;
+ --lane-b: #C4C6CA;
+ --panel: #E4E5E7;
+ --track-off: #D6D8DB;
+ --surface-card: #E4E5E7;
+ --surface-raised: #EEEFF1;
+ --surface-inset: #DCDEE0;
+ --surface-hover: #F7F8F9;
+ --surface-active: #D6D8DB;
+ --surface-selected: #F7F8F9;
+ --grid-beat: #BDC0C4;
+ --grid-bar: #ADB0B5;
+ --hairline: #B3B6BB;
+ --text-heading: #0E0F11;
+ --text-primary: #16171A;
+ --text-strong: #282A2E;
+ --text-secondary: #3A3D42;
+ --text-muted: #4F535A;
+ --text-tertiary: #65696F;
+ --text-disabled: #797C81;
+ --text-axis: #797C81;
+ --text-on-accent: #17181A;
+ --border-default: #9DA0A6;
+ --border-strong: #B3B6BB;
+ --border-brass: #ECA54E;
+ --accent: #EF8A0C;
+ --accent-hover: #C46A00;
+ --accent-bright: #C46A00;
+ --accent-deep: #D47800;
+ --accent-dim: #F7C27A;
+ --accent-edge: #ECA54E;
+ --accent-subtle: #E6D6C4;
+ --record: #B3262C;
+ --record-ink: #FFFFFF;
+ --success: #22692B;
+ --success-dim: #79B880;
+ --warning: #7A4F00;
+ --danger: #B3262C;
+ --danger-hover: #C2343A;
+ --danger-bright: #9C1F24;
+ --chroma-teal: #3A8A7F;
+ --chroma-teal-light: #2E7067;
+ --chroma-rose: #B4566B;
+ --chroma-rose-light: #93404F;
+ --chroma-steel: #3F78B8;
+ --seam: #9DA0A6;
+ --rule: #B3B6BB;
+ --text-faint: #797C81;
+ --mute: #7A4F00;
+ --solo: #3F78B8;
+ --viz-ink: #252629;
+ --viz-grid: #C0C3C6;
+ --track1: #4A7F46;
+ --track2: #3A8A7F;
+ --track3: #357C99;
+ --track4: #3F78B8;
+ --track5: #B8862F;
+ --track6: #7363A8;
+ --track7: #B4566B;
+ --track8: #7E7F2F;
+ --track9: #5D6C80;
+ --return-a: #5D6C80;
+ --return-b: #4E5B6D;
+ --master: #4F535A;
+ --surface-hover-clear: rgba(247,248,249,0.000);
+ --danger-subtle: rgba(179,38,44,0.200);
+ --shadow-raised: inset 0 1px 0 0 rgba(255,255,255,0.702);
+ --shadow-sunken: inset 0 0 0 1px #B3B6BB;
+ --shadow-popover: 0 0 0 1px #9DA0A6, 0 10px 28px 0 rgba(30,32,36,0.220);
+ --shadow-modal: 0 0 0 1px #9DA0A6, 0 24px 64px 0 rgba(30,32,36,0.251);
+ --ink-on-mute: #FFFFFF;
+ --ink-on-solo: #FFFFFF;
+ --ink-on-record: #FFFFFF;
+ --t0-body: #4A7F46; --t0-band: #3A5F38; --t0-ink: #FFFFFF; --t0-cont: #2B422C;
+ --t1-body: #3A8A7F; --t1-band: #2F6760; --t1-ink: #FFFFFF; --t1-cont: #254744;
+ --t2-body: #357C99; --t2-band: #2B5D72; --t2-ink: #FFFFFF; --t2-cont: #23414F;
+ --t3-body: #3F78B8; --t3-band: #325A88; --t3-ink: #FFFFFF; --t3-cont: #273F5C;
+ --t4-body: #B8862F; --t4-band: #876428; --t4-ink: #FFFFFF; --t4-cont: #5A4522;
+ --t5-body: #7363A8; --t5-band: #574C7D; --t5-ink: #FFFFFF; --t5-cont: #3D3655;
+ --t6-body: #B4566B; --t6-band: #844352; --t6-ink: #FFFFFF; --t6-cont: #58313C;
+ --t7-body: #7E7F2F; --t7-band: #5E5F28; --t7-ink: #FFFFFF; --t7-cont: #414222;
+ --t8-body: #5D6C80; --t8-band: #475261; --t8-ink: #FFFFFF; --t8-cont: #333A44;
+ color-scheme: light;
+}
+:root[data-variant="ember-graphite"] {
--surface-abyss: #0A0908;
- --bg-app: #0B0A09;
--gutter: #0C0B09;
--bg-sunken: #100F0D;
+ --chrome-bg: #100F0D;
+ --bg-app: #0B0A09;
+ --lane-b: #131210;
--panel: #141310;
+ --track-off: #26231E;
--surface-card: #171613;
--surface-raised: #1C1A16;
+ --surface-inset: #1A1815;
--surface-hover: #252219;
- --surface-hover-clear: rgba(37,34,25,0.000);
- --track-off: #26231E;
--surface-active: #100F0D;
- --lane-b: #131210;
- --chrome-bg: #100F0D;
--surface-selected: #241F17;
- --hairline: #221F1A;
- --border-default: #2C2923;
- --border-strong: #3A362D;
- --border-brass: #6B5326;
--grid-beat: #1E1C18;
--grid-bar: #2A2721;
+ --hairline: #221F1A;
--text-heading: #F2EDE1;
--text-primary: #E9E4D8;
--text-strong: #C7C0B0;
--text-secondary: #A39D8F;
- --text-muted: #8D8779;
- --text-tertiary: #6E6A5E;
- --text-disabled: #55514A;
- --text-axis: #4A463D;
+ --text-muted: #8F897C;
+ --text-tertiary: #716D60;
+ --text-disabled: #646054;
+ --text-axis: #65614F;
--text-on-accent: #171613;
+ --border-default: #2C2923;
+ --border-strong: #3A362D;
+ --border-brass: #6B5326;
--accent: #D8A03D;
- --accent-bright: #F0C060;
--accent-hover: #E9BE6A;
+ --accent-bright: #F0C060;
--accent-deep: #B08536;
--accent-dim: #8A6B2E;
--accent-edge: #5E4A22;
--accent-subtle: #241F17;
- --record: #C25B44;
+ --record: #BE563E;
--record-ink: #F4E3DC;
+ --success: #58B368;
+ --success-dim: #7FB069;
+ --warning: #D9C34C;
--danger: #C2554A;
--danger-hover: #D0685C;
--danger-bright: #E08A72;
- --danger-subtle: rgba(194,85,74,0.200);
- --warning: #D9C34C;
- --success: #58B368;
- --success-dim: #7FB069;
--chroma-teal: #5B9E9C;
--chroma-teal-light: #7FC0BE;
--chroma-rose: #B57286;
--chroma-rose-light: #D79BAB;
--chroma-steel: #6D8FB5;
+ --seam: #0C0B09;
+ --rule: #3A362D;
+ --text-faint: #646054;
+ --mute: #D9C34C;
+ --solo: #6D8FB5;
+ --viz-ink: #D8D3C8;
+ --viz-grid: #232019;
--track1: #58B368;
--track2: #4E9E7A;
--track3: #3E8E8E;
@@ -79,66 +271,84 @@
--track9: #7FA88E;
--return-a: #7FA88E;
--return-b: #6B907B;
- --master: #D8A03D;
- --r-bar: 1px; --r-clip: 2px; --r-badge: 3px; --r-control: 4px;
- --r-tile: 5px; --r-panel: 6px; --r-body: 8px;
- --font-ui: "Geist", system-ui, sans-serif;
- --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
- --sunken: inset 0 1px 0 rgba(0,0,0,.5);
- --raised: inset 0 1px 0 rgba(255,255,255,.03);
+ --master: #8D8779;
+ --surface-hover-clear: rgba(37,34,25,0.000);
+ --danger-subtle: rgba(194,85,74,0.200);
+ --shadow-raised: inset 0 1px 0 0 rgba(255,255,255,0.031);
+ --shadow-sunken: inset 0 0 0 1px #3A362D;
+ --shadow-popover: 0 0 0 1px #0C0B09, 0 10px 28px 0 rgba(0,0,0,0.420);
+ --shadow-modal: 0 0 0 1px #0C0B09, 0 24px 64px 0 rgba(0,0,0,0.502);
+ --ink-on-mute: #17181A;
+ --ink-on-solo: #17181A;
+ --ink-on-record: #FFFFFF;
+ --t0-body: #58B368; --t0-band: #43824D; --t0-ink: #FFFFFF; --t0-cont: #305534;
+ --t1-body: #4E9E7A; --t1-band: #3C745A; --t1-ink: #FFFFFF; --t1-cont: #2C4C3C;
+ --t2-body: #3E8E8E; --t2-band: #316868; --t2-ink: #FFFFFF; --t2-cont: #254644;
+ --t3-body: #5AA0B8; --t3-band: #457585; --t3-ink: #FFFFFF; --t3-cont: #314D56;
+ --t4-body: #C77F55; --t4-band: #915E40; --t4-ink: #FFFFFF; --t4-cont: #5F3F2C;
+ --t5-body: #7A6FB0; --t5-band: #5B5380; --t5-ink: #FFFFFF; --t5-cont: #3E3953;
+ --t6-body: #B05A7A; --t6-band: #81445A; --t6-ink: #FFFFFF; --t6-cont: #55303C;
+ --t7-body: #9AA64A; --t7-band: #717938; --t7-ink: #FFFFFF; --t7-cont: #4C5028;
+ --t8-body: #7FA88E; --t8-band: #5E7B68; --t8-ink: #FFFFFF; --t8-cont: #405144;
color-scheme: dark;
}
-:root[data-variant="paper"] {
+:root[data-variant="ember-paper"] {
--surface-abyss: #D8D1BE;
- --bg-app: #DCD6C5;
--gutter: #E0DAC9;
--bg-sunken: #E4DFD1;
+ --chrome-bg: #E4DFD1;
+ --bg-app: #DCD6C5;
+ --lane-b: #E7E2D4;
--panel: #EAE5D7;
+ --track-off: #DBD4C0;
--surface-card: #EFEADE;
--surface-raised: #F8F5EC;
+ --surface-inset: #E9E4D6;
--surface-hover: #E7E1D0;
- --surface-hover-clear: rgba(231,225,208,0.000);
- --track-off: #DBD4C0;
--surface-active: #D5CEBB;
- --lane-b: #E7E2D4;
- --chrome-bg: #E4DFD1;
--surface-selected: #F2E4C4;
- --hairline: #D5CFBE;
- --border-default: #D5CEBB;
- --border-strong: #BDB5A0;
- --border-brass: #C9A254;
--grid-beat: #DED8C8;
--grid-bar: #CFC8B4;
+ --hairline: #D5CFBE;
--text-heading: #1A150E;
--text-primary: #241F17;
--text-strong: #3E382C;
--text-secondary: #5E5849;
- --text-muted: #746D5C;
- --text-tertiary: #8A8474;
- --text-disabled: #9E9786;
- --text-axis: #ADA694;
+ --text-muted: #625B50;
+ --text-tertiary: #7E786C;
+ --text-disabled: #8D866F;
+ --text-axis: #8D8669;
--text-on-accent: #FFFBF2;
- --accent: #A87415;
- --accent-bright: #744D07;
+ --border-default: #D5CEBB;
+ --border-strong: #BDB5A0;
+ --border-brass: #C9A254;
+ --accent: #AD7716;
--accent-hover: #8F6110;
+ --accent-bright: #744D07;
--accent-deep: #7A5008;
--accent-dim: #9C8034;
--accent-edge: #D3B173;
--accent-subtle: #F2E4C4;
--record: #B54A32;
--record-ink: #FFF4EE;
+ --success: #2C7A3E;
+ --success-dim: #609548;
+ --warning: #837010;
--danger: #B13E33;
--danger-hover: #C64A36;
--danger-bright: #A3391B;
- --danger-subtle: rgba(177,62,51,0.200);
- --warning: #837010;
- --success: #2C7A3E;
- --success-dim: #609548;
--chroma-teal: #2F7472;
--chroma-teal-light: #3E8A88;
--chroma-rose: #86465B;
--chroma-rose-light: #7F2D43;
--chroma-steel: #3E6288;
+ --seam: #E0DAC9;
+ --rule: #BDB5A0;
+ --text-faint: #8D866F;
+ --mute: #837010;
+ --solo: #3E6288;
+ --viz-ink: #332E26;
+ --viz-grid: #DDD7C6;
--track1: #328140;
--track2: #306F53;
--track3: #256464;
@@ -147,157 +357,209 @@
--track6: #4B4082;
--track7: #7F3450;
--track8: #6C752C;
- --track9: #4D7A5D;
- --return-a: #4D7A5D;
+ --track9: #598C69;
+ --return-a: #598C69;
--return-b: #3E6A4D;
- --master: #A87415;
- --sunken: inset 0 1px 0 rgba(0,0,0,.12);
- --raised: inset 0 1px 0 rgba(255,255,255,.4);
+ --master: #746D5C;
+ --surface-hover-clear: rgba(231,225,208,0.000);
+ --danger-subtle: rgba(177,62,51,0.200);
+ --shadow-raised: inset 0 1px 0 0 rgba(255,255,255,0.400);
+ --shadow-sunken: inset 0 0 0 1px #BDB5A0;
+ --shadow-popover: 0 0 0 1px #E0DAC9, 0 10px 28px 0 rgba(26,21,14,0.220);
+ --shadow-modal: 0 0 0 1px #E0DAC9, 0 24px 64px 0 rgba(26,21,14,0.251);
+ --ink-on-mute: #FFFFFF;
+ --ink-on-solo: #FFFFFF;
+ --ink-on-record: #FFFFFF;
+ --t0-body: #328140; --t0-band: #346938; --t0-ink: #FFFFFF; --t0-cont: #365331;
+ --t1-body: #306F53; --t1-band: #335C45; --t1-ink: #FFFFFF; --t1-cont: #354B39;
+ --t2-body: #256464; --t2-band: #2B5551; --t2-ink: #FFFFFF; --t2-cont: #314740;
+ --t3-body: #317187; --t3-band: #335E6A; --t3-ink: #FFFFFF; --t3-cont: #364C4F;
+ --t4-body: #985127; --t4-band: #7B4727; --t4-ink: #FFFFFF; --t4-cont: #613F27;
+ --t5-body: #4B4082; --t5-band: #453B66; --t5-ink: #FFFFFF; --t5-cont: #41374D;
+ --t6-body: #7F3450; --t6-band: #6A3343; --t6-ink: #FFFFFF; --t6-cont: #563238;
+ --t7-body: #6C752C; --t7-band: #5D602A; --t7-ink: #FFFFFF; --t7-cont: #4F4E29;
+ --t8-body: #598C69; --t8-band: #4F7155; --t8-ink: #FFFFFF; --t8-cont: #475742;
color-scheme: light;
}
+
*{box-sizing:border-box}
-html,body{margin:0;background:var(--gutter);color:var(--text-primary);font:400 13px/1.55 var(--font-ui);-webkit-font-smoothing:antialiased}
+html,body{margin:0;background:var(--bg-app);color:var(--text-primary);font:400 12px/1.5 var(--font-ui);-webkit-font-smoothing:antialiased}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
code{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary)}
-a{color:var(--accent-hover)}
+a{color:var(--accent-bright)}
.page{max-width:1120px;margin:0 auto;padding:0 20px 80px}
-header.mast{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;padding:14px 20px;margin:0 -20px 12px;background:var(--gutter);border-bottom:1px solid var(--border-default)}
+header.mast{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;height:44px;padding:0 20px;margin:0 -20px 12px;background:var(--panel);border-bottom:1px solid var(--seam)}
.mast h1{font:600 13px/1 var(--font-ui);color:var(--text-heading);margin:0}
-.mast .eyebrow{margin:0}
+.mast .eyebrow{margin:0 0 3px}
.mast nav{display:flex;gap:14px;flex-wrap:wrap;margin-left:8px}
-.mast nav a{color:var(--text-secondary);text-decoration:none;font-size:11px;font-weight:500}
+.mast nav a{color:var(--text-secondary);text-decoration:none;font-size:12px;font-weight:500}
.mast nav a:hover{color:var(--text-primary)}
.spacer{flex:1}
-.eyebrow{font:500 9px/1 var(--font-mono);letter-spacing:.18em;text-transform:uppercase;color:var(--accent-dim);margin:0 0 8px}
-section{background:var(--panel);border:1px solid var(--border-default);border-radius:var(--r-panel);padding:20px;margin:12px 0}
-h2{font:600 26px/1.1 var(--font-ui);letter-spacing:-.015em;color:var(--text-heading);margin:0 0 8px}
-h3{font:700 10px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--text-tertiary);margin:22px 0 10px}
+.eyebrow{font:400 10px/1 var(--font-mono);color:var(--text-muted);margin:0 0 8px}
+section{background:var(--panel);border:1px solid var(--seam);border-radius:var(--r-control);padding:20px;margin:12px 0}
+h2{font:600 13px/1.3 var(--font-ui);color:var(--text-heading);margin:0 0 8px}
+h3{font:600 11px/1 var(--font-ui);color:var(--text-muted);margin:22px 0 10px}
p{color:var(--text-secondary);max-width:72ch;margin:0 0 10px}
-.lead{color:var(--text-muted)}
-/* segmented */
-.seg{display:inline-flex;gap:2px;padding:3px;height:30px;background:var(--bg-sunken);border:1px solid var(--hairline);border-radius:var(--r-tile);box-shadow:var(--sunken)}
-.seg button{all:unset;cursor:pointer;height:22px;padding:0 10px;border-radius:var(--r-badge);font:500 11px/22px var(--font-ui);color:var(--text-secondary)}
-.seg button[aria-pressed="true"]{background:var(--accent);color:var(--text-on-accent)}
-.seg--device button{font-size:9px;height:18px;line-height:18px;padding:0 7px}
-.seg--device{height:24px}
+.lead{color:var(--text-secondary)}
+/* segmented group: raised keys butted on 1px seams; only the outer corners round */
+.seg{display:inline-flex;gap:1px;background:var(--seam);border:1px solid var(--seam);border-radius:var(--r-control);overflow:hidden;vertical-align:middle}
+.seg button{all:unset;cursor:pointer;height:24px;padding:0 10px;background:var(--surface-raised);box-shadow:var(--shadow-raised);font:500 12px/24px var(--font-ui);color:var(--text-secondary)}
+.seg button:hover{background:var(--surface-hover)}
+.seg button[aria-pressed="true"]{background:var(--accent);color:var(--text-on-accent);font-weight:600;box-shadow:none}
+/* device segments: a well strip with a rule edge */
+.seg--device{gap:0;padding:1px;background:var(--bg-sunken);border-color:var(--rule)}
+.seg--device button{height:18px;line-height:18px;padding:0 7px;font-size:9px;background:transparent;box-shadow:none;border-radius:var(--r-badge)}
/* rules */
.rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}
-.rule{background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--r-tile);padding:12px 14px}
-.rule b{display:block;color:var(--text-primary);font-weight:600;margin-bottom:4px}
+.rule{background:var(--surface-raised);border:1px solid var(--seam);border-radius:var(--r-control);padding:10px 12px}
+.rule b{display:block;color:var(--text-primary);font-weight:600;margin-bottom:3px}
.rule span{color:var(--text-secondary)}
/* swatches */
.swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
-.sw{all:unset;cursor:pointer;display:grid;grid-template-columns:36px 1fr auto;grid-template-areas:"chip name hex" "chip key key" "chip use use";column-gap:10px;padding:8px;border-radius:var(--r-tile);background:var(--surface-card);border:1px solid var(--border-default)}
-.sw:hover{background:var(--surface-hover);border-color:var(--border-strong)}
-.sw__chip{grid-area:chip;border-radius:var(--r-control);border:1px solid var(--border-strong);min-height:48px}
+.sw{all:unset;cursor:pointer;display:grid;grid-template-columns:36px 1fr auto;grid-template-areas:"chip name hex" "chip key key" "chip use use";column-gap:10px;padding:8px;border-radius:var(--r-control);background:var(--surface-raised);border:1px solid var(--seam)}
+.sw:hover{background:var(--surface-hover)}
+.sw__chip{grid-area:chip;border-radius:var(--r-clip);box-shadow:0 0 0 1px var(--rule);min-height:48px}
.sw__name{grid-area:name;font-weight:600;color:var(--text-primary)}
.sw__key{grid-area:key;font-size:10px;color:var(--text-muted)}
.sw__hex{grid-area:hex;font-size:10px;color:var(--text-secondary)}
.sw__use{grid-area:use;font-size:11px;color:var(--text-muted)}
-.sw.copied .sw__hex{color:var(--accent-hover)}
+.sw.copied .sw__hex{color:var(--accent-bright)}
/* tables */
.tbl{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:12px}
-th{text-align:left;font:700 9px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--text-tertiary);padding:8px 10px;border-bottom:1px solid var(--border-default)}
-td{padding:7px 10px;border-bottom:1px solid var(--hairline);color:var(--text-secondary);vertical-align:middle}
+th{text-align:left;font:600 11px/1 var(--font-ui);color:var(--text-muted);padding:8px 10px;border-bottom:1px solid var(--rule)}
+td{padding:7px 10px;border-bottom:1px solid var(--rule);color:var(--text-secondary);vertical-align:middle}
td:first-child{color:var(--text-primary)}
/* type */
-.spec{display:grid;grid-template-columns:200px 1fr;gap:6px 16px;align-items:baseline}
+.spec{display:grid;grid-template-columns:220px 1fr;gap:6px 16px;align-items:baseline}
.spec .k{font:400 10px/1.4 var(--font-mono);color:var(--text-muted)}
/* geometry */
.radii{display:flex;flex-wrap:wrap;gap:14px}
.radius{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--text-secondary)}
-.radius i{display:block;width:56px;height:40px;background:var(--surface-raised);border:1px solid var(--border-strong)}
-.depth{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
-.depth div{height:84px;border-radius:var(--r-panel);padding:10px;font-size:11px;color:var(--text-secondary)}
+.radius i{display:block;width:56px;height:40px;background:var(--surface-raised);border:1px solid var(--seam);box-shadow:var(--shadow-raised)}
+.depth{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding:18px;background:var(--bg-app);border:1px solid var(--seam);border-radius:var(--r-control)}
+.depth div{height:84px;padding:10px;font-size:11px;color:var(--text-secondary)}
/* controls */
.row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:6px 0}
-.demo{background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--r-body);padding:16px}
+.demo{background:var(--panel);border:1px solid var(--seam);border-radius:var(--r-body);padding:16px}
.knob{display:block}
.knobs{display:flex;gap:22px;align-items:flex-end}
-.knobs figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;color:var(--text-muted)}
+.knobs figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}
.cell{display:flex;flex-direction:column;align-items:center;width:53px}
-.cell__label{font:700 7px/9px var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--text-tertiary)}
-.cell__value{font-size:7px;line-height:10px;color:var(--text-secondary)}
-.cell--hot .cell__label,.cell--hot .cell__value{color:var(--accent-bright)}
+.cell__label{font:500 8px/9px var(--font-ui);color:var(--text-secondary);white-space:nowrap}
+.cell__value{font-size:8px;line-height:10px;color:var(--text-primary)}
+.cell--mod .cell__label{color:var(--text-primary)}
.cell--dim .cell__label,.cell--dim .cell__value{color:var(--text-disabled)}
-.switch{display:inline-flex;align-items:center;gap:6px;font:700 7px/1 var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--text-tertiary)}
-.switch i{position:relative;width:18px;height:10px;border-radius:5px;background:var(--track-off)}
-.switch i::after{content:"";position:absolute;top:1.5px;left:1.5px;width:7px;height:7px;border-radius:50%;background:var(--text-tertiary)}
+.switch{display:inline-flex;align-items:center;gap:5px;font:500 8px/1 var(--font-ui);color:var(--text-secondary)}
+.switch i{position:relative;width:18px;height:10px;border-radius:var(--r-clip);background:var(--track-off)}
+.switch i::after{content:"";position:absolute;top:1.5px;left:1.5px;width:7px;height:7px;border-radius:1.5px;background:var(--text-tertiary)}
.switch.on i{background:var(--accent)}
.switch.on i::after{left:9.5px;background:var(--panel)}
-.switch.on{color:var(--text-secondary)}
-.chip{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 9px;border-radius:10px;border:1px solid var(--border-default);background:var(--surface-raised);font:500 11px/1 var(--font-ui);color:var(--text-strong)}
+.switch.on{color:var(--text-primary)}
+.chip{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 9px;border-radius:var(--r-pill);border:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised);font:400 11px/1 var(--font-ui);color:var(--text-primary)}
.chip i{width:6px;height:6px;border-radius:50%}
-.chip.on{background:var(--accent-subtle);border-color:var(--border-brass);color:var(--accent-hover)}
+.chip.on{background:var(--accent);border-color:var(--accent);color:var(--text-on-accent);box-shadow:none}
.slider{display:grid;grid-template-columns:70px 1fr 42px;align-items:center;gap:8px;width:280px;height:18px}
-.slider span:first-child{font:700 8px/1 var(--font-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary)}
+.slider span:first-child{font:500 9px/1 var(--font-ui);color:var(--text-secondary)}
.slider span:last-child{font:400 9px/1 var(--font-mono);color:var(--text-primary);text-align:right}
.track{position:relative;height:3px;border-radius:var(--r-clip);background:var(--bg-sunken)}
-.track b{position:absolute;left:0;top:0;bottom:0;border-radius:var(--r-clip);background:var(--accent)}
-.track u{position:absolute;top:-2px;width:6px;height:7px;border-radius:var(--r-clip);background:var(--accent-bright);margin-left:-3px}
-.slider.dim .track b{background:var(--border-strong)} .slider.dim .track u{background:var(--text-tertiary)} .slider.dim span:first-child{color:var(--text-disabled)}
-.btn{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:var(--r-control);border:1px solid var(--border-default);background:var(--surface-raised);box-shadow:var(--raised);font:500 11px/1 var(--font-ui);color:var(--text-strong)}
-.btn.hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text-primary)}
-.btn.pressed{background:var(--bg-sunken);box-shadow:none;color:var(--accent-deep)}
-.btn.on{background:var(--accent-subtle);border-color:var(--border-brass);color:var(--accent-hover)}
-.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--text-on-accent);box-shadow:none}
-.btn.off{background:var(--panel);border-color:var(--hairline);color:var(--text-disabled);box-shadow:none}
-.field{display:inline-flex;align-items:center;gap:8px;height:26px;width:220px;padding:0 9px;border-radius:var(--r-tile);border:1px solid var(--hairline);background:var(--bg-sunken);box-shadow:var(--sunken);font-size:11px;color:var(--text-disabled)}
-.field.focus{border-color:var(--border-brass);color:var(--text-primary)}
-.btn small,.states small{display:block}
-.states{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
-.states figure{margin:0;display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--text-muted)}
-.states figure .btn{align-self:flex-start}
-.transport+.note{margin-top:8px}
+.track b{position:absolute;left:0;top:0;bottom:0;border-radius:var(--r-clip);background:var(--viz-ink)}
+.track u{position:absolute;top:-2px;width:6px;height:7px;border-radius:var(--r-clip);background:var(--text-primary);margin-left:-3px}
+.slider.live .track b{background:var(--accent)} .slider.live .track u{background:var(--accent-bright)}
+.slider.dim .track b{background:var(--rule)} .slider.dim .track u{background:var(--text-tertiary)} .slider.dim span{color:var(--text-disabled)}
+.btn{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:var(--r-control);border:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised);font:500 12px/1 var(--font-ui);color:var(--text-primary)}
+.btn.hover{background:var(--surface-hover)}
+.btn.pressed{background:var(--bg-sunken);box-shadow:none}
+.btn.on{background:var(--accent);border-color:var(--accent);color:var(--text-on-accent);box-shadow:none}
+.btn.primary{background:var(--surface-hover);color:var(--text-heading);font-weight:600}
+.btn.off{background:var(--panel);color:var(--text-disabled);box-shadow:none}
+.btn.ghost{background:transparent;border-color:transparent;box-shadow:none}
+.field{display:inline-flex;align-items:center;gap:8px;height:26px;width:220px;padding:0 8px;border-radius:var(--r-control);background:var(--bg-sunken);box-shadow:var(--shadow-sunken);font-size:12px;color:var(--text-tertiary)}
+.field.focus{box-shadow:inset 0 0 0 1px var(--accent);color:var(--text-primary)}
+.states{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
+.states figure{margin:0;display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--text-muted)}
+.states figure>*:first-child{align-self:flex-start}
+.listrow{display:flex;align-items:center;gap:8px;width:150px;height:26px;padding:0 8px;font-size:12px;color:var(--text-secondary);border-radius:var(--r-clip)}
+.listrow.sel{background:var(--surface-selected);color:var(--text-primary);box-shadow:inset 2px 0 0 var(--accent)}
+.tabs{display:flex;gap:14px;height:26px;align-items:stretch}
+.tabs span{display:flex;align-items:center;font:500 12px/1 var(--font-ui);color:var(--text-secondary)}
+.tabs span.sel{color:var(--text-primary);box-shadow:inset 0 -2px 0 var(--accent)}
+.toggles{display:inline-flex;gap:3px}
+.toggles b{display:grid;place-items:center;width:20px;height:18px;border-radius:var(--r-badge);border:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised);font:600 9px/1 var(--font-ui);color:var(--text-secondary)}
+.toggles b.m{background:var(--mute);border-color:var(--mute);box-shadow:none}
+.toggles b.s{background:var(--solo);border-color:var(--solo);box-shadow:none}
+.toggles b.r{background:var(--record);border-color:var(--record);box-shadow:none}
+.toggles .disc{width:7px;height:7px;border-radius:50%;background:var(--record)}
+/* menu: a raised popover with a seam ring; hover a full accent fill */
+.menu{display:inline-flex;flex-direction:column;width:200px;padding:4px;background:var(--surface-raised);border:1px solid var(--seam);border-radius:var(--r-control)}
+.menu span{display:flex;justify-content:space-between;height:24px;align-items:center;padding:0 8px;border-radius:var(--r-clip);font-size:12px;color:var(--text-primary)}
+.menu span small{font-size:12px;color:var(--text-muted)}
+.menu span.hot{background:var(--accent);color:var(--text-on-accent)} .menu span.hot small{color:var(--text-on-accent)}
+.menu hr{border:0;height:1px;background:var(--rule);margin:4px}
/* transport */
-.transport{display:flex;align-items:center;gap:14px;height:60px;padding:0 14px;background:var(--bg-sunken);border:1px solid var(--border-default);border-radius:var(--r-panel);overflow-x:auto}
-.transport .seg{background:var(--surface-card);border:0;box-shadow:none;padding:3px}
-.console{flex:none;display:flex;align-items:center;gap:5px;height:42px;padding:0 14px 0 12px;background:var(--surface-abyss);border:1px solid var(--border-default);border-radius:var(--r-panel);box-shadow:var(--sunken)}
-.console .vr{margin:0 7px}
-.tp{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:var(--r-tile);background:var(--surface-raised);border:1px solid var(--border-strong);box-shadow:var(--raised)}
-.tp.play{width:40px}
-.tp.play.on{background:var(--accent);border-color:var(--accent);box-shadow:none}
+.transport{display:flex;align-items:center;gap:10px;height:44px;padding:0 8px;background:var(--panel);border-bottom:1px solid var(--seam);overflow-x:auto}
+.transport .name{flex:none;font:600 13px/1 var(--font-ui);color:var(--text-primary)}
+.console{flex:none;display:flex;align-items:center;gap:10px;height:30px;padding:0 8px 0 2px;background:var(--bg-sunken);box-shadow:var(--shadow-sunken);border-radius:var(--r-control)}
+.keys{display:flex;gap:1px}
+.tp{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:var(--r-tile);background:var(--surface-raised);border:1px solid var(--seam);box-shadow:var(--shadow-raised)}
+.tp.play{width:36px}
+.tp.on{background:var(--accent);border-color:var(--accent);box-shadow:none}
.tp .stop{width:9px;height:9px;border-radius:1px;background:var(--text-strong)}
.tp .play-tri{width:0;height:0;border-left:10px solid var(--text-strong);border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}
-.tp.play.on .play-tri{border-left-color:var(--text-on-accent)}
+.tp.on .play-tri{border-left-color:var(--text-on-accent)}
.tp .rec{width:10px;height:10px;border-radius:50%;background:var(--record)}
-.tp.rec-on{background:var(--record);border-color:var(--record)} .tp.rec-on .rec{background:var(--record-ink)}
-.readout{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px}
-.readout b{font:500 13px/1 var(--font-mono);color:var(--accent-bright)}
-.readout b.n{color:var(--text-primary)}
-.readout span{font:700 7px/1 var(--font-ui);letter-spacing:.12em;color:var(--text-tertiary)}
-.vr{flex:none;width:1px;height:24px;background:var(--border-default)}
+.tp.rec-on{background:var(--record);border-color:var(--record);box-shadow:none} .tp.rec-on .rec{background:var(--record-ink)}
+.tp .met{width:10px;height:12px;border:1.5px solid var(--text-strong);border-bottom-width:2px;clip-path:polygon(30% 0,70% 0,100% 100%,0 100%)}
+.tp.on .met{border-color:var(--text-on-accent)}
+.pos{display:flex;align-items:center;gap:6px}
+.pos b{font:400 14px/1 var(--font-mono);letter-spacing:.02em;color:var(--text-primary)}
+.unit{font:500 10px/1 var(--font-ui);color:var(--text-muted)}
+.well{flex:none;display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 8px;background:var(--bg-sunken);box-shadow:var(--shadow-sunken);border-radius:var(--r-control)}
+.well b{font:400 13px/1 var(--font-mono);color:var(--text-primary)}
+.loop{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:var(--r-control);background:var(--accent);color:var(--text-on-accent);font:400 11px/1 var(--font-mono)}
+.loop .unit{color:var(--text-on-accent)}
+.vr{flex:none;width:1px;height:18px;background:var(--rule)}
/* graph window */
-.graph{background:var(--bg-sunken);border:1px solid var(--hairline);border-radius:var(--r-control);position:relative}
-.graph .axis{position:absolute;font:400 7px/1 var(--font-mono);color:var(--text-axis)}
-.graph .title{position:absolute;left:6px;top:5px;font:700 8px/1 var(--font-ui);letter-spacing:.08em;color:var(--text-tertiary)}
+.graph{background:var(--bg-sunken);box-shadow:inset 0 0 0 1px var(--rule);border-radius:var(--r-control);position:relative}
+.graph .axis{position:absolute;font:400 7.5px/1 var(--font-mono);color:var(--text-axis)}
+.graph .title{position:absolute;left:6px;top:5px;font:500 8px/1 var(--font-ui);color:var(--text-muted)}
.meters{display:flex;gap:5px;align-items:flex-end;height:120px}
-.meter{position:relative;width:11px;height:120px;border-radius:var(--r-clip);background:var(--bg-sunken);overflow:hidden}
+.meter{position:relative;width:11px;height:120px;border-radius:var(--r-clip);background:var(--bg-sunken);box-shadow:inset 0 0 0 1px var(--rule);overflow:hidden}
.meter i{position:absolute;left:0;right:0;bottom:0}
+/* clips */
+.lane{display:flex;gap:2px;align-items:center;height:64px;padding:0 6px;background:var(--bg-app);border:1px solid var(--seam);border-radius:var(--r-control);overflow-x:auto;position:relative}
+.clip{position:relative;flex:none;height:60px;border-radius:var(--r-clip);background:var(--c-body);overflow:hidden}
+.clip b{display:block;height:12px;padding:0 5px;background:var(--c-band);color:var(--c-ink);font:600 9.5px/12px var(--font-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+.clip i{position:absolute;width:8px;height:3px;border-radius:1px;background:var(--c-cont)}
+.clip.sel b{background:var(--accent);color:var(--text-on-accent)}
+.clip.sel{box-shadow:inset 0 0 0 1px var(--accent)}
+.playhead{position:absolute;top:0;bottom:0;width:1px;background:var(--accent)}
/* card */
-.card{width:700px;height:260px;background:var(--bg-app);border:1px solid var(--border-default);border-radius:var(--r-body);overflow:hidden;display:grid;grid-template-rows:22px 1fr}
-.card__head{display:flex;align-items:center;gap:8px;padding:0 8px;border-bottom:1px solid var(--border-default);background:var(--panel)}
-.card__name{font:600 12px/1 var(--font-ui);color:var(--text-primary)}
-.preset{margin-left:auto;display:inline-flex;align-items:stretch;height:18px;border:1px solid var(--hairline);border-radius:var(--r-control);background:var(--bg-sunken);overflow:hidden;font-size:11px}
+.card{width:700px;height:260px;background:var(--panel);border:1px solid var(--seam);border-radius:var(--r-body);overflow:hidden;display:grid;grid-template-rows:22px 1fr}
+.card__head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:0 8px;border-bottom:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised)}
+.card__name{font:600 12px/1 var(--font-ui);color:var(--text-primary);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
+.preset{display:inline-flex;align-items:stretch;height:18px;border-radius:var(--r-control);background:var(--bg-sunken);box-shadow:var(--shadow-sunken);overflow:hidden;font-size:11px}
.preset i{font-style:normal;width:18px;display:grid;place-items:center;color:var(--text-tertiary)}
-.preset b{font-weight:500;width:132px;padding:0 7px;border-left:1px solid var(--hairline);border-right:1px solid var(--hairline);display:flex;align-items:center;color:var(--text-primary)}
-.card__badge{margin-left:auto;font:500 9px/1 var(--font-mono);letter-spacing:.12em;color:var(--text-tertiary)}
+.preset b{font-weight:500;width:132px;padding:0 7px;border-left:1px solid var(--rule);border-right:1px solid var(--rule);display:flex;align-items:center;color:var(--text-primary)}
+.card__badge{font:400 10px/1 var(--font-mono);color:var(--text-muted)}
+.card__right{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.card__body{display:grid;grid-template-columns:150px 1fr 150px;gap:5px;padding:6px}
-.sect{background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--r-panel);padding:6px 8px;display:flex;flex-direction:column;gap:6px;min-width:0}
-.sect h5{margin:0;font:700 9px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--text-tertiary)}
-.anat{position:relative;display:inline-block}
+.sect{padding:6px 8px;display:flex;flex-direction:column;gap:6px;min-width:0}
+.sect+.sect{border-left:1px solid var(--rule)}
+.sect h5{margin:0;font:600 10.5px/1 var(--font-ui);color:var(--text-muted)}
.scroll{overflow-x:auto;padding-bottom:4px}
.note{font-size:11px;color:var(--text-muted)}
/* shell */
-.shell{display:grid;grid-template-rows:24px 30px 1fr 14px;gap:0;height:260px;border:1px solid var(--border-default);border-radius:var(--r-body);overflow:hidden;background:var(--gutter);font:700 9px/1 var(--font-ui);letter-spacing:.12em;color:var(--text-tertiary)}
+.shell{display:grid;grid-template-rows:20px 28px 1fr 22px 70px 16px;gap:1px;height:300px;border:1px solid var(--seam);border-radius:var(--r-control);overflow:hidden;background:var(--seam);font:500 11px/1 var(--font-ui);color:var(--text-muted)}
.shell>div{display:flex;align-items:center;padding:0 10px}
-.shell .h{background:var(--bg-sunken);justify-content:center;color:var(--text-heading);letter-spacing:0;font:600 11px/1 var(--font-ui);border-bottom:1px solid var(--border-default)}
-.shell .t{background:var(--surface-abyss);border-bottom:1px solid var(--border-default)}
-.shell .b{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:12px;align-items:stretch}
-.shell .b div{border-radius:var(--r-panel);border:1px solid var(--border-default);display:grid;place-items:center}
-.shell .b div:first-child{background:var(--panel)} .shell .b div:last-child{background:var(--bg-sunken)}
-.shell .s{background:var(--bg-sunken);border-top:1px solid var(--border-default)}
+.shell .h{background:var(--bg-app);justify-content:center;color:var(--text-primary);font-weight:600}
+.shell .t{background:var(--panel)}
+.shell .b{display:grid;grid-template-columns:170px 1fr;gap:1px;padding:0;align-items:stretch;background:var(--seam)}
+.shell .b div{display:grid;place-items:center}
+.shell .b div:first-child{background:var(--panel)} .shell .b div:last-child{background:var(--bg-app)}
+.shell .d{background:var(--panel)}
+.shell .db{background:var(--bg-app)}
+.shell .s{background:var(--bg-app);font-weight:400;color:var(--text-secondary)}
ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{margin:3px 0}
@media (max-width:760px){.spec{grid-template-columns:1fr} .mast nav{display:none}}
</style>
@@ -305,26 +567,29 @@ ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{mar
<body>
<div class="page">
<header class="mast">
- <div><p class="eyebrow">Nota · design</p><h1>Ember</h1></div>
+ <div><p class="eyebrow">Nota · design</p><h1>Studio</h1></div>
<nav><a href="#rules">Rules</a><a href="#colour">Colour</a><a href="#type">Type</a><a href="#geometry">Geometry</a><a href="#controls">Controls</a><a href="#states">States</a><a href="#graphs">Graphs</a><a href="#cards">Cards</a><a href="#shell">Shell</a></nav>
<span class="spacer"></span>
- <div class="seg" role="group" aria-label="Variant"><button data-v="graphite" aria-pressed="true">Graphite</button><button data-v="paper" aria-pressed="false">Paper</button></div>
+ <div class="seg" role="group" aria-label="Colour theme"><button data-v="dark" aria-pressed="true">Studio Dark</button><button data-v="light" aria-pressed="false">Studio Light</button><button data-v="ember-graphite" aria-pressed="false">Ember Graphite</button><button data-v="ember-paper" aria-pressed="false">Ember Paper</button></div>
</header>
<section id="rules">
<p class="eyebrow">01 · Foundation</p>
<h2>Rules</h2>
- <p class="lead">The Nota Design Almanac, as the app implements it. <a href="DESIGN.md">DESIGN.md</a> is the text version with every value, the tests that enforce it and the accepted departures.</p>
+ <p class="lead">Nota's design language: the work carries the colour, the interface steps back, and one accent marks what is live or chosen. <a href="DESIGN.md">DESIGN.md</a> is the text version with every value, the tests that enforce it and the accepted exceptions.</p>
<div class="rules">
- <div class="rule"><b>One accent</b><span>Brass means “active, selected, changed”. There is no second accent.</span></div>
- <div class="rule"><b>Semantics only where they apply</b><span>Red is recording and overload. Green and yellow are meter zones and live signal.</span></div>
- <div class="rule"><b>Chromas live inside graphs</b><span>Teal, rose and steel separate sources in a visualisation — never on buttons, never as state.</span></div>
- <div class="rule"><b>Flat material</b><span>No gradients, glow or texture. Depth is lightness plus a hairline, three levels at most.</span></div>
- <div class="rule"><b>Two faces, one split</b><span>Geist for names and words, Geist Mono for measurements. Nothing under 7 px.</span></div>
- <div class="rule"><b>One control, many sizes</b><span>Each control has one implementation; its value is always visible next to it.</span></div>
+ <div class="rule"><b>One accent: live or chosen</b><span>Orange is playing, selected, the playhead, the loop, a toggle that is on, menu hover, the power switch, and a value control while hovered or dragged. Nothing else.</span></div>
+ <div class="rule"><b>Resting values are neutral</b><span>Knob arcs, fader fills, curves and waveforms at rest are viz ink. A modulation arc keeps its source chroma.</span></div>
+ <div class="rule"><b>Semantics by purpose</b><span>Mute amber, solo blue, arm and record red. Green is positive status and the meter's safe range.</span></div>
+ <div class="rule"><b>Derived ink on solid fills</b><span>Text on an accent, mute, solo, arm or track-colour fill takes the ink with the higher contrast.</span></div>
+ <div class="rule"><b>Seam between, rule within</b><span>Panels and keys meet on the dark seam; items inside a panel are divided by the lighter rule.</span></div>
+ <div class="rule"><b>Flat docked, blur only floating</b><span>Depth is a tone step, a 1px seam and a faint top bevel. Only floating layers cast a blurred shadow.</span></div>
+ <div class="rule"><b>2 · 3 · 4 corners</b><span>2 for inner keys, rows, clips; 3 for controls and cards; 4 for modals; 0 for docked panels.</span></div>
+ <div class="rule"><b>Two faces, one split</b><span>Geist for words, Geist Mono for every number a user reads. Nothing under 7 px.</span></div>
+ <div class="rule"><b>No shouting</b><span>Sentence case, letter-spacing 0. Acronyms and units keep their case: LFO rate, Gain dB.</span></div>
<div class="rule"><b>State changes colour only</b><span>Never size, border width or position. Nothing moves on hover.</span></div>
<div class="rule"><b>Real time is not animated</b><span>Meters, playhead and spectra jump to the value.</span></div>
- <div class="rule"><b>Muted is an Ink step</b><span>Disabled and quiet text take the next Ink step. Opacity is not a state.</span></div>
+ <div class="rule"><b>Opacity is not a state</b><span>Muted and disabled take the next ink step.</span></div>
<div class="rule"><b>Numbers are set</b><span class="mono">−3.3 dB · 72 % · 3.2 k · 120.00</span></div>
</div>
</section>
@@ -333,83 +598,90 @@ ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{mar
<p class="eyebrow">02 · Colour</p>
<h2>Palette</h2>
<p>Click a swatch to copy its hex for the variant selected above. Values come straight from <code>NotaTheme.axaml</code>.</p>
- <h3>Surfaces · far to near</h3><div class="swatches"><button class="sw" data-dark="#0A0908" data-light="#D8D1BE" title="Copy hex"><span class="sw__chip" style="background:var(--surface-abyss)"></span><span class="sw__name">Void</span><code class="sw__key">Brush.SurfaceAbyss</code><span class="sw__hex mono"></span><span class="sw__use">Deepest recess — the transport strip</span></button><button class="sw" data-dark="#0B0A09" data-light="#DCD6C5" title="Copy hex"><span class="sw__chip" style="background:var(--bg-app)"></span><span class="sw__name">App</span><code class="sw__key">Brush.BgApp</code><span class="sw__hex mono"></span><span class="sw__use">Window ground, plugin body</span></button><button class="sw" data-dark="#0C0B09" data-light="#E0DAC9" title="Copy hex"><span class="sw__chip" style="background:var(--gutter)"></span><span class="sw__name">Gutter</span><code class="sw__key">Brush.Gutter</code><span class="sw__hex mono"></span><span class="sw__use">The gaps panels float in</span></button><button class="sw" data-dark="#100F0D" data-light="#E4DFD1" title="Copy hex"><span class="sw__chip" style="background:var(--bg-sunken)"></span><span class="sw__name">Well</span><code class="sw__key">Brush.BgSunken</code><span class="sw__hex mono"></span><span class="sw__use">Graph windows, fields, slider tracks</span></button><button class="sw" data-dark="#141310" data-light="#EAE5D7" title="Copy hex"><span class="sw__chip" style="background:var(--panel)"></span><span class="sw__name">Panel</span><code class="sw__key">Brush.Panel</code><span class="sw__hex mono"></span><span class="sw__use">Browser, headers, inspector</span></button><button class="sw" data-dark="#171613" data-light="#EFEADE" title="Copy hex"><span class="sw__chip" style="background:var(--surface-card)"></span><span class="sw__name">Card</span><code class="sw__key">Brush.SurfaceCard</code><span class="sw__hex mono"></span><span class="sw__use">A section inside a device</span></button><button class="sw" data-dark="#1C1A16" data-light="#F8F5EC" title="Copy hex"><span class="sw__chip" style="background:var(--surface-raised)"></span><span class="sw__name">Raised</span><code class="sw__key">Brush.SurfaceRaised</code><span class="sw__hex mono"></span><span class="sw__use">Button at rest</span></button><button class="sw" data-dark="#252219" data-light="#E7E1D0" title="Copy hex"><span class="sw__chip" style="background:var(--surface-hover)"></span><span class="sw__name">Hover</span><code class="sw__key">Brush.SurfaceHover</code><span class="sw__hex mono"></span><span class="sw__use">Hovered button or row</span></button><button class="sw" data-dark="#26231E" data-light="#DBD4C0" title="Copy hex"><span class="sw__chip" style="background:var(--track-off)"></span><span class="sw__name">Track off</span><code class="sw__key">Brush.TrackOff</code><span class="sw__hex mono"></span><span class="sw__use">Track of an off switch</span></button><button class="sw" data-dark="#241F17" data-light="#F2E4C4" title="Copy hex"><span class="sw__chip" style="background:var(--surface-selected)"></span><span class="sw__name">Brass Wash</span><code class="sw__key">Brush.SurfaceSelected</code><span class="sw__hex mono"></span><span class="sw__use">Selected row, engaged ground</span></button></div>
- <h3>Lines</h3><div class="swatches"><button class="sw" data-dark="#221F1A" data-light="#D5CFBE" title="Copy hex"><span class="sw__chip" style="background:var(--hairline)"></span><span class="sw__name">Hairline</span><code class="sw__key">Brush.Hairline</code><span class="sw__hex mono"></span><span class="sw__use">Row dividers, graph frame</span></button><button class="sw" data-dark="#2C2923" data-light="#D5CEBB" title="Copy hex"><span class="sw__chip" style="background:var(--border-default)"></span><span class="sw__name">Border</span><code class="sw__key">Brush.BorderDefault</code><span class="sw__hex mono"></span><span class="sw__use">Panel, button, field</span></button><button class="sw" data-dark="#3A362D" data-light="#BDB5A0" title="Copy hex"><span class="sw__chip" style="background:var(--border-strong)"></span><span class="sw__name">Border strong</span><code class="sw__key">Brush.BorderStrong</code><span class="sw__hex mono"></span><span class="sw__use">Knob cap, hovered border</span></button><button class="sw" data-dark="#6B5326" data-light="#C9A254" title="Copy hex"><span class="sw__chip" style="background:var(--border-brass)"></span><span class="sw__name">Border brass</span><code class="sw__key">Brush.BorderBrass</code><span class="sw__hex mono"></span><span class="sw__use">Engaged button, focus</span></button><button class="sw" data-dark="#1E1C18" data-light="#DED8C8" title="Copy hex"><span class="sw__chip" style="background:var(--grid-beat)"></span><span class="sw__name">Grid</span><code class="sw__key">Brush.GridBeat</code><span class="sw__hex mono"></span><span class="sw__use">Grid inside graphs</span></button><button class="sw" data-dark="#2A2721" data-light="#CFC8B4" title="Copy hex"><span class="sw__chip" style="background:var(--grid-bar)"></span><span class="sw__name">Grid bar</span><code class="sw__key">Brush.GridBar</code><span class="sw__hex mono"></span><span class="sw__use">Bar lines</span></button></div>
- <h3>Ink · eight steps</h3><div class="swatches"><button class="sw" data-dark="#F2EDE1" data-light="#1A150E" title="Copy hex"><span class="sw__chip" style="background:var(--text-heading)"></span><span class="sw__name">Ink 0</span><code class="sw__key">Brush.TextHeading</code><span class="sw__hex mono"></span><span class="sw__use">Page title, project name</span></button><button class="sw" data-dark="#E9E4D8" data-light="#241F17" title="Copy hex"><span class="sw__chip" style="background:var(--text-primary)"></span><span class="sw__name">Ink 1</span><code class="sw__key">Brush.TextPrimary</code><span class="sw__hex mono"></span><span class="sw__use">Names, values</span></button><button class="sw" data-dark="#C7C0B0" data-light="#3E382C" title="Copy hex"><span class="sw__chip" style="background:var(--text-strong)"></span><span class="sw__name">Ink 2</span><code class="sw__key">Brush.TextStrong</code><span class="sw__hex mono"></span><span class="sw__use">Button text, readouts</span></button><button class="sw" data-dark="#A39D8F" data-light="#5E5849" title="Copy hex"><span class="sw__chip" style="background:var(--text-secondary)"></span><span class="sw__name">Ink 3</span><code class="sw__key">Brush.TextSecondary</code><span class="sw__hex mono"></span><span class="sw__use">Inactive but readable</span></button><button class="sw" data-dark="#8D8779" data-light="#746D5C" title="Copy hex"><span class="sw__chip" style="background:var(--text-muted)"></span><span class="sw__name">Ink 4</span><code class="sw__key">Brush.TextMuted</code><span class="sw__hex mono"></span><span class="sw__use">Explanations, units</span></button><button class="sw" data-dark="#6E6A5E" data-light="#8A8474" title="Copy hex"><span class="sw__chip" style="background:var(--text-tertiary)"></span><span class="sw__name">Ink 5</span><code class="sw__key">Brush.TextTertiary</code><span class="sw__hex mono"></span><span class="sw__use">Caps labels, empty states</span></button><button class="sw" data-dark="#55514A" data-light="#9E9786" title="Copy hex"><span class="sw__chip" style="background:var(--text-disabled)"></span><span class="sw__name">Ink 6</span><code class="sw__key">Brush.TextDisabled</code><span class="sw__hex mono"></span><span class="sw__use">Placeholder, disabled</span></button><button class="sw" data-dark="#4A463D" data-light="#ADA694" title="Copy hex"><span class="sw__chip" style="background:var(--text-axis)"></span><span class="sw__name">Ink 7</span><code class="sw__key">Brush.TextAxis</code><span class="sw__hex mono"></span><span class="sw__use">Axis labels in graphs only</span></button></div>
- <h3>Brass · the only accent</h3><div class="swatches"><button class="sw" data-dark="#D8A03D" data-light="#A87415" title="Copy hex"><span class="sw__chip" style="background:var(--accent)"></span><span class="sw__name">Brass</span><code class="sw__key">Brush.Accent</code><span class="sw__hex mono"></span><span class="sw__use">Arc, fill, playhead, one solid button</span></button><button class="sw" data-dark="#F0C060" data-light="#744D07" title="Copy hex"><span class="sw__chip" style="background:var(--accent-bright)"></span><span class="sw__name">Brass Light</span><code class="sw__key">Brush.AccentBright</code><span class="sw__hex mono"></span><span class="sw__use">Pointer, modified label</span></button><button class="sw" data-dark="#E9BE6A" data-light="#8F6110" title="Copy hex"><span class="sw__chip" style="background:var(--accent-hover)"></span><span class="sw__name">Brass Hover</span><code class="sw__key">Brush.AccentHover</code><span class="sw__hex mono"></span><span class="sw__use">Engaged text</span></button><button class="sw" data-dark="#B08536" data-light="#7A5008" title="Copy hex"><span class="sw__chip" style="background:var(--accent-deep)"></span><span class="sw__name">Brass Deep</span><code class="sw__key">Brush.AccentDeep</code><span class="sw__hex mono"></span><span class="sw__use">Pressed</span></button><button class="sw" data-dark="#8A6B2E" data-light="#9C8034" title="Copy hex"><span class="sw__chip" style="background:var(--accent-dim)"></span><span class="sw__name">Brass Dim</span><code class="sw__key">Brush.AccentDim</code><span class="sw__hex mono"></span><span class="sw__use">Eyebrows, section marks</span></button><button class="sw" data-dark="#5E4A22" data-light="#D3B173" title="Copy hex"><span class="sw__chip" style="background:var(--accent-edge)"></span><span class="sw__name">Brass Edge</span><code class="sw__key">Brush.AccentEdge</code><span class="sw__hex mono"></span><span class="sw__use">Brass chip border</span></button></div>
- <h3>Semantics</h3><div class="swatches"><button class="sw" data-dark="#C25B44" data-light="#B54A32" title="Copy hex"><span class="sw__chip" style="background:var(--record)"></span><span class="sw__name">Record</span><code class="sw__key">Brush.Record</code><span class="sw__hex mono"></span><span class="sw__use">Active recording — the only red</span></button><button class="sw" data-dark="#F4E3DC" data-light="#FFF4EE" title="Copy hex"><span class="sw__chip" style="background:var(--record-ink)"></span><span class="sw__name">Record ink</span><code class="sw__key">Brush.RecordInk</code><span class="sw__hex mono"></span><span class="sw__use">Disc on engaged record</span></button><button class="sw" data-dark="#C2554A" data-light="#B13E33" title="Copy hex"><span class="sw__chip" style="background:var(--danger)"></span><span class="sw__name">Alert</span><code class="sw__key">Brush.Danger</code><span class="sw__hex mono"></span><span class="sw__use">Overload, clipping</span></button><button class="sw" data-dark="#E08A72" data-light="#A3391B" title="Copy hex"><span class="sw__chip" style="background:var(--danger-bright)"></span><span class="sw__name">Alert Light</span><code class="sw__key">Brush.DangerBright</code><span class="sw__hex mono"></span><span class="sw__use">Overload readout</span></button><button class="sw" data-dark="#D9C34C" data-light="#837010" title="Copy hex"><span class="sw__chip" style="background:var(--warning)"></span><span class="sw__name">Caution</span><code class="sw__key">Brush.Warning</code><span class="sw__hex mono"></span><span class="sw__use">Meter −6…0 dB</span></button><button class="sw" data-dark="#58B368" data-light="#2C7A3E" title="Copy hex"><span class="sw__chip" style="background:var(--success)"></span><span class="sw__name">Signal</span><code class="sw__key">Brush.Success</code><span class="sw__hex mono"></span><span class="sw__use">Working zone, live signal</span></button><button class="sw" data-dark="#7FB069" data-light="#609548" title="Copy hex"><span class="sw__chip" style="background:var(--success-dim)"></span><span class="sw__name">Signal Dim</span><code class="sw__key">Brush.SuccessDim</code><span class="sw__hex mono"></span><span class="sw__use">Input, metronome</span></button></div>
- <h3>Role chromas · inside graphs only, in this order</h3><div class="swatches"><button class="sw" data-dark="#D8A03D" data-light="#A87415" title="Copy hex"><span class="sw__chip" style="background:var(--accent)"></span><span class="sw__name">1 · Brass</span><code class="sw__key">Brush.Accent</code><span class="sw__hex mono"></span><span class="sw__use">Primary: left, mid, main</span></button><button class="sw" data-dark="#5B9E9C" data-light="#2F7472" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-teal)"></span><span class="sw__name">2 · Teal</span><code class="sw__key">Brush.ChromaTeal</code><span class="sw__hex mono"></span><span class="sw__use">Lows, early, input, modulation</span></button><button class="sw" data-dark="#B57286" data-light="#86465B" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-rose)"></span><span class="sw__name">3 · Rose</span><code class="sw__key">Brush.ChromaRose</code><span class="sw__hex mono"></span><span class="sw__use">Right, highs, tail</span></button><button class="sw" data-dark="#6D8FB5" data-light="#3E6288" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-steel)"></span><span class="sw__name">4 · Steel</span><code class="sw__key">Brush.ChromaSteel</code><span class="sw__hex mono"></span><span class="sw__use">Rare fourth layer</span></button><button class="sw" data-dark="#7FC0BE" data-light="#3E8A88" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-teal-light)"></span><span class="sw__name">Teal light</span><code class="sw__key">Brush.ChromaTealLight</code><span class="sw__hex mono"></span><span class="sw__use">Text on teal</span></button><button class="sw" data-dark="#D79BAB" data-light="#7F2D43" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-rose-light)"></span><span class="sw__name">Rose light</span><code class="sw__key">Brush.ChromaRoseLight</code><span class="sw__hex mono"></span><span class="sw__use">Text on rose</span></button></div>
- <h3>Track palette · nine roles</h3><div class="swatches"><button class="sw" data-dark="#58B368" data-light="#328140" title="Copy hex"><span class="sw__chip" style="background:var(--track1)"></span><span class="sw__name">Drums</span><code class="sw__key">Brush.Track1</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#4E9E7A" data-light="#306F53" title="Copy hex"><span class="sw__chip" style="background:var(--track2)"></span><span class="sw__name">Perc</span><code class="sw__key">Brush.Track2</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#3E8E8E" data-light="#256464" title="Copy hex"><span class="sw__chip" style="background:var(--track3)"></span><span class="sw__name">Bass</span><code class="sw__key">Brush.Track3</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#5AA0B8" data-light="#317187" title="Copy hex"><span class="sw__chip" style="background:var(--track4)"></span><span class="sw__name">Keys</span><code class="sw__key">Brush.Track4</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#C77F55" data-light="#985127" title="Copy hex"><span class="sw__chip" style="background:var(--track5)"></span><span class="sw__name">Texture</span><code class="sw__key">Brush.Track5</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#7A6FB0" data-light="#4B4082" title="Copy hex"><span class="sw__chip" style="background:var(--track6)"></span><span class="sw__name">FX</span><code class="sw__key">Brush.Track6</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#B05A7A" data-light="#7F3450" title="Copy hex"><span class="sw__chip" style="background:var(--track7)"></span><span class="sw__name">Brass</span><code class="sw__key">Brush.Track7</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#9AA64A" data-light="#6C752C" title="Copy hex"><span class="sw__chip" style="background:var(--track8)"></span><span class="sw__name">Vox</span><code class="sw__key">Brush.Track8</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-dark="#7FA88E" data-light="#4D7A5D" title="Copy hex"><span class="sw__chip" style="background:var(--track9)"></span><span class="sw__name">Return</span><code class="sw__key">Brush.Track9</code><span class="sw__hex mono"></span><span class="sw__use"></span></button></div>
+ <h3>Surfaces · well, ground, panel, raised</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#17181A&quot;, &quot;light&quot;: &quot;#D6D8DB&quot;, &quot;ember-graphite&quot;: &quot;#100F0D&quot;, &quot;ember-paper&quot;: &quot;#E4DFD1&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--bg-sunken)"></span><span class="sw__name">Well</span><code class="sw__key">Brush.BgSunken</code><span class="sw__hex mono"></span><span class="sw__use">Graph windows, fields, readouts, the console; pressed keys sink here</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#1E1F22&quot;, &quot;light&quot;: &quot;#C9CBCF&quot;, &quot;ember-graphite&quot;: &quot;#0B0A09&quot;, &quot;ember-paper&quot;: &quot;#DCD6C5&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--bg-app)"></span><span class="sw__name">Ground</span><code class="sw__key">Brush.BgApp</code><span class="sw__hex mono"></span><span class="sw__use">Window, title bar, arrangement, status line</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#222326&quot;, &quot;light&quot;: &quot;#C4C6CA&quot;, &quot;ember-graphite&quot;: &quot;#131210&quot;, &quot;ember-paper&quot;: &quot;#E7E2D4&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--lane-b)"></span><span class="sw__name">Ground, alternate</span><code class="sw__key">Brush.LaneB</code><span class="sw__hex mono"></span><span class="sw__use">Alternate arrangement lane</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#2B2D31&quot;, &quot;light&quot;: &quot;#E4E5E7&quot;, &quot;ember-graphite&quot;: &quot;#141310&quot;, &quot;ember-paper&quot;: &quot;#EAE5D7&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--panel)"></span><span class="sw__name">Panel</span><code class="sw__key">Brush.Panel</code><span class="sw__hex mono"></span><span class="sw__use">Transport row, browser, toolbars, device cards, mixer strips</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#34363B&quot;, &quot;light&quot;: &quot;#EEEFF1&quot;, &quot;ember-graphite&quot;: &quot;#1C1A16&quot;, &quot;ember-paper&quot;: &quot;#F8F5EC&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--surface-raised)"></span><span class="sw__name">Raised</span><code class="sw__key">Brush.SurfaceRaised</code><span class="sw__hex mono"></span><span class="sw__use">Keys at rest, card header, menus, tooltips</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#393C41&quot;, &quot;light&quot;: &quot;#F7F8F9&quot;, &quot;ember-graphite&quot;: &quot;#252219&quot;, &quot;ember-paper&quot;: &quot;#E7E1D0&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--surface-hover)"></span><span class="sw__name">Raised hover</span><code class="sw__key">Brush.SurfaceHover</code><span class="sw__hex mono"></span><span class="sw__use">Hover; the selected row, with an accent tick</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#4D3F2E&quot;, &quot;light&quot;: &quot;#E6D6C4&quot;, &quot;ember-graphite&quot;: &quot;#241F17&quot;, &quot;ember-paper&quot;: &quot;#F2E4C4&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--accent-subtle)"></span><span class="sw__name">Accent soft</span><code class="sw__key">Brush.AccentSubtle</code><span class="sw__hex mono"></span><span class="sw__use">16 % accent over the panel; nothing at rest uses it</span></button></div>
+ <h3>Lines · seam and rule</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#141517&quot;, &quot;light&quot;: &quot;#9DA0A6&quot;, &quot;ember-graphite&quot;: &quot;#0C0B09&quot;, &quot;ember-paper&quot;: &quot;#E0DAC9&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--seam)"></span><span class="sw__name">Seam</span><code class="sw__key">Brush.Seam</code><span class="sw__hex mono"></span><span class="sw__use">Between panels, around controls, between keys</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#45484E&quot;, &quot;light&quot;: &quot;#B3B6BB&quot;, &quot;ember-graphite&quot;: &quot;#3A362D&quot;, &quot;ember-paper&quot;: &quot;#BDB5A0&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--rule)"></span><span class="sw__name">Rule</span><code class="sw__key">Brush.Rule</code><span class="sw__hex mono"></span><span class="sw__use">Within a panel: separators, field edges, graph frame</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#BF7D22&quot;, &quot;light&quot;: &quot;#ECA54E&quot;, &quot;ember-graphite&quot;: &quot;#6B5326&quot;, &quot;ember-paper&quot;: &quot;#C9A254&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--border-brass)"></span><span class="sw__name">Accent line</span><code class="sw__key">Brush.BorderBrass</code><span class="sw__hex mono"></span><span class="sw__use">An accent stroke where a fill is too heavy</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#2A2C30&quot;, &quot;light&quot;: &quot;#BDC0C4&quot;, &quot;ember-graphite&quot;: &quot;#1E1C18&quot;, &quot;ember-paper&quot;: &quot;#DED8C8&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--grid-beat)"></span><span class="sw__name">Grid</span><code class="sw__key">Brush.GridBeat</code><span class="sw__hex mono"></span><span class="sw__use">Beat grid, zero axis</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#3A3C41&quot;, &quot;light&quot;: &quot;#ADB0B5&quot;, &quot;ember-graphite&quot;: &quot;#2A2721&quot;, &quot;ember-paper&quot;: &quot;#CFC8B4&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--grid-bar)"></span><span class="sw__name">Grid bar</span><code class="sw__key">Brush.GridBar</code><span class="sw__hex mono"></span><span class="sw__use">Bar lines</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#2E2F32&quot;, &quot;light&quot;: &quot;#C0C3C6&quot;, &quot;ember-graphite&quot;: &quot;#232019&quot;, &quot;ember-paper&quot;: &quot;#DDD7C6&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--viz-grid)"></span><span class="sw__name">Viz grid</span><code class="sw__key">Brush.VizGrid</code><span class="sw__hex mono"></span><span class="sw__use">Grid inside a graph window</span></button></div>
+ <h3>Ink · by importance</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#F4F5F6&quot;, &quot;light&quot;: &quot;#0E0F11&quot;, &quot;ember-graphite&quot;: &quot;#F2EDE1&quot;, &quot;ember-paper&quot;: &quot;#1A150E&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-heading)"></span><span class="sw__name">Ink 0</span><code class="sw__key">Brush.TextHeading</code><span class="sw__hex mono"></span><span class="sw__use">Modal and section titles</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#E8E9EB&quot;, &quot;light&quot;: &quot;#16171A&quot;, &quot;ember-graphite&quot;: &quot;#E9E4D8&quot;, &quot;ember-paper&quot;: &quot;#241F17&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-primary)"></span><span class="sw__name">Primary</span><code class="sw__key">Brush.TextPrimary</code><span class="sw__hex mono"></span><span class="sw__use">Names, values, button text</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#D4D6DA&quot;, &quot;light&quot;: &quot;#282A2E&quot;, &quot;ember-graphite&quot;: &quot;#C7C0B0&quot;, &quot;ember-paper&quot;: &quot;#3E382C&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-strong)"></span><span class="sw__name">Ink 2</span><code class="sw__key">Brush.TextStrong</code><span class="sw__hex mono"></span><span class="sw__use">Toggle-key text, transport glyphs</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#C0C4C9&quot;, &quot;light&quot;: &quot;#3A3D42&quot;, &quot;ember-graphite&quot;: &quot;#A39D8F&quot;, &quot;ember-paper&quot;: &quot;#5E5849&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-secondary)"></span><span class="sw__name">Secondary</span><code class="sw__key">Brush.TextSecondary</code><span class="sw__hex mono"></span><span class="sw__use">Labels, idle icons, metadata</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#A4A9B0&quot;, &quot;light&quot;: &quot;#4F535A&quot;, &quot;ember-graphite&quot;: &quot;#8F897C&quot;, &quot;ember-paper&quot;: &quot;#625B50&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-muted)"></span><span class="sw__name">Muted</span><code class="sw__key">Brush.TextMuted</code><span class="sw__hex mono"></span><span class="sw__use">Section labels, units, badges</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#92969D&quot;, &quot;light&quot;: &quot;#65696F&quot;, &quot;ember-graphite&quot;: &quot;#716D60&quot;, &quot;ember-paper&quot;: &quot;#7E786C&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-tertiary)"></span><span class="sw__name">Ink 5</span><code class="sw__key">Brush.TextTertiary</code><span class="sw__hex mono"></span><span class="sw__use">Row tags, placeholders, empty states</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#82868C&quot;, &quot;light&quot;: &quot;#797C81&quot;, &quot;ember-graphite&quot;: &quot;#646054&quot;, &quot;ember-paper&quot;: &quot;#8D866F&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-faint)"></span><span class="sw__name">Faint</span><code class="sw__key">Brush.TextFaint</code><span class="sw__hex mono"></span><span class="sw__use">Disabled controls; axis labels in graphs</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#D7D8DA&quot;, &quot;light&quot;: &quot;#252629&quot;, &quot;ember-graphite&quot;: &quot;#D8D3C8&quot;, &quot;ember-paper&quot;: &quot;#332E26&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--viz-ink)"></span><span class="sw__name">Viz ink</span><code class="sw__key">Brush.VizInk</code><span class="sw__hex mono"></span><span class="sw__use">A value at rest: arcs, fills, curves</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#17181A&quot;, &quot;light&quot;: &quot;#17181A&quot;, &quot;ember-graphite&quot;: &quot;#171613&quot;, &quot;ember-paper&quot;: &quot;#FFFBF2&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--text-on-accent)"></span><span class="sw__name">On accent</span><code class="sw__key">Brush.TextOnAccent</code><span class="sw__hex mono"></span><span class="sw__use">Text on the accent</span></button></div>
+ <h3>Accent · the only one</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#FF9F1C&quot;, &quot;light&quot;: &quot;#EF8A0C&quot;, &quot;ember-graphite&quot;: &quot;#D8A03D&quot;, &quot;ember-paper&quot;: &quot;#AD7716&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--accent)"></span><span class="sw__name">Accent</span><code class="sw__key">Brush.Accent</code><span class="sw__hex mono"></span><span class="sw__use">Playing, selected, playhead, loop, toggled on, live</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#FFB547&quot;, &quot;light&quot;: &quot;#C46A00&quot;, &quot;ember-graphite&quot;: &quot;#F0C060&quot;, &quot;ember-paper&quot;: &quot;#744D07&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--accent-bright)"></span><span class="sw__name">Accent glow</span><code class="sw__key">Brush.AccentBright</code><span class="sw__hex mono"></span><span class="sw__use">The accent as a line or text</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#C77612&quot;, &quot;light&quot;: &quot;#D47800&quot;, &quot;ember-graphite&quot;: &quot;#B08536&quot;, &quot;ember-paper&quot;: &quot;#7A5008&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--accent-deep)"></span><span class="sw__name">Pressed</span><code class="sw__key">Brush.AccentDeep</code><span class="sw__hex mono"></span><span class="sw__use">Pressed accent</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#C77612&quot;, &quot;light&quot;: &quot;#F7C27A&quot;, &quot;ember-graphite&quot;: &quot;#8A6B2E&quot;, &quot;ember-paper&quot;: &quot;#9C8034&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--accent-dim)"></span><span class="sw__name">Accent dim</span><code class="sw__key">Brush.AccentDim</code><span class="sw__hex mono"></span><span class="sw__use">The soft accent</span></button></div>
+ <h3>Semantics</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#F06A6E&quot;, &quot;light&quot;: &quot;#B3262C&quot;, &quot;ember-graphite&quot;: &quot;#BE563E&quot;, &quot;ember-paper&quot;: &quot;#B54A32&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--record)"></span><span class="sw__name">Record</span><code class="sw__key">Brush.Record</code><span class="sw__hex mono"></span><span class="sw__use">Record and arm, solid when on</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#FFFFFF&quot;, &quot;light&quot;: &quot;#FFFFFF&quot;, &quot;ember-graphite&quot;: &quot;#F4E3DC&quot;, &quot;ember-paper&quot;: &quot;#FFF4EE&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--record-ink)"></span><span class="sw__name">Record ink</span><code class="sw__key">Brush.RecordInk</code><span class="sw__hex mono"></span><span class="sw__use">Disc on an engaged record key</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#F06A6E&quot;, &quot;light&quot;: &quot;#B3262C&quot;, &quot;ember-graphite&quot;: &quot;#C2554A&quot;, &quot;ember-paper&quot;: &quot;#B13E33&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--danger)"></span><span class="sw__name">Error</span><code class="sw__key">Brush.Danger</code><span class="sw__hex mono"></span><span class="sw__use">Overload, clipping, error text</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#F58F92&quot;, &quot;light&quot;: &quot;#9C1F24&quot;, &quot;ember-graphite&quot;: &quot;#E08A72&quot;, &quot;ember-paper&quot;: &quot;#A3391B&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--danger-bright)"></span><span class="sw__name">Error light</span><code class="sw__key">Brush.DangerBright</code><span class="sw__hex mono"></span><span class="sw__use">Overload readout</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#F2B53C&quot;, &quot;light&quot;: &quot;#7A4F00&quot;, &quot;ember-graphite&quot;: &quot;#D9C34C&quot;, &quot;ember-paper&quot;: &quot;#837010&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--mute)"></span><span class="sw__name">Mute</span><code class="sw__key">Brush.Mute</code><span class="sw__hex mono"></span><span class="sw__use">Mute on — amber</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#6A9FD8&quot;, &quot;light&quot;: &quot;#3F78B8&quot;, &quot;ember-graphite&quot;: &quot;#6D8FB5&quot;, &quot;ember-paper&quot;: &quot;#3E6288&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--solo)"></span><span class="sw__name">Solo</span><code class="sw__key">Brush.Solo</code><span class="sw__hex mono"></span><span class="sw__use">Solo on — blue</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#F2B53C&quot;, &quot;light&quot;: &quot;#7A4F00&quot;, &quot;ember-graphite&quot;: &quot;#D9C34C&quot;, &quot;ember-paper&quot;: &quot;#837010&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--warning)"></span><span class="sw__name">Warning</span><code class="sw__key">Brush.Warning</code><span class="sw__hex mono"></span><span class="sw__use">Meter −6…0 dB</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#6CC673&quot;, &quot;light&quot;: &quot;#22692B&quot;, &quot;ember-graphite&quot;: &quot;#58B368&quot;, &quot;ember-paper&quot;: &quot;#2C7A3E&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--success)"></span><span class="sw__name">Green</span><code class="sw__key">Brush.Success</code><span class="sw__hex mono"></span><span class="sw__use">Meter safe range, positive status</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#3F8A45&quot;, &quot;light&quot;: &quot;#79B880&quot;, &quot;ember-graphite&quot;: &quot;#7FB069&quot;, &quot;ember-paper&quot;: &quot;#609548&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--success-dim)"></span><span class="sw__name">Green dim</span><code class="sw__key">Brush.SuccessDim</code><span class="sw__hex mono"></span><span class="sw__use">Input, metronome</span></button></div>
+ <h3>Graph chromas · inside graphs only, in this order</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#D7D8DA&quot;, &quot;light&quot;: &quot;#252629&quot;, &quot;ember-graphite&quot;: &quot;#D8D3C8&quot;, &quot;ember-paper&quot;: &quot;#332E26&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--viz-ink)"></span><span class="sw__name">1 · Viz ink</span><code class="sw__key">Brush.VizInk</code><span class="sw__hex mono"></span><span class="sw__use">Primary: left, mid, main</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#5FB3A8&quot;, &quot;light&quot;: &quot;#3A8A7F&quot;, &quot;ember-graphite&quot;: &quot;#5B9E9C&quot;, &quot;ember-paper&quot;: &quot;#2F7472&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-teal)"></span><span class="sw__name">2 · Teal</span><code class="sw__key">Brush.ChromaTeal</code><span class="sw__hex mono"></span><span class="sw__use">Lows, early, input, modulation</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#D77A8F&quot;, &quot;light&quot;: &quot;#B4566B&quot;, &quot;ember-graphite&quot;: &quot;#B57286&quot;, &quot;ember-paper&quot;: &quot;#86465B&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-rose)"></span><span class="sw__name">3 · Rose</span><code class="sw__key">Brush.ChromaRose</code><span class="sw__hex mono"></span><span class="sw__use">Right, highs, tail</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#6A9FD8&quot;, &quot;light&quot;: &quot;#3F78B8&quot;, &quot;ember-graphite&quot;: &quot;#6D8FB5&quot;, &quot;ember-paper&quot;: &quot;#3E6288&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-steel)"></span><span class="sw__name">4 · Blue</span><code class="sw__key">Brush.ChromaSteel</code><span class="sw__hex mono"></span><span class="sw__use">Rare fourth layer</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#86C9C0&quot;, &quot;light&quot;: &quot;#2E7067&quot;, &quot;ember-graphite&quot;: &quot;#7FC0BE&quot;, &quot;ember-paper&quot;: &quot;#3E8A88&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-teal-light)"></span><span class="sw__name">Teal light</span><code class="sw__key">Brush.ChromaTealLight</code><span class="sw__hex mono"></span><span class="sw__use">Text on teal</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#E49EAE&quot;, &quot;light&quot;: &quot;#93404F&quot;, &quot;ember-graphite&quot;: &quot;#D79BAB&quot;, &quot;ember-paper&quot;: &quot;#7F2D43&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--chroma-rose-light)"></span><span class="sw__name">Rose light</span><code class="sw__key">Brush.ChromaRoseLight</code><span class="sw__hex mono"></span><span class="sw__use">Text on rose</span></button></div>
+ <h3>Track palette · nine roles, returns, master</h3><div class="swatches"><button class="sw" data-hex="{&quot;dark&quot;: &quot;#7FB87A&quot;, &quot;light&quot;: &quot;#4A7F46&quot;, &quot;ember-graphite&quot;: &quot;#58B368&quot;, &quot;ember-paper&quot;: &quot;#328140&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track1)"></span><span class="sw__name">Drums</span><code class="sw__key">Brush.Track1</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#5FB3A8&quot;, &quot;light&quot;: &quot;#3A8A7F&quot;, &quot;ember-graphite&quot;: &quot;#4E9E7A&quot;, &quot;ember-paper&quot;: &quot;#306F53&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track2)"></span><span class="sw__name">Perc</span><code class="sw__key">Brush.Track2</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#5AA6C4&quot;, &quot;light&quot;: &quot;#357C99&quot;, &quot;ember-graphite&quot;: &quot;#3E8E8E&quot;, &quot;ember-paper&quot;: &quot;#256464&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track3)"></span><span class="sw__name">Bass</span><code class="sw__key">Brush.Track3</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#6A9FD8&quot;, &quot;light&quot;: &quot;#3F78B8&quot;, &quot;ember-graphite&quot;: &quot;#5AA0B8&quot;, &quot;ember-paper&quot;: &quot;#317187&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track4)"></span><span class="sw__name">Keys</span><code class="sw__key">Brush.Track4</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#E0A84A&quot;, &quot;light&quot;: &quot;#B8862F&quot;, &quot;ember-graphite&quot;: &quot;#C77F55&quot;, &quot;ember-paper&quot;: &quot;#985127&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track5)"></span><span class="sw__name">Texture</span><code class="sw__key">Brush.Track5</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#9D90C9&quot;, &quot;light&quot;: &quot;#7363A8&quot;, &quot;ember-graphite&quot;: &quot;#7A6FB0&quot;, &quot;ember-paper&quot;: &quot;#4B4082&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track6)"></span><span class="sw__name">FX</span><code class="sw__key">Brush.Track6</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#D77A8F&quot;, &quot;light&quot;: &quot;#B4566B&quot;, &quot;ember-graphite&quot;: &quot;#B05A7A&quot;, &quot;ember-paper&quot;: &quot;#7F3450&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track7)"></span><span class="sw__name">Brass</span><code class="sw__key">Brush.Track7</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#B3B45E&quot;, &quot;light&quot;: &quot;#7E7F2F&quot;, &quot;ember-graphite&quot;: &quot;#9AA64A&quot;, &quot;ember-paper&quot;: &quot;#6C752C&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track8)"></span><span class="sw__name">Vox</span><code class="sw__key">Brush.Track8</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#8E9DB0&quot;, &quot;light&quot;: &quot;#5D6C80&quot;, &quot;ember-graphite&quot;: &quot;#7FA88E&quot;, &quot;ember-paper&quot;: &quot;#598C69&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--track9)"></span><span class="sw__name">Return</span><code class="sw__key">Brush.Track9</code><span class="sw__hex mono"></span><span class="sw__use"></span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#8E9DB0&quot;, &quot;light&quot;: &quot;#5D6C80&quot;, &quot;ember-graphite&quot;: &quot;#7FA88E&quot;, &quot;ember-paper&quot;: &quot;#598C69&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--return-a)"></span><span class="sw__name">Return A</span><code class="sw__key">Brush.ReturnA</code><span class="sw__hex mono"></span><span class="sw__use">Return bus</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#7A889A&quot;, &quot;light&quot;: &quot;#4E5B6D&quot;, &quot;ember-graphite&quot;: &quot;#6B907B&quot;, &quot;ember-paper&quot;: &quot;#3E6A4D&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--return-b)"></span><span class="sw__name">Return B</span><code class="sw__key">Brush.ReturnB</code><span class="sw__hex mono"></span><span class="sw__use">Return bus</span></button><button class="sw" data-hex="{&quot;dark&quot;: &quot;#A4A9B0&quot;, &quot;light&quot;: &quot;#4F535A&quot;, &quot;ember-graphite&quot;: &quot;#8D8779&quot;, &quot;ember-paper&quot;: &quot;#746D5C&quot;}" title="Copy hex"><span class="sw__chip" style="background:var(--master)"></span><span class="sw__name">Master</span><code class="sw__key">Brush.Master</code><span class="sw__hex mono"></span><span class="sw__use">Muted grey: the sum, not a track</span></button></div>
+ <h3>Elevation</h3>
+ <div class="tbl" style="margin-top:10px"><table>
+ <tr><th>Key</th><th>Dark</th><th>Light</th></tr>
+ <tr><td><code>Shadow.Raised</code></td><td class="mono">inset 0 1 0 0 #12FFFFFF</td><td class="mono">inset 0 1 0 0 #B3FFFFFF</td></tr><tr><td><code>Shadow.Sunken</code></td><td class="mono">inset 0 0 0 1 #45484E</td><td class="mono">inset 0 0 0 1 #B3B6BB</td></tr><tr><td><code>Shadow.Popover</code></td><td class="mono">0 0 0 1 #141517, 0 10 28 0 #6B000000</td><td class="mono">0 0 0 1 #9DA0A6, 0 10 28 0 #381E2024</td></tr><tr><td><code>Shadow.Modal</code></td><td class="mono">0 0 0 1 #141517, 0 24 64 0 #80000000</td><td class="mono">0 0 0 1 #9DA0A6, 0 24 64 0 #401E2024</td></tr>
+ </table></div>
+ <p class="note" style="margin-top:8px">Only <code>Shadow.Popover</code> and <code>Shadow.Modal</code> carry a blur. A raised control's seam ring is its own 1px seam border; <code>Shadow.Raised</code> is the top bevel.</p>
</section>
<section id="type">
<p class="eyebrow">03 · Type</p>
<h2>Geist and Geist Mono</h2>
- <p>A proportional face for names and words; mono for anything that is a measurement, so digits keep their width as a knob turns.</p>
+ <p>A proportional face for names and words; mono for every number a user reads, so digits keep their width as a knob turns. Nothing in the shell is larger than 13 except the position readout.</p>
<h3>Shell scale</h3>
<div class="spec">
- <span class="k">Title · 600 · 26</span><span style="font:600 26px/1.1 var(--font-ui);letter-spacing:-.015em;color:var(--text-heading)">Controls</span>
- <span class="k">Heading · 600 · 13</span><span style="font:600 13px var(--font-ui);color:var(--text-heading)">Northern Reverb Study</span>
- <span class="k">Name · 500 · 12</span><span style="font:500 12px var(--font-ui)">Stone Vault · Long Tail</span>
- <span class="k">default · 500 · 11</span><span style="font:500 11px var(--font-ui);color:var(--text-strong)">Arrangement · Session · Modular</span>
- <span class="k">Caption · 400 · 11 · Ink 4</span><span style="font:400 11px/1.65 var(--font-ui);color:var(--text-muted)">Load as an effect on the selected track</span>
- <span class="k">SectionLabel · 700 · 10 caps</span><span style="font:700 10px var(--font-ui);letter-spacing:.14em;color:var(--text-tertiary)">SURFACES</span>
- <span class="k">Readout · mono 500 · 13</span><span class="mono" style="font-weight:500;font-size:13px">12.3.04 · 120.00</span>
- <span class="k">Value · mono 400 · 10</span><span class="mono" style="font-size:10px;color:var(--text-secondary)">−3.3 dB · 48 k · 2.4 MB</span>
- <span class="k">Eyebrow · mono 500 · 9 caps</span><span class="mono" style="font-weight:500;font-size:9px;letter-spacing:.18em;color:var(--accent-dim)">NOTA · CONVOLUTION</span>
+ <span class="k">Title · 600 · 13</span><span style="font:600 13px/1.35 var(--font-ui);color:var(--text-heading)">Export audio</span>
+ <span class="k">Heading · 600 · 13</span><span style="font:600 13px/1.35 var(--font-ui);color:var(--text-primary)">Northern Reverb Study</span>
+ <span class="k">Name · 500 · 12</span><span style="font:500 12px/1.35 var(--font-ui);color:var(--text-primary)">Stone Vault · Long Tail</span>
+ <span class="k">default · 500 · 12</span><span style="font:500 12px var(--font-ui)">Arrangement · Session · Modular</span>
+ <span class="k">Caption · 400 · 11</span><span style="font:400 11px/1.35 var(--font-ui);color:var(--text-secondary)">Load as an effect on the selected track</span>
+ <span class="k">SectionLabel · 600 · 11</span><span style="font:600 11px/1.35 var(--font-ui);color:var(--text-muted)">Recent samples</span>
+ <span class="k">CellLabel · 500 · 10</span><span style="font:500 10px/1.35 var(--font-ui);color:var(--text-muted)">BPM · Loop · Grid</span>
+ <span class="k">Readout · Mono 400 · 13</span><span style="font:400 13px/1.35 var(--font-mono);color:var(--text-primary)">120.00 · 12.3.04</span>
+ <span class="k">Value · Mono 400 · 11</span><span style="font:400 11px/1.35 var(--font-mono);color:var(--text-secondary)">−3.3 dB · 48 k · 2.4 MB</span>
+ <span class="k">Eyebrow · Mono 400 · 10</span><span style="font:400 10px/1.35 var(--font-mono);color:var(--text-muted)">Convolution · VST3</span>
</div>
<h3>Device scale · inside a 700 × 260 card</h3>
<div class="spec">
- <span class="k">DeviceName · 600 · 12</span><span style="font:600 12px var(--font-ui)">Nota Chamber</span>
- <span class="k">DeviceSection · 700 · 9 caps</span><span style="font:700 9px var(--font-ui);letter-spacing:.12em;color:var(--text-tertiary)">EARLY REFLECTIONS</span>
- <span class="k">RowLabel · 700 · 8 caps</span><span style="font:700 8px var(--font-ui);letter-spacing:.1em;color:var(--text-tertiary)">PRE-DELAY</span>
- <span class="k">KnobLabel · 700 · 7 caps</span><span style="font:700 7px var(--font-ui);letter-spacing:.08em;color:var(--text-tertiary)">DECAY</span>
- <span class="k">KnobValue · mono · 7</span><span class="mono" style="font-size:7px;color:var(--text-secondary)">4.6 s</span>
- <span class="k">Axis · mono · 7 · Ink 7</span><span class="mono" style="font-size:7px;color:var(--text-axis)">30 Hz — 18k</span>
+ <span class="k">DeviceName · 600 · 12</span><span style="font:600 12px/1.35 var(--font-ui);color:var(--text-primary)">Nota Chamber</span>
+ <span class="k">DeviceSection · 600 · 10.5</span><span style="font:600 10.5px/1.35 var(--font-ui);color:var(--text-muted)">Early reflections</span>
+ <span class="k">RowLabel · 500 · 9</span><span style="font:500 9px/1.35 var(--font-ui);color:var(--text-secondary)">Pre-delay</span>
+ <span class="k">KnobLabel · 500 · 8</span><span style="font:500 8px/1.35 var(--font-ui);color:var(--text-secondary)">LFO rate</span>
+ <span class="k">KnobValue · Mono 400 · 8</span><span style="font:400 8px/1.35 var(--font-mono);color:var(--text-primary)">4.6 s</span>
+ <span class="k">Axis · Mono 400 · 7.5</span><span style="font:400 7.5px/1.35 var(--font-mono);color:var(--text-axis)">30 Hz — 18k</span>
</div>
- <h3>Setting numbers</h3>
+ <h3>Setting numbers and labels</h3>
<div class="tbl"><table>
<tr><th>Rule</th><th>Yes</th><th>No</th></tr>
<tr><td>Thin space before the unit</td><td class="mono">4.6 s · −3.3 dB · 72 %</td><td class="mono">4.6s · -3,3dB</td></tr>
<tr><td>Typographic minus; plus only where the sign matters</td><td class="mono">−18.0 dB · +0.8 dB</td><td class="mono">-18.0 dB</td></tr>
<tr><td>Fixed precision</td><td class="mono">dB 1 · tempo 2 · % 0 · 440 Hz · 3.2 k</td><td class="mono">3200 Hz · 72.4 %</td></tr>
- <tr><td>Labels: English caps, one word</td><td class="mono">FEEDBACK · PRE-DELAY · FREQ</td><td class="mono">Fdbk: · Value</td></tr>
+ <tr><td>Labels: sentence case, no tracking, acronyms kept</td><td>Feedback · Pre-delay · LFO rate · Gain dB</td><td>FEEDBACK · Fdbk: · Lfo Rate</td></tr>
</table></div>
</section>
<section id="geometry">
<p class="eyebrow">04 · Material</p>
<h2>Radii, sizes, depth</h2>
- <h3>Radii · by size, not role</h3>
+ <h3>Radii · small, nearly square</h3>
<div class="radii">
- <div class="radius"><i style="border-radius:var(--r-bar)"></i>1 · bar</div>
- <div class="radius"><i style="border-radius:var(--r-clip)"></i>2 · clip, meter</div>
- <div class="radius"><i style="border-radius:var(--r-badge)"></i>3 · badge</div>
- <div class="radius"><i style="border-radius:var(--r-control)"></i>4 · graph, button</div>
- <div class="radius"><i style="border-radius:var(--r-tile)"></i>5 · tile, search</div>
- <div class="radius"><i style="border-radius:var(--r-panel)"></i>6 · panel, section</div>
- <div class="radius"><i style="border-radius:var(--r-body)"></i>8 · device body</div>
- <div class="radius"><i style="border-radius:20px"></i>pill · chip, switch</div>
+ <div class="radius"><i style="border-radius:var(--r-docked)"></i>0 · docked panel</div>
+ <div class="radius"><i style="border-radius:var(--r-bar)"></i>1 · bar in a plot</div>
+ <div class="radius"><i style="border-radius:var(--r-clip)"></i>2 · clip, row, menu item</div>
+ <div class="radius"><i style="border-radius:var(--r-control)"></i>3 · control, card, popover</div>
+ <div class="radius"><i style="border-radius:var(--r-modal)"></i>4 · modal</div>
</div>
<h3>Sizes and steps</h3>
<div class="tbl"><table>
<tr><th>Element</th><th>px</th><th>Token</th></tr>
<tr><td>Device card</td><td class="mono">700 × 260</td><td><code>DeviceCardKit.CardH</code></td></tr>
- <tr><td>Transport island · console · buttons · Play</td><td class="mono">60 · 42 · 28 · 40</td><td><code>Control.TransportBar / Console / Transport / Play</code></td></tr>
- <tr><td>Shell button, field</td><td class="mono">26</td><td><code>Control.Shell</code></td></tr>
- <tr><td>Tab segment in its container</td><td class="mono">24 in 30</td><td><code>Control.Seg / SegGroup</code></td></tr>
+ <tr><td>Transport row · console · keys · Play</td><td class="mono">44 · 30 · 26 · 36</td><td><code>Control.TransportBar / Console / Transport / Play</code></td></tr>
+ <tr><td>Shell button, field, readout well</td><td class="mono">26</td><td><code>Control.Shell</code></td></tr>
+ <tr><td>Tab segment · segment container</td><td class="mono">24 · 30</td><td><code>Control.Seg / SegGroup</code></td></tr>
<tr><td>Filter chip</td><td class="mono">20</td><td><code>Control.Chip</code></td></tr>
- <tr><td>Knob · secondary / regular / main</td><td class="mono">34 / 36 / 44</td><td><code>Control.Knob*</code></td></tr>
+ <tr><td>Title bar · panel toolbar · status · menu item</td><td class="mono">32 · 32 · 22 · 24</td><td></td></tr>
+ <tr><td>Knob · secondary / regular / main · inline</td><td class="mono">34 / 36 / 44 · 24</td><td><code>Control.Knob*</code></td></tr>
<tr><td>Parameter cell</td><td class="mono">53</td><td><code>Control.ParamCell</code></td></tr>
<tr><td>Switch · slider track · meter</td><td class="mono">18 × 10 · 3 · 11 / 5</td><td></td></tr>
<tr><td>Device steps · hair / gap / inset / wide</td><td class="mono">2 · 5 · 6 · 8</td><td><code>Space.Device*</code></td></tr>
- <tr><td>Shell steps · tile / gutter / inset</td><td class="mono">8 · 12 · 20</td><td><code>Space.Tile / Gutter / Inset</code></td></tr>
+ <tr><td>Shell steps · tile / between panels (the seam) / inset</td><td class="mono">8 · 1 · 20</td><td><code>Space.Tile / Gutter / Inset</code></td></tr>
</table></div>
- <h3>Three levels of depth</h3>
+ <h3>Depth · a tone step and a seam; blur only when it floats</h3>
<div class="depth">
- <div style="background:var(--bg-sunken);border:1px solid var(--hairline);box-shadow:var(--sunken)">Sunken · Well · Hairline · inner top line</div>
- <div style="background:var(--surface-card);border:1px solid var(--border-default)">Flat · Card · Border · no shadow</div>
- <div style="background:var(--surface-raised);border:1px solid var(--border-default);box-shadow:var(--raised)">Raised · Raised · Border · inner highlight</div>
+ <div style="background:var(--bg-sunken);box-shadow:var(--shadow-sunken);border-radius:var(--r-control)">Well · rule edge</div>
+ <div style="background:var(--bg-app);box-shadow:0 0 0 1px var(--seam)">Ground</div>
+ <div style="background:var(--panel);box-shadow:0 0 0 1px var(--seam)">Panel · docked, flat</div>
+ <div style="background:var(--surface-raised);border:1px solid var(--seam);box-shadow:var(--shadow-raised);border-radius:var(--r-control)">Raised · seam border · top bevel</div>
+ <div style="background:var(--panel);box-shadow:var(--shadow-modal);border-radius:var(--r-modal)">Floating · Shadow.Modal</div>
</div>
</section>
@@ -419,73 +691,84 @@ ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{mar
<p>Vertical drag, up increases, ~140 px for the full range; Shift for fine steps; double-click resets; left button only, so right-click reaches the modulation menu.</p>
<h3>Knob · 34 / 36 / 44</h3>
<div class="demo knobs">
- <figure><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="54.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="28.0" y2="17.6" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg>secondary</figure>
- <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="39.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="22.1" y2="18.3" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg>regular</figure>
- <figure><svg class="knob" width="44" height="44" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="69.3 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="33.0" y2="20.9" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg>main</figure>
- <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--chroma-teal);stroke-width:5;stroke-linecap:round" stroke-dasharray="61.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="30.7" y2="18.7" style="stroke:var(--chroma-teal-light);stroke-width:2.4;stroke-linecap:round"/></svg>modulated</figure>
- <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--border-strong);stroke-width:5;stroke-linecap:round" stroke-dasharray="39.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="22.1" y2="18.3" style="stroke:var(--text-disabled);stroke-width:2.4;stroke-linecap:round"/></svg>inactive</figure>
+ <figure><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="54.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="28.0" y2="17.6" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg>secondary</figure>
+ <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="39.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="22.1" y2="18.3" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg>regular</figure>
+ <figure><svg class="knob" width="44" height="44" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="69.3 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="33.0" y2="20.9" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg>main</figure>
+ <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="49.5 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="26.0" y2="17.3" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg>live</figure>
+ <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--chroma-teal);stroke-width:5;stroke-linecap:round" stroke-dasharray="61.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="30.7" y2="18.7" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg>modulated</figure>
+ <figure><svg class="knob" width="36" height="36" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--rule);stroke-width:5;stroke-linecap:round" stroke-dasharray="39.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="22.1" y2="18.3" style="stroke:var(--text-disabled);stroke-width:2.4;stroke-linecap:round"/></svg>inactive</figure>
</div>
+ <p class="note">At rest the arc is viz ink; it turns accent only while the knob is hovered or dragged. A modulated arc takes its source's chroma.</p>
<h3>Parameter cell · 53 tall</h3>
<div class="demo row" style="gap:6px">
- <div class="cell cell--hot"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="59.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="29.9" y2="18.3" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">DECAY</span><span class="cell__value mono">4.6 s</span></div>
- <div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="34.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="20.4" y2="19.4" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">SIZE</span><span class="cell__value mono">31 m</span></div>
- <div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="41.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="22.8" y2="17.9" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">MIX</span><span class="cell__value mono">42 %</span></div>
- <div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--chroma-teal);stroke-width:5;stroke-linecap:round" stroke-dasharray="29.7 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="19.0" y2="20.9" style="stroke:var(--chroma-teal-light);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">MOD</span><span class="cell__value mono">18 %</span></div>
- <div class="cell cell--dim"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--border-strong);stroke-width:5;stroke-linecap:round" stroke-dasharray="0.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="19.9" y2="32.1" style="stroke:var(--text-disabled);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">WIDTH</span><span class="cell__value mono">off</span></div>
+ <div class="cell cell--mod"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="59.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="29.9" y2="18.3" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Decay</span><span class="cell__value mono">4.6 s</span></div>
+ <div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="34.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="20.4" y2="19.4" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Size</span><span class="cell__value mono">31 m</span></div>
+ <div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="41.6 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="22.8" y2="17.9" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Mix</span><span class="cell__value mono">42 %</span></div>
+ <div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--chroma-teal);stroke-width:5;stroke-linecap:round" stroke-dasharray="29.7 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="19.0" y2="20.9" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">LFO rate</span><span class="cell__value mono">18 %</span></div>
+ <div class="cell cell--dim"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--rule);stroke-width:5;stroke-linecap:round" stroke-dasharray="0.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="19.9" y2="32.1" style="stroke:var(--text-disabled);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Width</span><span class="cell__value mono">off</span></div>
</div>
- <p class="note">Brass Light label and value: the parameter differs from its default. A modulated arc takes its source's chroma; the label stays neutral.</p>
- <h3>Switch · segments · chips</h3>
+ <p class="note">A parameter changed from its default lifts its name to primary ink — no accent, no dot. Names are sentence case at 8 px.</p>
+ <h3>Switch · segments · chips · track toggles</h3>
<div class="demo">
<div class="row"><span class="switch on"><i></i>True stereo</span><span class="switch"><i></i>Reverse IR</span>
<div class="seg seg--device"><button aria-pressed="false">Eco</button><button aria-pressed="true">Mid</button><button aria-pressed="false">High</button></div>
<div class="seg"><button aria-pressed="true">Arrangement</button><button aria-pressed="false">Session</button><button aria-pressed="false">Modular</button></div></div>
- <div class="row"><span class="chip on">Favorites</span><span class="chip"><i style="background:var(--danger)"></i>bass</span><span class="chip"><i style="background:var(--track4)"></i>analog</span><span class="chip"><i style="background:var(--track2)"></i>clean</span><span class="chip mono">+2</span></div>
+ <div class="row"><span class="chip on">Favorites</span><span class="chip"><i style="background:var(--danger)"></i>bass</span><span class="chip"><i style="background:var(--track4)"></i>analog</span><span class="chip"><i style="background:var(--track2)"></i>clean</span><span class="chip mono">+2</span>
+ <span class="toggles"><b>M</b><b>S</b><b><i class="disc"></i></b></span><span class="toggles"><b class="m" style="color:var(--ink-on-mute)">M</b><b class="s" style="color:var(--ink-on-solo)">S</b><b class="r"><i class="disc" style="background:var(--record-ink)"></i></b></span></div>
</div>
+ <p class="note">Toggled on is a solid fill with derived ink: the accent for a chip or segment, amber for mute, blue for solo, red for arm.</p>
<h3>Slider row</h3>
<div class="demo">
<div class="slider"><span>Pre-delay</span><span class="track"><b style="width:30%"></b><u style="left:30%"></u></span><span>24 ms</span></div>
- <div class="slider"><span>Diffusion</span><span class="track"><b style="width:72%"></b><u style="left:72%"></u></span><span>72 %</span></div>
+ <div class="slider live"><span>Diffusion</span><span class="track"><b style="width:72%"></b><u style="left:72%"></u></span><span>72 %</span></div>
<div class="slider dim"><span>Damping</span><span class="track"><b style="width:55%"></b><u style="left:55%"></u></span><span>4.1 k</span></div>
</div>
<h3>Transport · shapes, not an icon font</h3>
<div class="transport">
+ <span class="name">Untitled</span>
<div class="seg"><button aria-pressed="true">Arrangement</button><button aria-pressed="false">Session</button><button aria-pressed="false">Modular</button></div>
<span class="console">
- <span class="tp"><i class="stop"></i></span><span class="tp play"><i class="play-tri"></i></span><span class="tp play on"><i class="play-tri"></i></span><span class="tp"><i class="rec"></i></span><span class="tp rec-on"><i class="rec"></i></span>
+ <span class="keys"><span class="tp"><i class="stop"></i></span><span class="tp play on"><i class="play-tri"></i></span><span class="tp"><i class="rec"></i></span></span>
<span class="vr"></span>
- <span class="readout"><b class="n">12.3.04</b><span>BARS</span></span>
+ <span class="pos"><b>12.3.04</b><span class="unit">Bars</span></span>
+ <span class="vr"></span>
+ <span class="loop"><span class="unit">Loop</span>9.1 – 17.1</span>
</span>
- <span class="readout"><b class="n">120.00</b><span>BPM</span></span><span class="readout"><b class="n">4/4</b><span>SIG</span></span><span class="readout"><b class="n">1/4</b><span>GRID</span></span>
+ <span class="well"><b>120.00</b><span class="unit">BPM</span></span><span class="well"><b>4/4</b></span><span class="well"><b>1/4</b><span class="unit">Grid</span></span>
+ <span class="keys" style="gap:4px"><span class="tp on"><i class="met"></i></span><span class="tp"><i class="met"></i></span></span>
</div>
- <p class="note">The bar is an island on the gutter (60, Well); stop, play, record, position and loop share one 42 recess on Void inside it. Play is 40 wide against 28 and turns solid brass only while the transport runs. Record at rest is neutral with a red disc; engaged it is solid Record with a pale disc.</p>
+ <p class="note" style="margin-top:8px">A flat 44 px row on the panel tone with a seam under it. Stop, play, record, position and loop share one 30 px well; keys are 26, Play 36 wide and solid accent only while the transport runs. Record at rest is a raised key with a red disc; engaged it is solid red with a pale disc. Readouts are 26 px wells: a mono value and its muted unit on one line.</p>
</section>
<section id="states">
<p class="eyebrow">06 · States</p>
<h2>Colour changes, nothing moves</h2>
<div class="demo states">
- <figure><span class="btn">Rest</span>Raised · Border · Ink 2</figure>
- <figure><span class="btn hover">Hover</span>Hover · Border strong · Ink 1</figure>
- <figure><span class="btn pressed">Pressed</span>Well · Brass Deep</figure>
- <figure><span class="btn on">Engaged</span>Brass Wash · Border brass</figure>
- <figure><span class="btn primary">Export</span>One solid action per context</figure>
- <figure><span class="btn off">Disabled</span>Panel · Hairline · Ink 6</figure>
+ <figure><span class="btn">Rest</span>Raised · seam · bevel</figure>
+ <figure><span class="btn hover">Hover</span>Raised hover, 120 ms</figure>
+ <figure><span class="btn pressed">Pressed</span>Well, bevel hidden</figure>
+ <figure><span class="btn on">Toggled on</span>Solid accent, derived ink</figure>
+ <figure><span class="btn primary">Export</span>Primary: weight and tone, not colour</figure>
+ <figure><span class="btn off">Disabled</span>Panel · faint ink, no opacity</figure>
+ <figure><span class="listrow sel">Stone Vault</span>Selected row: 2 px accent tick</figure>
+ <figure><span class="tabs"><span class="sel">Devices</span><span>Clip</span></span>Selected tab: 2 px underline</figure>
+ <figure><span class="menu"><span>Duplicate<small>⌘D</small></span><span class="hot">Rename<small>⌘R</small></span><hr><span>Delete</span></span>Menu: raised, seam ring, accent hover</figure>
</div>
<div class="row" style="margin-top:12px"><span class="field">Search</span><span class="field focus">Stone Vault</span></div>
- <p class="note">Hover and colour 120 ms ease-out. Empty state: one Ink 5 line, centred, no illustration, no call-to-action button.</p>
+ <p class="note">Fields and readouts are wells with a 1px rule edge; focus turns the edge accent, no ring. Empty state: one Ink 5 line, centred, no illustration, no call-to-action button.</p>
</section>
<section id="graphs">
<p class="eyebrow">07 · Visualisations</p>
<h2>One graph window</h2>
- <p>Well ground, hairline frame, radius 4, grid lines, mono axis labels in the corners only. Primary curve 1.8 px brass, others 1.2–1.6 px in their chroma. No fills under curves.</p>
+ <p>Well ground, rule frame, radius 3, viz-grid lines, mono axis labels in the corners only. Primary curve 1.8 px in viz ink, others 1.2–1.6 px in their chroma; only the active node is the accent. No fills under curves.</p>
<div class="row" style="align-items:stretch">
<div class="graph" style="width:420px;height:150px">
- <span class="title">RESPONSE</span>
+ <span class="title">Response</span>
<svg width="420" height="150" viewBox="0 0 420 150" aria-hidden="true">
- <g style="stroke:var(--grid-beat);stroke-width:1"><line x1="70" y1="0" x2="70" y2="150"/><line x1="140" y1="0" x2="140" y2="150"/><line x1="210" y1="0" x2="210" y2="150"/><line x1="280" y1="0" x2="280" y2="150"/><line x1="350" y1="0" x2="350" y2="150"/><line x1="0" y1="75" x2="420" y2="75"/></g>
+ <g style="stroke:var(--viz-grid);stroke-width:1"><line x1="70" y1="0" x2="70" y2="150"/><line x1="140" y1="0" x2="140" y2="150"/><line x1="210" y1="0" x2="210" y2="150"/><line x1="280" y1="0" x2="280" y2="150"/><line x1="350" y1="0" x2="350" y2="150"/><line x1="0" y1="75" x2="420" y2="75"/></g>
<path d="M0 75 C60 75 80 50 120 48 S170 75 210 75 S260 110 300 108 S360 75 420 75" style="fill:none;stroke:var(--chroma-teal);stroke-width:1.4"/>
- <path d="M0 75 C50 75 90 40 130 38 S190 75 230 80 S300 100 330 96 S390 75 420 75" style="fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round"/>
+ <path d="M0 75 C50 75 90 40 130 38 S190 75 230 80 S300 100 330 96 S390 75 420 75" style="fill:none;stroke:var(--viz-ink);stroke-width:1.8;stroke-linecap:round"/>
<circle cx="130" cy="38" r="4.5" style="fill:var(--accent);stroke:var(--bg-sunken);stroke-width:2"/>
<circle cx="330" cy="96" r="4.5" style="fill:var(--text-secondary);stroke:var(--bg-sunken);stroke-width:2"/>
</svg>
@@ -499,48 +782,55 @@ ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{mar
<div class="mono" style="font-size:9px;color:var(--text-secondary);line-height:1.8">L −6.4 dB<br>R <span style="color:var(--danger-bright)">+0.8 dB</span></div>
</div>
</div>
- <p class="note">Meters: 11 wide, 5 apart, zones Signal → −6 dB Caution → 0 Alert. Peak hold stays until clicked. Timeline clips: flat, radius 2, no outline; playhead 1 px brass with a 7 × 5 flag.</p>
+ <p class="note">Meters: 11 wide, 5 apart, zones green → −6 dB amber → 0 red. Peak hold stays until clicked.</p>
+ <h3>Clips · full-colour body, darker title band</h3>
+ <div class="lane">
+ <div class="clip" style="--c-body:var(--t0-body);--c-band:var(--t0-band);--c-ink:var(--t0-ink);--c-cont:var(--t0-cont);width:150px"><b>Kick loop</b><i style="left:8px;top:18px"></i><i style="left:19px;top:36px"></i><i style="left:30px;top:30px"></i><i style="left:41px;top:24px"></i><i style="left:52px;top:18px"></i><i style="left:63px;top:36px"></i><i style="left:74px;top:30px"></i><i style="left:85px;top:24px"></i><i style="left:96px;top:18px"></i><i style="left:107px;top:36px"></i><i style="left:118px;top:30px"></i><i style="left:129px;top:24px"></i></div><div class="clip sel" style="--c-body:var(--t3-body);--c-band:var(--t3-band);--c-ink:var(--t3-ink);--c-cont:var(--t3-cont);width:190px"><b>Chords</b><i style="left:8px;top:18px"></i><i style="left:19px;top:36px"></i><i style="left:30px;top:30px"></i><i style="left:41px;top:24px"></i><i style="left:52px;top:18px"></i><i style="left:63px;top:36px"></i><i style="left:74px;top:30px"></i><i style="left:85px;top:24px"></i><i style="left:96px;top:18px"></i><i style="left:107px;top:36px"></i><i style="left:118px;top:30px"></i><i style="left:129px;top:24px"></i><i style="left:140px;top:18px"></i><i style="left:151px;top:36px"></i><i style="left:162px;top:30px"></i><i style="left:173px;top:24px"></i></div><div class="clip" style="--c-body:var(--t4-body);--c-band:var(--t4-band);--c-ink:var(--t4-ink);--c-cont:var(--t4-cont);width:160px"><b>Pad texture</b><i style="left:8px;top:18px"></i><i style="left:19px;top:36px"></i><i style="left:30px;top:30px"></i><i style="left:41px;top:24px"></i><i style="left:52px;top:18px"></i><i style="left:63px;top:36px"></i><i style="left:74px;top:30px"></i><i style="left:85px;top:24px"></i><i style="left:96px;top:18px"></i><i style="left:107px;top:36px"></i><i style="left:118px;top:30px"></i><i style="left:129px;top:24px"></i><i style="left:140px;top:18px"></i></div><div class="clip" style="--c-body:var(--t6-body);--c-band:var(--t6-band);--c-ink:var(--t6-ink);--c-cont:var(--t6-cont);width:120px"><b>Lead</b><i style="left:8px;top:18px"></i><i style="left:19px;top:36px"></i><i style="left:30px;top:30px"></i><i style="left:41px;top:24px"></i><i style="left:52px;top:18px"></i><i style="left:63px;top:36px"></i><i style="left:74px;top:30px"></i><i style="left:85px;top:24px"></i><i style="left:96px;top:18px"></i></div>
+ <span class="playhead" style="left:250px"></span>
+ </div>
+ <p class="note" style="margin-top:8px">A flat 2 px rectangle in the track colour, a 12 px title band 30 % toward black with the name in derived ink, content in a deeper shade; selected, the band is the accent. The playhead is 1 px accent, no glow.</p>
</section>
<section id="cards">
<p class="eyebrow">08 · Device cards</p>
<h2>700 × 260, at true size</h2>
- <p>Header 22: name left; preset picker, processing-type badge and bypass right (A/B, move and delete are in the right-click menu). Body inset 6, sections radius 6 with gap 5. Three columns: choice → work → output.</p>
+ <p>Panel body, radius 3, seam frame. Header 22: a raised strip with the bevel, in fixed slots — name · the preset picker, centred between two equal halves · the muted mono badge · power, a slot every card reserves (A/B, move and delete are in the right-click menu). Body inset 6; sections have no fill and no frame, divided by a 1 px rule, titled in muted 600. Three columns: choice → work → output.</p>
<div class="scroll"><div class="card">
- <div class="card__head"><span class="card__name">Nota Chamber</span><span class="preset"><i>&lsaquo;</i><b>Stone Vault</b><i>&rsaquo;</i></span><span class="card__badge" style="margin-left:0">CONVOLUTION</span><span class="switch on" style="margin-left:6px"><i></i></span></div>
+ <div class="card__head"><span class="card__name">Nota Chamber</span><span class="preset"><i>&lsaquo;</i><b>Stone Vault</b><i>&rsaquo;</i></span><span class="card__right"><span class="card__badge">Convolution</span><span class="switch on"><i></i></span></span></div>
<div class="card__body">
<div class="sect"><h5>Choice</h5><div class="field" style="width:100%;height:22px;font-size:10px;color:var(--text-primary)">Concert Hall</div>
<div class="seg seg--device" style="align-self:flex-start"><button aria-pressed="true">IR</button><button aria-pressed="false">Algo</button></div></div>
<div class="sect"><h5>Work</h5>
<div class="graph" style="height:96px"><span class="axis" style="left:4px;bottom:4px">0</span><span class="axis" style="right:4px;bottom:4px">2.6 s</span>
- <svg width="100%" height="96" viewBox="0 0 360 96" preserveAspectRatio="none" aria-hidden="true"><path d="M0 20 C40 22 80 40 140 58 S260 84 360 88" style="fill:none;stroke:var(--accent);stroke-width:1.8"/><path d="M0 34 C40 36 90 52 150 66 S260 86 360 90" style="fill:none;stroke:var(--chroma-teal);stroke-width:1.4"/></svg></div>
- <div class="row" style="gap:4px;margin:0;justify-content:space-around"><div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="29.7 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="19.0" y2="20.9" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">PRE-DELAY</span><span class="cell__value mono">20.0 ms</span></div><div class="cell cell--hot"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="61.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="30.7" y2="18.7" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">SIZE</span><span class="cell__value mono">100 %</span></div><div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="19.8 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="17.4" y2="24.6" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">ATTACK</span><span class="cell__value mono">0.0 ms</span></div><div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="54.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/><line x1="26" y1="26" x2="28.0" y2="17.6" style="stroke:var(--accent-bright);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">DECAY</span><span class="cell__value mono">2.60 s</span></div></div></div>
+ <svg width="100%" height="96" viewBox="0 0 360 96" preserveAspectRatio="none" aria-hidden="true"><path d="M0 20 C40 22 80 40 140 58 S260 84 360 88" style="fill:none;stroke:var(--viz-ink);stroke-width:1.8"/><path d="M0 34 C40 36 90 52 150 66 S260 86 360 90" style="fill:none;stroke:var(--chroma-teal);stroke-width:1.4"/></svg></div>
+ <div class="row" style="gap:4px;margin:0;justify-content:space-around"><div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="29.7 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="19.0" y2="20.9" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Pre-delay</span><span class="cell__value mono">20.0 ms</span></div><div class="cell cell--mod"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="61.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="30.7" y2="18.7" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Size</span><span class="cell__value mono">100 %</span></div><div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--viz-ink);stroke-width:5;stroke-linecap:round" stroke-dasharray="19.8 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="17.4" y2="24.6" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Attack</span><span class="cell__value mono">0.0 ms</span></div><div class="cell"><svg class="knob" width="34" height="34" viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="99.0 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round" stroke-dasharray="54.4 131.9" transform="rotate(135 26 26)"/><circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/><line x1="26" y1="26" x2="28.0" y2="17.6" style="stroke:var(--text-primary);stroke-width:2.4;stroke-linecap:round"/></svg><span class="cell__label">Decay</span><span class="cell__value mono">2.60 s</span></div></div></div>
<div class="sect"><h5>Output</h5>
<div class="slider" style="width:100%;grid-template-columns:34px 1fr 36px"><span>Conv</span><span class="track"><b style="width:60%"></b><u style="left:60%"></u></span><span>−3.0</span></div>
<div class="slider" style="width:100%;grid-template-columns:34px 1fr 36px"><span>Dry</span><span class="track"><b style="width:80%"></b><u style="left:80%"></u></span><span>0.0</span></div>
<div class="slider" style="width:100%;grid-template-columns:34px 1fr 36px"><span>Wet</span><span class="track"><b style="width:45%"></b><u style="left:45%"></u></span><span>45 %</span></div></div>
</div>
</div></div>
- <p class="note">Width exceptions by decision: Rhythm 900, Bass 1060, Physical 720, and the plugin / parameter-list stubs.</p>
+ <p class="note">Width exceptions by decision: Bass 1060, Physical 720, and the parameter-list stub; a hosted plug-in is S 260 or L 700.</p>
</section>
<section id="shell">
<p class="eyebrow">09 · Shell</p>
- <h2>Header, transport, panels on the gutter</h2>
+ <h2>Docked panels on seams</h2>
<div class="shell">
- <div class="h">Northern Reverb Study</div>
- <div class="t">VIEW · STOP PLAY REC · POSITION · LOOP · BPM SIG GRID · SWITCHES · + TRACK</div>
- <div class="b"><div>BROWSER</div><div>CANVAS · ALWAYS SUNKEN</div></div>
- <div class="s">STATUS</div>
+ <div class="h">Nota</div>
+ <div class="t">Project · view switch · console · tempo, signature, key, grid · switches · CPU · master</div>
+ <div class="b"><div>Browser</div><div>Canvas · arrangement, session, modular</div></div>
+ <div class="d">Panel toolbar · Devices · Pattern · Clip · track · Freeze</div>
+ <div class="db">Detail body · device cards</div>
+ <div class="s">Status</div>
</div>
- <p class="note" style="margin-top:10px">Header 36 · transport 42 under it (a departure from the almanac, which puts it at the bottom) · panels float on Gutter with 12 px gaps · status 22. List rows 26, one line: dot, name, mono metadata. Arrangement tracks 64, groups 26, header column 228.</p>
- <h3>Accepted departures</h3>
+ <p class="note" style="margin-top:10px">Title 32 on ground · transport 44 on panel · browser, canvas and detail panel docked, radius 0, 1 px seams between them · the detail panel opens with a 32 px toolbar · status 22 on ground. List rows 26, one line: dot, name, mono metadata. Arrangement tracks 64, groups 26, header column 228. Menus are raised popovers with a seam ring and no blur — Avalonia draws each popup in its own window; the command palette is the in-window modal with <code>Shadow.Modal</code>.</p>
+ <h3>Accepted exceptions</h3>
<ul class="plain">
- <li>Transport at the top, with the view switch leading it.</li>
- <li>English shell copy — tooltips are short and verb-first.</li>
- <li>Frequent choices with more than four options stay segments.</li>
- <li>Rhythm, Bass and Physical cards are wider than 700.</li>
- <li>Default zoom 28 px per beat; <code>FREQ</code>, <code>RESO</code>, <code>THRESH</code> as labels; Play turns green in Session.</li>
+ <li>Device cards keep 700 × 260, so device text sits at 7.5–10.5 px.</li>
+ <li>Nine track roles; transport 44 with Nota's layout and order; no in-window menubar row; title bar 32.</li>
+ <li>Menu popups carry a seam ring without a blur.</li>
+ <li>Play turns green in Session; data hues go through <code>Ink()</code>.</li>
</ul>
</section>
</div>
@@ -548,20 +838,24 @@ ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{mar
(() => {
const root = document.documentElement;
const buttons = document.querySelectorAll('.mast .seg button');
+ // A theme id or the Studio names dark / light; "graphite" and "paper" open the Ember themes.
+ const known = Array.from(buttons, b => b.dataset.v);
+ const norm = v => { v = ({ 'studio-dark': 'dark', 'studio-light': 'light', graphite: 'ember-graphite', paper: 'ember-paper' })[v] || v; return known.includes(v) ? v : 'dark'; };
function hexes() {
- const paper = root.dataset.variant === 'paper';
- document.querySelectorAll('.sw').forEach(s => { s.querySelector('.sw__hex').textContent = paper ? s.dataset.light : s.dataset.dark; });
+ const v = root.dataset.variant || 'dark';
+ document.querySelectorAll('.sw').forEach(s => { s.querySelector('.sw__hex').textContent = JSON.parse(s.dataset.hex)[v]; });
}
function set(v) {
- if (v === 'paper') root.dataset.variant = 'paper'; else delete root.dataset.variant;
+ v = norm(v);
+ if (v === 'dark') delete root.dataset.variant; else root.dataset.variant = v;
buttons.forEach(b => b.setAttribute('aria-pressed', String(b.dataset.v === v)));
hexes();
- try { localStorage.setItem('ember-variant', v); } catch (e) {}
+ try { localStorage.setItem('studio-variant', v); } catch (e) {}
}
buttons.forEach(b => b.addEventListener('click', () => set(b.dataset.v)));
- let saved = null; try { saved = localStorage.getItem('ember-variant'); } catch (e) {}
- const asked = new URLSearchParams(location.search).get('variant'); // ?variant=paper
- set((asked || saved) === 'paper' ? 'paper' : 'graphite');
+ let saved = null; try { saved = localStorage.getItem('studio-variant'); } catch (e) {}
+ const asked = new URLSearchParams(location.search).get('variant'); // ?variant=light, ?variant=ember-paper…
+ set(asked || saved || 'dark');
document.querySelectorAll('.sw').forEach(s => s.addEventListener('click', () => {
const hex = s.querySelector('.sw__hex').textContent;
const done = () => { s.classList.add('copied'); setTimeout(() => s.classList.remove('copied'), 900); };
diff --git a/DESIGN.md b/DESIGN.md
index 344060ee..6c4e7005 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -1,203 +1,342 @@
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
<!-- Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms. -->
-# Nota design guideline — Ember
-
-Nota's UI runs on **Ember**: warm neutrals (hue ~40°) lit by exactly one accent, brass.
-It comes in two variants of one system:
-
-- **Ember Graphite** (dark, the default) — a DAW is used in dark rooms for long sessions.
-- **Ember Paper** (light) — the same roles on a warm paper ground. Brass darkens to
- bronze: against paper a mark needs *less* lightness to carry the emphasis it had
- against graphite.
-
-Preferences → Appearance offers Graphite / Paper / System; the switch is live.
-
-The system comes from the **Nota Design Almanac** (`Nota.html` in the sibling
-`nota-design` folder, next to the mockups — it stays a design artifact there, not a second
-requirement in this repo), which was distilled from the accepted designs — Consort, Pentad, Chamber, and
-the Browser / Arrangement / Transport shell. The almanac describes Graphite only; this
-file is the guideline the app is held to: the almanac's rules as implemented, the Paper
-values, and the few places where the app deliberately departs from the almanac
-(§ Accepted departures).
+# Nota design guideline — Studio
+
+Nota's UI runs on **Studio**, a design language built around one idea: in a music app the
+work carries the colour, and the interface steps back. Neutral greys stepped in a few exact
+tones, flat panels butted against dark 1px seams, small crisp type, and one orange accent
+that appears only where something is **live or chosen** — playing, selected, switched on.
+Track colours, clips, waveforms and meters read first; the chrome around them stays quiet
+until you touch it.
+
+Colour is a **theme** (§ Colour themes): the structure — layout, type, geometry, which
+element carries the accent — is Studio's in every theme; only the values change. Four
+themes are built in:
+
+- **Studio Dark** (the default) — a DAW is used in dark rooms for long sessions.
+- **Studio Light** — the same roles in light greys. The accent goes a
+ shade deeper (and its line variant darker still) so marks hold contrast on pale grey.
+- **Ember Graphite** / **Ember Paper** — the warm browns and brass of Nota's earlier
+ language, dark and light, on Studio's structure.
+
+Preferences → Appearance picks a mode — **Dark**, **Light** or **Follow system** (a
+dark-mode and a light-mode theme, switched with the OS) — then a theme of that kind, each
+shown as a miniature Nota window in its own colours; every change is live.
+
+This file is the guideline the app is held to: Studio's rules, the tests that enforce them,
+and the few places where a screen's needs override a general rule (§ Accepted exceptions).
+The change from the earlier Ember language is recorded in
+`specs/010-studio-visual-style/` (decisions in `research.md`, the token map in
+`data-model.md`, the visual contract in `contracts/ui-contract.md`).
**[→ Open `DESIGN.html`](DESIGN.html)** for the visual reference — every swatch, the
-control specimens and the card anatomy at true size, with a Graphite / Paper toggle.
+control specimens and the card anatomy at true size, with a Dark / Light toggle.
## Source of truth, in order
| Rank | File | Authority |
|---|---|---|
-| 1 | `src/managed/Nota.App/Theme/NotaTheme.axaml` | **Definitive.** Colour (both variants), geometry, type classes, control styles. |
-| 2 | `Theme/NotaPalette.cs` · `NotaGeometry.cs` · `NotaFonts.cs` · `NotaNum.cs` | The C# side for custom-drawn views: colour slots, radii/sizes/spacing, typefaces and type scale, number setting. |
+| 1 | `src/managed/Nota.App/Theme/Themes/*.json` | **Definitive for colour.** One file per colour theme, one value per token. |
+| 1 | `src/managed/Nota.App/Theme/NotaTheme.axaml` | **Definitive for the rest:** geometry, type classes, control styles. It holds no colour. |
+| 2 | `Theme/NotaPalette.cs` · `NotaColourTheme.cs` · `NotaThemeService.cs` · `NotaGeometry.cs` · `NotaFonts.cs` · `NotaText.cs` · `NotaNum.cs` | The C# side: the token slots (the catalogue), theme loading and switching, elevation geometry, radii/sizes/spacing, typefaces and type scale, sentence-case labels, number setting. |
| 3 | `DeviceCardKit.cs`, `Controls/` | The shared controls and card builders. |
-| 4 | `tests/Nota.SmokeTest/DesignTokenCheck.cs` | Enforces (1) ↔ (2) sync and the bans below. |
+| 4 | `tests/Nota.SmokeTest/DesignTokenCheck*.cs` | Enforces the theme files against the catalogue and the readability bar, the wiring, and the bans below. |
| 5 | `DESIGN.html` / this file | Documentation. If these disagree with 1–4, **these are wrong** — fix them. |
## How theming works
-Colour tokens live in `NotaTheme.axaml` under `ThemeDictionaries` → `Dark` / `Light`, so
-XAML **must** use `{DynamicResource Brush.*}`; a `StaticResource` cannot follow the
-variant. Geometry, fonts and sizes are variant-independent (`StaticResource`).
+Colour has one home: the active theme's file. `NotaPalette` declares one **slot** per token
+by name — one long-lived `SolidColorBrush` whose `Color` is re-pointed from the theme on
+every switch, so views keep the same brush object and nothing is rebuilt.
+`NotaThemeService` publishes those same brushes into `Application.Resources` under their
+`Brush.*` keys (`NotaPalette.KeyMap`), and builds the `Shadow.*` elevations and Fluent's
+`SystemAccentColor*` ramp from the theme's colours. So XAML **must** use
+`{DynamicResource Brush.*}` / `{DynamicResource Shadow.*}`; a `StaticResource` cannot follow
+a theme change. Geometry, fonts and sizes are theme-independent (`StaticResource`).
-`NotaPalette` serves the custom-drawn layer. Every token is a **slot**: one long-lived
-`SolidColorBrush` whose `Color` is re-pointed when the variant changes, so views keep the
-same brush object and nothing is rebuilt. Ways to get a colour:
+Ways to get a colour in code:
| Call | For |
|---|---|
| `NotaPalette.Accent` (any named slot) | a token |
| `NotaPalette.Wash(slot, 0x28)` | a translucent tint of a token; cached, follows its slot |
-| `NotaPalette.Ink("#6D8FB5")` | a one-off device hue or stored tag colour. A hex equal to a role token returns that token; any other gets a derived Paper value, or one pinned in `InkOverrides` |
+| `NotaPalette.InkOn(fill)` | text or a glyph on a solid fill — dark ink (`#17181A`) or white, whichever has the higher contrast on the fill's current colour. `ReadableInkOn(color)` for a fill computed at draw time |
+| `NotaPalette.Ink("#6A9FD8")` | a one-off device hue or stored tag colour. A hex equal to a role token returns that token; a hex that was an Ember role (`#D8A03D` brass, `#5B9E9C`, `#B57286`, `#6D8FB5`, `#B8862E`, `#2A2317`) returns the slot that plays that role now (`LegacyRole`); any other gets a derived light value, or one pinned in `InkOverrides` |
| `NotaPalette.Derived(() => …)` | a colour a view computes from slots; register once and cache it |
| `ArrangementView.TrackBrush(index)` | a track colour |
**Nothing may snapshot a colour.** `new SolidColorBrush(slot.Color)`, a
`static readonly Color` taken from the palette, or a static array of palette colours all
-freeze a view in the variant it was built in. Use the slot, a `Wash`, a property
+freeze a view in the theme it was built in. Use the slot, a `Wash`, `InkOn`, a property
(`static Color X => NotaPalette.Accent.Color;`), or read `.Color` inside `Render`.
### Changing a token
-1. Edit **both** branches in `NotaTheme.axaml` — `Dark` and `Light`.
-2. Mirror the pair into the `NotaPalette` slot (the smoke test fails until you do).
-3. Run `python3 scripts/design-html.py` to regenerate `DESIGN.html`, and update the table here.
-4. Look at it in both variants — the app (Preferences → Appearance) and `DESIGN.html`
- (the toggle in its masthead, or `DESIGN.html?variant=paper`).
+1. Change its value in **every** theme file in `Theme/Themes/` that should change — at
+ least both Studio themes. A new token is a new `T(nameof(X))` slot in `NotaPalette`
+ plus a value in every theme file (the smoke test names any file that lacks it), plus a
+ `KeyMap` entry if XAML uses it.
+2. Run `python3 scripts/design-html.py` to regenerate `DESIGN.html`, and update the table here.
+3. Look at it in every theme — the app (Preferences → Appearance) and `DESIGN.html`.
+
+## Colour themes
+
+A colour theme is one fixed look: an id, a name, a kind (**dark** or **light**) and one
+value for every token — the format is `specs/011-colour-themes/contracts/theme-file.md`.
+The kind sets the OS window chrome and Fluent's base, and decides which follow-system list
+the theme appears in. A theme changes colour only: never geometry, type, layout, or which
+element carries the accent.
+
+| Theme | Kind | Values |
+|---|---|---|
+| Studio Dark | dark | The § Tokens tables below |
+| Studio Light | light | The § Tokens tables below |
+| Ember Graphite | dark | Nota 0.52.1's dark palette by token name; the tokens Studio added are derived by the role Studio gives them (seam = Ember's gutter, rule = its strong border, faint = its disabled ink, mute = its amber, solo = its steel blue, viz ink = 92 % primary over the well, viz grid = its well grid, master = its muted ink) |
+| Ember Paper | light | The same, from 0.52.1's light palette |
+
+**Appearance.** Preferences → Appearance stores one theme, or **Follow system** with a
+dark-mode and a light-mode theme (each list offers only themes of that kind). Old
+settings carry over: Dark → Studio Dark, Light → Studio Light, System → follow system with
+the two Studio themes. An unknown or wrong-kind id falls back to the Studio theme of the
+kind needed (`Nota.Application.Appearance`).
+
+**Adding a theme.** Add `Theme/Themes/<id>.json` with every token and append its id to
+`NotaThemes.BuiltInOrder`. Nothing else names a theme. The smoke test checks the file
+against the catalogue and the readability bar.
+
+### Readability bar
+
+Every theme meets these (WCAG 2.x contrast ratio; ΔE = CIE76). They are calibrated on
+Studio: WCAG where Studio meets it, Studio's own value where it does not.
+
+| | Pairing | Minimum |
+|---|---|---|
+| T3.1 | `TextPrimary`, `TextSecondary`, `TextMuted` on `BgApp`, `Panel`, `SurfaceRaised`, `SurfaceHover`, `BgSunken` | 4.5 |
+| T3.2 | `TextTertiary` on the same five | 3.0 |
+| T3.3 | `TextFaint`, `TextDisabled`, `TextAxis` on the same five | 2.5 |
+| T3.4 | `AccentBright` on `BgApp`, `Panel`, `BgSunken` | 2.3 |
+| T3.5 | Derived ink on `Accent`, `Mute`, `Solo`, `Record` | 4.5 |
+| T3.6 | Derived ink on the track and return colours | 3.0 |
+| T3.7 | The nine track colours, pairwise | ΔE ≥ 12 |
+| T3.8 | `Accent`, `Mute`, `Solo`, `Record`, pairwise | ΔE ≥ 15 |
+
+Track colours are not compared with state colours: solo blue is the Keys track blue by
+design. **Known gap:** in Studio Light the accent line on the ground (2.39) and faint ink
+(2.58) sit below WCAG's 3:1 for graphics and incidental text; T3.3 / T3.4 hold Studio at
+those values until a Studio change raises them.
+
+### Ember adjustments
+
+Ember is 0.52.1's palette exactly, except these values, each moved the smallest step in
+HSL lightness (hue kept) that passes the bar:
+
+| Theme | Token | 0.52.1 / derived | Shipped | Failed |
+|---|---|---|---|---|
+| ember-graphite | `TextMuted` | `#8D8779` | `#8F897C` | T3.1 TextMuted/SurfaceHover 4.45 < 4.5 |
+| ember-graphite | `TextTertiary` | `#6E6A5E` | `#716D60` | T3.2 TextTertiary/SurfaceHover 2.94 < 3.0 |
+| ember-graphite | `TextFaint` | `#55514A` | `#646054` | T3.3 TextFaint/Panel 2.36 < 2.5; T3.3 TextFaint/SurfaceHover 2.31 < 2.5; T3.3 TextFaint/SurfaceRaised 2.41 < 2.5 |
+| ember-graphite | `TextDisabled` | `#55514A` | `#646054` | T3.3 TextDisabled/Panel 2.36 < 2.5; T3.3 TextDisabled/SurfaceHover 2.31 < 2.5; T3.3 TextDisabled/SurfaceRaised 2.41 < 2.5 |
+| ember-graphite | `TextAxis` | `#4A463D` | `#65614F` | T3.3 TextAxis/BgApp 2.10 < 2.5; T3.3 TextAxis/Panel 2.38 < 2.5; T3.3 TextAxis/SurfaceHover 2.33 < 2.5; T3.3 TextAxis/SurfaceRaised 2.44 < 2.5 |
+| ember-graphite | `Record` | `#C25B44` | `#BE563E` | T3.5 Record 4.31 < 4.5 |
+| ember-paper | `TextMuted` | `#746D5C` | `#625B50` | T3.1 TextMuted/BgApp 3.54 < 4.5 |
+| ember-paper | `TextTertiary` | `#8A8474` | `#7E786C` | T3.2 TextTertiary/BgApp 2.57 < 3.0 |
+| ember-paper | `TextFaint` | `#9E9786` | `#8D866F` | T3.3 TextFaint/BgApp 2.00 < 2.5 |
+| ember-paper | `TextDisabled` | `#9E9786` | `#8D866F` | T3.3 TextDisabled/BgApp 2.00 < 2.5 |
+| ember-paper | `TextAxis` | `#ADA694` | `#8D8669` | T3.3 TextAxis/BgApp 1.67 < 2.5 |
+| ember-paper | `Accent` | `#A87415` | `#AD7716` | T3.5 Accent 4.38 < 4.5 |
+| ember-paper | `Track9` | `#4D7A5D` | `#598C69` | T3.7 Track2/Track9 7.53 < 12 |
+| ember-paper | `ReturnA` | `#4D7A5D` | `#598C69` | follows Track9 (returns draw from the ninth role) |
+
## The rules
-1. **One accent.** Brass means exactly "active, selected, changed". Everything else is a
- surface, text or semantics. There is no second accent.
-2. **Semantics only where they apply.** Red belongs to *active recording* (`Record`) and to
- overload (`Danger`/Alert). Green and yellow are meter zones and live signal.
-3. **Role chromas live only inside graphs** — never on buttons, never as state.
-4. **Flat material.** No gradients, no glow, no textures, no skeuomorphism. Depth is
- lightness plus a hairline; three levels at most.
-5. **Two typefaces, one split.** Geist for names and words; Geist Mono for anything that is
- a measurement. Nothing smaller than 7 px.
-6. **One implementation per control**, differing only in size. A control's value is
- always visible next to it — never only in a tooltip.
-7. **State changes colour, never size, border width or position.** Nothing moves on hover.
-8. **Real time is not animated.** Meters, playhead and spectra jump to the value.
-9. **Muted is the next Ink step, not opacity.** Opacity is not a state.
-10. **Numbers are set, not printed:** point decimal, U+2212 minus, thin space before the
- unit, fixed precision.
+1. **One accent: live or chosen.** Orange means playing, selected, the playhead, the loop,
+ a toggle that is on, a hovered menu item, the device power switch, and a value control
+ only while it is hovered or dragged. Nothing else. If an orange element is neither
+ playing, selected, looping, toggled on nor under the pointer, it is wrong. There is no
+ second accent.
+2. **Resting values are neutral.** Knob arcs, fader and slider fills, value bars, graph
+ curves and waveforms at rest are `VizInk`. A modulation arc keeps its source's chroma —
+ that is data, not state.
+3. **Semantics by purpose.** Mute on is amber (`Mute`), solo on is blue (`Solo`), arm and
+ record are red (`Record`) — in the arrangement, mixer and Session alike. Red is also
+ overload (`Danger`). Green is positive status and the meter's safe range (`Success`);
+ amber is the meter's −6…0 dB zone (`Warning`).
+4. **Derived ink on every solid fill.** Text or a glyph on an accent, mute, solo, arm or
+ track-colour fill takes `InkOn(fill)` (or `TextOnAccent` / `RecordInk` in XAML) — never a
+ hard-coded label colour.
+5. **Seam between, rule within.** Panels meet on the dark 1px `Seam` and so do keys in a
+ segmented group; items inside a panel are divided by the lighter 1px `Rule` (toolbar and
+ menu separators, field edges, graph frames). A device card's sections are not boxes:
+ they sit on the card and a rule divides neighbours (§ Device cards).
+6. **Flat docked, blur only floating.** No gradients, glow, textures or skeuomorphism.
+ Depth is a tone step plus a 1px seam, with a faint top bevel on raised controls. Only
+ floating layers (the command palette, in-window overlays) cast a blurred shadow.
+7. **Small, nearly square corners.** 2 for inner keys, rows, clips and menu items; 3 for
+ controls, cards, graph windows and popovers; 4 only for modals. 0 for docked panels; 1
+ for bars inside a plot.
+8. **Two typefaces, one split.** Geist for names and words; Geist Mono for every number a
+ user reads. Names are never mono. Nothing smaller than 7 px.
+9. **No shouting.** Labels are sentence case at letter-spacing 0 (`NotaText.Label`);
+ acronyms and units keep their case (`LFO rate`, `Gain dB`). No uppercase tracked labels,
+ no decorative kicker text.
+10. **One implementation per control**, differing only in size. A control's value is
+ always visible next to it — never only in a tooltip.
+11. **State changes colour, never size, border width or position.** Nothing moves on hover.
+12. **Real time is not animated.** Meters, playhead and spectra jump to the value.
+13. **Opacity is not a state.** Muted and disabled take the next ink step.
+14. **Numbers are set, not printed:** point decimal, U+2212 minus, thin space before the
+ unit, fixed precision, en-dash ranges.
+15. **One icon set.** Every icon is a `Glyph` kind (§ Icons); nothing else draws one.
## Tokens
-Values are Graphite / Paper. Paper values were derived from Graphite by lightness
-reflection and pinned by hand where the reflection read poorly.
+Values are Studio Dark / Studio Light, as `Theme/Themes/studio-dark.json` and
+`studio-light.json` declare them. Several Ember-era keys now
+alias one Studio role; the names stayed so the ~1,000 call sites kept working (§ Known
+drift).
-### Surfaces — nine steps, far to near
+### Surfaces — far to near
-| Key | Almanac | Graphite | Paper | Use |
+Five steps: well · ground · panel · raised · raised hover.
+
+| Key | Role | Dark | Light | Use |
|---|---|---|---|---|
-| `Brush.SurfaceAbyss` | Void | `#0A0908` | `#D8D1BE` | Deepest recess — the transport console |
-| `Brush.BgApp` | App | `#0B0A09` | `#DCD6C5` | Window ground, plugin body |
-| `Brush.Gutter` | Gutter | `#0C0B09` | `#E0DAC9` | The gaps panels float in |
-| `Brush.BgSunken` | Well | `#100F0D` | `#E4DFD1` | Graph windows, fields, slider tracks (`ChromeBg`, `SurfaceActive` alias it) |
-| `Brush.Panel` | Panel | `#141310` | `#EAE5D7` | Browser, headers, inspector; disabled button |
-| `Brush.SurfaceCard` | Card | `#171613` | `#EFEADE` | A section inside a device |
-| `Brush.SurfaceRaised` | Raised | `#1C1A16` | `#F8F5EC` | Button at rest |
-| `Brush.SurfaceHover` | Hover | `#252219` | `#E7E1D0` | Hovered button or row |
-| `Brush.TrackOff` | Track off | `#26231E` | `#DBD4C0` | Track of an off switch |
-| `Brush.LaneB` | — | `#131210` | `#E7E2D4` | Alternate arrangement lane |
-| `Brush.SurfaceSelected` / `AccentSubtle` | Brass Wash | `#241F17` | `#F2E4C4` | Selected row, engaged button ground |
+| `Brush.BgSunken` (`ChromeBg`, `SurfaceActive`, `TrackOff`, `SurfaceAbyss`) | Well | `#17181A` | `#D6D8DB` | Graph windows, fields, readouts, slider tracks, the transport console; pressed keys sink into it; the track of an off switch |
+| `Brush.BgApp` | Ground | `#1E1F22` | `#C9CBCF` | Window, title bar, arrangement, status line, detail-panel body, plugin body |
+| `Brush.LaneB` | Ground, alternate | `#222326` | `#C4C6CA` | Alternate arrangement lane |
+| `Brush.Panel` / `Brush.SurfaceCard` | Panel | `#2B2D31` | `#E4E5E7` | Transport row, browser, panel toolbars, inspector, device card body and its sections, mixer strips, dialog body |
+| `Brush.SurfaceRaised` | Raised | `#34363B` | `#EEEFF1` | Buttons and keys at rest, device card header, dialog header, menus, tooltips |
+| `Brush.SurfaceHover` / `Brush.SurfaceSelected` | Raised hover | `#393C41` | `#F7F8F9` | Hovered key or row; selected row (with an accent tick) |
+| `Brush.SurfaceHoverClear` | Raised hover at alpha 0 | `#00393C41` | `#00F7F8F9` | Resting row and ghost button, so the hover fade never passes through white |
+| `Brush.AccentSubtle` | Accent-soft (16 % accent over panel) | `#4D3F2E` | `#E6D6C4` | A soft accent ground; nothing at rest uses it |
+
+`NotaPalette` adds `CanvasBg` (ground), `SurfaceDeep` `#1B1C1F` / `#CFD1D4` (step-sequencer
+ground) and `SurfaceInset` `#232427` / `#DCDEE0` (rail, sunken chip) for custom drawing.
### Lines
-| Key | Almanac | Graphite | Paper | Use |
+| Key | Role | Dark | Light | Use |
|---|---|---|---|---|
-| `Brush.Hairline` (`NotaPalette.GraphBorder`) | Hairline | `#221F1A` | `#D5CFBE` | Row dividers, graph frame |
-| `Brush.BorderDefault` | Border | `#2C2923` | `#D5CEBB` | Panel, button, field |
-| `Brush.BorderStrong` | Border strong | `#3A362D` | `#BDB5A0` | Knob cap, hovered border, inactive fill |
-| `Brush.BorderBrass` | Border brass | `#6B5326` | `#C9A254` | Engaged button, focus |
-| `Brush.GridBeat` | Grid | `#1E1C18` | `#DED8C8` | Grid inside graphs, zero axis |
-| `Brush.GridBar` | — | `#2A2721` | `#CFC8B4` | Bar lines |
+| `Brush.Seam` (`BorderDefault`, `Gutter`) | Seam | `#141517` | `#9DA0A6` | Between docked panels, around raised controls, between segmented keys, menu ring |
+| `Brush.Rule` (`BorderStrong`, `Hairline`) | Rule | `#45484E` | `#B3B6BB` | Within a panel: separators, field and readout edges, graph-window frame (`NotaPalette.GraphBorder`) |
+| `Brush.BorderBrass` / `AccentEdge` | Accent line (70 % accent over panel) | `#BF7D22` | `#ECA54E` | An accent stroke where a fill is too heavy |
+| `Brush.GridBeat` | Grid on ground | `#2A2C30` | `#BDC0C4` | Beat grid, zero axis |
+| `Brush.GridBar` | — | `#3A3C41` | `#ADB0B5` | Bar lines |
+| `Brush.VizGrid` (`NotaPalette.WellGrid`) | Viz grid | `#2E2F32` | `#C0C3C6` | Grid inside a graph window |
-### Ink — eight steps, strictly by importance
+### Ink — by importance
-| Key | Step | Graphite | Paper | Use |
+| Key | Step | Dark | Light | Use |
|---|---|---|---|---|
-| `Brush.TextHeading` | Ink 0 | `#F2EDE1` | `#1A150E` | Page title, project name. Rare. |
-| `Brush.TextPrimary` | Ink 1 | `#E9E4D8` | `#241F17` | Device, track, preset names; values |
-| `Brush.TextStrong` | Ink 2 | `#C7C0B0` | `#3E382C` | Button text, transport readouts |
-| `Brush.TextSecondary` | Ink 3 | `#A39D8F` | `#5E5849` | Inactive but readable, metadata |
-| `Brush.TextMuted` | Ink 4 | `#8D8779` | `#746D5C` | Explanations, units, hints |
-| `Brush.TextTertiary` | Ink 5 | `#6E6A5E` | `#8A8474` | Caps labels over parameters; empty states |
-| `Brush.TextDisabled` | Ink 6 | `#55514A` | `#9E9786` | Placeholder, disabled action |
-| `Brush.TextAxis` | Ink 7 | `#4A463D` | `#ADA694` | Axis labels inside graphs only |
-| `Brush.TextOnAccent` | — | `#171613` | `#FFFBF2` | Text on solid brass |
-
-### Brass
-
-| Key | Almanac | Graphite | Paper | Use |
+| `Brush.TextHeading` | Ink 0 | `#F4F5F6` | `#0E0F11` | Modal and section titles. Rare. |
+| `Brush.TextPrimary` | Ink 1 · text-primary | `#E8E9EB` | `#16171A` | Names, values, button text |
+| `Brush.TextStrong` | Ink 2 | `#D4D6DA` | `#282A2E` | Toggle-key text, glyphs on transport keys |
+| `Brush.TextSecondary` | Ink 3 · text-secondary | `#C0C4C9` | `#3A3D42` | Labels, idle icons, metadata, supporting copy |
+| `Brush.TextMuted` | Ink 4 · text-muted | `#A4A9B0` | `#4F535A` | Section labels, units, counts, badges |
+| `Brush.TextTertiary` | Ink 5 | `#92969D` | `#65696F` | Row prefixes and tags, placeholders, empty states |
+| `Brush.TextFaint` (`TextDisabled`, `TextAxis`) | text-faint | `#82868C` | `#797C81` | Disabled controls; axis labels inside graphs |
+| `Brush.VizInk` | viz-ink | `#D7D8DA` | `#252629` | A value at rest: knob arcs, fader fills, graph curves, waveforms |
+| `Brush.TextOnAccent` | on-accent | `#17181A` | `#17181A` | Text on the accent (dark ink wins on both accents). For other fills use `InkOn` |
+
+### Accent
+
+| Key | Role | Dark | Light | Use |
|---|---|---|---|---|
-| `Brush.Accent` | Brass | `#D8A03D` | `#A87415` | Arc, fill, playhead, the one solid button |
-| `Brush.AccentBright` | Brass Light | `#F0C060` | `#744D07` | Knob pointer, modified label, handle |
-| `Brush.AccentHover` | Brass Hover | `#E9BE6A` | `#8F6110` | Engaged text, brass link hover |
-| `Brush.AccentDeep` | Brass Deep | `#B08536` | `#7A5008` | Pressed |
-| `Brush.AccentDim` | Brass Dim | `#8A6B2E` | `#9C8034` | Eyebrows, mono section marks |
-| `Brush.AccentEdge` | Brass Edge | `#5E4A22` | `#D3B173` | Brass chip border |
+| `Brush.Accent` | accent | `#FF9F1C` | `#EF8A0C` | Playing Play key, playhead, loop, selection ticks and bands, toggled-on keys, chosen segment, switch on, menu hover, a value control while live |
+| `Brush.AccentBright` / `AccentHover` | accent-glow | `#FFB547` | `#C46A00` | The line / ink variant — the accent drawn as a stroke or text |
+| `Brush.AccentDeep` | pressed | `#C77612` | `#D47800` | Pressed accent |
+| `Brush.AccentDim` | accent-dim | `#C77612` | `#F7C27A` | The soft accent |
-`AccentBright` is the hottest mark in both variants — the lightest on graphite, the darkest
-on paper. Fluent's `SystemAccentColor` ramps are retinted to brass.
+Fluent's `SystemAccentColor` ramps are retinted to the orange, so stock controls match.
### Semantics
-| Key | Almanac | Graphite | Paper | Use |
+| Key | Role | Dark | Light | Use |
|---|---|---|---|---|
-| `Brush.Record` | Record | `#C25B44` | `#B54A32` | Active recording — the only claim on red |
-| `Brush.RecordInk` | — | `#F4E3DC` | `#FFF4EE` | The disc on an engaged record button |
-| `Brush.Danger` | Alert | `#C2554A` | `#B13E33` | Overload, clipping |
-| `Brush.DangerBright` | Alert Light | `#E08A72` | `#A3391B` | Overload readout text |
-| `Brush.Warning` | Caution | `#D9C34C` | `#837010` | Meter −6…0 dB |
-| `Brush.Success` | Signal | `#58B368` | `#2C7A3E` | Working meter zone, live signal |
-| `Brush.SuccessDim` | Signal Dim | `#7FB069` | `#609548` | Transport input, metronome |
+| `Brush.Record` | error | `#F06A6E` | `#B3262C` | Record and arm — solid when on |
+| `Brush.RecordInk` | — | `#FFFFFF` | `#FFFFFF` | The disc on an engaged record key |
+| `Brush.Danger` | error | `#F06A6E` | `#B3262C` | Overload, clipping, error text |
+| `Brush.DangerBright` | — | `#F58F92` | `#9C1F24` | Overload readout text |
+| `Brush.Mute` | warning amber | `#F2B53C` | `#7A4F00` | Mute on |
+| `Brush.Warning` | warning amber | `#F2B53C` | `#7A4F00` | Meter −6…0 dB |
+| `Brush.Solo` | track blue | `#6A9FD8` | `#3F78B8` | Solo on |
+| `Brush.Success` | green | `#6CC673` | `#22692B` | Meter safe range, positive status; Play in Session |
+| `Brush.SuccessDim` | green-dim | `#3F8A45` | `#79B880` | Transport input, metronome |
-### Role chromas — inside graphs only
+`DangerHover` and `DangerSubtle` complete the error family; `NotaPalette` adds `DangerDeep`
+(over-threshold fill), `DangerPale` (live-take waveform) and `MuteTint` (the muted band).
-When two to four sources share a graph, each takes a chroma in this fixed order
-(`NotaGraph.Chroma(n)`): **Brass** (primary: left channel, mid band, main signal) ·
-**Teal** `#5B9E9C` / `#2F7472` (lows, early reflections, input, modulation) · **Rose**
-`#B57286` / `#86465B` (right channel, highs, tail) · **Steel** `#6D8FB5` / `#3E6288` (rare).
-Light pairs for text: `ChromaTealLight` `#7FC0BE`, `ChromaRoseLight` `#D79BAB`.
+### Graph chromas — inside graphs only
-A modulated knob's arc takes the chroma of its source; its label stays neutral.
+When two to four sources share a graph, each takes a chroma in this fixed order
+(`NotaGraph.Chroma(n)`): **viz ink** (primary: left channel, mid band, main signal) ·
+**Teal** `#5FB3A8` / `#3A8A7F` (lows, early reflections, input, modulation) · **Rose**
+`#D77A8F` / `#B4566B` (right channel, highs, tail) · **Blue** (`ChromaSteel`) `#6A9FD8` /
+`#3F78B8` (rare). Light pairs for text: `ChromaTealLight` `#86C9C0` / `#2E7067`,
+`ChromaRoseLight` `#E49EAE` / `#93404F`. They never go on a button and never mean state —
+the accent alone does.
### Track palette — nine roles
-| Drums | Perc | Bass | Keys | Texture | FX | Brass | Vox | Return |
-|---|---|---|---|---|---|---|---|---|
-| `#58B368` | `#4E9E7A` | `#3E8E8E` | `#5AA0B8` | `#C77F55` | `#7A6FB0` | `#B05A7A` | `#9AA64A` | `#7FA88E` |
-| `#328140` | `#306F53` | `#256464` | `#317187` | `#985127` | `#4B4082` | `#7F3450` | `#6C752C` | `#4D7A5D` |
+| | Drums | Perc | Bass | Keys | Texture | FX | Brass | Vox | Return |
+|---|---|---|---|---|---|---|---|---|---|
+| Dark | `#7FB87A` | `#5FB3A8` | `#5AA6C4` | `#6A9FD8` | `#E0A84A` | `#9D90C9` | `#D77A8F` | `#B3B45E` | `#8E9DB0` |
+| Light | `#4A7F46` | `#3A8A7F` | `#357C99` | `#3F78B8` | `#B8862F` | `#7363A8` | `#B4566B` | `#7E7F2F` | `#5D6C80` |
+
+Nine muted roles (teal, blue, amber, violet, rose and four more at matching chroma),
+one lightness for all so no track is louder than another (`Brush.Track1…9`,
+`NotaPalette.TrackBrushes`). Each role has three shades (base · 24 % toward white · 30 %
+toward black) that tracks inside a group step through. Old projects keep their stored
+index, which now points at the hue at that place in the table.
+
+### Master and returns
+
+| Key | Dark | Light | Use |
+|---|---|---|---|
+| `Brush.ReturnA` / `ReturnB` | `#8E9DB0` / `#7A889A` | `#5D6C80` / `#4E5B6D` | Return buses — the ninth role's slate |
+| `Brush.Master` | `#A4A9B0` | `#4F535A` | The master strip and spine — muted grey, not a hue: it is the sum, not a track |
+
+### Elevation
+
+| Key | Dark | Light | Use |
+|---|---|---|---|
+| `Shadow.Raised` | `inset 0 1 0 0 #12FFFFFF` | `inset 0 1 0 0 #B3FFFFFF` | The top bevel on raised keys, the device card header, the dialog header. The seam ring is the control's own 1px `Seam` border |
+| `Shadow.Sunken` | `inset 0 0 0 1 #45484E` | `inset 0 0 0 1 #B3B6BB` | The field edge on a recessed well |
+| `Shadow.Popover` | `0 0 0 1 #141517, 0 10 28 0 #6B000000` | `0 0 0 1 #9DA0A6, 0 10 28 0 #381E2024` | A popover drawn inside the main window |
+| `Shadow.Modal` | `0 0 0 1 #141517, 0 24 64 0 #80000000` | `0 0 0 1 #9DA0A6, 0 24 64 0 #401E2024` | The command palette |
-One lightness for all, so no track is louder than another. Each role has three shades
-(base · light · dark) that tracks inside a group step through. Return buses draw from the
-ninth role (`ReturnA/B`); master is brass. Old projects keep their stored index, which
-now points at the new hue.
+Only `Shadow.Popover` and `Shadow.Modal` carry a blur; everything docked is flat. The
+geometry is Studio's (built in `NotaThemeService`); a theme supplies the colours: the
+bevel (`ShadowBevel`), the drop (`ShadowPopover`, `ShadowModal`), and the rings, which are
+its `Seam` and `Rule`.
### Geometry
| Radius (`Radius.*` / `NotaRadius`) | px | For |
|---|---|---|
-| `Bar` | 1 | Spectrum bars, stop square |
-| `Clip` | 2 | Clip, meter, slider track |
-| `Badge` | 3 | Small segment, badge in a device |
-| `Control` | 4 | Graph window, button, dropdown |
-| `Tile` | 5 | Transport button, search, tile |
-| `Panel` | 6 | Panel, device section, transport module |
-| `Body` | 8 | Device body, window frame |
-| `Pill` | ½ height | Filter chip, switch |
+| `Docked` | 0 | A docked panel — it meets its neighbours on a seam |
+| `Bar` | 1 | Spectrum and level bars inside a plot |
+| `Clip` | 2 | Clip, row highlight, menu item, slider track, switch track |
+| `Badge` | 2 | Inner key, badge inside a device |
+| `Control` | 3 | Button, field, dropdown, graph window, popover, segmented group |
+| `Tile` | 3 | Transport key, search field, tile |
+| `Panel` | 3 | Device section |
+| `Body` | 3 | Device card |
+| `Pill` | 3 | Chip, switch — Studio has no pills; the name stays for its callers |
+| `Modal` | 4 | Modal window, command palette, splash |
| Size (`Control.*` / `NotaSize`) | px |
|---|---|
| Device card | 700 × 260 |
-| Transport island (`TransportBar`) · console (`Console`) | 60 · 42 · buttons 28 · Play 40 |
-| Shell button / field (`Shell`) | 26 |
-| Tab segment (`Seg`) in container (`SegGroup`) | 24 in 30 |
+| Transport row (`TransportBar`) · console (`Console`) | 44 · 30 |
+| Transport key (`Transport`) · Play (`Play`, width) | 26 · 36 |
+| Shell button / field / readout well (`Shell`) | 26 |
+| Tab segment (`Seg`) · segment container (`SegGroup`) | 24 · 30 |
| Filter chip (`Chip`) | 20 |
+| Title bar · panel toolbar · status line | 32 · 32 · 22 |
+| Menu item | 24 |
| Switch | 18 × 10, knob 7, inset 1.5 |
| Switch, Settings rows | 28 × 16, knob 12, inset 2 (`SwitchTrack(large: true)`) |
| Knob (`KnobSecondary` / `KnobRegular` / `KnobMain`) | 34 / 36 / 44 · `KnobInline` 24 in a table row |
@@ -209,42 +348,48 @@ now points at the new hue.
| Spacing (`Space.*` / `NotaSpace`) | px |
|---|---|
| In a device: hair · gap · inset · section inset | 2 · 5 · 6 · 8 |
-| In the shell: tile · gutter between panels · inside a panel | 8 · 12 · 20 |
+| In the shell: tile · between docked panels (`Gutter`, the seam) · inside a panel | 8 · 1 · 20 |
-**Depth, exactly three levels:** sunken — Well, Hairline, `Shadow.Sunken` (inner top line
-`#80000000`) · flat — Card, Border, no shadow · raised — Raised, Border, `Shadow.Raised`
-(inner top line `#08FFFFFF`). No drop shadows except a floating plugin window.
+**Depth:** well — `BgSunken`, a 1px `Rule` edge (`Shadow.Sunken` or a border) · ground —
+`BgApp` · panel — `Panel`, docked on seams, flat · raised — `SurfaceRaised`, a 1px `Seam`
+border and the `Shadow.Raised` bevel · floating — `Shadow.Popover` / `Shadow.Modal`.
## Type
`Font.UI` = **Geist** 400/500/600/700, `Font.Mono` = **Geist Mono** 400/500, both bundled
(`assets/fonts`, SIL OFL). `NotaFonts` holds the typefaces for custom drawing — never name
a font family in a view. Geist lacks the thin space; it falls back to the system font.
+Nothing in the shell is larger than 13 except the position readout.
**Shell scale** (`NotaType`, `TextBlock.*` classes)
| Class | Spec | For |
|---|---|---|
-| `Title` | 600 · 26 | Section title |
-| `Heading` | 600 · 13 | Project name in the header |
+| `Title` | 600 · 13, Ink 0 | Modal and section heading |
+| `Heading` | 600 · 13 | Project name, dialog title |
| `Name` | 500 · 12 | Track, preset, file name |
-| default | 500 · 11 | Buttons, tabs, chips |
-| `Caption` | 400 · 11, Ink 4 | Explanation, hint |
-| `SectionLabel` / `GroupLabel` | 700 · 10 caps, .14em | Panel group header |
-| `Readout` | Mono 500 · 13 | Position and tempo |
-| `Value` | Mono 400 · 10 | Row values, metadata |
-| `Eyebrow` | Mono 500 · 9 caps, .18em | Eyebrow, format badge |
+| default | 500 · 12 | Buttons, tabs, chips, menu items |
+| `Caption` | 400 · 11 / 16, secondary | Supporting copy, hint, status line |
+| `SectionLabel` / `GroupLabel` | 600 · 11, muted, sentence case | Panel and browser group heading |
+| `CellLabel` | 500 · 10, muted | The unit beside a readout (`BPM`, `Loop`, `Grid`) |
+| `Readout` | Mono 400 · 13 | Transport numbers; the position is 14 with .02em |
+| `Value` | Mono 400 · 11, secondary | Row values, metadata |
+| `Eyebrow` | Mono 400 · 10, muted, as written | Format badge |
-**Device scale**
+**Device scale** (inside the 700 × 260 card)
| Class | Spec | For |
|---|---|---|
| `DeviceName` | 600 · 12 | Device name in the header |
-| `DeviceSection` | 700 · 9 caps, .12em | Section title |
-| `RowLabel` | 700 · 8 caps, .1em | Slider-row label |
-| `KnobLabel` | 700 · 7 caps, .08em | Label under a knob |
-| `KnobValue` | Mono 400 · 7 | Parameter value |
-| `Axis` | Mono 400 · 7 | Axis label inside a graph |
+| `DeviceSection` | 600 · 10.5, muted | Section title |
+| `RowLabel` | 500 · 9, secondary | Slider-row label, segments in a device |
+| `KnobLabel` | 500 · 8, secondary | Name under a knob, switch word |
+| `KnobValue` | Mono 400 · 8 | Parameter value |
+| `Axis` | Mono 400 · 7.5, faint | Tick label inside a graph |
+
+7 is the floor and is reached only by plot tick labels; a label is 8 or more. The
+`NotaType.*Tracking` constants are 0 and stay only so older call sites compile — new code
+sets no `LetterSpacing`.
### Numbers
@@ -253,8 +398,14 @@ invariant with U+2212 as the negative sign — so every implicit `{v:0.0}` print
with a point on any OS locale; typed input still accepts a hyphen. Project and preset
files are JSON and never go through it.
-- The unit follows a **thin space**: `4.6 s`, `−3.3 dB`, `72 %` (`\u2009` in source).
+- The unit follows a **thin space**: `4.6 s`, `−3.3 dB`, `72 %` (` ` in source).
+- **Minus is U+2212** on every number shown, scale and tick labels included (the mixer
+ scale reads `+6 · 0 · −12 · −48`). A literal typed with a hyphen-minus (`"-12"`) fails
+ `RunNumbers`.
- A plus only where the sign matters: `+0.8 dB`.
+- **Ranges take an en dash** (U+2013): closed between plain numbers or note names
+ (`1–127`, `1.1–5.1`, `C1–C3`), spaced when either endpoint contains a space
+ (`0.20 – 1.50 s`, `20 Hz – 20 kHz`).
- Fixed precision: dB one decimal · tempo two (`120.00`) · percent whole · Hz whole up to
999, then `3.2 k`. Helpers: `NotaNum.Db`, `Hz`, `Pct`, `Bpm`, `Time`, `Unit`, `F`.
- Width must not jump across 10 or 100 — mono plus fixed precision.
@@ -262,14 +413,27 @@ files are JSON and never go through it.
### Labels and copy
-- Parameter labels: English caps, one word — `DECAY`, `PRE-DELAY`, `FEEDBACK`. No colons,
- no "Value", no vowel-dropped contractions (`FDBK`, `ATK`, `LVL`). The established
- truncations `FREQ`, `RESO`, `THRESH` are allowed: the full words do not fit a 53 px cell.
+- Parameter labels: English, sentence case, one word where it fits — `Decay`,
+ `Pre-delay`, `Feedback`. Views may still pass caps literals (`"PRE-DELAY"`): every label
+ builder routes them through `NotaText.Label`, which sentence-cases an all-caps string and
+ keeps acronyms and units (`LFO`, `EQ`, `ADSR`, `MIDI`, `dB`, `Hz`, `kHz`, `ms`) in their
+ own case (`NotaText.Fixed`, which also holds `LUFS`, `USB`, `OK`, `DAW`). A string with
+ any lower-case letter is left as written. No colons, no "Value", no vowel-dropped
+ contractions (`Fdbk`, `Atk`, `Lvl`); the established truncations `Freq`, `Reso`,
+ `Thresh` are allowed — the full words do not fit a 53 px cell.
+- **Every label is sentence case** — menu items, command titles, palette headings, window
+ titles, tooltips, section heads, buttons: "Save as…", "Live freeze", "Export audio",
+ "Recent", "Suggested · Arrangement". Capitals stay only on acronyms and units
+ (`NotaText.Fixed`), product and device names ("Nota Aurora"), the view names
+ (Arrangement, Session, Modular, Mixer — "Back to Arrangement", "Show Mixer") and other
+ proper nouns (Finder), and a Settings page named after "Settings: " ("Settings: Audio").
+ Data keeps its own case: preset names, engine parameter names, MIDI-learn names, user
+ data. `RunLabels` holds the rule.
- Shell tooltips: short and verb-first — "Snap clips to the grid (hold Alt to drag
freely)", "Clear the peak hold". Not "Click to…". The value stays on the control;
a tooltip may add the unit or range.
- Browser category tags lowercase (`bass`, `analog`; acronyms stay `EQ`, `LFO`); the
- processing-type badge is mono caps (`CONVOLUTION`, `DYNAMICS`).
+ processing-type badge is mono, muted, sentence case (`Convolution`, `Dynamics`).
- Preset names describe a place or material (`Stone Vault`, `Tape Glue`), not an emotion.
Device names are one word from the musical vocabulary (`Chamber`, `Prism`).
- Middle dot `·` separates meta. Sentence case. No emoji, no exclamation marks.
@@ -292,41 +456,73 @@ Builders live in `DeviceCardKit`; controls in `Controls/`. Reuse before writing
| Control | Spec |
|---|---|
-| `Knob` | 52-grid: groove r21 stroke 5, 270° from −135°, cap r14, pointer 2.4 Brass Light. Sizes snap to 34 / 36 / 44; `Inline` pins 24 for a knob inside a table row. `IsModified`, `IsDim`, `ArcColor` for a modulation source. |
-| `DeviceCardKit.KnobCell` | Knob → label 7/700 caps → value mono 7, no gap; 53 tall under a 34 knob. Label and value go Brass Light when modified or `emphasised`. |
-| `SwitchTrack` / `DeviceCardKit.Switch` | 18 × 10, knob 7, inset 1.5; on = brass + panel-coloured knob right, off = Track off + Ink 5 knob left. Word to the right, caps 7 in a device, 11 in the shell. The Settings window uses the large 28 × 16 size (knob 12, inset 2) with a 12px sentence. |
-| `DeviceCardKit.Segments` | Sunken container; selected = solid brass with dark text. 9 px in a device, 11 in the shell (`ToggleButton.seg` in `Border.segmented`). |
-| `SliderTrack` / `DeviceCardKit.SliderRow` | Label · 3 px well track · 6 × 7 handle · fixed-width mono value right. Bipolar fills from centre. Inactive loses brass, keeps the number. |
-| `MiniFader`, `PanBar`, `VFader` | Track-header gain and pan, mixer fader — same drag contract. |
+| `Knob` | 52-grid: groove r21 stroke 5 in Well, 270° from −135°, raised face r14 with a seam edge, pointer 2.4 in primary ink. Value arc: `VizInk` at rest on the audio path (`Accent = true`), `Rule` off the path or disabled, `Accent` while hovered or dragged; `ArcColor` for a modulation source. Sizes snap to 34 / 36 / 44; `Inline` pins 24 for a knob inside a table row. `IsModified`, `IsDim`. |
+| `DeviceCardKit.KnobCell` | Knob → name 8/500 sentence case, secondary → value mono 8, no gap; 53 tall under a 34 knob. A modified or `emphasised` parameter lifts its name to primary ink — no accent, no dot. |
+| `SwitchTrack` / `DeviceCardKit.Switch` | 18 × 10, knob 7, inset 1.5, radius 2, a squared knob; on = accent track + panel-coloured knob right, off = well track + Ink 5 knob left, on but inactive = `Rule`. Word to the right, 8 sentence case in a device, 12 in the shell (`CheckBox`). The Settings window uses the large 28 × 16 size (knob 12, inset 2). |
+| `DeviceCardKit.Segments` | Well strip with a rule edge; chosen = solid accent with derived ink, 600. 9 px in a device; in the shell `ToggleButton.seg` (24, raised, 12 px, the weight unchanged when chosen so auto-width keys never shift) inside `Border.segmented` — keys butted on 1px seams, only the group's outer corners round. |
+| `SliderTrack` / `DeviceCardKit.SliderRow` | Name 9/500 · 3 px well track · 6 × 7 handle · fixed-width mono value right. Fill `VizInk` and handle primary at rest, accent while hovered or dragged; teal under modulation. Bipolar fills from centre. Inactive drops to `Rule` and faint ink, keeps the number. |
+| `MiniFader`, `PanBar`, `ValueBar`, `MixBar`, `VFader` | Track-header gain and pan, value bars, mixer fader — same drag contract, same rule: neutral at rest, accent while live. |
| `DragNumber` | Mono field: drag, or double-click to type. |
-| Buttons (`Button`, `.primary`, `.ghost`, `.cell`, `.chip`, `.tp-icon`, `.tp-play`) | 26 tall; raised at rest. **One** solid-brass action per context; every other engaged button is Brass Wash + `BorderBrass` + `AccentHover` text. |
-| Fields (`TextBox.field`, `.search`) | 26, sunken; focus = `BorderBrass`, no ring. |
-| Filter chips | 20, pill, 9 side pad, a category-colour dot instead of an icon; one line, overflow folds into `+N`. |
-| `Glyph` | Icons drawn as geometry: stop 10 r1, record 11 disc, play 11 × 14 triangle; the rest a round stroke of ~15 % of the size (min 1.2). No icon font, no unicode glyphs. |
-| `MeterBar`, `StereoMeter`, `GrMeter` | 11 wide, 5 apart, radius 2 on Well; Signal → −6 dB Caution → 0 Alert; −60…+6; peak hold stays until clicked. |
-| `Inactive.Set(root, on, interactive)` | Puts a subtree into the disabled look by colour (Ink 6, brass → Border strong, controls `IsDim`). |
+| Buttons (`Button`, `.primary`, `.ghost`, `.cell`, `.chip`, `.tp-icon`, `.tp-play`) | 26 tall, radius 3, raised with a seam border and the bevel at rest. A context's primary action is set apart by weight (600) and one tone step (raised hover), **not by colour**. A toggled-on key is solid accent with derived ink. A destructive action is an ordinary raised key; its label says what it does. |
+| Readouts and fields (`Border.well`, `.cell`, `TextBox.field`, `ComboBox`, `.search`) | 26, well fill, 1 px rule edge, radius 3; a mono value with its muted unit on one line. Focus = the edge turns accent, no ring. |
+| Filter chips | 20, radius 3, 9 side pad, raised with a seam border; a category-colour dot instead of an icon; active = solid accent with derived ink. The Favorites / tags strip is one line and overflows into `+N`; the device tabs' category row wraps instead, so every category stays in sight. |
+| Track toggles (M / S / arm) | Raised keys at rest; on = solid `Mute` / `Solo` / `Record` with `InkOn` text. |
+| `Glyph` | The one icon set (§ Icons): geometry on a 16-unit grid, a round-capped 1.5 px stroke at 16 px (scaled, min 1.2) or a solid fill. No icon font, no unicode glyphs. |
+| `MeterBar`, `StereoMeter`, `GrMeter` | 11 wide, 5 apart, radius 2 on Well; green → −6 dB amber → 0 red; −60…+6; peak hold stays until clicked. |
+| `Inactive.Set(root, on, interactive)` | Puts a subtree into the disabled look by colour (faint ink, accent → rule, controls `IsDim`). |
| `NaBadge` | Feature not built yet; the control stays so nothing shifts later. |
-**Record:** at rest a neutral button with a red disc; engaged, solid `Record` with a
+**Record:** at rest a raised key with a red disc; engaged, solid `Record` with a
`RecordInk` disc. The same rule arms tracks in the arrangement, mixer and Session.
### States
-| State | Ground · border · text |
+| State | Treatment |
|---|---|
-| Rest | Raised · Border · Ink 2 |
-| Hover | Hover · Border strong · Ink 1 (120 ms) |
-| Pressed | Well · Brass Deep — no 1 px shift |
-| Engaged | Brass Wash · Border brass · Brass Hover |
-| Selected | Brass Wash + 2 px brass bar on the left; name Ink 1 |
-| Focus | Border brass, no outline |
-| Disabled | Panel · Hairline · Ink 6 — no opacity |
-| Modified | label and value → Brass Light; no dot |
+| Rest (raised) | Raised · seam border · Ink 1–2 · `Shadow.Raised` bevel |
+| Hover | Raised hover (120 ms) · nothing moves |
+| Pressed | Well · bevel hidden — no 1 px shift |
+| Toggled on / chosen option | Solid accent · derived ink (`TextOnAccent`) · bevel hidden |
+| Selected row | Raised hover + 2 px accent tick on the left; name Ink 1 |
+| Selected tab | Primary ink + 2 px accent underline |
+| Focus (fields, readouts, keys) | 1 px accent edge, no ring, no glow |
+| Disabled | Panel ground · faint ink — no opacity |
+| Live value control | Arc / fill / handle turn accent while hovered or dragged |
+| Modified parameter | Name lifts to primary ink; no accent, no dot |
**Motion:** hover and colour 120 ms ease-out (`BrushTransition`); nothing real-time is
animated. **Empty state:** one line of Ink 5, centred, no illustration or call-to-action
button; details go in a tooltip; the area keeps its size and frame.
+### Icons
+
+`Controls/Glyph.cs` is the app's only icon set: every icon is a `GlyphKind`, used as a
+`Glyph` control or drawn with `Glyph.Draw` inside a `Render`. Nothing else parses path
+geometry, and no icon is a typed character (`RunIcons`).
+
+- **Grid:** a path kind is drawn on a 16-unit grid and scaled as a whole to the size asked
+ for — never `Stretch.Uniform`, so a wide and a tall icon keep their optical balance. The
+ natural size is 16; the transport shapes keep theirs (Stop 10, Record 11, Play 11 × 14).
+- **Stroke:** stroked parts take the shared pen — round caps and joins,
+ `max(1.2, size × 1.5/16)`, so 1.5 px at 16. Icons in the rail, browser, Preferences,
+ palette, history and player match in weight.
+- **Filled vs stroked:** a shape is outlined unless it needs mass to read. Filled: the
+ transport shapes, the view keys Arrangement and Session, the OS marks (Apple, Windows,
+ Linux), `StarFilled` (a favourite; `Star` is the outline), the disclosure carets and
+ Snap. Metronome, Follow and Automation mix a stroked frame with a filled weight, flag or
+ handle. Fills take the ink, never a second colour.
+- **Kinds:** besides the transport and context-menu set — the views (`Arrangement`,
+ `Session`, `Modular`); rail and Settings pages (`Keyboard`, `Sliders`, `Folder`,
+ `Downloads`, `Star`, `Bookmark`, `Doc`, `Midi`, `Map`, `History`, `Sidebar`, `Options`,
+ `Search`, `Gamepad`, `Phone`, `Plug`, `Library`, `Appearance`, `Shortcuts`, `MidiPort`);
+ palette kinds (`Action`, `Track`, `Device`, `Preset`, `Patch`); the player (`Loop`,
+ `Speaker` with `SpeakerLow` / `SpeakerHigh` / `SpeakerMute` layered on it, `Levels`);
+ the transport toggles (`Metronome`, `Follow`, `Snap`, `Automation`); `ChainLink` (Live
+ freeze); `CaretRight` / `CaretDown`. Each kind carries a one-line comment naming what it
+ depicts.
+- **A new icon** is a new kind in `Glyph.cs`, drawn on the grid with the shared pen — not a
+ path in the view that needs it.
+
## Visualisers
About 45 custom-drawn views in `Controls/`. A device draws **the thing it does**, and where
@@ -335,39 +531,72 @@ harmonics push a sine through the real waveshaper).
All live in one **graph window** (`Controls/NotaGraph.cs`):
-- Well ground, 1 px Hairline frame, radius 4, grid in `GridBeat`.
-- Axis labels mono 7–8 in Ink 7, **in the corners** — never full axes with ticks. A
+- Well ground, 1 px rule frame (`GraphBorder`), radius 3, grid in `VizGrid`.
+- Axis labels mono 7.5 in faint ink, **in the corners** — never full axes with ticks. A
frequency graph is labelled only in its bottom corners (`20` · `20k Hz`).
-- Title caps 8 top-left; the legend lives **inside** the window, a drawn sample next to a
- value (`NotaGraph.Legend`).
-- Primary curve 1.8 px brass; secondary 1.2–1.6 px in their chroma. **No fills under
+- Title sentence case 8/500, muted, top-left; the legend lives **inside** the window, a
+ drawn sample next to a value (`NotaGraph.Legend`).
+- Primary curve 1.8 px `VizInk`; secondary 1.2–1.6 px in their chroma. **No fills under
curves, no gradients.**
-- Nodes 7 px with a 2 px ground-coloured ring; active brass, the rest Ink 3.
-- Waveforms: second channel at 70 %; the trimmed part darkened by 72 %, not hidden; the
- boundary a 1 px brass line with its value.
-- Bars: 1–2 px gaps, radius 1, no outline; brass only for a selected range, else Border
- strong; updates are discrete.
-- Timeline: a clip is a flat rectangle in its track colour, radius 2, no outline; the
- playhead is 1 px brass with a 7 × 5 flag and no glow.
+- Nodes 7 px with a 2 px ground-coloured ring; the active (selected or dragged) node is the
+ accent, the rest secondary ink.
+- Waveforms at rest in `VizInk`; second channel at 70 %; the trimmed part darkened, not
+ hidden.
+- Bars: 1–2 px gaps, radius 1, no outline; the accent only for a selected range; updates
+ are discrete.
+- Timeline: the playhead is 1 px accent with a 7 × 5 flag and no glow; the loop range is
+ accent.
## Device cards
Every built-in device is a **700 × 260** card (`DeviceCardKit.CardH`, width from
-`IDeviceBody.Width`).
-
-- **Header 22** (`HeaderH`): device name (12/600) on the left; on the right the **preset
- picker** `‹ Name ⌄ ›` (an 18 px sunken field, radius 4: the name opens the factory
- presets, the chevrons step through them, wrapping), the processing-type badge (mono caps;
- instruments add live voices, `SUBTRACTIVE · 3/16`) and the bypass switch. The picker
- appears only when the device has factory presets. A/B, move and delete live in the
- header's right-click menu; drag the card by its whole header; Delete removes it.
-- **Body 238**, inset 6 (`NotaSpace.DeviceInset`) unless the body is `FullBleed`.
- Sections radius 6, gap 5, section inset 6–8; a knob row is 52–54 tall.
+`IDeviceBody.Width`): panel body, radius 3, a 1 px seam frame. A selected card carries a
+1.5 px accent ring outside its frame.
+
+- **Header 22** (`HeaderH`, built by `DeviceChainView.Shell.cs` `BuildCardShell`): a
+ raised strip with the `Shadow.Raised` bevel and a seam under it, in **fixed slots, left to
+ right: name · preset · badges · power**.
+ - **Name** (12/600), in the left half of the header, trimmed before it reaches the
+ picker. A compact card drops the "Nota " prefix.
+ - **Preset** — the picker `‹ Name ⌄ ›`, an 18 px well field, **centred in the header**
+ between two equal halves: the name opens the factory presets, the chevrons step through
+ them, wrapping. Only when the device has presets.
+ - **Badges**, right-aligned before the power slot: the processing-type badge (mono 10,
+ muted, sentence case; instruments add live voices, `Subtractive · 3/16`), then the
+ card's own accessories (Learn, the S / L size toggle).
+ - **Power** — the bypass switch, accent while the device is on. The slot
+ (`SwitchTrack.W` wide) is reserved on every card, empty when the device cannot be
+ bypassed (instruments), so right edges line up down a chain.
+
+ A/B, move and delete live in the header's right-click menu; drag the card by its whole
+ header; Delete removes it. Every card uses this header — effects, instruments, MIDI
+ effects, racks (the Instrument Rack's "Rack · N chains" is a badge), the generic
+ instrument card, hosted plug-ins — and the Sends card, a `Utility` card with no device
+ menu, selection or presets.
+- **Body 238**, inset 6 (`NotaSpace.DeviceInset`) unless the body is `FullBleed`. A knob
+ row is 52–54 tall.
+- **Sections are divided by rules, not boxed.** `DeviceCardKit.Section(body, edges)`
+ (`Controls/RuleSection.cs`) has no fill and no frame — it sits on the card surface — and
+ draws a 1 px `Rule` only on a top or left edge that faces a neighbouring section. By
+ default (`SectionEdge.Auto`) it finds those from the layout: a section within 16 px that
+ overlaps the edge by at least 4 px; a caller may name the edges instead. It keeps the
+ 1 px inset of the old frame, so content does not move. Sections keep gap 5 and section
+ inset 6–8, titled in `DeviceSection` (muted 600). The cards' local section helpers
+ delegate to it. **Not sections:** graph windows (`NotaGraph`) and wells keep their frame; chips,
+ selectable tiles, rows and pads, and readouts keep theirs.
- **Three columns, left to right: choice → work → output** — source or preset on the left,
graph and parameters in the middle, levels and mix on the right.
-- **Brass** marks the audio path and active state; modulation shows its source chroma
- (teal for LFOs and envelopes) on the arc; end-of-chain trim fills with Border strong.
+- **Values at rest are neutral**; the accent marks only what is live or chosen (a knob in
+ the hand, a chosen segment, a switch that is on, the playing step). Modulation shows its
+ source chroma (teal for LFOs and envelopes) on the arc.
- A bypassed card keeps its layout and turns to the disabled look via `Inactive`.
+- **Add device** — the end of a chain is a 28 px-wide key with a `Plus` glyph and a
+ tooltip; its dashed outline (`BorderStrong`, radius 3) shows only while a drag is over
+ the chain, so an empty dock stays quiet. A rack's chain ends the same way.
+- **The chain** sits tight in the Devices panel: a 6 px inset all round and 6 px between
+ cards (`DeviceChainView.ChainInset` — just room for the selection ring), and the panel
+ opens at exactly the cards' height (seam + 32 px toolbar + insets + 260), so nothing
+ floats above or below the cards.
Width exceptions, by decision: **Bass 1060, Physical 720** (squeezing them would be a
redesign) and the parameter-list stub (190). A hosted plug-in (VST3 / AU) is a two-size
@@ -379,118 +608,207 @@ filterable knob grid (and the sidechain source when it has a bus). Rhythm moved
## Shell
```
-┌ header 36 ─ "Nota", centred ───────────────────────────────────────────┐
-│ transport 60 ─ project · view switch · console · tempo · … CPU│
+┌ title 32 ─ "Nota", centred, on ground ─────────────────────────────────┐
+├ transport 44 ─ project · view switch · console · tempo · … CPU master │
├─────────────┬──────────────────────────────────────────────────────────┤
│ browser │ canvas (arrangement · session · modular) │
├─────────────┴──────────────────────────────────────────────────────────┤
-│ detail 32 + cards ─ Devices · Pattern · Clip · track · Freeze · ⧉ × │
-└ status 22 ─ plain text on the gutter ──────────────────────────────────┘
+│ toolbar 32 ─ Devices · Pattern · Clip · track · Freeze · ⧉ × │
+│ detail body ─ cards │
+├────────────────────────────────────────────────────────────────────────┤
+└ status 22 ─ caption text on ground ────────────────────────────────────┘
```
-- **Header 36** — frameless; macOS traffic lights in a left inset, "Nota" (`Heading`)
- centred — the project's name lives in the transport; Windows reserves 180 px for the
- caption buttons.
-- **Transport 60, under the header** — an island like the browser and the canvas
- (`Border.transport`: Well, hairline, radius 6, 12 px from the window edges). Stop / play /
- record, position and loop share the console, one 42 recess on Void inside it
- (`Border.console`); the view switch and the master well sit on Card. It reads left to
- right: the project name (13 semibold, Ink 1) · view switch (Arrangement · Session · Modular) · the console · tempo `120.00`,
- signature, grid · the switches (metronome, follow, snap, automation) — then, pinned right,
- MIDI, CPU and master. Buttons are 28, Play 40; Play is raised at rest and solid brass only
- while the transport runs. There is no add-track button — tracks come from the browser.
- Launch quantize lives in the Session toolbar, not here. Transport buttons are not focusable, so
- Space / R / L / Return always reach the window.
-- **Body** — the browser on the left and the canvas float as panels on `Gutter` with 12 px
- gaps; the canvas is always sunken relative to panels. The splitter is a transparent grab
- strip inside the gap.
-- **Detail panel** — the third island: Panel ground, hairline, radius 6, 12 px from the
- window edges and from the canvas above. Header 32: the mode segments, the track (8 px
- colour square, name 12 semibold, Ink 5 routing summary), outlined 22 px Freeze /
- Live Freeze, a hairline, then pop-out and close as ghost icons.
-- **Status 22** — one line of `Caption` text straight on the gutter, no bar and no rule,
- aligned 16 px in.
-- **List rows** are 26 and one line: a colour dot or bar, the name, mono metadata right.
-- **Arrangement:** track rows 64 (the header carries every control), group rows 26 (open to
- 64 while selected), header column 228, default zoom 28 px per beat. Every y ↔ row
- conversion goes through `ArrangementView.RowTop` / `RowAtY`. A group's rows step their
- 3 px colour spine 10 px further in per level (`GroupIndent`), the name just past it.
- Above the tracks: Overview 34 (one 2 px line per clip row at a 3.4 px pitch, track
- colour at 60 %; the viewport an Ink 4 frame over a 5 % lift — no brass, no scrim),
- Sections 22, Zoom + ruler 24. Overview and the ruler end on `BorderDefault`, Sections on
- a `Hairline`. The horizontal scrollbar is a 12 px well under a hairline with a 5 px pill
- (`ThinScrollBar`: Border Strong, Ink 5 when hot). Audio clips draw their waveform as
- spaced bars by default — a 1 px stroke every 3 px, mirrored about the centre;
- Settings → Appearance → Waveform switches to Solid (a column per pixel).
+Every region is **docked**: radius 0, no gutter, separated by 1 px seams (the window's
+`Seam`-coloured ground showing through a 1 px margin).
+
+- **Title bar 32** — frameless, on ground, a seam below; macOS traffic lights in a left
+ inset, "Nota" (`Heading`) centred — the project's name lives in the transport; Windows
+ reserves 180 px for the caption buttons.
+- **Transport 44, under the title bar** — a flat full-width row on `Panel` with a seam
+ below (`Border.transport`). Stop / play / record, position and loop share the console,
+ one 30 px recessed group on the well with a rule edge (`Border.console`), keys butted on
+ 1 px seams. It reads left to right: the project name (13 semibold, Ink 1) · view switch
+ (three 28 × 24 icon keys — `Glyph` Arrangement · Session · Modular — in a segmented
+ group, the current one solid accent; the tooltip and accessible name are the view name)
+ · the console · tempo `120.00 BPM`, signature, key,
+ grid — each a 26 px readout well with its muted unit beside it · the switches
+ (metronome, follow, snap, automation) — then, pinned right, MIDI, CPU and master.
+ Transport keys are 26, Play 36 wide; Play is raised at rest and solid accent only while
+ the transport runs. There is no add-track button — tracks come from the browser. Launch
+ quantize lives in the Session toolbar, not here. Transport buttons are not focusable, so
+ Space / R / L / Return always reach the window. `MainWindow.TransportFit.cs` sheds the
+ least-needed parts first when the window is narrow.
+- **Body** — the browser on the left and the canvas meet on a seam. The splitter is a
+ transparent 6 px grab strip centred on the seam, with the same limits as before.
+- **Detail panel** — docked under the canvas on a seam; its body is the ground. It opens
+ with a 32 px panel toolbar on `Panel` with a seam under it: the mode segments, the track
+ (colour square, name 12 semibold, routing summary), raised 22 px Freeze / Live Freeze, a
+ rule, then pop-out and close as ghost icons.
+- **Status 22** — one line of `Caption` text on the ground, a seam above it, aligned 16 px
+ in.
+- **List rows** are 26 and one line: a colour dot or bar, the name, mono metadata right;
+ hover raised hover, selected raised hover with a 2 px accent tick. A built-in device's
+ browser row shows its short name ("Aurora", not "Nota Aurora" — search still matches the
+ full name); the type tag on the right is `TextFaint` mono 10.
+- **Category chips** — the Instruments, Audio effects and MIDI effects tabs carry a row of
+ category chips (the filter chip: 20 tall pill, sentence case) between the search row and
+ the Favorites / tags row. It wraps rather than overflowing into "+N", because every
+ category should stay in sight. One chip is picked per tab, and a picked chip narrows the
+ list, stacking with search and the Favorites / tag chip. `Other` comes last and appears
+ only when an unrecognised plug-in lands there. "Category chips" in ⋮ hides the row. The
+ categories live in `DeviceCategories.cs`.
+- **Mixer strips** are panel-tone columns on seams, each with a 3 px top bar in the track
+ colour (muted grey for master).
+- **Arrangement** (geometry unchanged): track rows 64 (the header carries every control),
+ group rows 26 (open to 64 while selected), header column 228, default zoom 28 px per
+ beat. Every y ↔ row conversion goes through `ArrangementView.RowTop` / `RowAtY`. A
+ group's rows step their 3 px colour spine 10 px further in per level (`GroupIndent`),
+ the name just past it. Above the tracks: Overview 34, Sections 22 (spans alternate two
+ neutral tone steps), Zoom + ruler 24. The horizontal scrollbar is a 12 px well with a
+ 5 px thumb (`ThinScrollBar`). Audio clips draw their waveform as spaced bars by default —
+ a 1 px stroke every 3 px, mirrored about the centre; Settings → Appearance → Waveform
+ switches to Solid (a column per pixel). The pinned Return / Master band meets the tracks
+ on a 1 px seam; below the last track the lane side keeps the lane colour and the header
+ side the header colour. A new track is scrolled fully into view
+ (`ArrangementView.RevealTrack`).
+- **Clips** are flat 2 px-radius rectangles: a full-colour body in the track colour, a
+ 12 px title band across the top in the track colour mixed 30 % toward black (the accent
+ when the clip is selected) with the name in 9.5/600 derived ink, and the content — notes
+ or waveform — in a deeper shade (58 % toward black). A row too short for the band keeps
+ a 2 px band.
- **Clip editor** (MIDI and audio share one frame, `ClipEditorKit`): header 38 whose first
232 is the clip cell (3 px track-colour bar, name, mono kind badge), modes as shell
- segments after it; inspector 232 on the left, sections split by hairlines and ending in
- one Ink 5 hint line; the canvas sits in the well. MIDI: keys 48, rows 12, a beats-only
- ruler 24 with the loop as a 3 px brass strip, notes in the track colour quieter by
- velocity, selected notes brass, tool previews as brass outlines; the tools panel is 272
- and Apply is its one solid-brass action, lit only while a preview is pending. Audio: a
- ruler 24, a 22 px warp-marker strip, and everything outside the played region darkened.
- Envelopes are a mode (a tab), drawn in brass over a wash of the canvas.
+ segments after it; inspector 232 on the left, sections split by rules and ending in one
+ Ink 5 hint line; the canvas sits in the well. MIDI: keys 48, rows 12, a beats-only
+ ruler 24 with the loop as a 3 px accent strip, notes in the track colour quieter by
+ velocity, selected notes accent, scale rows a neutral lift; the tools panel is 272 and
+ Apply is its primary action. Audio: a ruler 24, a 22 px warp-marker strip, and
+ everything outside the played region darkened. Envelopes and expression curves are
+ neutral viz ink; only the point under the pointer is the accent.
+
+- **Session** — the inspector column is 260 and can be hidden: an Inspector key (`Glyph` Sidebar, its tooltip names it) at
+ the right end of the toolbar, remembered (`SessionInspectorOpen`, on by default). When
+ the toolbar is narrow its least-used controls fold, one at a time, into a "⋯" menu that
+ lists whatever is hidden — the position readout first, then Back to Arrangement, Capture
+ scene, the section toggles, Follow — so every control stays reachable.
+- **Modular** — the sidebar always lists the tracks; opening the view with nothing
+ selected selects the first track that is neither a group nor a return. Empty states:
+ "No tracks yet" in the sidebar, "Pick a track to see its signal graph" on the canvas.
+
+### Menus, popovers, dialogs
+
+- **Menus, context menus, flyouts, drop-downs, tooltips:** raised, radius 3, a 1 px seam
+ ring. Menu items are 24 tall, radius 2; hover is a full accent fill with derived ink;
+ the shortcut on the right is muted ink (derived ink while highlighted); separators are
+ rules. **No blurred shadow:** Avalonia draws each popup in a window of its own, sized to
+ its content, so a blur would be clipped at the popup's edge.
+- **Command palette** — the in-window modal: panel body, radius 4, seam ring and
+ `Shadow.Modal`.
+- **Dialog windows** (`NotaWindow`): panel body; on macOS and Windows a 32 px raised header
+ with the bevel and a seam below, the title in `Heading`. The OS draws the window shadow.
+
+### Floating windows
+
+The mixer and the export dialog are OS windows (`NotaWindow`), not in-window overlays, so
+the mixer can live on a second screen. The command palette is the only in-window overlay.
+
+- **Escape** closes a floating window, as it closes the palette: the mixer closes (unless a
+ text field has focus — it owns Escape then), Export cancels (an open drop-down takes its
+ own Escape first).
+- **The mixer sizes to its strips** (`MixerWindow.FitWidth`): the window is as wide as the
+ strips and master plus padding, clamped to [560 (`MinWidth`), the screen's working
+ width], so there is no dead area right of the master. It refits when a track is added
+ or removed while it is open, and a window that grows past the screen's right edge moves
+ back onto it. The height stays 460.
+- **Titles are sentence case:** "Mixer", "Export audio", "Edit tags", "What's new in
+ Nota", "Connect phone".
## Enforced by tests
-`tests/Nota.SmokeTest/DesignTokenCheck.cs` runs in the smoke test and fails the build on:
+`tests/Nota.SmokeTest/DesignTokenCheck*.cs` runs in the smoke test (the `-- design: … --`
+sections) and fails the build on:
| Check | Holds |
|---|---|
-| `Run` | Dark/Light key parity; every `NotaPalette` slot matches its XAML pair; `KeyMap` keys exist |
-| `RunGeometry` | XAML ↔ `NotaGeometry` values; no undefined keys; no `CornerRadius` literals, drop shadows or gradients in views |
+| `Run` | `NotaTheme.axaml` holds no colour; every referenced `Brush.*` key is published (`KeyMap`); every `Shadow.*` key is built from the theme |
+| `RunThemes` | Every theme file: shape, id, kind, exactly the token catalogue, valid opaque colours (shadows may be translucent), and every readability pairing (§ Readability bar); `BuiltInOrder` lists exactly the files |
+| `RunAppearance` | Old settings migrate (Dark / Light / System); unknown and wrong-kind ids fall back; storing keeps the legacy setting in step |
+| `RunGeometry` | XAML ↔ `NotaGeometry` values; no undefined `Radius`/`Control`/`Space` keys; no `CornerRadius` literals, drop shadows or gradients in views; `Rectangle` `RadiusX` / `RadiusY` literals on the 0/1/2/3/4 scale (`RadiusAllowList.txt`) |
| `RunType` | Fonts bundled and matched; no font names in views; nothing under 7 px |
| `RunControls` | No unicode icons typed as text; Knob / Switch / Slider sizes |
-| `RunVisualisers` | Graph windows via `NotaGraph`; no fills under curves; no meter ballistics; meter 11/5; playhead without glow |
-| `RunLayout` | Header 22; cards 700 except the listed exceptions; transport 60 island at the top with its 42 console; rows 26–28 |
-| `RunNumbers` | Display culture installed; no hyphen minus; no invariant culture on readouts; thin space before units; no vowel-dropped labels |
+| `RunVisualisers` | Graph windows via `NotaGraph`; no fills under curves; no meter ballistics; meter 11/5; playhead 1 px without glow |
+| `RunLayout` | Device header 22; cards 700 except the listed exceptions; transport a docked row at the top at `Control.TransportBar` with its recessed console; browser rows 26–28 |
+| `RunNumbers` | Display culture installed; no hyphen minus in a negative format section or before ∞; no hyphen-minus before a digit in a view literal (`"-12"`, `" -3"`; `NumberAllowList.txt`); no invariant culture on readouts; thin space before units; no vowel-dropped labels |
| `RunBans` | No hex outside `Ink()` (bar three data tables), no RGB typed as numbers, no named system colours, `Opacity` only on drag ghosts, no brush snapshotting a theme colour |
+| `RunLabels` | No all-caps or Title Case label literal in a label context (`Text`, `Content`, `Header`, `Title`, tooltips, menu headers, command titles, palette and Settings headings, local label builders), unless it is `NotaText.Fixed` acronyms, goes through `NotaText.Label`, or names a view, product or proper noun; interpolated strings are skipped. `LabelAllowList.txt` holds only data (preset, mode and window-tab names, proper names) |
+| `RunIcons` | No path geometry outside `Controls/Glyph.cs`: no `Geometry.Parse` / `StreamGeometry.Parse` / `PathGeometry.Parse`, no axaml `Data="M…"`, no SVG path string. `IconAllowList.txt` is empty |
+| `RunBrowser` | Every built-in device sits in exactly one category of its own tab (`DeviceCategories.cs`); no category names a missing device or is empty; names in sentence case; 18 / 26 / 6 devices shelved |
+| `RunStudio` | Every `Radius.*` on the 0/1/2/3/4 scale; only `Shadow.Popover` / `Shadow.Modal` blurred, no literal `BoxShadow` in views; no positive `LetterSpacing` in the theme, `NotaType` tracking 0, no upper-casing in the shared label builders; knob arcs, slider fills and graph curves neutral at rest (`VizInk`); transport 44 · console 30 · seam 1; no Ember value in the Studio themes |
When a check fails, fix the view — or, for a genuine exception, add it to the check's
-allow-list with a comment saying why.
-
-## Accepted departures from the almanac
-
-Decisions taken while aligning the app, kept on purpose:
-
-- **Transport at the top, view switch inside it.** The almanac puts the transport at the
- bottom and the modes in the header.
-- **Shell language is English.** The almanac asks for Russian infinitive tooltips; the app
- is English throughout, so the rule became "short, verb-first".
+allow-list with a comment saying why. The ratchet lists in `tests/Nota.SmokeTest/`
+(`LabelAllowList.txt`, `IconAllowList.txt`, `NumberAllowList.txt`, `RadiusAllowList.txt`)
+only shrink: a new offender fails, and so does a line that no longer matches anything.
+
+## Accepted exceptions
+
+Places where a screen's needs override a general rule, kept on purpose:
+
+- **Device cards keep the 700 × 260 frame** (and the width exceptions), so device text sits
+ at 7.5–10.5 px, the densest type in the app. Sentence case is narrower than tracked caps,
+ so 8 px fits where 7 px caps did.
+- **Device header 22**, not 24; the power switch sits at the right of the header, not as a
+ key leading it.
+- **Nine track roles**, so stored track indices keep their meaning: five core clip colours
+ plus four at matching chroma.
+- **Transport 44, not 40**, and it keeps Nota's layout and order (view switch leading,
+ console of transport · position · loop, master pinned right). 44 keeps the console's
+ position and loop legible without reflow.
+- **No in-window menubar row.** macOS uses the system menu; Windows / Linux keep the native
+ menu bar. The title bar is 32.
+- **Menu popups without a blur** (see § Menus) — a seam ring only.
+- **Primary actions by weight, not colour** — the accent stays reserved for state; Nota has
+ no solid-accent action button.
+- **Play turns green in Session** (`tp-play.session`) while clips run.
+- **Data hues by `Ink()`** — Strata layer `#C99C55`, tag swatch `#C8A24B`, Random
+ `#D0603F`, the Rhythm kit dots — are data colours, not accents; their light values are
+ derived or pinned.
- **Segments with more than four options** stay segments where the choice is frequent:
Amp Model (7) and Cabinet (5), Compressor Character (5), Vintage Character (6), Delay
Division (8), Arp Rate (8) and Order (8), Aurora Warp (5) and Filter (5), Bass LFO wave (5),
Monolith Glide range (6), Pendulum Division (5) and Wave (5).
-- **Wide instruments** — Bass, Physical (see § Device cards).
- **Inline knobs (24)** inside table rows — the oscillator rows and ADSR strips of Consort,
- Pentad and Monolith (and Monolith's unison pair), as the Consort and Pentad mockups draw
- them; a 34 knob cannot fit those rows.
-- **Preset picker in the device header.** The almanac allows only name, badge and bypass
- there; switching presets is frequent enough to stay one click away.
-- **Zoom 28 px per beat** by default, not a 16 px bar; the ruler labels every bar once a bar
- is wider than 40 px.
-- **`FREQ`, `RESO`, `THRESH`** as labels (see § Labels and copy).
-- **Hero readouts** larger than the device scale — Strata bar number, Shutter OPEN/SHUT,
+ Pentad and Monolith (and Monolith's unison pair); a 34 knob cannot fit those rows.
+- **Preset picker in the device header**; switching presets is frequent enough to stay one
+ click away.
+- **Zoom 28 px per beat** by default; arrangement rows are 64 and the track header 228.
+- **`Freq`, `Reso`, `Thresh`** as labels (see § Labels and copy).
+- **Hero readouts** larger than the device scale — Strata bar number, Shutter Open/Shut,
Auto Shift note, Level value.
-- **Play turns green in Session** (`tp-play.session`) while clips run.
-- **Data hues close to a chroma** — Strata layer `#C99C55`, tag swatch `#C8A24B`, Random
- `#D0603F`, the Rhythm kit dots (`#C77F55` Kick … `#5AA0B8` Tom) — are data colours, not accents.
+- **Filter chips 20**, not 24 — the browser's chip row is dense.
## Known drift
True today, not yet fixed:
+- **Slot names still say Brass.** `BorderBrass`, `AccentSubtle` (the old "Brass Wash"),
+ `DeviceCardKit.Brass` (an alias of `Accent`), `Inactive.IsBrass`, and several aliases
+ (`Gutter`, `BorderDefault`, `Hairline`, `TextDisabled`, `TextAxis`, `ChromaSteel`) name
+ their Ember role, not their Studio one. Comments in a few views (`Inactive.cs`,
+ `BrowserView.cs`, `DeviceChainView.Shell.cs`, `QrView.cs`, `BrandMark.cs`,
+ `ScaleNoteMap.cs`, `ChordKeysViz.cs`) still say Graphite, Paper, brass or almanac. A
+ rename pass can follow.
+- **Accent judgement calls in device views.** Each device's visualisers were audited for
+ the live-or-chosen rule; a few accent uses were kept as "chosen" and are worth a second
+ look: the last-struck ball in Pendulum, in-scale note chips (Scale map, Auto Shift), the
+ live pitch readout in Auto Shift, the step strip wash in Rhythm, the zone chip in Mosaic,
+ the macro-mapped chip in a rack (teal might suit it better).
+- **The user manual** (`../nota-docs`) screenshots still show Ember; they are not re-shot.
- **Column order** choice → work → output is applied in Utility; the other cards have not
been audited card by card.
-- **Panel expand** is not animated (the almanac asks for 180 ms).
-- **`LOOKAHEAD`** in Compressor truncates with an ellipsis.
- **Slider reset** on double-click works only where the card passes a default.
- **Names:** presets with emotional names (Screaming Lead, VHS Fever, Gentle Master,
Transparent Safety, Dive Bomb, Laser Zap…) and multi-word device names (Auto Filter,
- Beat Repeat, Dynamic EQ-8, EQ-3, the "Nota " prefix) remain; renaming touches MCP names,
- the browser and saved projects.
-- **Paper values are derived**, not designed by the almanac; pin any that read poorly in
- `NotaPalette.InkOverrides` or the theme.
-- **The "Add device" tile** at the end of a chain keeps a plus and two lines — it is a drop
- target rather than an empty state.
+ Beat Repeat, Dynamic EQ-8, EQ-3, the "Nota " prefix — dropped only from browser rows and
+ compact card headers) remain; renaming touches MCP names, the browser and saved projects.
diff --git a/FEATURES.md b/FEATURES.md
index 4f9460da..54ca2dc7 100644
--- a/FEATURES.md
+++ b/FEATURES.md
@@ -53,7 +53,7 @@ JUCE module; the engine core is JUCE-free.
and **Delay** (Nota Delay), both Wet Only — ready to send to; it opens unmodified, with
nothing to undo.
- **Version history**: every save records a version inside the project. The browser's
- **History** tab draws them as a branching tree (the current one has a brass dot), each
+ **History** tab draws them as a branching tree (the current one has an orange dot), each
described by what it changed ("Added Bass · Tempo 120.00 → 124.00"); switch
to any version, open one as a copy, or name, note, star and delete versions. Saving on top
of an older version branches. **Save Version with Note…** (⌥⌘S). The tab's menu deletes all
@@ -82,8 +82,9 @@ JUCE module; the engine core is JUCE-free.
---
-Three top-level views, switched from the toolbar (**Arrangement · Session · Modular**);
-the mixer opens as a separate floating window (**View → Mixer**, ⌘M).
+Three top-level views, switched by three icon keys in the transport (**Arrangement ·
+Session · Modular**; each names its view in a tooltip); the mixer opens as a separate
+floating window (**View → Mixer**, ⌘M).
- **Arrangement View** — a linear timeline, floating on the app ground as its own island:
place, move, trim and duplicate clips; the snap grid (below); scroll and zoom;
@@ -121,18 +122,20 @@ the mixer opens as a separate floating window (**View → Mixer**, ⌘M).
(trim brackets, warp markers and envelope points snap); ⌘1 / ⌘2 narrow / widen (in Auto,
the density), ⌘3 triplets, ⌘4 snap on / off, ⌘5 Auto ↔ fixed (also Edit → Grid), acting
on the editor used last. Hold ⌥ to drag freely; clip edges still attract a dragged clip.
-- **Session View** — a clip grid (tracks × scenes) with an inspector: named, coloured clips
- with note / waveform previews and a progress pie on the clip's own clock; selection apart
- from launching, keyboard editing (arrows, Return, ⌘C/X/V, ⌘D, ⌘I, F2, Delete) and drag
- between slots; launch modes (Trigger / Gate / Toggle / Repeat), per-clip quantize, legato,
- one-shot, velocity amount and follow actions with a global switch; scenes with names,
- colours, tempo / signature and scene follow, inserted, duplicated, captured and reordered
- without stopping playback; Session Rec with fixed length; group columns that fold;
- returns + master; I/O · Sends · Mixer sections; removable stop buttons; per-track
- Back to Arrangement; and moving material between Session and Arrangement — the clipboard
- works both ways, and **⌘⇧C** (**Copy to Session** / **Copy to Arrangement** / **Copy to
- Scene**) sends clips, slots or a whole scene across with notes, envelopes, warp, pitch and
- gain, as one undo step.
+- **Session View** — a clip grid (tracks × scenes) with an inspector that the toolbar's
+ **Inspector** key (the sidebar icon) shows or hides (remembered); on a narrow window the least-used
+ toolbar controls fold into a **⋯** menu. Named, coloured clips with note / waveform
+ previews and a progress pie on the clip's own clock; selection apart from launching,
+ keyboard editing (arrows, Return, ⌘C/X/V, ⌘D, ⌘I, F2, Delete) and drag between slots;
+ launch modes (Trigger / Gate / Toggle / Repeat), per-clip quantize, legato, one-shot,
+ velocity amount and follow actions with a global switch; scenes with names, colours,
+ tempo / signature and scene follow, inserted, duplicated, captured and reordered without
+ stopping playback; Session rec with fixed length; group columns that fold; returns +
+ master; I/O · Sends · Mixer sections; removable stop buttons; per-track Back to
+ Arrangement; and moving material between Session and Arrangement — the clipboard works
+ both ways, and **⌘⇧C** (**Copy to Session** / **Copy to Arrangement** / **Copy to
+ scene**) sends clips, slots or a whole scene across with notes, envelopes, warp, pitch
+ and gain, as one undo step.
- **Modular View** — a signal-graph editor for the track's chain, on its own island: MIDI FX → instrument →
effects shown as nodes you can expand, bypass, duplicate, delete and reorder right on the
canvas (node positions are saved with the project), plus a **Global view** that shows
@@ -162,13 +165,13 @@ the mixer opens as a separate floating window (**View → Mixer**, ⌘M).
pasted tracks land after the selected track, in its group.
- **Per track**: volume, pan (bipolar bar), mute, solo, arm (ready to record).
Double-click resets to the default.
-- **Pan law** (per project, in the Mixer footer: **PAN LAW** Stereo / Balance): under
+- **Pan law** (per project, in the Mixer footer: **Pan law** Stereo / Balance): under
Stereo, panning a stereo track or return moves its whole image — at full pan both
channels play from one side; under Balance the opposite channel fades out. Mono
material and centred tracks sound the same either way. New projects use Stereo; projects
from earlier versions keep Balance and are marked **Older project**. Switching is
click-free during playback and one undo step. Groups keep their balance (marked **BAL**).
-- **Stereo Map** (Mixer window, **Strips | Stereo Map** in its title bar): every track,
+- **Stereo Map** (Mixer window, **Strips | Stereo map** in its title bar): every track,
return and the master as a dot at its pan (left–right) and fader (up–down), with a measured
cloud — where the sound really sits, how wide it is (from the phase correlation) and how
loud — and the master correlation under the map. Drag a dot to set pan and volume at once
@@ -368,7 +371,7 @@ the mixer opens as a separate floating window (**View → Mixer**, ⌘M).
and the whole drag is one undo step.
- **The lane follows focus** — touch any knob or fader on any device (built-in, plugin, or
mixer) and the automation lane switches to that parameter.
-- **Already-automated parameters are highlighted** in the target picker (a brass dot, and
+- **Already-automated parameters are highlighted** in the target picker (a dot, and
they sort to the top of the list).
- **Selection and paste**: shift-select a range, Cmd/Ctrl+D to duplicate, and paste that
does not leave redundant points behind.
@@ -831,20 +834,26 @@ and user presets, automation, persistence and cloning.
MIDI Effects**, then **Files** (with folder tree navigation), **Presets** (a tree of
category → device → preset), **Projects**, **Map** (MIDI Learn mappings) and **History**
(the open project's versions). A hairline
- separates the device tabs from the library tabs, and the active one carries a brass edge.
-- **A compact index**: single-line rows, sectioned into **BUILT-IN** and **PLUG-INS** with
- counts, so it is clear where Nota's own devices end and the scanned plug-ins begin. The
- "Nota" prefix drops to tertiary ink — names scan on their distinctive word — and the
- device type sits at the right edge as a quiet tag (a plug-in's tag names its format and
- vendor, which tells the AU and VST3 builds of one plug-in apart). The name always wins
- the room: the tag gives way rather than truncating it.
+ separates the device tabs from the library tabs, and the active one carries an orange edge.
+- **Category chips**: above each device tab's list, one chip per kind of device — Synths /
+ Keys & physical / Drums / Samplers / Racks; EQ & filter / Dynamics / Reverb & delay /
+ Modulation / Distortion / Pitch & time / Utility / Racks; Generate / Shape. A click
+ narrows the list to that category, and a second click shows everything again. Each tab
+ keeps its own pick, and it combines with search and the Favorites and tag chips.
+ Installed plug-ins join the same categories from the category they report, under an
+ **Other** chip when Nota doesn't recognise it.
+- **A compact index**: single-line rows, sectioned into **Built-in** and **Plug-ins** with
+ counts, so it is clear where Nota's own devices end and the scanned plug-ins begin. Built-in devices show their short name ("Aurora" — search still matches
+ "Nota Aurora"), and the device type sits at the right edge as a quiet tag (a plug-in's
+ tag names its format and vendor, which tells the AU and VST3 builds of one plug-in
+ apart). The name always wins the room: the tag gives way rather than truncating it.
- **Factory presets in folders**: a built-in device expands into category folders — Pads /
Bass / Leads / Keys & Plucks … for instruments, Vocals / Drums / Mix & Bus / Mastering /
Ambient / Sidechain … for effects, Triads / Sevenths, Grooves / Ratchets … for MIDI
effects — with its Init loose on top. Search opens the folders around the hits, and a
folder name ("Mastering") lists that folder in every device.
-- **View options** (the ⋮ button beside the search box): show type tags, group by source,
- favourites first — each remembered across sessions — plus the tag editor.
+- **View options** (the ⋮ button beside the search box): show type tags, category chips,
+ group by source, favourites first — each remembered across sessions — plus the tag editor.
- A **status line** counts what the tab is showing (`13 built-in · 4 plug-ins`), and the
search box counts the matches.
- **Sample player** under the Files tab: the file's real waveform (click to play from a
@@ -944,11 +953,15 @@ and user presets, automation, persistence and cloning.
semantic hit says why it was found ("warm · pad"). Prefixes `>` `@` `+` `#` `~` (or Tab)
filter by type; an empty query shows Recent and suggestions for the context. Ranking
learns from what you use in the palette and the browser.
-- **Two palette variants** — **Ember Graphite** (warm graphite neutrals with a brass
- accent; the default, and what a DAW wants for long sessions in a dark room) and
- **Ember Paper** (the same hues and roles on a warm light ground, with brass darkened to
- bronze so marks keep their weight). Switching applies immediately, across every open
- window — including the custom-drawn arrangement, piano roll, mixer and device cards.
+- **Studio look, in colour themes** — **Studio Dark** (neutral studio greys with one
+ orange accent; the default, and what a DAW wants for long sessions in a dark room),
+ **Studio Light** (the same system in light greys, the orange a shade deeper), and
+ **Ember Graphite** / **Ember Paper** (warm browns with a brass accent, dark and light).
+ A theme changes colours only — track colours included — never the layout. Panels dock edge
+ to edge on thin seams; orange marks only what is playing, selected or switched on, and a
+ knob or fader turns orange while you hover or drag it; mute is amber, solo blue,
+ record-arm red; labels are in sentence case. Switching applies immediately, across every
+ open window — including the custom-drawn arrangement, piano roll, mixer and device cards.
- **A single frameless window style**: centred title, drag by the header, the macOS
traffic lights in a left inset (Windows gets its own title bar; Linux uses the system
frame). **Full screen** — the macOS green button, or View → Toggle Full Screen (F11)
@@ -965,7 +978,7 @@ and user presets, automation, persistence and cloning.
third-party attribution notices (`LICENSES/THIRD-PARTY-NOTICES.md`).
- **Settings** — a larger window with a sidebar grouped into Devices, Plug-ins and General
(each page with an icon and a short description), large switches, latency in
- milliseconds, theme buttons that preview each theme, and key-cap shortcuts with a filter.
+ milliseconds, colour themes shown as miniature Nota windows, and key-cap shortcuts with a filter.
- **Device window** (a device opened from a Drum Rack, Instrument Rack, Audio Effect Rack or
a Nota Rhythm voice): the title bar carries the device, track, preset picker, bypass and
S / L size switch; a footer shows where the device sits, its live voice count and type.
@@ -996,9 +1009,11 @@ and user presets, automation, persistence and cloning.
- **Plug-ins**: scan paths, Rescan.
- **Downloads**: Plug-ins, Sample Packs and AI Models (see [Plugin hosting](#plugin-hosting)).
- **Library**: library folders.
-- **Appearance**: **Theme** — Ember Graphite (dark), Ember Paper (light) or System, which
- follows the OS appearance and switches with it; the choice applies live and is
- remembered. Also **AI control (MCP)** on/off, a port field, and "Copy config" (copies a
+- **Appearance**: **Colour theme** — **Dark**, **Light** or **Follow system** over two
+ rows of cards (Studio Dark and Ember Graphite; Studio Light and Ember Paper), each a
+ miniature Nota window in its own colours. Pick one theme, or with Follow system one for
+ dark mode and one for light mode, switched with the OS appearance; the choice applies
+ live and is remembered. Also **AI control (MCP)** on/off, a port field, and "Copy config" (copies a
ready-made client JSON config to the clipboard).
- **Shortcuts**: the shortcut list.
- Settings, logs and autosaves live in `~/Library/Application Support/Nota/` (macOS) and
diff --git a/scripts/design-html.py b/scripts/design-html.py
index cb069498..2b8810f3 100755
--- a/scripts/design-html.py
+++ b/scripts/design-html.py
@@ -2,259 +2,405 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
#
-# Regenerates DESIGN.html from the theme: the colour variables for both variants are read
-# from src/managed/Nota.App/Theme/NotaTheme.axaml, so the page can never show a value the
-# app does not use. Run after changing a token: python3 scripts/design-html.py
-import re, math, os
+# Regenerates DESIGN.html. Colour comes from the theme files
+# (src/managed/Nota.App/Theme/Themes/*.json, in NotaThemes.BuiltInOrder), mapped onto the
+# Brush.* keys the app publishes (NotaPalette.KeyMap); the shadows are built from theme
+# colours exactly as NotaThemeService builds them; geometry and type classes come from
+# src/managed/Nota.App/Theme/NotaTheme.axaml. So the page can never show a value the app
+# does not use. Run after changing a token: python3 scripts/design-html.py
+import re, math, os, sys, json
ROOT=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-t=open(ROOT+'/src/managed/Nota.App/Theme/NotaTheme.axaml',encoding='utf-8').read()
-def branch(name):
- i=t.index('<ResourceDictionary x:Key="%s">'%name); j=t.index('</ResourceDictionary>',i); return t[i:j]
-rx=r'<SolidColorBrush x:Key="Brush\.([\w.]+)">(#[0-9A-Fa-f]+)</SolidColorBrush>'
-D=dict(re.findall(rx,branch('Dark'))); L=dict(re.findall(rx,branch('Light')))
+THEME_DIR=ROOT+'/src/managed/Nota.App/Theme'
+t=open(THEME_DIR+'/NotaTheme.axaml',encoding='utf-8').read()
+pal=open(THEME_DIR+'/NotaPalette.cs',encoding='utf-8').read()
+order_src=re.search(r'BuiltInOrder\s*=\s*\{([^}]*)\}',open(THEME_DIR+'/NotaColourTheme.cs',encoding='utf-8').read()).group(1)
+THEMES=[json.load(open(f'{THEME_DIR}/Themes/{i}.json',encoding='utf-8')) for i in re.findall(r'"([a-z0-9-]+)"',order_src)]
+KEYMAP=re.findall(r'\["Brush\.(\w+)"\]\s*=\s*(Wash\([^)]*\)|[\w\[\]]+)',
+ re.search(r'KeyMap\s*=\s*new\([^)]*\)\s*\{(.*?)\n \};',pal,re.S).group(1))
+
+def brushes(c):
+ """Brush key (without 'Brush.') -> hex for one theme's colours, through KeyMap."""
+ out={}
+ for key,expr in KEYMAP:
+ m=re.match(r'TrackSlots\[(\d)\]',expr)
+ if m: out[key]=c[f'Track{int(m.group(1))+1}']; continue
+ m=re.match(r'ReturnSlots\[(\d)\]',expr)
+ if m: out[key]=c['Return'+'AB'[int(m.group(1))]]; continue
+ m=re.match(r'Wash\((\w+),\s*0x([0-9A-Fa-f]{2})\)',expr)
+ if m: out[key]='#'+m.group(2).upper()+c[m.group(1)].lstrip('#')[-6:]; continue
+ out[key]=c[expr]
+ return out
+def shadows(c):
+ """NotaThemeService.ApplyResources, as Avalonia BoxShadows strings."""
+ return {'Raised':f'inset 0 1 0 0 {c["ShadowBevel"]}','Sunken':f'inset 0 0 0 1 {c["Rule"]}',
+ 'Popover':f'0 0 0 1 {c["Seam"]}, 0 10 28 0 {c["ShadowPopover"]}','Modal':f'0 0 0 1 {c["Seam"]}, 0 24 64 0 {c["ShadowModal"]}'}
+BY_ID={th['id']:th for th in THEMES}
+D=brushes(BY_ID['studio-dark']['colors']); L=brushes(BY_ID['studio-light']['colors'])
+SD=shadows(BY_ID['studio-dark']['colors']); SL=shadows(BY_ID['studio-light']['colors'])
+# The page's variant names: Studio keeps "dark" (the default) and "light"; the others use their id.
+def vname(th): return {'studio-dark':'dark','studio-light':'light'}.get(th['id'],th['id'])
+
def css(h):
h=h.lstrip('#')
if len(h)==8: a=int(h[:2],16)/255; r,g,b=(int(h[i:i+2],16) for i in (2,4,6)); return f'rgba({r},{g},{b},{a:.3f})'
return '#'+h.upper()
+def css_shadow(s):
+ # Avalonia "inset 0 1 0 0 #12FFFFFF, 0 10 28 0 #6B000000" -> CSS box-shadow
+ out=[]
+ for part in s.split(','):
+ toks=[]
+ for tok in part.split():
+ if tok=='inset': toks.append(tok)
+ elif tok.startswith('#'): toks.append(css(tok))
+ else: toks.append('0' if float(tok)==0 else tok+'px')
+ out.append(' '.join(toks))
+ return ', '.join(out)
def var(k): return '--'+re.sub(r'(?<!^)(?=[A-Z])','-',k).lower().replace('.','-')
-root='\n'.join(f' {var(k)}: {css(v)};' for k,v in D.items())
-paper='\n'.join(f' {var(k)}: {css(L[k])};' for k in D if k in L)
+
geo={m.group(1):m.group(2) for m in re.finditer(r'x:Key="((?:Radius|Control|Space)\.\w+)">([0-9.]+)<',t)}
+# Text classes: <Style Selector="TextBlock.Name"> … <Setter Property="FontSize" Value="12"/> …
+WEIGHT={'Normal':400,'Medium':500,'SemiBold':600,'Bold':700}
+TEXT={}
+for m in re.finditer(r'<Style Selector="TextBlock\.(\w+)">(.*?)</Style>',t,re.S):
+ body=m.group(2); s={}
+ for p,v in re.findall(r'<Setter Property="(\w+)" Value="([^"]+)"/>',body): s[p]=v
+ TEXT[m.group(1)]=s
+
+# Every key the page names must exist in both variants — a renamed or dropped token fails
+# here with its name, rather than a KeyError deep in the template.
+def need(keys, where, dark, light):
+ missing=[k for k in keys if k not in dark or k not in light]
+ if missing: sys.exit(f'design-html.py: {where} missing from the Studio themes (Dark or Light): {", ".join(missing)}')
+
+# Derived ink on the semantic fills, per theme (NotaPalette.InkOn): computed, never fixed.
+INKON=('Mute','Solo','Record')
+
def sw(key, name, use):
- return (f'<button class="sw" data-dark="{D[key]}" data-light="{L[key]}" title="Copy hex">'
+ hexes=json.dumps({vname(th):brushes(th['colors'])[key] for th in THEMES}).replace('"','&quot;')
+ return (f'<button class="sw" data-hex="{hexes}" title="Copy hex">'
f'<span class="sw__chip" style="background:var({var(key)})"></span>'
f'<span class="sw__name">{name}</span><code class="sw__key">Brush.{key}</code>'
f'<span class="sw__hex mono"></span><span class="sw__use">{use}</span></button>')
-surfaces=[('SurfaceAbyss','Void','Deepest recess — the transport strip'),('BgApp','App','Window ground, plugin body'),('Gutter','Gutter','The gaps panels float in'),('BgSunken','Well','Graph windows, fields, slider tracks'),('Panel','Panel','Browser, headers, inspector'),('SurfaceCard','Card','A section inside a device'),('SurfaceRaised','Raised','Button at rest'),('SurfaceHover','Hover','Hovered button or row'),('TrackOff','Track off','Track of an off switch'),('SurfaceSelected','Brass Wash','Selected row, engaged ground')]
-lines=[('Hairline','Hairline','Row dividers, graph frame'),('BorderDefault','Border','Panel, button, field'),('BorderStrong','Border strong','Knob cap, hovered border'),('BorderBrass','Border brass','Engaged button, focus'),('GridBeat','Grid','Grid inside graphs'),('GridBar','Grid bar','Bar lines')]
-inks=[('TextHeading','Ink 0','Page title, project name'),('TextPrimary','Ink 1','Names, values'),('TextStrong','Ink 2','Button text, readouts'),('TextSecondary','Ink 3','Inactive but readable'),('TextMuted','Ink 4','Explanations, units'),('TextTertiary','Ink 5','Caps labels, empty states'),('TextDisabled','Ink 6','Placeholder, disabled'),('TextAxis','Ink 7','Axis labels in graphs only')]
-brass=[('Accent','Brass','Arc, fill, playhead, one solid button'),('AccentBright','Brass Light','Pointer, modified label'),('AccentHover','Brass Hover','Engaged text'),('AccentDeep','Brass Deep','Pressed'),('AccentDim','Brass Dim','Eyebrows, section marks'),('AccentEdge','Brass Edge','Brass chip border')]
-sem=[('Record','Record','Active recording — the only red'),('RecordInk','Record ink','Disc on engaged record'),('Danger','Alert','Overload, clipping'),('DangerBright','Alert Light','Overload readout'),('Warning','Caution','Meter −6…0 dB'),('Success','Signal','Working zone, live signal'),('SuccessDim','Signal Dim','Input, metronome')]
-chromas=[('Accent','1 · Brass','Primary: left, mid, main'),('ChromaTeal','2 · Teal','Lows, early, input, modulation'),('ChromaRose','3 · Rose','Right, highs, tail'),('ChromaSteel','4 · Steel','Rare fourth layer'),('ChromaTealLight','Teal light','Text on teal'),('ChromaRoseLight','Rose light','Text on rose')]
-tracks=[(f'Track{i+1}',n,'') for i,n in enumerate(['Drums','Perc','Bass','Keys','Texture','FX','Brass','Vox','Return'])]
+surfaces=[('BgSunken','Well','Graph windows, fields, readouts, the console; pressed keys sink here'),('BgApp','Ground','Window, title bar, arrangement, status line'),('LaneB','Ground, alternate','Alternate arrangement lane'),('Panel','Panel','Transport row, browser, toolbars, device cards, mixer strips'),('SurfaceRaised','Raised','Keys at rest, card header, menus, tooltips'),('SurfaceHover','Raised hover','Hover; the selected row, with an accent tick'),('AccentSubtle','Accent soft','16 % accent over the panel; nothing at rest uses it')]
+lines=[('Seam','Seam','Between panels, around controls, between keys'),('Rule','Rule','Within a panel: separators, field edges, graph frame'),('BorderBrass','Accent line','An accent stroke where a fill is too heavy'),('GridBeat','Grid','Beat grid, zero axis'),('GridBar','Grid bar','Bar lines'),('VizGrid','Viz grid','Grid inside a graph window')]
+inks=[('TextHeading','Ink 0','Modal and section titles'),('TextPrimary','Primary','Names, values, button text'),('TextStrong','Ink 2','Toggle-key text, transport glyphs'),('TextSecondary','Secondary','Labels, idle icons, metadata'),('TextMuted','Muted','Section labels, units, badges'),('TextTertiary','Ink 5','Row tags, placeholders, empty states'),('TextFaint','Faint','Disabled controls; axis labels in graphs'),('VizInk','Viz ink','A value at rest: arcs, fills, curves'),('TextOnAccent','On accent','Text on the accent')]
+accent=[('Accent','Accent','Playing, selected, playhead, loop, toggled on, live'),('AccentBright','Accent glow','The accent as a line or text'),('AccentDeep','Pressed','Pressed accent'),('AccentDim','Accent dim','The soft accent')]
+sem=[('Record','Record','Record and arm, solid when on'),('RecordInk','Record ink','Disc on an engaged record key'),('Danger','Error','Overload, clipping, error text'),('DangerBright','Error light','Overload readout'),('Mute','Mute','Mute on — amber'),('Solo','Solo','Solo on — blue'),('Warning','Warning','Meter −6…0 dB'),('Success','Green','Meter safe range, positive status'),('SuccessDim','Green dim','Input, metronome')]
+chromas=[('VizInk','1 · Viz ink','Primary: left, mid, main'),('ChromaTeal','2 · Teal','Lows, early, input, modulation'),('ChromaRose','3 · Rose','Right, highs, tail'),('ChromaSteel','4 · Blue','Rare fourth layer'),('ChromaTealLight','Teal light','Text on teal'),('ChromaRoseLight','Rose light','Text on rose')]
+ROLES=['Drums','Perc','Bass','Keys','Texture','FX','Brass','Vox','Return']
+tracks=[(f'Track{i+1}',n,'') for i,n in enumerate(ROLES)]+[('ReturnA','Return A','Return bus'),('ReturnB','Return B','Return bus'),('Master','Master','Muted grey: the sum, not a track')]
+for group,name in [(surfaces,'surfaces'),(lines,'lines'),(inks,'ink'),(accent,'accent'),(sem,'semantics'),(chromas,'chromas'),(tracks,'track palette')]:
+ need([k for k,_,_ in group], f'Brush keys for {name}', D, L)
+need(['Raised','Sunken','Popover','Modal'], 'Shadow keys', SD, SL)
+need(['Radius.Docked','Radius.Bar','Radius.Clip','Radius.Badge','Radius.Control','Radius.Tile','Radius.Panel','Radius.Body','Radius.Pill','Radius.Modal',
+ 'Control.TransportBar','Control.Console','Control.Transport','Control.Play','Control.Shell','Control.Seg','Control.SegGroup','Control.Chip',
+ 'Control.KnobSecondary','Control.KnobRegular','Control.KnobMain','Control.KnobInline','Control.ParamCell',
+ 'Space.DeviceHair','Space.DeviceGap','Space.DeviceInset','Space.DeviceInsetWide','Space.Tile','Space.Gutter','Space.Inset'], 'geometry keys', geo, geo)
+need(['Title','Heading','Name','Caption','SectionLabel','CellLabel','Readout','Value','Eyebrow','DeviceName','DeviceSection','RowLabel','KnobLabel','KnobValue','Axis'], 'TextBlock classes', TEXT, TEXT)
def grid(items): return '<div class="swatches">'+''.join(sw(*x) for x in items)+'</div>'
-def knob(size, value, arc='var(--accent)', dim=False, label=None, val=None, hot=False):
+def tstyle(cls):
+ """CSS for a TextBlock class, straight from its setters."""
+ s=TEXT[cls]
+ fam='var(--font-mono)' if 'Font.Mono' in s.get('FontFamily','') else 'var(--font-ui)'
+ w=WEIGHT.get(s.get('FontWeight','Normal'),400); size=s.get('FontSize','12')
+ fg=re.search(r'Brush\.(\w+)',s.get('Foreground',''))
+ col=f';color:var({var(fg.group(1))})' if fg else ''
+ return f'font:{w} {size}px/1.35 {fam}{col}'
+def tspec(cls):
+ s=TEXT[cls]; mono='Mono ' if 'Font.Mono' in s.get('FontFamily','') else ''
+ return f'{cls} · {mono}{WEIGHT.get(s.get("FontWeight","Normal"),400)} · {s.get("FontSize","12")}'
+
+# Clip colours: band = track colour 30% toward black, content 58%, the name in derived ink —
+# the same arithmetic as ArrangementView.ClipBand / ClipInk and NotaPalette.ReadableInkOn.
+def rgb(h): h=h.lstrip('#')[-6:]; return tuple(int(h[i:i+2],16) for i in (0,2,4))
+def mix(a,b,f): return tuple(int(x+(y-x)*f) for x,y in zip(a,b))
+def hexs(c): return '#%02X%02X%02X'%c
+def lum(c):
+ def ch(v): x=v/255; return x/12.92 if x<=0.03928 else ((x+0.055)/1.055)**2.4
+ r,g,b=c; return 0.2126*ch(r)+0.7152*ch(g)+0.0722*ch(b)
+def contrast(a,b): la,lb=lum(a),lum(b); return (max(la,lb)+0.05)/(min(la,lb)+0.05)
+def ink_on(fill): dark,white=(0x17,0x18,0x1A),(0xFF,0xFF,0xFF); return hexs(dark) if contrast(dark,fill)>=contrast(white,fill) else hexs(white)
+SHADE_D,SHADE_L=(0x17,0x18,0x1A),(0x16,0x17,0x1A) # NotaPalette.ShadeDown
+def theme_vars(th):
+ """Every CSS variable one theme sets: brushes, shadows, derived ink, clip shades."""
+ c=th['colors']; B=brushes(c); shade=rgb(c['ShadeDown'])
+ out=[f' {var(k)}: {css(v)};' for k,v in B.items()]
+ out+=[f' --shadow-{k.lower()}: {css_shadow(v)};' for k,v in shadows(c).items()]
+ out+=[f' --ink-on-{k.lower()}: {ink_on(rgb(B[k]))};' for k in INKON]
+ for i in range(9):
+ body=rgb(c[f'Track{i+1}']); band=mix(body,shade,0.30)
+ out+=[f' --t{i}-body: {hexs(body)}; --t{i}-band: {hexs(band)}; --t{i}-ink: {ink_on(band)}; --t{i}-cont: {hexs(mix(body,shade,0.58))};']
+ out.append(f" color-scheme: {th['kind']};")
+ return '\n'.join(out)
+VARIANTS='\n'.join((':root' if vname(th)=='dark' else f':root[data-variant="{vname(th)}"]')+' {\n'+theme_vars(th)+'\n}' for th in THEMES)
+
+def clip(idx, name, w, sel=False, notes=True):
+ style=f'--c-body:var(--t{idx}-body);--c-band:var(--t{idx}-band);--c-ink:var(--t{idx}-ink);--c-cont:var(--t{idx}-cont);width:{w}px'
+ marks=''.join(f'<i style="left:{8+j*11}px;top:{18+((j*7)%4)*6}px"></i>' for j in range(max(1,(w-12)//11))) if notes else ''
+ return f'<div class="clip{" sel" if sel else ""}" style="{style}"><b>{name}</b>{marks}</div>'
+
+def knob(size, value, arc='var(--viz-ink)', dim=False, label=None, val=None, mod=False, live=False):
C=2*math.pi*21; sweep=C*0.75
a=math.radians(135+270*value); px=26+14*math.cos(a)*0.62; py=26+14*math.sin(a)*0.62
- arc_col='var(--border-strong)' if dim else arc
- ptr='var(--text-disabled)' if dim else ('var(--chroma-teal-light)' if 'teal' in arc else 'var(--accent-bright)')
+ arc_col='var(--rule)' if dim else ('var(--accent)' if live else arc)
+ ptr='var(--text-disabled)' if dim else 'var(--text-primary)'
svg=(f'<svg class="knob" width="{size}" height="{size}" viewBox="0 0 52 52" aria-hidden="true">'
f'<circle cx="26" cy="26" r="21" style="fill:none;stroke:var(--bg-sunken);stroke-width:5;stroke-linecap:round" stroke-dasharray="{sweep:.1f} {C:.1f}" transform="rotate(135 26 26)"/>'
f'<circle cx="26" cy="26" r="21" style="fill:none;stroke:{arc_col};stroke-width:5;stroke-linecap:round" stroke-dasharray="{sweep*value:.1f} {C:.1f}" transform="rotate(135 26 26)"/>'
- f'<circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--border-strong);stroke-width:1"/>'
+ f'<circle cx="26" cy="26" r="14" style="fill:var(--surface-raised);stroke:var(--seam);stroke-width:1"/>'
f'<line x1="26" y1="26" x2="{px:.1f}" y2="{py:.1f}" style="stroke:{ptr};stroke-width:2.4;stroke-linecap:round"/></svg>')
if label is None: return svg
- cls='cell cell--hot' if hot else ('cell cell--dim' if dim else 'cell')
+ cls='cell cell--mod' if mod else ('cell cell--dim' if dim else 'cell')
return f'<div class="{cls}">{svg}<span class="cell__label">{label}</span><span class="cell__value mono">{val}</span></div>'
-T=f'''<!-- SPDX-License-Identifier: AGPL-3.0-only -->
+def shadow_rows():
+ return ''.join(f'<tr><td><code>Shadow.{k}</code></td><td class="mono">{SD[k]}</td><td class="mono">{SL[k]}</td></tr>' for k in ('Raised','Sunken','Popover','Modal'))
+
+STYLE=r'''
+*{box-sizing:border-box}
+html,body{margin:0;background:var(--bg-app);color:var(--text-primary);font:400 12px/1.5 var(--font-ui);-webkit-font-smoothing:antialiased}
+.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
+code{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary)}
+a{color:var(--accent-bright)}
+.page{max-width:1120px;margin:0 auto;padding:0 20px 80px}
+header.mast{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;height:44px;padding:0 20px;margin:0 -20px 12px;background:var(--panel);border-bottom:1px solid var(--seam)}
+.mast h1{font:600 13px/1 var(--font-ui);color:var(--text-heading);margin:0}
+.mast .eyebrow{margin:0 0 3px}
+.mast nav{display:flex;gap:14px;flex-wrap:wrap;margin-left:8px}
+.mast nav a{color:var(--text-secondary);text-decoration:none;font-size:12px;font-weight:500}
+.mast nav a:hover{color:var(--text-primary)}
+.spacer{flex:1}
+.eyebrow{font:400 10px/1 var(--font-mono);color:var(--text-muted);margin:0 0 8px}
+section{background:var(--panel);border:1px solid var(--seam);border-radius:var(--r-control);padding:20px;margin:12px 0}
+h2{font:600 13px/1.3 var(--font-ui);color:var(--text-heading);margin:0 0 8px}
+h3{font:600 11px/1 var(--font-ui);color:var(--text-muted);margin:22px 0 10px}
+p{color:var(--text-secondary);max-width:72ch;margin:0 0 10px}
+.lead{color:var(--text-secondary)}
+/* segmented group: raised keys butted on 1px seams; only the outer corners round */
+.seg{display:inline-flex;gap:1px;background:var(--seam);border:1px solid var(--seam);border-radius:var(--r-control);overflow:hidden;vertical-align:middle}
+.seg button{all:unset;cursor:pointer;height:24px;padding:0 10px;background:var(--surface-raised);box-shadow:var(--shadow-raised);font:500 12px/24px var(--font-ui);color:var(--text-secondary)}
+.seg button:hover{background:var(--surface-hover)}
+.seg button[aria-pressed="true"]{background:var(--accent);color:var(--text-on-accent);font-weight:600;box-shadow:none}
+/* device segments: a well strip with a rule edge */
+.seg--device{gap:0;padding:1px;background:var(--bg-sunken);border-color:var(--rule)}
+.seg--device button{height:18px;line-height:18px;padding:0 7px;font-size:9px;background:transparent;box-shadow:none;border-radius:var(--r-badge)}
+/* rules */
+.rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}
+.rule{background:var(--surface-raised);border:1px solid var(--seam);border-radius:var(--r-control);padding:10px 12px}
+.rule b{display:block;color:var(--text-primary);font-weight:600;margin-bottom:3px}
+.rule span{color:var(--text-secondary)}
+/* swatches */
+.swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
+.sw{all:unset;cursor:pointer;display:grid;grid-template-columns:36px 1fr auto;grid-template-areas:"chip name hex" "chip key key" "chip use use";column-gap:10px;padding:8px;border-radius:var(--r-control);background:var(--surface-raised);border:1px solid var(--seam)}
+.sw:hover{background:var(--surface-hover)}
+.sw__chip{grid-area:chip;border-radius:var(--r-clip);box-shadow:0 0 0 1px var(--rule);min-height:48px}
+.sw__name{grid-area:name;font-weight:600;color:var(--text-primary)}
+.sw__key{grid-area:key;font-size:10px;color:var(--text-muted)}
+.sw__hex{grid-area:hex;font-size:10px;color:var(--text-secondary)}
+.sw__use{grid-area:use;font-size:11px;color:var(--text-muted)}
+.sw.copied .sw__hex{color:var(--accent-bright)}
+/* tables */
+.tbl{overflow-x:auto}
+table{border-collapse:collapse;width:100%;font-size:12px}
+th{text-align:left;font:600 11px/1 var(--font-ui);color:var(--text-muted);padding:8px 10px;border-bottom:1px solid var(--rule)}
+td{padding:7px 10px;border-bottom:1px solid var(--rule);color:var(--text-secondary);vertical-align:middle}
+td:first-child{color:var(--text-primary)}
+/* type */
+.spec{display:grid;grid-template-columns:220px 1fr;gap:6px 16px;align-items:baseline}
+.spec .k{font:400 10px/1.4 var(--font-mono);color:var(--text-muted)}
+/* geometry */
+.radii{display:flex;flex-wrap:wrap;gap:14px}
+.radius{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--text-secondary)}
+.radius i{display:block;width:56px;height:40px;background:var(--surface-raised);border:1px solid var(--seam);box-shadow:var(--shadow-raised)}
+.depth{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding:18px;background:var(--bg-app);border:1px solid var(--seam);border-radius:var(--r-control)}
+.depth div{height:84px;padding:10px;font-size:11px;color:var(--text-secondary)}
+/* controls */
+.row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:6px 0}
+.demo{background:var(--panel);border:1px solid var(--seam);border-radius:var(--r-body);padding:16px}
+.knob{display:block}
+.knobs{display:flex;gap:22px;align-items:flex-end}
+.knobs figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}
+.cell{display:flex;flex-direction:column;align-items:center;width:53px}
+.cell__label{font:500 8px/9px var(--font-ui);color:var(--text-secondary);white-space:nowrap}
+.cell__value{font-size:8px;line-height:10px;color:var(--text-primary)}
+.cell--mod .cell__label{color:var(--text-primary)}
+.cell--dim .cell__label,.cell--dim .cell__value{color:var(--text-disabled)}
+.switch{display:inline-flex;align-items:center;gap:5px;font:500 8px/1 var(--font-ui);color:var(--text-secondary)}
+.switch i{position:relative;width:18px;height:10px;border-radius:var(--r-clip);background:var(--track-off)}
+.switch i::after{content:"";position:absolute;top:1.5px;left:1.5px;width:7px;height:7px;border-radius:1.5px;background:var(--text-tertiary)}
+.switch.on i{background:var(--accent)}
+.switch.on i::after{left:9.5px;background:var(--panel)}
+.switch.on{color:var(--text-primary)}
+.chip{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 9px;border-radius:var(--r-pill);border:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised);font:400 11px/1 var(--font-ui);color:var(--text-primary)}
+.chip i{width:6px;height:6px;border-radius:50%}
+.chip.on{background:var(--accent);border-color:var(--accent);color:var(--text-on-accent);box-shadow:none}
+.slider{display:grid;grid-template-columns:70px 1fr 42px;align-items:center;gap:8px;width:280px;height:18px}
+.slider span:first-child{font:500 9px/1 var(--font-ui);color:var(--text-secondary)}
+.slider span:last-child{font:400 9px/1 var(--font-mono);color:var(--text-primary);text-align:right}
+.track{position:relative;height:3px;border-radius:var(--r-clip);background:var(--bg-sunken)}
+.track b{position:absolute;left:0;top:0;bottom:0;border-radius:var(--r-clip);background:var(--viz-ink)}
+.track u{position:absolute;top:-2px;width:6px;height:7px;border-radius:var(--r-clip);background:var(--text-primary);margin-left:-3px}
+.slider.live .track b{background:var(--accent)} .slider.live .track u{background:var(--accent-bright)}
+.slider.dim .track b{background:var(--rule)} .slider.dim .track u{background:var(--text-tertiary)} .slider.dim span{color:var(--text-disabled)}
+.btn{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:var(--r-control);border:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised);font:500 12px/1 var(--font-ui);color:var(--text-primary)}
+.btn.hover{background:var(--surface-hover)}
+.btn.pressed{background:var(--bg-sunken);box-shadow:none}
+.btn.on{background:var(--accent);border-color:var(--accent);color:var(--text-on-accent);box-shadow:none}
+.btn.primary{background:var(--surface-hover);color:var(--text-heading);font-weight:600}
+.btn.off{background:var(--panel);color:var(--text-disabled);box-shadow:none}
+.btn.ghost{background:transparent;border-color:transparent;box-shadow:none}
+.field{display:inline-flex;align-items:center;gap:8px;height:26px;width:220px;padding:0 8px;border-radius:var(--r-control);background:var(--bg-sunken);box-shadow:var(--shadow-sunken);font-size:12px;color:var(--text-tertiary)}
+.field.focus{box-shadow:inset 0 0 0 1px var(--accent);color:var(--text-primary)}
+.states{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
+.states figure{margin:0;display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--text-muted)}
+.states figure>*:first-child{align-self:flex-start}
+.listrow{display:flex;align-items:center;gap:8px;width:150px;height:26px;padding:0 8px;font-size:12px;color:var(--text-secondary);border-radius:var(--r-clip)}
+.listrow.sel{background:var(--surface-selected);color:var(--text-primary);box-shadow:inset 2px 0 0 var(--accent)}
+.tabs{display:flex;gap:14px;height:26px;align-items:stretch}
+.tabs span{display:flex;align-items:center;font:500 12px/1 var(--font-ui);color:var(--text-secondary)}
+.tabs span.sel{color:var(--text-primary);box-shadow:inset 0 -2px 0 var(--accent)}
+.toggles{display:inline-flex;gap:3px}
+.toggles b{display:grid;place-items:center;width:20px;height:18px;border-radius:var(--r-badge);border:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised);font:600 9px/1 var(--font-ui);color:var(--text-secondary)}
+.toggles b.m{background:var(--mute);border-color:var(--mute);box-shadow:none}
+.toggles b.s{background:var(--solo);border-color:var(--solo);box-shadow:none}
+.toggles b.r{background:var(--record);border-color:var(--record);box-shadow:none}
+.toggles .disc{width:7px;height:7px;border-radius:50%;background:var(--record)}
+/* menu: a raised popover with a seam ring; hover a full accent fill */
+.menu{display:inline-flex;flex-direction:column;width:200px;padding:4px;background:var(--surface-raised);border:1px solid var(--seam);border-radius:var(--r-control)}
+.menu span{display:flex;justify-content:space-between;height:24px;align-items:center;padding:0 8px;border-radius:var(--r-clip);font-size:12px;color:var(--text-primary)}
+.menu span small{font-size:12px;color:var(--text-muted)}
+.menu span.hot{background:var(--accent);color:var(--text-on-accent)} .menu span.hot small{color:var(--text-on-accent)}
+.menu hr{border:0;height:1px;background:var(--rule);margin:4px}
+/* transport */
+.transport{display:flex;align-items:center;gap:10px;height:44px;padding:0 8px;background:var(--panel);border-bottom:1px solid var(--seam);overflow-x:auto}
+.transport .name{flex:none;font:600 13px/1 var(--font-ui);color:var(--text-primary)}
+.console{flex:none;display:flex;align-items:center;gap:10px;height:30px;padding:0 8px 0 2px;background:var(--bg-sunken);box-shadow:var(--shadow-sunken);border-radius:var(--r-control)}
+.keys{display:flex;gap:1px}
+.tp{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:var(--r-tile);background:var(--surface-raised);border:1px solid var(--seam);box-shadow:var(--shadow-raised)}
+.tp.play{width:36px}
+.tp.on{background:var(--accent);border-color:var(--accent);box-shadow:none}
+.tp .stop{width:9px;height:9px;border-radius:1px;background:var(--text-strong)}
+.tp .play-tri{width:0;height:0;border-left:10px solid var(--text-strong);border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}
+.tp.on .play-tri{border-left-color:var(--text-on-accent)}
+.tp .rec{width:10px;height:10px;border-radius:50%;background:var(--record)}
+.tp.rec-on{background:var(--record);border-color:var(--record);box-shadow:none} .tp.rec-on .rec{background:var(--record-ink)}
+.tp .met{width:10px;height:12px;border:1.5px solid var(--text-strong);border-bottom-width:2px;clip-path:polygon(30% 0,70% 0,100% 100%,0 100%)}
+.tp.on .met{border-color:var(--text-on-accent)}
+.pos{display:flex;align-items:center;gap:6px}
+.pos b{font:400 14px/1 var(--font-mono);letter-spacing:.02em;color:var(--text-primary)}
+.unit{font:500 10px/1 var(--font-ui);color:var(--text-muted)}
+.well{flex:none;display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 8px;background:var(--bg-sunken);box-shadow:var(--shadow-sunken);border-radius:var(--r-control)}
+.well b{font:400 13px/1 var(--font-mono);color:var(--text-primary)}
+.loop{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:var(--r-control);background:var(--accent);color:var(--text-on-accent);font:400 11px/1 var(--font-mono)}
+.loop .unit{color:var(--text-on-accent)}
+.vr{flex:none;width:1px;height:18px;background:var(--rule)}
+/* graph window */
+.graph{background:var(--bg-sunken);box-shadow:inset 0 0 0 1px var(--rule);border-radius:var(--r-control);position:relative}
+.graph .axis{position:absolute;font:400 7.5px/1 var(--font-mono);color:var(--text-axis)}
+.graph .title{position:absolute;left:6px;top:5px;font:500 8px/1 var(--font-ui);color:var(--text-muted)}
+.meters{display:flex;gap:5px;align-items:flex-end;height:120px}
+.meter{position:relative;width:11px;height:120px;border-radius:var(--r-clip);background:var(--bg-sunken);box-shadow:inset 0 0 0 1px var(--rule);overflow:hidden}
+.meter i{position:absolute;left:0;right:0;bottom:0}
+/* clips */
+.lane{display:flex;gap:2px;align-items:center;height:64px;padding:0 6px;background:var(--bg-app);border:1px solid var(--seam);border-radius:var(--r-control);overflow-x:auto;position:relative}
+.clip{position:relative;flex:none;height:60px;border-radius:var(--r-clip);background:var(--c-body);overflow:hidden}
+.clip b{display:block;height:12px;padding:0 5px;background:var(--c-band);color:var(--c-ink);font:600 9.5px/12px var(--font-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+.clip i{position:absolute;width:8px;height:3px;border-radius:1px;background:var(--c-cont)}
+.clip.sel b{background:var(--accent);color:var(--text-on-accent)}
+.clip.sel{box-shadow:inset 0 0 0 1px var(--accent)}
+.playhead{position:absolute;top:0;bottom:0;width:1px;background:var(--accent)}
+/* card */
+.card{width:700px;height:260px;background:var(--panel);border:1px solid var(--seam);border-radius:var(--r-body);overflow:hidden;display:grid;grid-template-rows:22px 1fr}
+.card__head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:0 8px;border-bottom:1px solid var(--seam);background:var(--surface-raised);box-shadow:var(--shadow-raised)}
+.card__name{font:600 12px/1 var(--font-ui);color:var(--text-primary);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
+.preset{display:inline-flex;align-items:stretch;height:18px;border-radius:var(--r-control);background:var(--bg-sunken);box-shadow:var(--shadow-sunken);overflow:hidden;font-size:11px}
+.preset i{font-style:normal;width:18px;display:grid;place-items:center;color:var(--text-tertiary)}
+.preset b{font-weight:500;width:132px;padding:0 7px;border-left:1px solid var(--rule);border-right:1px solid var(--rule);display:flex;align-items:center;color:var(--text-primary)}
+.card__badge{font:400 10px/1 var(--font-mono);color:var(--text-muted)}
+.card__right{display:flex;align-items:center;justify-content:flex-end;gap:8px}
+.card__body{display:grid;grid-template-columns:150px 1fr 150px;gap:5px;padding:6px}
+.sect{padding:6px 8px;display:flex;flex-direction:column;gap:6px;min-width:0}
+.sect+.sect{border-left:1px solid var(--rule)}
+.sect h5{margin:0;font:600 10.5px/1 var(--font-ui);color:var(--text-muted)}
+.scroll{overflow-x:auto;padding-bottom:4px}
+.note{font-size:11px;color:var(--text-muted)}
+/* shell */
+.shell{display:grid;grid-template-rows:20px 28px 1fr 22px 70px 16px;gap:1px;height:300px;border:1px solid var(--seam);border-radius:var(--r-control);overflow:hidden;background:var(--seam);font:500 11px/1 var(--font-ui);color:var(--text-muted)}
+.shell>div{display:flex;align-items:center;padding:0 10px}
+.shell .h{background:var(--bg-app);justify-content:center;color:var(--text-primary);font-weight:600}
+.shell .t{background:var(--panel)}
+.shell .b{display:grid;grid-template-columns:170px 1fr;gap:1px;padding:0;align-items:stretch;background:var(--seam)}
+.shell .b div{display:grid;place-items:center}
+.shell .b div:first-child{background:var(--panel)} .shell .b div:last-child{background:var(--bg-app)}
+.shell .d{background:var(--panel)}
+.shell .db{background:var(--bg-app)}
+.shell .s{background:var(--bg-app);font-weight:400;color:var(--text-secondary)}
+ul.plain{margin:0;padding-left:18px;color:var(--text-secondary)} ul.plain li{margin:3px 0}
+@media (max-width:760px){.spec{grid-template-columns:1fr} .mast nav{display:none}}
+'''
+
+HEAD=f'''<!-- SPDX-License-Identifier: AGPL-3.0-only -->
<!-- Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms. -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
-<title>Ember</title>
+<title>Studio</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">
<style>
/* ============================================================================
- Ember — Nota's design system, documented in its own palette.
- The colour variables below are generated from
- src/managed/Nota.App/Theme/NotaTheme.axaml (Dark → :root, Light → [data-variant=paper]).
- Generated by scripts/design-html.py — edit that, then rerun it. Every specimen on the page is painted
- through these variables — nothing uses a raw hex.
+ Studio — Nota's design system, documented in its own palette.
+ The colour and shadow variables below are generated from the colour themes in
+ src/managed/Nota.App/Theme/Themes/ (Studio Dark → :root, every other theme →
+ [data-variant=…]).
+ Generated by scripts/design-html.py — edit that, then rerun it. Every specimen on the page
+ is painted through these variables — nothing uses a raw hex.
========================================================================= */
:root {{
-{root}
- --r-bar: {geo['Radius.Bar']}px; --r-clip: {geo['Radius.Clip']}px; --r-badge: {geo['Radius.Badge']}px; --r-control: {geo['Radius.Control']}px;
- --r-tile: {geo['Radius.Tile']}px; --r-panel: {geo['Radius.Panel']}px; --r-body: {geo['Radius.Body']}px;
+ --r-docked: {geo['Radius.Docked']}px; --r-bar: {geo['Radius.Bar']}px; --r-clip: {geo['Radius.Clip']}px; --r-badge: {geo['Radius.Badge']}px;
+ --r-control: {geo['Radius.Control']}px; --r-tile: {geo['Radius.Tile']}px; --r-panel: {geo['Radius.Panel']}px; --r-body: {geo['Radius.Body']}px;
+ --r-pill: {geo['Radius.Pill']}px; --r-modal: {geo['Radius.Modal']}px;
--font-ui: "Geist", system-ui, sans-serif;
--font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
- --sunken: inset 0 1px 0 rgba(0,0,0,.5);
- --raised: inset 0 1px 0 rgba(255,255,255,.03);
- color-scheme: dark;
-}}
-:root[data-variant="paper"] {{
-{paper}
- --sunken: inset 0 1px 0 rgba(0,0,0,.12);
- --raised: inset 0 1px 0 rgba(255,255,255,.4);
- color-scheme: light;
}}
-*{{box-sizing:border-box}}
-html,body{{margin:0;background:var(--gutter);color:var(--text-primary);font:400 13px/1.55 var(--font-ui);-webkit-font-smoothing:antialiased}}
-.mono{{font-family:var(--font-mono);font-variant-numeric:tabular-nums}}
-code{{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary)}}
-a{{color:var(--accent-hover)}}
-.page{{max-width:1120px;margin:0 auto;padding:0 20px 80px}}
-header.mast{{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;padding:14px 20px;margin:0 -20px 12px;background:var(--gutter);border-bottom:1px solid var(--border-default)}}
-.mast h1{{font:600 13px/1 var(--font-ui);color:var(--text-heading);margin:0}}
-.mast .eyebrow{{margin:0}}
-.mast nav{{display:flex;gap:14px;flex-wrap:wrap;margin-left:8px}}
-.mast nav a{{color:var(--text-secondary);text-decoration:none;font-size:11px;font-weight:500}}
-.mast nav a:hover{{color:var(--text-primary)}}
-.spacer{{flex:1}}
-.eyebrow{{font:500 9px/1 var(--font-mono);letter-spacing:.18em;text-transform:uppercase;color:var(--accent-dim);margin:0 0 8px}}
-section{{background:var(--panel);border:1px solid var(--border-default);border-radius:var(--r-panel);padding:20px;margin:12px 0}}
-h2{{font:600 26px/1.1 var(--font-ui);letter-spacing:-.015em;color:var(--text-heading);margin:0 0 8px}}
-h3{{font:700 10px/1 var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--text-tertiary);margin:22px 0 10px}}
-p{{color:var(--text-secondary);max-width:72ch;margin:0 0 10px}}
-.lead{{color:var(--text-muted)}}
-/* segmented */
-.seg{{display:inline-flex;gap:2px;padding:3px;height:30px;background:var(--bg-sunken);border:1px solid var(--hairline);border-radius:var(--r-tile);box-shadow:var(--sunken)}}
-.seg button{{all:unset;cursor:pointer;height:22px;padding:0 10px;border-radius:var(--r-badge);font:500 11px/22px var(--font-ui);color:var(--text-secondary)}}
-.seg button[aria-pressed="true"]{{background:var(--accent);color:var(--text-on-accent)}}
-.seg--device button{{font-size:9px;height:18px;line-height:18px;padding:0 7px}}
-.seg--device{{height:24px}}
-/* rules */
-.rules{{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}}
-.rule{{background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--r-tile);padding:12px 14px}}
-.rule b{{display:block;color:var(--text-primary);font-weight:600;margin-bottom:4px}}
-.rule span{{color:var(--text-secondary)}}
-/* swatches */
-.swatches{{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}}
-.sw{{all:unset;cursor:pointer;display:grid;grid-template-columns:36px 1fr auto;grid-template-areas:"chip name hex" "chip key key" "chip use use";column-gap:10px;padding:8px;border-radius:var(--r-tile);background:var(--surface-card);border:1px solid var(--border-default)}}
-.sw:hover{{background:var(--surface-hover);border-color:var(--border-strong)}}
-.sw__chip{{grid-area:chip;border-radius:var(--r-control);border:1px solid var(--border-strong);min-height:48px}}
-.sw__name{{grid-area:name;font-weight:600;color:var(--text-primary)}}
-.sw__key{{grid-area:key;font-size:10px;color:var(--text-muted)}}
-.sw__hex{{grid-area:hex;font-size:10px;color:var(--text-secondary)}}
-.sw__use{{grid-area:use;font-size:11px;color:var(--text-muted)}}
-.sw.copied .sw__hex{{color:var(--accent-hover)}}
-/* tables */
-.tbl{{overflow-x:auto}}
-table{{border-collapse:collapse;width:100%;font-size:12px}}
-th{{text-align:left;font:700 9px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--text-tertiary);padding:8px 10px;border-bottom:1px solid var(--border-default)}}
-td{{padding:7px 10px;border-bottom:1px solid var(--hairline);color:var(--text-secondary);vertical-align:middle}}
-td:first-child{{color:var(--text-primary)}}
-/* type */
-.spec{{display:grid;grid-template-columns:200px 1fr;gap:6px 16px;align-items:baseline}}
-.spec .k{{font:400 10px/1.4 var(--font-mono);color:var(--text-muted)}}
-/* geometry */
-.radii{{display:flex;flex-wrap:wrap;gap:14px}}
-.radius{{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--text-secondary)}}
-.radius i{{display:block;width:56px;height:40px;background:var(--surface-raised);border:1px solid var(--border-strong)}}
-.depth{{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}}
-.depth div{{height:84px;border-radius:var(--r-panel);padding:10px;font-size:11px;color:var(--text-secondary)}}
-/* controls */
-.row{{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:6px 0}}
-.demo{{background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--r-body);padding:16px}}
-.knob{{display:block}}
-.knobs{{display:flex;gap:22px;align-items:flex-end}}
-.knobs figure{{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px;color:var(--text-muted)}}
-.cell{{display:flex;flex-direction:column;align-items:center;width:53px}}
-.cell__label{{font:700 7px/9px var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--text-tertiary)}}
-.cell__value{{font-size:7px;line-height:10px;color:var(--text-secondary)}}
-.cell--hot .cell__label,.cell--hot .cell__value{{color:var(--accent-bright)}}
-.cell--dim .cell__label,.cell--dim .cell__value{{color:var(--text-disabled)}}
-.switch{{display:inline-flex;align-items:center;gap:6px;font:700 7px/1 var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--text-tertiary)}}
-.switch i{{position:relative;width:18px;height:10px;border-radius:5px;background:var(--track-off)}}
-.switch i::after{{content:"";position:absolute;top:1.5px;left:1.5px;width:7px;height:7px;border-radius:50%;background:var(--text-tertiary)}}
-.switch.on i{{background:var(--accent)}}
-.switch.on i::after{{left:9.5px;background:var(--panel)}}
-.switch.on{{color:var(--text-secondary)}}
-.chip{{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 9px;border-radius:10px;border:1px solid var(--border-default);background:var(--surface-raised);font:500 11px/1 var(--font-ui);color:var(--text-strong)}}
-.chip i{{width:6px;height:6px;border-radius:50%}}
-.chip.on{{background:var(--accent-subtle);border-color:var(--border-brass);color:var(--accent-hover)}}
-.slider{{display:grid;grid-template-columns:70px 1fr 42px;align-items:center;gap:8px;width:280px;height:18px}}
-.slider span:first-child{{font:700 8px/1 var(--font-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary)}}
-.slider span:last-child{{font:400 9px/1 var(--font-mono);color:var(--text-primary);text-align:right}}
-.track{{position:relative;height:3px;border-radius:var(--r-clip);background:var(--bg-sunken)}}
-.track b{{position:absolute;left:0;top:0;bottom:0;border-radius:var(--r-clip);background:var(--accent)}}
-.track u{{position:absolute;top:-2px;width:6px;height:7px;border-radius:var(--r-clip);background:var(--accent-bright);margin-left:-3px}}
-.slider.dim .track b{{background:var(--border-strong)}} .slider.dim .track u{{background:var(--text-tertiary)}} .slider.dim span:first-child{{color:var(--text-disabled)}}
-.btn{{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:var(--r-control);border:1px solid var(--border-default);background:var(--surface-raised);box-shadow:var(--raised);font:500 11px/1 var(--font-ui);color:var(--text-strong)}}
-.btn.hover{{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text-primary)}}
-.btn.pressed{{background:var(--bg-sunken);box-shadow:none;color:var(--accent-deep)}}
-.btn.on{{background:var(--accent-subtle);border-color:var(--border-brass);color:var(--accent-hover)}}
-.btn.primary{{background:var(--accent);border-color:var(--accent);color:var(--text-on-accent);box-shadow:none}}
-.btn.off{{background:var(--panel);border-color:var(--hairline);color:var(--text-disabled);box-shadow:none}}
-.field{{display:inline-flex;align-items:center;gap:8px;height:26px;width:220px;padding:0 9px;border-radius:var(--r-tile);border:1px solid var(--hairline);background:var(--bg-sunken);box-shadow:var(--sunken);font-size:11px;color:var(--text-disabled)}}
-.field.focus{{border-color:var(--border-brass);color:var(--text-primary)}}
-.btn small,.states small{{display:block}}
-.states{{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}}
-.states figure{{margin:0;display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--text-muted)}}
-.states figure .btn{{align-self:flex-start}}
-.transport+.note{{margin-top:8px}}
-/* transport */
-.transport{{display:flex;align-items:center;gap:14px;height:60px;padding:0 14px;background:var(--bg-sunken);border:1px solid var(--border-default);border-radius:var(--r-panel);overflow-x:auto}}
-.transport .seg{{background:var(--surface-card);border:0;box-shadow:none;padding:3px}}
-.console{{flex:none;display:flex;align-items:center;gap:5px;height:42px;padding:0 14px 0 12px;background:var(--surface-abyss);border:1px solid var(--border-default);border-radius:var(--r-panel);box-shadow:var(--sunken)}}
-.console .vr{{margin:0 7px}}
-.tp{{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:var(--r-tile);background:var(--surface-raised);border:1px solid var(--border-strong);box-shadow:var(--raised)}}
-.tp.play{{width:40px}}
-.tp.play.on{{background:var(--accent);border-color:var(--accent);box-shadow:none}}
-.tp .stop{{width:9px;height:9px;border-radius:1px;background:var(--text-strong)}}
-.tp .play-tri{{width:0;height:0;border-left:10px solid var(--text-strong);border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}}
-.tp.play.on .play-tri{{border-left-color:var(--text-on-accent)}}
-.tp .rec{{width:10px;height:10px;border-radius:50%;background:var(--record)}}
-.tp.rec-on{{background:var(--record);border-color:var(--record)}} .tp.rec-on .rec{{background:var(--record-ink)}}
-.readout{{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px}}
-.readout b{{font:500 13px/1 var(--font-mono);color:var(--accent-bright)}}
-.readout b.n{{color:var(--text-primary)}}
-.readout span{{font:700 7px/1 var(--font-ui);letter-spacing:.12em;color:var(--text-tertiary)}}
-.vr{{flex:none;width:1px;height:24px;background:var(--border-default)}}
-/* graph window */
-.graph{{background:var(--bg-sunken);border:1px solid var(--hairline);border-radius:var(--r-control);position:relative}}
-.graph .axis{{position:absolute;font:400 7px/1 var(--font-mono);color:var(--text-axis)}}
-.graph .title{{position:absolute;left:6px;top:5px;font:700 8px/1 var(--font-ui);letter-spacing:.08em;color:var(--text-tertiary)}}
-.meters{{display:flex;gap:5px;align-items:flex-end;height:120px}}
-.meter{{position:relative;width:11px;height:120px;border-radius:var(--r-clip);background:var(--bg-sunken);overflow:hidden}}
-.meter i{{position:absolute;left:0;right:0;bottom:0}}
-/* card */
-.card{{width:700px;height:260px;background:var(--bg-app);border:1px solid var(--border-default);border-radius:var(--r-body);overflow:hidden;display:grid;grid-template-rows:22px 1fr}}
-.card__head{{display:flex;align-items:center;gap:8px;padding:0 8px;border-bottom:1px solid var(--border-default);background:var(--panel)}}
-.card__name{{font:600 12px/1 var(--font-ui);color:var(--text-primary)}}
-.preset{{margin-left:auto;display:inline-flex;align-items:stretch;height:18px;border:1px solid var(--hairline);border-radius:var(--r-control);background:var(--bg-sunken);overflow:hidden;font-size:11px}}
-.preset i{{font-style:normal;width:18px;display:grid;place-items:center;color:var(--text-tertiary)}}
-.preset b{{font-weight:500;width:132px;padding:0 7px;border-left:1px solid var(--hairline);border-right:1px solid var(--hairline);display:flex;align-items:center;color:var(--text-primary)}}
-.card__badge{{margin-left:auto;font:500 9px/1 var(--font-mono);letter-spacing:.12em;color:var(--text-tertiary)}}
-.card__body{{display:grid;grid-template-columns:150px 1fr 150px;gap:5px;padding:6px}}
-.sect{{background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--r-panel);padding:6px 8px;display:flex;flex-direction:column;gap:6px;min-width:0}}
-.sect h5{{margin:0;font:700 9px/1 var(--font-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--text-tertiary)}}
-.anat{{position:relative;display:inline-block}}
-.scroll{{overflow-x:auto;padding-bottom:4px}}
-.note{{font-size:11px;color:var(--text-muted)}}
-/* shell */
-.shell{{display:grid;grid-template-rows:24px 30px 1fr 14px;gap:0;height:260px;border:1px solid var(--border-default);border-radius:var(--r-body);overflow:hidden;background:var(--gutter);font:700 9px/1 var(--font-ui);letter-spacing:.12em;color:var(--text-tertiary)}}
-.shell>div{{display:flex;align-items:center;padding:0 10px}}
-.shell .h{{background:var(--bg-sunken);justify-content:center;color:var(--text-heading);letter-spacing:0;font:600 11px/1 var(--font-ui);border-bottom:1px solid var(--border-default)}}
-.shell .t{{background:var(--surface-abyss);border-bottom:1px solid var(--border-default)}}
-.shell .b{{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:12px;align-items:stretch}}
-.shell .b div{{border-radius:var(--r-panel);border:1px solid var(--border-default);display:grid;place-items:center}}
-.shell .b div:first-child{{background:var(--panel)}} .shell .b div:last-child{{background:var(--bg-sunken)}}
-.shell .s{{background:var(--bg-sunken);border-top:1px solid var(--border-default)}}
-ul.plain{{margin:0;padding-left:18px;color:var(--text-secondary)}} ul.plain li{{margin:3px 0}}
-@media (max-width:760px){{.spec{{grid-template-columns:1fr}} .mast nav{{display:none}}}}
-</style>
+{VARIANTS}
+'''
+
+g=lambda k: geo[k]
+BODY=f'''</style>
</head>
<body>
<div class="page">
<header class="mast">
- <div><p class="eyebrow">Nota · design</p><h1>Ember</h1></div>
+ <div><p class="eyebrow">Nota · design</p><h1>Studio</h1></div>
<nav><a href="#rules">Rules</a><a href="#colour">Colour</a><a href="#type">Type</a><a href="#geometry">Geometry</a><a href="#controls">Controls</a><a href="#states">States</a><a href="#graphs">Graphs</a><a href="#cards">Cards</a><a href="#shell">Shell</a></nav>
<span class="spacer"></span>
- <div class="seg" role="group" aria-label="Variant"><button data-v="graphite" aria-pressed="true">Graphite</button><button data-v="paper" aria-pressed="false">Paper</button></div>
+ <div class="seg" role="group" aria-label="Colour theme">{''.join(f'<button data-v="{vname(th)}" aria-pressed="{str(vname(th)=="dark").lower()}">{th["name"]}</button>' for th in THEMES)}</div>
</header>
<section id="rules">
<p class="eyebrow">01 · Foundation</p>
<h2>Rules</h2>
- <p class="lead">The Nota Design Almanac, as the app implements it. <a href="DESIGN.md">DESIGN.md</a> is the text version with every value, the tests that enforce it and the accepted departures.</p>
+ <p class="lead">Nota's design language: the work carries the colour, the interface steps back, and one accent marks what is live or chosen. <a href="DESIGN.md">DESIGN.md</a> is the text version with every value, the tests that enforce it and the accepted exceptions.</p>
<div class="rules">
- <div class="rule"><b>One accent</b><span>Brass means “active, selected, changed”. There is no second accent.</span></div>
- <div class="rule"><b>Semantics only where they apply</b><span>Red is recording and overload. Green and yellow are meter zones and live signal.</span></div>
- <div class="rule"><b>Chromas live inside graphs</b><span>Teal, rose and steel separate sources in a visualisation — never on buttons, never as state.</span></div>
- <div class="rule"><b>Flat material</b><span>No gradients, glow or texture. Depth is lightness plus a hairline, three levels at most.</span></div>
- <div class="rule"><b>Two faces, one split</b><span>Geist for names and words, Geist Mono for measurements. Nothing under 7 px.</span></div>
- <div class="rule"><b>One control, many sizes</b><span>Each control has one implementation; its value is always visible next to it.</span></div>
+ <div class="rule"><b>One accent: live or chosen</b><span>Orange is playing, selected, the playhead, the loop, a toggle that is on, menu hover, the power switch, and a value control while hovered or dragged. Nothing else.</span></div>
+ <div class="rule"><b>Resting values are neutral</b><span>Knob arcs, fader fills, curves and waveforms at rest are viz ink. A modulation arc keeps its source chroma.</span></div>
+ <div class="rule"><b>Semantics by purpose</b><span>Mute amber, solo blue, arm and record red. Green is positive status and the meter's safe range.</span></div>
+ <div class="rule"><b>Derived ink on solid fills</b><span>Text on an accent, mute, solo, arm or track-colour fill takes the ink with the higher contrast.</span></div>
+ <div class="rule"><b>Seam between, rule within</b><span>Panels and keys meet on the dark seam; items inside a panel are divided by the lighter rule.</span></div>
+ <div class="rule"><b>Flat docked, blur only floating</b><span>Depth is a tone step, a 1px seam and a faint top bevel. Only floating layers cast a blurred shadow.</span></div>
+ <div class="rule"><b>2 · 3 · 4 corners</b><span>2 for inner keys, rows, clips; 3 for controls and cards; 4 for modals; 0 for docked panels.</span></div>
+ <div class="rule"><b>Two faces, one split</b><span>Geist for words, Geist Mono for every number a user reads. Nothing under 7 px.</span></div>
+ <div class="rule"><b>No shouting</b><span>Sentence case, letter-spacing 0. Acronyms and units keep their case: LFO rate, Gain dB.</span></div>
<div class="rule"><b>State changes colour only</b><span>Never size, border width or position. Nothing moves on hover.</span></div>
<div class="rule"><b>Real time is not animated</b><span>Meters, playhead and spectra jump to the value.</span></div>
- <div class="rule"><b>Muted is an Ink step</b><span>Disabled and quiet text take the next Ink step. Opacity is not a state.</span></div>
+ <div class="rule"><b>Opacity is not a state</b><span>Muted and disabled take the next ink step.</span></div>
<div class="rule"><b>Numbers are set</b><span class="mono">−3.3 dB · 72 % · 3.2 k · 120.00</span></div>
</div>
</section>
@@ -263,83 +409,90 @@ ul.plain{{margin:0;padding-left:18px;color:var(--text-secondary)}} ul.plain li{{
<p class="eyebrow">02 · Colour</p>
<h2>Palette</h2>
<p>Click a swatch to copy its hex for the variant selected above. Values come straight from <code>NotaTheme.axaml</code>.</p>
- <h3>Surfaces · far to near</h3>{grid(surfaces)}
- <h3>Lines</h3>{grid(lines)}
- <h3>Ink · eight steps</h3>{grid(inks)}
- <h3>Brass · the only accent</h3>{grid(brass)}
+ <h3>Surfaces · well, ground, panel, raised</h3>{grid(surfaces)}
+ <h3>Lines · seam and rule</h3>{grid(lines)}
+ <h3>Ink · by importance</h3>{grid(inks)}
+ <h3>Accent · the only one</h3>{grid(accent)}
<h3>Semantics</h3>{grid(sem)}
- <h3>Role chromas · inside graphs only, in this order</h3>{grid(chromas)}
- <h3>Track palette · nine roles</h3>{grid(tracks)}
+ <h3>Graph chromas · inside graphs only, in this order</h3>{grid(chromas)}
+ <h3>Track palette · nine roles, returns, master</h3>{grid(tracks)}
+ <h3>Elevation</h3>
+ <div class="tbl" style="margin-top:10px"><table>
+ <tr><th>Key</th><th>Dark</th><th>Light</th></tr>
+ {shadow_rows()}
+ </table></div>
+ <p class="note" style="margin-top:8px">Only <code>Shadow.Popover</code> and <code>Shadow.Modal</code> carry a blur. A raised control's seam ring is its own 1px seam border; <code>Shadow.Raised</code> is the top bevel.</p>
</section>
<section id="type">
<p class="eyebrow">03 · Type</p>
<h2>Geist and Geist Mono</h2>
- <p>A proportional face for names and words; mono for anything that is a measurement, so digits keep their width as a knob turns.</p>
+ <p>A proportional face for names and words; mono for every number a user reads, so digits keep their width as a knob turns. Nothing in the shell is larger than 13 except the position readout.</p>
<h3>Shell scale</h3>
<div class="spec">
- <span class="k">Title · 600 · 26</span><span style="font:600 26px/1.1 var(--font-ui);letter-spacing:-.015em;color:var(--text-heading)">Controls</span>
- <span class="k">Heading · 600 · 13</span><span style="font:600 13px var(--font-ui);color:var(--text-heading)">Northern Reverb Study</span>
- <span class="k">Name · 500 · 12</span><span style="font:500 12px var(--font-ui)">Stone Vault · Long Tail</span>
- <span class="k">default · 500 · 11</span><span style="font:500 11px var(--font-ui);color:var(--text-strong)">Arrangement · Session · Modular</span>
- <span class="k">Caption · 400 · 11 · Ink 4</span><span style="font:400 11px/1.65 var(--font-ui);color:var(--text-muted)">Load as an effect on the selected track</span>
- <span class="k">SectionLabel · 700 · 10 caps</span><span style="font:700 10px var(--font-ui);letter-spacing:.14em;color:var(--text-tertiary)">SURFACES</span>
- <span class="k">Readout · mono 500 · 13</span><span class="mono" style="font-weight:500;font-size:13px">12.3.04 · 120.00</span>
- <span class="k">Value · mono 400 · 10</span><span class="mono" style="font-size:10px;color:var(--text-secondary)">−3.3 dB · 48 k · 2.4 MB</span>
- <span class="k">Eyebrow · mono 500 · 9 caps</span><span class="mono" style="font-weight:500;font-size:9px;letter-spacing:.18em;color:var(--accent-dim)">NOTA · CONVOLUTION</span>
+ <span class="k">{tspec('Title')}</span><span style="{tstyle('Title')}">Export audio</span>
+ <span class="k">{tspec('Heading')}</span><span style="{tstyle('Heading')}">Northern Reverb Study</span>
+ <span class="k">{tspec('Name')}</span><span style="{tstyle('Name')}">Stone Vault · Long Tail</span>
+ <span class="k">default · 500 · 12</span><span style="font:500 12px var(--font-ui)">Arrangement · Session · Modular</span>
+ <span class="k">{tspec('Caption')}</span><span style="{tstyle('Caption')}">Load as an effect on the selected track</span>
+ <span class="k">{tspec('SectionLabel')}</span><span style="{tstyle('SectionLabel')}">Recent samples</span>
+ <span class="k">{tspec('CellLabel')}</span><span style="{tstyle('CellLabel')}">BPM · Loop · Grid</span>
+ <span class="k">{tspec('Readout')}</span><span style="{tstyle('Readout')}">120.00 · 12.3.04</span>
+ <span class="k">{tspec('Value')}</span><span style="{tstyle('Value')}">−3.3 dB · 48 k · 2.4 MB</span>
+ <span class="k">{tspec('Eyebrow')}</span><span style="{tstyle('Eyebrow')}">Convolution · VST3</span>
</div>
<h3>Device scale · inside a 700 × 260 card</h3>
<div class="spec">
- <span class="k">DeviceName · 600 · 12</span><span style="font:600 12px var(--font-ui)">Nota Chamber</span>
- <span class="k">DeviceSection · 700 · 9 caps</span><span style="font:700 9px var(--font-ui);letter-spacing:.12em;color:var(--text-tertiary)">EARLY REFLECTIONS</span>
- <span class="k">RowLabel · 700 · 8 caps</span><span style="font:700 8px var(--font-ui);letter-spacing:.1em;color:var(--text-tertiary)">PRE-DELAY</span>
- <span class="k">KnobLabel · 700 · 7 caps</span><span style="font:700 7px var(--font-ui);letter-spacing:.08em;color:var(--text-tertiary)">DECAY</span>
- <span class="k">KnobValue · mono · 7</span><span class="mono" style="font-size:7px;color:var(--text-secondary)">4.6 s</span>
- <span class="k">Axis · mono · 7 · Ink 7</span><span class="mono" style="font-size:7px;color:var(--text-axis)">30 Hz — 18k</span>
+ <span class="k">{tspec('DeviceName')}</span><span style="{tstyle('DeviceName')}">Nota Chamber</span>
+ <span class="k">{tspec('DeviceSection')}</span><span style="{tstyle('DeviceSection')}">Early reflections</span>
+ <span class="k">{tspec('RowLabel')}</span><span style="{tstyle('RowLabel')}">Pre-delay</span>
+ <span class="k">{tspec('KnobLabel')}</span><span style="{tstyle('KnobLabel')}">LFO rate</span>
+ <span class="k">{tspec('KnobValue')}</span><span style="{tstyle('KnobValue')}">4.6 s</span>
+ <span class="k">{tspec('Axis')}</span><span style="{tstyle('Axis')}">30 Hz — 18k</span>
</div>
- <h3>Setting numbers</h3>
+ <h3>Setting numbers and labels</h3>
<div class="tbl"><table>
<tr><th>Rule</th><th>Yes</th><th>No</th></tr>
<tr><td>Thin space before the unit</td><td class="mono">4.6 s · −3.3 dB · 72 %</td><td class="mono">4.6s · -3,3dB</td></tr>
<tr><td>Typographic minus; plus only where the sign matters</td><td class="mono">−18.0 dB · +0.8 dB</td><td class="mono">-18.0 dB</td></tr>
<tr><td>Fixed precision</td><td class="mono">dB 1 · tempo 2 · % 0 · 440 Hz · 3.2 k</td><td class="mono">3200 Hz · 72.4 %</td></tr>
- <tr><td>Labels: English caps, one word</td><td class="mono">FEEDBACK · PRE-DELAY · FREQ</td><td class="mono">Fdbk: · Value</td></tr>
+ <tr><td>Labels: sentence case, no tracking, acronyms kept</td><td>Feedback · Pre-delay · LFO rate · Gain dB</td><td>FEEDBACK · Fdbk: · Lfo Rate</td></tr>
</table></div>
</section>
<section id="geometry">
<p class="eyebrow">04 · Material</p>
<h2>Radii, sizes, depth</h2>
- <h3>Radii · by size, not role</h3>
+ <h3>Radii · small, nearly square</h3>
<div class="radii">
- <div class="radius"><i style="border-radius:var(--r-bar)"></i>1 · bar</div>
- <div class="radius"><i style="border-radius:var(--r-clip)"></i>2 · clip, meter</div>
- <div class="radius"><i style="border-radius:var(--r-badge)"></i>3 · badge</div>
- <div class="radius"><i style="border-radius:var(--r-control)"></i>4 · graph, button</div>
- <div class="radius"><i style="border-radius:var(--r-tile)"></i>5 · tile, search</div>
- <div class="radius"><i style="border-radius:var(--r-panel)"></i>6 · panel, section</div>
- <div class="radius"><i style="border-radius:var(--r-body)"></i>8 · device body</div>
- <div class="radius"><i style="border-radius:20px"></i>pill · chip, switch</div>
+ <div class="radius"><i style="border-radius:var(--r-docked)"></i>{g('Radius.Docked')} · docked panel</div>
+ <div class="radius"><i style="border-radius:var(--r-bar)"></i>{g('Radius.Bar')} · bar in a plot</div>
+ <div class="radius"><i style="border-radius:var(--r-clip)"></i>{g('Radius.Clip')} · clip, row, menu item</div>
+ <div class="radius"><i style="border-radius:var(--r-control)"></i>{g('Radius.Control')} · control, card, popover</div>
+ <div class="radius"><i style="border-radius:var(--r-modal)"></i>{g('Radius.Modal')} · modal</div>
</div>
<h3>Sizes and steps</h3>
<div class="tbl"><table>
<tr><th>Element</th><th>px</th><th>Token</th></tr>
<tr><td>Device card</td><td class="mono">700 × 260</td><td><code>DeviceCardKit.CardH</code></td></tr>
- <tr><td>Transport island · console · buttons · Play</td><td class="mono">60 · 42 · 28 · 40</td><td><code>Control.TransportBar / Console / Transport / Play</code></td></tr>
- <tr><td>Shell button, field</td><td class="mono">26</td><td><code>Control.Shell</code></td></tr>
- <tr><td>Tab segment in its container</td><td class="mono">24 in 30</td><td><code>Control.Seg / SegGroup</code></td></tr>
- <tr><td>Filter chip</td><td class="mono">20</td><td><code>Control.Chip</code></td></tr>
- <tr><td>Knob · secondary / regular / main</td><td class="mono">34 / 36 / 44</td><td><code>Control.Knob*</code></td></tr>
- <tr><td>Parameter cell</td><td class="mono">53</td><td><code>Control.ParamCell</code></td></tr>
+ <tr><td>Transport row · console · keys · Play</td><td class="mono">{g('Control.TransportBar')} · {g('Control.Console')} · {g('Control.Transport')} · {g('Control.Play')}</td><td><code>Control.TransportBar / Console / Transport / Play</code></td></tr>
+ <tr><td>Shell button, field, readout well</td><td class="mono">{g('Control.Shell')}</td><td><code>Control.Shell</code></td></tr>
+ <tr><td>Tab segment · segment container</td><td class="mono">{g('Control.Seg')} · {g('Control.SegGroup')}</td><td><code>Control.Seg / SegGroup</code></td></tr>
+ <tr><td>Filter chip</td><td class="mono">{g('Control.Chip')}</td><td><code>Control.Chip</code></td></tr>
+ <tr><td>Title bar · panel toolbar · status · menu item</td><td class="mono">32 · 32 · 22 · 24</td><td></td></tr>
+ <tr><td>Knob · secondary / regular / main · inline</td><td class="mono">{g('Control.KnobSecondary')} / {g('Control.KnobRegular')} / {g('Control.KnobMain')} · {g('Control.KnobInline')}</td><td><code>Control.Knob*</code></td></tr>
+ <tr><td>Parameter cell</td><td class="mono">{g('Control.ParamCell')}</td><td><code>Control.ParamCell</code></td></tr>
<tr><td>Switch · slider track · meter</td><td class="mono">18 × 10 · 3 · 11 / 5</td><td></td></tr>
- <tr><td>Device steps · hair / gap / inset / wide</td><td class="mono">2 · 5 · 6 · 8</td><td><code>Space.Device*</code></td></tr>
- <tr><td>Shell steps · tile / gutter / inset</td><td class="mono">8 · 12 · 20</td><td><code>Space.Tile / Gutter / Inset</code></td></tr>
+ <tr><td>Device steps · hair / gap / inset / wide</td><td class="mono">{g('Space.DeviceHair')} · {g('Space.DeviceGap')} · {g('Space.DeviceInset')} · {g('Space.DeviceInsetWide')}</td><td><code>Space.Device*</code></td></tr>
+ <tr><td>Shell steps · tile / between panels (the seam) / inset</td><td class="mono">{g('Space.Tile')} · {g('Space.Gutter')} · {g('Space.Inset')}</td><td><code>Space.Tile / Gutter / Inset</code></td></tr>
</table></div>
- <h3>Three levels of depth</h3>
+ <h3>Depth · a tone step and a seam; blur only when it floats</h3>
<div class="depth">
- <div style="background:var(--bg-sunken);border:1px solid var(--hairline);box-shadow:var(--sunken)">Sunken · Well · Hairline · inner top line</div>
- <div style="background:var(--surface-card);border:1px solid var(--border-default)">Flat · Card · Border · no shadow</div>
- <div style="background:var(--surface-raised);border:1px solid var(--border-default);box-shadow:var(--raised)">Raised · Raised · Border · inner highlight</div>
+ <div style="background:var(--bg-sunken);box-shadow:var(--shadow-sunken);border-radius:var(--r-control)">Well · rule edge</div>
+ <div style="background:var(--bg-app);box-shadow:0 0 0 1px var(--seam)">Ground</div>
+ <div style="background:var(--panel);box-shadow:0 0 0 1px var(--seam)">Panel · docked, flat</div>
+ <div style="background:var(--surface-raised);border:1px solid var(--seam);box-shadow:var(--shadow-raised);border-radius:var(--r-control)">Raised · seam border · top bevel</div>
+ <div style="background:var(--panel);box-shadow:var(--shadow-modal);border-radius:var(--r-modal)">Floating · Shadow.Modal</div>
</div>
</section>
@@ -352,70 +505,81 @@ ul.plain{{margin:0;padding-left:18px;color:var(--text-secondary)}} ul.plain li{{
<figure>{knob(34,.55)}secondary</figure>
<figure>{knob(36,.4)}regular</figure>
<figure>{knob(44,.7)}main</figure>
+ <figure>{knob(36,.5,live=True)}live</figure>
<figure>{knob(36,.62,'var(--chroma-teal)')}modulated</figure>
<figure>{knob(36,.4,dim=True)}inactive</figure>
</div>
+ <p class="note">At rest the arc is viz ink; it turns accent only while the knob is hovered or dragged. A modulated arc takes its source's chroma.</p>
<h3>Parameter cell · 53 tall</h3>
<div class="demo row" style="gap:6px">
- {knob(34,.6,label='DECAY',val='4.6 s',hot=True)}
- {knob(34,.35,label='SIZE',val='31 m')}
- {knob(34,.42,label='MIX',val='42 %')}
- {knob(34,.3,'var(--chroma-teal)',label='MOD',val='18 %')}
- {knob(34,.0,dim=True,label='WIDTH',val='off')}
+ {knob(34,.6,label='Decay',val='4.6 s',mod=True)}
+ {knob(34,.35,label='Size',val='31 m')}
+ {knob(34,.42,label='Mix',val='42 %',live=True)}
+ {knob(34,.3,'var(--chroma-teal)',label='LFO rate',val='18 %')}
+ {knob(34,.0,dim=True,label='Width',val='off')}
</div>
- <p class="note">Brass Light label and value: the parameter differs from its default. A modulated arc takes its source's chroma; the label stays neutral.</p>
- <h3>Switch · segments · chips</h3>
+ <p class="note">A parameter changed from its default lifts its name to primary ink — no accent, no dot. Names are sentence case at 8 px.</p>
+ <h3>Switch · segments · chips · track toggles</h3>
<div class="demo">
<div class="row"><span class="switch on"><i></i>True stereo</span><span class="switch"><i></i>Reverse IR</span>
<div class="seg seg--device"><button aria-pressed="false">Eco</button><button aria-pressed="true">Mid</button><button aria-pressed="false">High</button></div>
<div class="seg"><button aria-pressed="true">Arrangement</button><button aria-pressed="false">Session</button><button aria-pressed="false">Modular</button></div></div>
- <div class="row"><span class="chip on">Favorites</span><span class="chip"><i style="background:var(--danger)"></i>bass</span><span class="chip"><i style="background:var(--track4)"></i>analog</span><span class="chip"><i style="background:var(--track2)"></i>clean</span><span class="chip mono">+2</span></div>
+ <div class="row"><span class="chip on">Favorites</span><span class="chip"><i style="background:var(--danger)"></i>bass</span><span class="chip"><i style="background:var(--track4)"></i>analog</span><span class="chip"><i style="background:var(--track2)"></i>clean</span><span class="chip mono">+2</span>
+ <span class="toggles"><b>M</b><b>S</b><b><i class="disc"></i></b></span><span class="toggles"><b class="m" style="color:var(--ink-on-mute)">M</b><b class="s" style="color:var(--ink-on-solo)">S</b><b class="r"><i class="disc" style="background:var(--record-ink)"></i></b></span></div>
</div>
+ <p class="note">Toggled on is a solid fill with derived ink: the accent for a chip or segment, amber for mute, blue for solo, red for arm.</p>
<h3>Slider row</h3>
<div class="demo">
<div class="slider"><span>Pre-delay</span><span class="track"><b style="width:30%"></b><u style="left:30%"></u></span><span>24 ms</span></div>
- <div class="slider"><span>Diffusion</span><span class="track"><b style="width:72%"></b><u style="left:72%"></u></span><span>72 %</span></div>
+ <div class="slider live"><span>Diffusion</span><span class="track"><b style="width:72%"></b><u style="left:72%"></u></span><span>72 %</span></div>
<div class="slider dim"><span>Damping</span><span class="track"><b style="width:55%"></b><u style="left:55%"></u></span><span>4.1 k</span></div>
</div>
<h3>Transport · shapes, not an icon font</h3>
<div class="transport">
+ <span class="name">Untitled</span>
<div class="seg"><button aria-pressed="true">Arrangement</button><button aria-pressed="false">Session</button><button aria-pressed="false">Modular</button></div>
<span class="console">
- <span class="tp"><i class="stop"></i></span><span class="tp play"><i class="play-tri"></i></span><span class="tp play on"><i class="play-tri"></i></span><span class="tp"><i class="rec"></i></span><span class="tp rec-on"><i class="rec"></i></span>
+ <span class="keys"><span class="tp"><i class="stop"></i></span><span class="tp play on"><i class="play-tri"></i></span><span class="tp"><i class="rec"></i></span></span>
<span class="vr"></span>
- <span class="readout"><b class="n">12.3.04</b><span>BARS</span></span>
+ <span class="pos"><b>12.3.04</b><span class="unit">Bars</span></span>
+ <span class="vr"></span>
+ <span class="loop"><span class="unit">Loop</span>9.1 – 17.1</span>
</span>
- <span class="readout"><b class="n">120.00</b><span>BPM</span></span><span class="readout"><b class="n">4/4</b><span>SIG</span></span><span class="readout"><b class="n">1/4</b><span>GRID</span></span>
+ <span class="well"><b>120.00</b><span class="unit">BPM</span></span><span class="well"><b>4/4</b></span><span class="well"><b>1/4</b><span class="unit">Grid</span></span>
+ <span class="keys" style="gap:4px"><span class="tp on"><i class="met"></i></span><span class="tp"><i class="met"></i></span></span>
</div>
- <p class="note">The bar is an island on the gutter (60, Well); stop, play, record, position and loop share one 42 recess on Void inside it. Play is 40 wide against 28 and turns solid brass only while the transport runs. Record at rest is neutral with a red disc; engaged it is solid Record with a pale disc.</p>
+ <p class="note" style="margin-top:8px">A flat 44 px row on the panel tone with a seam under it. Stop, play, record, position and loop share one 30 px well; keys are 26, Play 36 wide and solid accent only while the transport runs. Record at rest is a raised key with a red disc; engaged it is solid red with a pale disc. Readouts are 26 px wells: a mono value and its muted unit on one line.</p>
</section>
<section id="states">
<p class="eyebrow">06 · States</p>
<h2>Colour changes, nothing moves</h2>
<div class="demo states">
- <figure><span class="btn">Rest</span>Raised · Border · Ink 2</figure>
- <figure><span class="btn hover">Hover</span>Hover · Border strong · Ink 1</figure>
- <figure><span class="btn pressed">Pressed</span>Well · Brass Deep</figure>
- <figure><span class="btn on">Engaged</span>Brass Wash · Border brass</figure>
- <figure><span class="btn primary">Export</span>One solid action per context</figure>
- <figure><span class="btn off">Disabled</span>Panel · Hairline · Ink 6</figure>
+ <figure><span class="btn">Rest</span>Raised · seam · bevel</figure>
+ <figure><span class="btn hover">Hover</span>Raised hover, 120 ms</figure>
+ <figure><span class="btn pressed">Pressed</span>Well, bevel hidden</figure>
+ <figure><span class="btn on">Toggled on</span>Solid accent, derived ink</figure>
+ <figure><span class="btn primary">Export</span>Primary: weight and tone, not colour</figure>
+ <figure><span class="btn off">Disabled</span>Panel · faint ink, no opacity</figure>
+ <figure><span class="listrow sel">Stone Vault</span>Selected row: 2 px accent tick</figure>
+ <figure><span class="tabs"><span class="sel">Devices</span><span>Clip</span></span>Selected tab: 2 px underline</figure>
+ <figure><span class="menu"><span>Duplicate<small>⌘D</small></span><span class="hot">Rename<small>⌘R</small></span><hr><span>Delete</span></span>Menu: raised, seam ring, accent hover</figure>
</div>
<div class="row" style="margin-top:12px"><span class="field">Search</span><span class="field focus">Stone Vault</span></div>
- <p class="note">Hover and colour 120 ms ease-out. Empty state: one Ink 5 line, centred, no illustration, no call-to-action button.</p>
+ <p class="note">Fields and readouts are wells with a 1px rule edge; focus turns the edge accent, no ring. Empty state: one Ink 5 line, centred, no illustration, no call-to-action button.</p>
</section>
<section id="graphs">
<p class="eyebrow">07 · Visualisations</p>
<h2>One graph window</h2>
- <p>Well ground, hairline frame, radius 4, grid lines, mono axis labels in the corners only. Primary curve 1.8 px brass, others 1.2–1.6 px in their chroma. No fills under curves.</p>
+ <p>Well ground, rule frame, radius 3, viz-grid lines, mono axis labels in the corners only. Primary curve 1.8 px in viz ink, others 1.2–1.6 px in their chroma; only the active node is the accent. No fills under curves.</p>
<div class="row" style="align-items:stretch">
<div class="graph" style="width:420px;height:150px">
- <span class="title">RESPONSE</span>
+ <span class="title">Response</span>
<svg width="420" height="150" viewBox="0 0 420 150" aria-hidden="true">
- <g style="stroke:var(--grid-beat);stroke-width:1">{''.join(f'<line x1="{x}" y1="0" x2="{x}" y2="150"/>' for x in (70,140,210,280,350))}<line x1="0" y1="75" x2="420" y2="75"/></g>
+ <g style="stroke:var(--viz-grid);stroke-width:1">{''.join(f'<line x1="{x}" y1="0" x2="{x}" y2="150"/>' for x in (70,140,210,280,350))}<line x1="0" y1="75" x2="420" y2="75"/></g>
<path d="M0 75 C60 75 80 50 120 48 S170 75 210 75 S260 110 300 108 S360 75 420 75" style="fill:none;stroke:var(--chroma-teal);stroke-width:1.4"/>
- <path d="M0 75 C50 75 90 40 130 38 S190 75 230 80 S300 100 330 96 S390 75 420 75" style="fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round"/>
+ <path d="M0 75 C50 75 90 40 130 38 S190 75 230 80 S300 100 330 96 S390 75 420 75" style="fill:none;stroke:var(--viz-ink);stroke-width:1.8;stroke-linecap:round"/>
<circle cx="130" cy="38" r="4.5" style="fill:var(--accent);stroke:var(--bg-sunken);stroke-width:2"/>
<circle cx="330" cy="96" r="4.5" style="fill:var(--text-secondary);stroke:var(--bg-sunken);stroke-width:2"/>
</svg>
@@ -429,78 +593,93 @@ ul.plain{{margin:0;padding-left:18px;color:var(--text-secondary)}} ul.plain li{{
<div class="mono" style="font-size:9px;color:var(--text-secondary);line-height:1.8">L −6.4 dB<br>R <span style="color:var(--danger-bright)">+0.8 dB</span></div>
</div>
</div>
- <p class="note">Meters: 11 wide, 5 apart, zones Signal → −6 dB Caution → 0 Alert. Peak hold stays until clicked. Timeline clips: flat, radius 2, no outline; playhead 1 px brass with a 7 × 5 flag.</p>
+ <p class="note">Meters: 11 wide, 5 apart, zones green → −6 dB amber → 0 red. Peak hold stays until clicked.</p>
+ <h3>Clips · full-colour body, darker title band</h3>
+ <div class="lane">
+ {clip(0,'Kick loop',150)}{clip(3,'Chords',190,sel=True)}{clip(4,'Pad texture',160)}{clip(6,'Lead',120)}
+ <span class="playhead" style="left:250px"></span>
+ </div>
+ <p class="note" style="margin-top:8px">A flat 2 px rectangle in the track colour, a 12 px title band 30 % toward black with the name in derived ink, content in a deeper shade; selected, the band is the accent. The playhead is 1 px accent, no glow.</p>
</section>
<section id="cards">
<p class="eyebrow">08 · Device cards</p>
<h2>700 × 260, at true size</h2>
- <p>Header 22: name left; preset picker, processing-type badge and bypass right (A/B, move and delete are in the right-click menu). Body inset 6, sections radius 6 with gap 5. Three columns: choice → work → output.</p>
+ <p>Panel body, radius 3, seam frame. Header 22: a raised strip with the bevel, in fixed slots — name · the preset picker, centred between two equal halves · the muted mono badge · power, a slot every card reserves (A/B, move and delete are in the right-click menu). Body inset 6; sections have no fill and no frame, divided by a 1 px rule, titled in muted 600. Three columns: choice → work → output.</p>
<div class="scroll"><div class="card">
- <div class="card__head"><span class="card__name">Nota Chamber</span><span class="preset"><i>&lsaquo;</i><b>Stone Vault</b><i>&rsaquo;</i></span><span class="card__badge" style="margin-left:0">CONVOLUTION</span><span class="switch on" style="margin-left:6px"><i></i></span></div>
+ <div class="card__head"><span class="card__name">Nota Chamber</span><span class="preset"><i>&lsaquo;</i><b>Stone Vault</b><i>&rsaquo;</i></span><span class="card__right"><span class="card__badge">Convolution</span><span class="switch on"><i></i></span></span></div>
<div class="card__body">
<div class="sect"><h5>Choice</h5><div class="field" style="width:100%;height:22px;font-size:10px;color:var(--text-primary)">Concert Hall</div>
<div class="seg seg--device" style="align-self:flex-start"><button aria-pressed="true">IR</button><button aria-pressed="false">Algo</button></div></div>
<div class="sect"><h5>Work</h5>
<div class="graph" style="height:96px"><span class="axis" style="left:4px;bottom:4px">0</span><span class="axis" style="right:4px;bottom:4px">2.6 s</span>
- <svg width="100%" height="96" viewBox="0 0 360 96" preserveAspectRatio="none" aria-hidden="true"><path d="M0 20 C40 22 80 40 140 58 S260 84 360 88" style="fill:none;stroke:var(--accent);stroke-width:1.8"/><path d="M0 34 C40 36 90 52 150 66 S260 86 360 90" style="fill:none;stroke:var(--chroma-teal);stroke-width:1.4"/></svg></div>
- <div class="row" style="gap:4px;margin:0;justify-content:space-around">{knob(34,.3,label='PRE-DELAY',val='20.0 ms')}{knob(34,.62,label='SIZE',val='100 %',hot=True)}{knob(34,.2,label='ATTACK',val='0.0 ms')}{knob(34,.55,label='DECAY',val='2.60 s')}</div></div>
+ <svg width="100%" height="96" viewBox="0 0 360 96" preserveAspectRatio="none" aria-hidden="true"><path d="M0 20 C40 22 80 40 140 58 S260 84 360 88" style="fill:none;stroke:var(--viz-ink);stroke-width:1.8"/><path d="M0 34 C40 36 90 52 150 66 S260 86 360 90" style="fill:none;stroke:var(--chroma-teal);stroke-width:1.4"/></svg></div>
+ <div class="row" style="gap:4px;margin:0;justify-content:space-around">{knob(34,.3,label='Pre-delay',val='20.0 ms')}{knob(34,.62,label='Size',val='100 %',mod=True)}{knob(34,.2,label='Attack',val='0.0 ms')}{knob(34,.55,label='Decay',val='2.60 s',live=True)}</div></div>
<div class="sect"><h5>Output</h5>
<div class="slider" style="width:100%;grid-template-columns:34px 1fr 36px"><span>Conv</span><span class="track"><b style="width:60%"></b><u style="left:60%"></u></span><span>−3.0</span></div>
<div class="slider" style="width:100%;grid-template-columns:34px 1fr 36px"><span>Dry</span><span class="track"><b style="width:80%"></b><u style="left:80%"></u></span><span>0.0</span></div>
<div class="slider" style="width:100%;grid-template-columns:34px 1fr 36px"><span>Wet</span><span class="track"><b style="width:45%"></b><u style="left:45%"></u></span><span>45 %</span></div></div>
</div>
</div></div>
- <p class="note">Width exceptions by decision: Rhythm 900, Bass 1060, Physical 720, and the plugin / parameter-list stubs.</p>
+ <p class="note">Width exceptions by decision: Bass 1060, Physical 720, and the parameter-list stub; a hosted plug-in is S 260 or L 700.</p>
</section>
<section id="shell">
<p class="eyebrow">09 · Shell</p>
- <h2>Header, transport, panels on the gutter</h2>
+ <h2>Docked panels on seams</h2>
<div class="shell">
- <div class="h">Northern Reverb Study</div>
- <div class="t">VIEW · STOP PLAY REC · POSITION · LOOP · BPM SIG GRID · SWITCHES · + TRACK</div>
- <div class="b"><div>BROWSER</div><div>CANVAS · ALWAYS SUNKEN</div></div>
- <div class="s">STATUS</div>
+ <div class="h">Nota</div>
+ <div class="t">Project · view switch · console · tempo, signature, key, grid · switches · CPU · master</div>
+ <div class="b"><div>Browser</div><div>Canvas · arrangement, session, modular</div></div>
+ <div class="d">Panel toolbar · Devices · Pattern · Clip · track · Freeze</div>
+ <div class="db">Detail body · device cards</div>
+ <div class="s">Status</div>
</div>
- <p class="note" style="margin-top:10px">Header 36 · transport 42 under it (a departure from the almanac, which puts it at the bottom) · panels float on Gutter with 12 px gaps · status 22. List rows 26, one line: dot, name, mono metadata. Arrangement tracks 64, groups 26, header column 228.</p>
- <h3>Accepted departures</h3>
+ <p class="note" style="margin-top:10px">Title 32 on ground · transport 44 on panel · browser, canvas and detail panel docked, radius 0, 1 px seams between them · the detail panel opens with a 32 px toolbar · status 22 on ground. List rows 26, one line: dot, name, mono metadata. Arrangement tracks 64, groups 26, header column 228. Menus are raised popovers with a seam ring and no blur — Avalonia draws each popup in its own window; the command palette is the in-window modal with <code>Shadow.Modal</code>.</p>
+ <h3>Accepted exceptions</h3>
<ul class="plain">
- <li>Transport at the top, with the view switch leading it.</li>
- <li>English shell copy — tooltips are short and verb-first.</li>
- <li>Frequent choices with more than four options stay segments.</li>
- <li>Rhythm, Bass and Physical cards are wider than 700.</li>
- <li>Default zoom 28 px per beat; <code>FREQ</code>, <code>RESO</code>, <code>THRESH</code> as labels; Play turns green in Session.</li>
+ <li>Device cards keep 700 × 260, so device text sits at 7.5–10.5 px.</li>
+ <li>Nine track roles; transport 44 with Nota's layout and order; no in-window menubar row; title bar 32.</li>
+ <li>Menu popups carry a seam ring without a blur.</li>
+ <li>Play turns green in Session; data hues go through <code>Ink()</code>.</li>
</ul>
</section>
</div>
-<script>
-(() => {{
+'''
+
+SCRIPT=r'''<script>
+(() => {
const root = document.documentElement;
const buttons = document.querySelectorAll('.mast .seg button');
- function hexes() {{
- const paper = root.dataset.variant === 'paper';
- document.querySelectorAll('.sw').forEach(s => {{ s.querySelector('.sw__hex').textContent = paper ? s.dataset.light : s.dataset.dark; }});
- }}
- function set(v) {{
- if (v === 'paper') root.dataset.variant = 'paper'; else delete root.dataset.variant;
+ // A theme id or the Studio names dark / light; "graphite" and "paper" open the Ember themes.
+ const known = Array.from(buttons, b => b.dataset.v);
+ const norm = v => { v = ({ 'studio-dark': 'dark', 'studio-light': 'light', graphite: 'ember-graphite', paper: 'ember-paper' })[v] || v; return known.includes(v) ? v : 'dark'; };
+ function hexes() {
+ const v = root.dataset.variant || 'dark';
+ document.querySelectorAll('.sw').forEach(s => { s.querySelector('.sw__hex').textContent = JSON.parse(s.dataset.hex)[v]; });
+ }
+ function set(v) {
+ v = norm(v);
+ if (v === 'dark') delete root.dataset.variant; else root.dataset.variant = v;
buttons.forEach(b => b.setAttribute('aria-pressed', String(b.dataset.v === v)));
hexes();
- try {{ localStorage.setItem('ember-variant', v); }} catch (e) {{}}
- }}
+ try { localStorage.setItem('studio-variant', v); } catch (e) {}
+ }
buttons.forEach(b => b.addEventListener('click', () => set(b.dataset.v)));
- let saved = null; try {{ saved = localStorage.getItem('ember-variant'); }} catch (e) {{}}
- const asked = new URLSearchParams(location.search).get('variant'); // ?variant=paper
- set((asked || saved) === 'paper' ? 'paper' : 'graphite');
- document.querySelectorAll('.sw').forEach(s => s.addEventListener('click', () => {{
+ let saved = null; try { saved = localStorage.getItem('studio-variant'); } catch (e) {}
+ const asked = new URLSearchParams(location.search).get('variant'); // ?variant=light, ?variant=ember-paper…
+ set(asked || saved || 'dark');
+ document.querySelectorAll('.sw').forEach(s => s.addEventListener('click', () => {
const hex = s.querySelector('.sw__hex').textContent;
- const done = () => {{ s.classList.add('copied'); setTimeout(() => s.classList.remove('copied'), 900); }};
- if (navigator.clipboard) navigator.clipboard.writeText(hex).then(done, () => {{}});
- }}));
-}})();
+ const done = () => { s.classList.add('copied'); setTimeout(() => s.classList.remove('copied'), 900); };
+ if (navigator.clipboard) navigator.clipboard.writeText(hex).then(done, () => {});
+ }));
+})();
</script>
</body>
</html>
'''
+
+T=HEAD+STYLE+BODY+SCRIPT
open(ROOT+'/DESIGN.html','w',encoding='utf-8').write(T)
print(len(T.splitlines()))
diff --git a/specs/010-studio-visual-style/checklists/requirements.md b/specs/010-studio-visual-style/checklists/requirements.md
new file mode 100644
index 00000000..c89134c9
--- /dev/null
+++ b/specs/010-studio-visual-style/checklists/requirements.md
@@ -0,0 +1,41 @@
+# Specification Quality Checklist: Studio Visual Style
+
+**Purpose**: Validate specification completeness and quality before proceeding to planning
+**Created**: 2026-10-13
+**Feature**: [spec.md](../spec.md)
+
+## Content Quality
+
+- [x] No implementation details (languages, frameworks, APIs)
+- [x] Focused on user value and business needs
+- [x] Written for non-technical stakeholders
+- [x] All mandatory sections completed
+
+## Requirement Completeness
+
+- [x] No [NEEDS CLARIFICATION] markers remain
+- [x] Requirements are testable and unambiguous
+- [x] Success criteria are measurable
+- [x] Success criteria are technology-agnostic (no implementation details)
+- [x] All acceptance scenarios are defined
+- [x] Edge cases are identified
+- [x] Scope is clearly bounded
+- [x] Dependencies and assumptions identified
+
+## Feature Readiness
+
+- [x] All functional requirements have clear acceptance criteria
+- [x] User scenarios cover primary flows
+- [x] Feature meets measurable outcomes defined in Success Criteria
+- [x] No implementation details leak into specification
+
+## Notes
+
+- The Nota Context section (a project template override) names repository files and the
+ UI area on purpose; the requirements themselves stay at the level of what the user sees.
+- The spec states the Studio rules; exact token values live in DESIGN.md and the theme
+ rather than being restated, so the spec cannot drift from the guideline.
+- Three scope calls were taken as defaults rather than markers and are worth confirming
+ in `/speckit-clarify`: (1) docked seams replace the floating islands; (2) device cards
+ keep their 700 × 260 frame and are reskinned inside it; (3) resting values go neutral
+ per Studio's "live or chosen" rule.
diff --git a/specs/010-studio-visual-style/contracts/ui-contract.md b/specs/010-studio-visual-style/contracts/ui-contract.md
new file mode 100644
index 00000000..d4c7aede
--- /dev/null
+++ b/specs/010-studio-visual-style/contracts/ui-contract.md
@@ -0,0 +1,82 @@
+# UI Contract: Studio Visual Style
+
+The visual and behavioural contract every Nota surface must meet after this feature.
+Each line is checkable by eye on a screenshot or by `DesignTokenCheck`. Token values:
+[data-model.md](../data-model.md).
+
+## C1 — Colour and accent
+
+- C1.1 Every surface paints from tokens; no Ember value (warm brown neutral, brass,
+ bronze, Ember track hue) appears in either appearance. *(Check: token values; grep for
+ Ember hexes in `Theme/`.)*
+- C1.2 With transport stopped, nothing selected, no toggle on and the pointer off any
+ control: **zero** accent pixels on screen.
+- C1.3 Accent appears on: play key while playing; playhead; loop range; selected clip
+ band / note frame / row tick / tab underline; toggles that are on (metronome, follow,
+ snap, automation, loop); selected segment; switch on; menu-item hover; device power key
+ on; a value control while dragged or hovered; the selected graph node.
+- C1.4 Resting knob arcs, fader/slider fills, value bars, graph curves and waveforms are
+ neutral (`VizInk` / secondary ink). A modulation arc keeps its source chroma.
+- C1.5 Mute on = amber fill, solo on = blue fill, arm/record on = red fill — arrangement,
+ mixer and session alike — each with derived ink of ≥ 4.5:1 (text) / ≥ 3:1 (glyph).
+- C1.6 Text on any solid fill (accent, mute, solo, arm, track colour) uses derived ink.
+
+## C2 — Shell
+
+- C2.1 Title bar 32 on ground, seam below; traffic-light inset (macOS) and 180 px caption
+ reserve (Windows) unchanged.
+- C2.2 Transport is a flat 44 px row on panel, full width, seam below; console is a 30 px
+ recessed group; transport keys 26, Play 36 wide; order of items unchanged.
+- C2.3 Browser, canvas (arrangement / session / modular) and detail panel are docked:
+ radius 0, no gutter, separated by 1 px seams; splitters still resize with the same
+ limits.
+- C2.4 Every panel's header/toolbar is a 32 px panel-grey strip on a seam.
+- C2.5 Status line on ground, 22 px, unchanged content.
+
+## C3 — Controls and states
+
+| State | Treatment |
+|---|---|
+| Rest (raised) | raised fill, primary text, `Shadow.Raised` (bevel + seam ring) |
+| Hover | raised-hover fill (120 ms), nothing moves |
+| Pressed | well fill |
+| Toggled on / selected option | solid accent fill, derived ink |
+| Selected row | raised-hover + 2 px accent left tick |
+| Selected tab | primary text + 2 px accent underline |
+| Focus (fields, readouts) | 1 px accent inset edge |
+| Disabled | faint text, no opacity change |
+
+- C3.1 Fields/readouts: well fill, 1 px rule inset edge, 3 px radius, 26 tall.
+- C3.2 Menus / context menus / flyouts / drop-downs / tooltips: raised, 3 px radius, seam
+ ring; menu items 24 tall, hover = full accent fill + derived ink, 2 px radius. No blur:
+ Avalonia draws each popup in a window of its own, sized to its content, which would clip
+ it (research R6).
+- C3.3 Modal overlays (command palette): `Shadow.Modal`, 4 px radius. No scrim — the palette
+ keeps its existing behaviour of not dimming the window (CP-17), per FR-018.
+ OS dialog windows: panel body, raised bevelled header.
+- C3.4 Radii only 0 (docked), 1 (plot bars), 2, 3, 4 (modals).
+
+## C4 — Type and labels
+
+- C4.1 No uppercase tracked labels anywhere in Nota's own UI; labels sentence case,
+ letter-spacing 0; acronyms keep their case (LFO, EQ, MIDI, dB, Hz…).
+- C4.2 Every number a user reads is Geist Mono; names are never mono.
+- C4.3 No label truncates that fitted before (screenshot every device card).
+
+## C5 — Device cards and views
+
+- C5.1 Card: 700 × 260 (exceptions unchanged), panel body, 3 px, seam ring; header 22 on
+ raised with bevel: power key, name, preset stepper, badge in muted text.
+- C5.2 Sections on the panel tone, titled in muted 600 text, divided by rules.
+- C5.3 Graph windows: well, 1 px rule frame, 3 px, viz-grid, viz-ink curve.
+- C5.4 Arrangement clips: flat 2 px rect in track colour, darker title band
+ (mix toward black .30), accent band when selected. Mixer strips: 3 px top bar in track
+ colour (muted grey for master).
+
+## C6 — Preserved behaviour (must not change)
+
+- C6.1 All FEATURES.md capabilities, shortcuts, gestures, menus reachable as before.
+- C6.2 Arrangement row heights, header column 228, overview 34 / sections 22 / ruler 24,
+ piano-roll keys 48 / rows 12, card frames, knob sizes, `ParamCell` 53, list rows 26.
+- C6.3 Project/preset/preferences formats unchanged; stored track colour indices valid.
+- C6.4 Appearance switch (dark / light / System) is live.
diff --git a/specs/010-studio-visual-style/data-model.md b/specs/010-studio-visual-style/data-model.md
new file mode 100644
index 00000000..3e61d41b
--- /dev/null
+++ b/specs/010-studio-visual-style/data-model.md
@@ -0,0 +1,173 @@
+# Data Model: Studio Visual Style
+
+No persisted data changes. The "model" of this feature is the design-token set: every
+`Brush.*` key in `Theme/NotaTheme.axaml` and its mirror slot in `Theme/NotaPalette.cs`,
+each with a dark and a light value, plus geometry and type tokens.
+
+## Entities
+
+### Design token
+- **Key**: `Brush.<Name>` (XAML) ↔ `NotaPalette.<Name>` (C#) — unchanged names (R1).
+- **Values**: `dark`, `light` (hex). Validation (existing `DesignTokenCheck.Run`): every
+ key exists in both dictionaries; every `T("#d","#l"); // Brush.Key` slot equals its
+ XAML pair; every `KeyMap` key exists.
+- **New in this feature**: `Seam`, `Rule`, `TextFaint`, `Mute`, `Solo`, `VizInk`,
+ `VizGrid`; shadow resources `Shadow.Popover`, `Shadow.Modal` (and `Shadow.Raised` /
+ `Shadow.Sunken` re-valued); geometry `Radius.Docked`, `Radius.Modal`.
+
+### Appearance
+- `Dark` | `Light` | `System` (unchanged `AppTheme` / `NotaThemeVariant`). Switching
+ re-tints slots in place (`NotaPalette.Apply`); no rebuild.
+
+### Track colour
+- Stored per track as an integer index = `base × 3 + shade` (9 bases × 3 shades = 27,
+ returns from 27). **Unchanged.** Only the nine base hues and the two return hues are
+ re-valued; shade derivation (`ShadeUp` 0.24 / `ShadeDown` 0.30) unchanged.
+
+## Token map — Ember → Studio role
+
+Studio values: the Studio Dark and Studio Light palettes, plus derived tokens mixed from
+their base roles. "mix(a, b, t)" = t of a over b.
+
+### Surfaces
+
+| Slot | Studio role | Dark | Light |
+|---|---|---|---|
+| `BgApp` | ground (bg-base) | `#1E1F22` | `#C9CBCF` |
+| `Gutter` | seam (now only visible as 1 px seams) | `#141517` | `#9DA0A6` |
+| `SurfaceAbyss` | well (console recess) | `#17181A` | `#D6D8DB` |
+| `BgSunken` / `ChromeBg` | well | `#17181A` | `#D6D8DB` |
+| `SurfaceActive` | well (pressed sinks) | `#17181A` | `#D6D8DB` |
+| `TrackOff` | well (off switch track) | `#17181A` | `#D6D8DB` |
+| `CanvasBg` | ground | `#1E1F22` | `#C9CBCF` |
+| `SurfaceDeep` | between well and ground | `#1B1C1F` | `#CFD1D4` |
+| `LaneB` | alternate lane on ground | `#222326` | `#C4C6CA` |
+| `Panel` | panel (bg-panel) | `#2B2D31` | `#E4E5E7` |
+| `SurfaceCard` | panel (device sections divided by rules, not tone) | `#2B2D31` | `#E4E5E7` |
+| `SurfaceInset` | between ground and panel | `#232427` | `#DCDEE0` |
+| `SurfaceRaised` | raised (bg-raised) | `#34363B` | `#EEEFF1` |
+| `SurfaceHover` | raised-hover (bg-raised-2) | `#393C41` | `#F7F8F9` |
+| `SurfaceHoverClear` | raised-hover at alpha 0 | `#00393C41` | `#00F7F8F9` |
+| `SurfaceSelected`, `SelHeaderBg` | selected row = raised-hover (+ accent tick) | `#393C41` | `#F7F8F9` |
+| `AccentSubtle` | accent-soft = mix(accent, panel, .16) | `#4D3F2E` | `#E6D6C4` |
+
+### Lines and grid
+
+| Slot | Studio role | Dark | Light |
+|---|---|---|---|
+| **`Seam`** *(new)* | border-subtle — between panels, around controls | `#141517` | `#9DA0A6` |
+| **`Rule`** *(new)* | border-strong — divides within a panel, field edge | `#45484E` | `#B3B6BB` |
+| `BorderDefault` | seam | `#141517` | `#9DA0A6` |
+| `BorderStrong` | rule | `#45484E` | `#B3B6BB` |
+| `Hairline` (`GraphBorder`) | rule (viz-border) | `#45484E` | `#B3B6BB` |
+| `BorderBrass` | accent-line = mix(accent, panel, .70) | `#BF7D22` | `#ECA54E` |
+| `GridBeat` | viz-grid on ground | `#2A2C30` | `#BDC0C4` |
+| `GridSubBeat` | finer grid | `#242528` | `#C3C5C9` |
+| `GridRow` | piano-roll row divider | `#1B1C1F` | `#C5C7CB` |
+| `GridBar` | bar line | `#3A3C41` | `#ADB0B5` |
+| **`VizGrid`** *(new)*, `WellGrid` | viz-grid in a well = mix(muted, well, .16) | `#2E2F32` | `#C0C3C6` |
+| `PadGrid` | XY-pad grid | `#2A2C30` | `#C8CACD` |
+
+### Text
+
+| Slot | Studio role | Dark | Light |
+|---|---|---|---|
+| `TextHeading` | primary, a step brighter | `#F4F5F6` | `#0E0F11` |
+| `TextPrimary` | text-primary | `#E8E9EB` | `#16171A` |
+| `TextStrong` | between primary and secondary | `#D4D6DA` | `#282A2E` |
+| `TextSecondary` | text-secondary | `#C0C4C9` | `#3A3D42` |
+| `TextMuted` | text-muted | `#A4A9B0` | `#4F535A` |
+| `TextTertiary` | mix(muted, panel, .85) | `#92969D` | `#65696F` |
+| **`TextFaint`** *(new)*, `TextDisabled`, `TextAxis` | text-faint = mix(muted, panel, .72) | `#82868C` | `#797C81` |
+| `TextOnAccent` | on-accent (derived: dark ink wins on both accents) | `#17181A` | `#17181A` |
+| **`VizInk`** *(new)* | viz-ink = mix(primary, well, .92) | `#D7D8DA` | `#252629` |
+
+### Accent
+
+| Slot | Studio role | Dark | Light |
+|---|---|---|---|
+| `Accent` | accent | `#FF9F1C` | `#EF8A0C` |
+| `AccentBright`, `AccentHover` | accent-glow (line/ink variant) | `#FFB547` | `#C46A00` |
+| `AccentDeep` | pressed | `#C77612` | `#D47800` |
+| `AccentDim` | accent-dim | `#C77612` | `#F7C27A` |
+| `AccentEdge` | accent-line | `#BF7D22` | `#ECA54E` |
+| `AccentMute` | (no resting use left; kept for parity) | `#7A5F3D` | `#C9A77A` |
+| `AccentPale` | hot edge highlight | `#FFD08A` | `#8A4A00` |
+| Fluent `SystemAccentColor*` | accent ramp | `#FF9F1C` ±steps | `#EF8A0C` ±steps |
+
+### Semantics
+
+| Slot | Studio role | Dark | Light |
+|---|---|---|---|
+| `Record`, `Danger` | error (record, arm, clip) | `#F06A6E` | `#B3262C` |
+| `RecordInk` | glyph on a record fill | `#FFFFFF` | `#FFFFFF` |
+| `DangerHover` | | `#F48386` | `#C2343A` |
+| `DangerBright` | overload readout text | `#F58F92` | `#9C1F24` |
+| `DangerDeep` | over-threshold fill | `#C4474B` | `#8E1C21` |
+| `DangerPale` | live-take waveform | `#F7A5A7` | `#7F161B` |
+| `DangerSubtle` | | `#33F06A6E` | `#33B3262C` |
+| **`Mute`** *(new)*, `Warning` | warning amber (mute on, meter −6…0) | `#F2B53C` | `#7A4F00` |
+| **`Solo`** *(new)* | track-blue (solo on) | `#6A9FD8` | `#3F78B8` |
+| `Success` | green (safe meter range) | `#6CC673` | `#22692B` |
+| `SuccessDim` | green-dim | `#3F8A45` | `#79B880` |
+| `MuteTint` | muted band = mix(mute, ground, .12) | `#3B3426` | `#BDB49F` |
+
+### Data / graph chromas
+
+| Slot | Role | Dark | Light |
+|---|---|---|---|
+| graph primary (`NotaGraph.Chroma(0)`) | viz-ink | `VizInk` | `VizInk` |
+| `Teal` / `TealBright` | 2nd source | `#5FB3A8` / `#86C9C0` | `#3A8A7F` / `#2E7067` |
+| `Rose` / `RoseBright` | 3rd source | `#D77A8F` / `#E49EAE` | `#B4566B` / `#93404F` |
+| `Steel` | 4th source | `#6A9FD8` | `#3F78B8` |
+| `Threshold` | | `#E0A84A` | `#8A5F14` |
+| others (`Sage`, `Marker`, `MarkerHot`, `Frozen`, `SignalIn*`, `HandleSel`, `FrozenHeaderBg`, `Veil`, `TooltipBg/Text`, piano keys, `ShadeUp/Down`) | re-valued onto the grey ladder; hues kept where they carry meaning (frozen ice, markers) | see `NotaPalette.cs` | |
+
+### Track palette (9 roles) and buses
+
+| Role | Index base | Dark | Light | Source |
+|---|---|---|---|---|
+| Drums | 0 | `#7FB87A` | `#4A7F46` | new, Studio chroma |
+| Perc | 1 | `#5FB3A8` | `#3A8A7F` | Studio teal |
+| Bass | 2 | `#5AA6C4` | `#357C99` | new |
+| Keys | 3 | `#6A9FD8` | `#3F78B8` | Studio blue |
+| Texture | 4 | `#E0A84A` | `#B8862F` | Studio amber |
+| FX | 5 | `#9D90C9` | `#7363A8` | Studio violet |
+| Brass | 6 | `#D77A8F` | `#B4566B` | Studio rose |
+| Vox | 7 | `#B3B45E` | `#7E7F2F` | new |
+| Return | 8 | `#8E9DB0` | `#5D6C80` | new, slate |
+| `ReturnA` / `ReturnB` | — | `#8E9DB0` / `#7A889A` | `#5D6C80` / `#4E5B6D` | slate pair |
+| `Master` | — | `#A4A9B0` | `#4F535A` | master strip is muted grey |
+
+### Elevation (per variant `BoxShadows`)
+
+| Key | Dark | Light |
+|---|---|---|
+| `Shadow.Raised` | `inset 0 1 0 0 #12FFFFFF` (bevel; the seam ring is the control's 1px seam border) | `inset 0 1 0 0 #B3FFFFFF` |
+| `Shadow.Sunken` | `inset 0 0 0 1 #45484E` | `inset 0 0 0 1 #B3B6BB` |
+| `Shadow.Popover` | `0 0 0 1 #141517, 0 10 28 0 #6B000000` | `0 0 0 1 #9DA0A6, 0 10 28 0 #381E2024` |
+| `Shadow.Modal` | `0 0 0 1 #141517, 0 24 64 0 #80000000` | `0 0 0 1 #9DA0A6, 0 24 64 0 #401E2024` |
+
+### Geometry
+
+| Key | Ember | Studio |
+|---|---|---|
+| `Radius.Bar` | 1 | 1 (plot bars) |
+| `Radius.Clip` | 2 | 2 |
+| `Radius.Badge` | 3 | 2 |
+| `Radius.Control` | 4 | 3 |
+| `Radius.Tile` | 5 | 3 |
+| `Radius.Panel` | 6 | 3 |
+| `Radius.Body` | 8 | 3 |
+| `Radius.Pill` | 999 | 3 |
+| **`Radius.Modal`** *(new)* | — | 4 |
+| **`Radius.Docked`** *(new)* | — | 0 |
+| `Control.TransportBar` | 60 | 44 |
+| `Control.Console` | 42 | 30 |
+| `Control.Transport` | 28 | 26 |
+| `Control.Play` | 40 | 36 |
+| `Space.Gutter` | 12 | 1 (the seam) |
+| Title bar | 36 | 32 |
+| Card 700 × 260, header 22, knob sizes, `ParamCell` 53, arrangement/piano-roll geometry, list rows 26 | — | **unchanged** (FR-019) |
+
+Type tokens: see research.md R8.
diff --git a/specs/010-studio-visual-style/plan.md b/specs/010-studio-visual-style/plan.md
new file mode 100644
index 00000000..e2bf46ad
--- /dev/null
+++ b/specs/010-studio-visual-style/plan.md
@@ -0,0 +1,145 @@
+# Implementation Plan: Studio Visual Style
+
+**Branch**: `010-studio-visual-style` | **Date**: 2026-10-13 | **Spec**: [spec.md](spec.md)
+
+**Input**: Feature specification from `/specs/010-studio-visual-style/spec.md`
+
+## Summary
+
+Replace Nota's Ember design language (warm graphite, brass) with the Studio design system
+(neutral greys stepped on dark seams, one orange accent for live-or-chosen state, 2/3/4 px
+corners, sentence-case labels, flat docked panels, shadows only on floating layers),
+without moving or removing any feature.
+
+Nota's theme is already token-driven: every colour a view paints comes from a
+`Brush.*` key in `Theme/NotaTheme.axaml` (XAML) or its mirror slot in
+`Theme/NotaPalette.cs` (custom-drawn views), and the smoke test's `DesignTokenCheck`
+keeps both in sync and bans literals. So the restyle is done in four layers, cheapest
+and widest first:
+
+1. **Token remap** — re-point every existing slot (both variants) to its Studio role
+ value. Slot *names* stay, so the ~200 files that reference them repaint with no edit.
+ Add the few roles Studio has and Ember lacked (seam, rule, faint text, solo blue,
+ viz ink). Geometry keys are remapped to Studio's 2/3/4 radius scale the same way.
+2. **Shared styles and controls** — `NotaTheme.axaml` control styles (buttons, toggles,
+ segments, fields, tabs, menus, tooltips, scrollbars, dialogs) and the shared
+ custom-drawn controls (`Knob`, faders, switches, meters, `NotaGraph`, `DeviceCardKit`
+ builders) adopt Studio's state rules: toggled-on is a solid accent fill with derived
+ ink, resting values neutral, accent only while focused/dragged, bevel + seam ring on
+ raised controls, popover/modal shadows, sentence-case labels through the label
+ builders.
+3. **Shell** — `MainWindow.axaml` (and its partials) trade the floating islands and
+ 12 px gutter for docked panels on 1 px seams, Studio panel toolbars and a flat
+ transport row; region order and contents unchanged.
+4. **Custom views and docs** — arrangement / piano roll / audio editor / mixer /
+ session / modular follow-ups that tokens alone cannot express (clip title bands,
+ mute-amber / solo-blue / arm-red, mixer top colour bar); then DESIGN.md,
+ DESIGN.html (`scripts/design-html.py`), the `nota-design` skill, `DesignTokenCheck`
+ rules, CHANGELOG and FEATURES.
+
+## Nota: Read Before Planning
+
+- **UI work** → [`DESIGN.md`](../../DESIGN.md) (currently Ember; rewritten by this
+ feature) and the `nota-design` skill (rewritten by this feature).
+- **Design rules** → the Studio direction in [spec.md](spec.md) (§ Studio, in short)
+ and the token map in [data-model.md](data-model.md) (dark + light).
+- **Anything** → [`CONTRIBUTING.md`](../../CONTRIBUTING.md).
+
+## Technical Context
+
+**Language/Version**: C# / .NET 10 (managed app) and Avalonia XAML. No C++ is touched.
+
+**Primary Dependencies**: Avalonia 12.0.3 + Fluent theme (existing). Geist / Geist Mono
+fonts already bundled in `assets/fonts`. **No new dependency**, and no third-party code
+or assets are added.
+
+**Storage**: N/A. No stored format changes; track colour indices keep their meaning
+(see [data-model.md](data-model.md)).
+
+**Audio-Thread Impact**: None: UI-only change. No engine code, no C ABI change, no
+command-queue traffic added.
+
+**Testing**: `tests/Nota.SmokeTest` (run by `scripts/build-linux.sh`), including
+`DesignTokenCheck` (updated to the new rules). Visual verification by running the app
+under Xvfb and capturing screenshots of each main surface in both appearances
+([quickstart.md](quickstart.md)).
+
+**Target Platform**: Desktop — macOS, Windows, Linux (same as today).
+
+**Project Type**: Desktop application (UI layer only).
+
+**Performance Goals**: No regression in repaint cost; appearance switch < 1 s (SC-006),
+already met by the slot re-tint mechanism, which this plan keeps.
+
+**Constraints**: Hit-test geometry unchanged (FR-019): arrangement row heights, header
+column 228, ruler/overview/section strips, piano-roll keys/rows, device card
+700 × 260 frame, control hit areas. No literal colours in views (existing bans stay).
+
+**Scale/Scope**: ~120 C# UI files and `NotaTheme.axaml` (1,213 lines, 146 styles);
+~45 custom-drawn visualisers; 14 device-card files; 82 controls.
+
+## Constitution Check
+
+*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
+
+| Principle | Status | Note |
+|---|---|---|
+| I. Real-time audio safety | ✅ Pass | No engine or audio-thread code touched. |
+| II. Boundary discipline | ✅ Pass | No C ABI change; JUCE untouched. |
+| III. Licensing hygiene | ✅ Pass | No new dependency, no copied code. New files (if any) get the two-line SPDX header. |
+| IV. Verification gate | ✅ Pass (planned) | `scripts/build-linux.sh` + smoke test must pass; `DesignTokenCheck` is updated, not weakened: every Ember ban that still applies stays, new Studio rules are added. |
+| V. One logical change per PR | ⚠️ Justified | One logical change — "adopt the Studio design language" — but a large diff. It is delivered as one PR because a half-converted app (Studio shell, Ember devices) would be shipped in an inconsistent state; commits are layered (tokens → styles/controls → shell → views → docs) so review can go commit by commit. See Complexity Tracking. |
+| VI. Documentation in sync | ✅ Planned | CHANGELOG `[Unreleased]`, DESIGN.md, DESIGN.html, `nota-design` skill, FEATURES.md (design language line). The user manual lives in `../nota-docs`, which is not available in this environment — flagged as a follow-up. |
+| VII. Spec-first | ✅ Pass | spec → clarify → plan (this) → tasks → implement → converge. |
+| VIII. Safety rules not weakened | ✅ Pass | Nothing in I–III is affected. |
+
+**Post-design re-check**: unchanged — the design (token remap + style/control updates +
+shell re-layout) stays entirely in `src/managed/Nota.App`, `tests/Nota.SmokeTest`,
+and docs.
+
+## Project Structure
+
+### Documentation (this feature)
+
+```text
+specs/010-studio-visual-style/
+├── plan.md # This file
+├── research.md # Phase 0: decisions on mapping, shell, labels, knobs, tests
+├── data-model.md # Phase 1: the token map (Ember slot → Studio role, dark + light)
+├── quickstart.md # Phase 1: build + visual verification guide
+├── contracts/
+│ └── ui-contract.md # Phase 1: the visual/behavioural contract the views must meet
+└── tasks.md # Phase 2 (/speckit-tasks)
+```
+
+### Source Code (repository root)
+
+```text
+src/managed/Nota.App/
+├── Theme/
+│ ├── NotaTheme.axaml # tokens (Dark + Light), geometry, type classes, control styles
+│ ├── NotaPalette.cs # slot mirror for custom-drawn views; track palette
+│ ├── NotaGeometry.cs # radius / size / spacing mirror
+│ └── NotaFonts.cs # type scale for custom drawing
+├── MainWindow.axaml (+ MainWindow.*.cs) # shell: islands → docked panels
+├── DeviceCardKit.cs # card header/sections, KnobCell / SliderRow label builders
+├── Controls/ # Knob, faders, switches, meters, NotaGraph, Glyph, …
+├── ArrangementView*.cs, ClipEditorView.cs, AudioClipEditorView.cs,
+│ MainWindow.Mixer.cs, Session/Modular views # custom-drawn follow-ups
+└── *Window.cs # dialogs: modal treatment
+
+tests/Nota.SmokeTest/DesignTokenCheck.cs # rules updated to the Studio system
+scripts/design-html.py # regenerates DESIGN.html
+DESIGN.md, DESIGN.html, CHANGELOG.md, FEATURES.md
+.claude/skills/nota-design/SKILL.md
+```
+
+**Structure Decision**: UI-only; everything lives in `src/managed/Nota.App` (where the
+Avalonia views actually are), the smoke test's design check, and docs. No other
+project is touched.
+
+## Complexity Tracking
+
+| Violation | Why Needed | Simpler Alternative Rejected Because |
+|-----------|------------|-------------------------------------|
+| Large single PR (Principle V) | The request is one logical change — the app's design language — and must not ship half-applied. | Splitting into several PRs (tokens first, devices later) would merge an app whose shell and devices follow two different design systems; the spec's SC-001/SC-004 cannot pass until all layers land. Commits stay layered for review. |
diff --git a/specs/010-studio-visual-style/quickstart.md b/specs/010-studio-visual-style/quickstart.md
new file mode 100644
index 00000000..2f6b8a3f
--- /dev/null
+++ b/specs/010-studio-visual-style/quickstart.md
@@ -0,0 +1,54 @@
+# Quickstart: validating the Studio visual style
+
+## Prerequisites
+
+- Linux host with the packages listed at the top of `scripts/build-linux.sh`, .NET SDK 10,
+ and the JUCE / flac submodules (`git submodule update --init --recursive --depth 1`).
+- For screenshots: `xvfb` and ImageMagick (`import`) or `xwd`.
+
+## 1. Build and smoke test (the gate)
+
+```bash
+scripts/build-linux.sh
+```
+
+Expected: native + managed build, smoke test green, including `DesignTokenCheck`
+(token parity, radius scale, shadow rule, no caps/tracking in labels, layout sizes from
+[data-model.md](data-model.md)).
+
+## 2. Visual pass, dark and light
+
+```bash
+Xvfb :99 -screen 0 1600x1000x24 &
+DISPLAY=:99 dotnet src/managed/Nota.App/bin/Release/net10.0/Nota.App.dll &
+DISPLAY=:99 import -window root shots/after-dark-main.png
+```
+
+Switch Preferences → Appearance to Light (and back to System) and repeat. Capture:
+main window (arrangement), session, modular, detail panel with one instrument, one audio
+effect, one MIDI effect, mixer, clip editor (MIDI + audio), preferences, export dialog,
+command palette, an open context menu, a tooltip.
+
+Check each capture against [contracts/ui-contract.md](contracts/ui-contract.md):
+
+| Scenario | Expected |
+|---|---|
+| Stopped, nothing selected | zero orange pixels (C1.2) |
+| Press play, select a clip, enable loop | only those turn orange (C1.3) |
+| Hover / drag a knob | arc turns orange, back to neutral on release (C1.4) |
+| Mute / solo / arm a track | amber / blue / red fills, legible ink (C1.5) |
+| Main window | docked panels on 1 px seams, no gutter, no rounded islands (C2) |
+| Any device card | sentence-case labels, no truncation, mono values (C4) |
+| Open a context menu | raised, 3 px, soft shadow; hover = orange fill (C3.2) |
+| Toggle appearance | every surface switches within 1 s, no leftovers (C6.4) |
+
+## 3. Behaviour regression pass
+
+Open an existing project from before the change: it loads unchanged; save, reopen,
+diff the project file — only non-visual fields may differ (none expected). Walk the
+FEATURES.md sections: each feature reachable from the same place.
+
+## 4. Docs
+
+`python3 scripts/design-html.py` regenerates DESIGN.html with no error; DESIGN.md token
+tables match `NotaTheme.axaml`.
diff --git a/specs/010-studio-visual-style/research.md b/specs/010-studio-visual-style/research.md
new file mode 100644
index 00000000..1285ee11
--- /dev/null
+++ b/specs/010-studio-visual-style/research.md
@@ -0,0 +1,227 @@
+# Research: Studio Visual Style
+
+Phase 0 decisions. Sources: the Studio direction in [spec.md](spec.md) (palette, type,
+geometry, elevation, component treatments, accent rules) and a survey of
+`src/managed/Nota.App` (file:line references below are from that survey, 2026-10-13).
+
+## R1 — How the palette changes: remap slot values, keep slot names
+
+- **Decision**: Keep every existing `Brush.*` key and `NotaPalette` slot name; re-point
+ their dark and light values to the Studio role that matches their *use* (table in
+ [data-model.md](data-model.md)). Add a handful of slots for roles Studio has and Ember
+ lacked: `Seam`, `Rule`, `TextFaint`, `Mute`, `Solo`, `VizInk`, `VizGrid`, and the
+ shadow resources `Shadow.Control`, `Shadow.Popover`, `Shadow.Modal`.
+- **Rationale**: ~1,000 call sites reference these slots (Controls 385, DeviceCards 475,
+ root views 171 counting `Brass` aliases). A value remap repaints all of them with no
+ edit, keeps `DesignTokenCheck`'s parity and ban machinery working, and keeps the live
+ appearance switch (slots re-tint in place).
+- **Alternatives**: Renaming slots to role names (`bgWell`, `bgPanel`…) — touches
+ every view for no visual gain and would break the Ink()/KeyMap resolution; rejected.
+- **Consequence**: Some slot names now lie (`BorderBrass`, `AccentSubtle` "Brass Wash").
+ Comments are updated; names stay. A rename pass can follow later if wanted.
+
+## R2 — Sentence-case labels
+
+- **Decision**: Add one helper, `NotaText.Label(string)`, that turns an all-caps label into
+ sentence case ("PRE-DELAY" → "Pre-delay", "FREQ" → "Freq") and keeps a fixed acronym
+ list upper-case (LFO, EQ, ADSR, MIDI, CV, FM, AM, HP, LP, BP, BPM, XY, VST3, AU, A/B,
+ L/R, M/S, dB, Hz, kHz, ms…). Route every label path through it:
+ - the four builders that uppercase today — `DeviceCardKit.KnobCell` (:66), `Switch`
+ (:91, :102), `SliderRow` (:214), `Labeled` (:317) — replace `ToUpperInvariant()`;
+ - the 39 local `Caps(...)` helpers and the two `FormattedText Caps(...)`
+ (`ChamberViews.cs:33`, `PrismViews.cs:41`) — call the helper, drop
+ `LetterSpacing 0.8` and Bold;
+ - `NotaGraph` titles (:79, :121), the card `Subtitle` badge
+ (`DeviceChainView.Shell.cs:132`), and the remaining `.ToUpper*()` call sites that
+ produce labels (53 across 39 files; note names and key names excluded);
+ - the theme's caps classes (`SectionLabel`, `CellLabel`, `Eyebrow`, `DeviceSection`,
+ `RowLabel`, `KnobLabel`, `GroupLabel`) lose letter-spacing; `NotaType.*Tracking`
+ become 0;
+ - literal captions in XAML (transport `LOOP`, `BPM`, `TAP`, `SIG`, `KEY`, `GRID`, `MST`)
+ are edited by hand.
+- **Rationale**: ~1,600 all-caps literals exist; converting at the render choke points
+ changes the look everywhere without touching every literal or the MCP-facing names.
+- **Alternatives**: Rewriting all literals — huge diff, high risk of breaking MCP
+ parameter names that share strings; rejected. CSS-like text-transform — Avalonia has
+ none; rejected.
+- **Guard**: `DesignTokenCheck` gains a rule: no `ToUpperInvariant()/ToUpper()` in the
+ label builders and `Caps` helpers, and no positive `LetterSpacing` in the theme's text
+ classes.
+
+## R3 — Accent only for live or chosen state
+
+- **Decision**:
+ - `Knob`: resting arc → `VizInk` (neutral); arc and pointer turn `Accent` while
+ dragged or under the pointer (add hover tracking; `_drag` exists at :81). A
+ modulation `ArcColor` keeps its source chroma (that is data, not state). `IsModified`
+ no longer colours label/value in brass; a modified value is `TextPrimary`, an
+ unmodified one `TextSecondary`.
+ - Same rule for `MiniFader`, `PanBar`, `SliderTrack`, `RangeSliderTrack`, `ValueBar`,
+ `MixBar` (resting fill → `VizInk`/`TextSecondary`; accent while dragged/hovered).
+ - `SwitchTrack` on and `Segments` selected stay accent — a toggle that is on and a
+ chosen option are "chosen".
+ - `NotaGraph`: `Chroma(0)`/`PrimaryPen` → `VizInk`; only the selected or dragged node is
+ accent. Secondary chromas become Studio's teal / rose / blue.
+ - Waveforms at rest (`WaveformView.WavePen`, `AccentMute` previews) → neutral ink.
+ - Device views with their own resting accent fills (ChamberViews, BeatRepeatViews,
+ ConsortViews, ModularView, PianoRollView…) are audited file by file; selection,
+ playhead, loop, play state and "playing step" keep the accent.
+- **Rationale**: Spec FR-004 and the clarified decision. The shared controls carry most
+ of the resting accent, so fixing them fixes most cards.
+- **Alternatives**: Re-pointing `NotaPalette.Accent` itself to a neutral — would also
+ kill legitimate selection/playhead uses; rejected.
+
+## R4 — Mute, solo, arm
+
+- **Decision**: New slots `Mute` (= Studio warning amber) and `Solo` (= Studio blue);
+ arm/record keeps `Record` (= Studio error red). These are fixed state colours, so an
+ engaged mute, solo or arm reads the same everywhere. Engaged = solid fill with derived ink;
+ rest = raised key with control shadow. Applies to arrangement `ChipToggle`
+ (`ArrangementView.cs:2379`) and `ArmToggle` (:2359), mixer `Toggle`/`ArmToggle`
+ (`MixerView.cs:417`, :401), session `MixToggle` (`SessionView.Mixer.cs:182`). The muted
+ band `MuteTint` becomes an amber-tinted ground.
+- **Derived ink**: add `NotaPalette.InkOn(SolidColorBrush fill)` — a `Derived` brush
+ choosing `#17181a` or `#ffffff` by contrast. Used for text
+ on accent, mute, solo, arm and track-colour fills.
+
+## R5 — Shell: docked panels on seams
+
+- **Decision**:
+ - `DockPanel`/`BodyGrid` background `Gutter` → `Seam`; island margins 12 → 1 px only
+ where two panels meet (the seam shows through), 0 at window edges.
+ - Island radius (`Radius.Panel` on browser, arrangement, modular, detail panel,
+ transport) → new `Radius.Docked` = 0. `BorderInnerClip` keeps working (radius 0).
+ - Splitters: the 12 px transparent grab strips with −12 margins become 6 px strips with
+ −3 margins centred on the seam — same drag behaviour, same minimum sizes.
+ - Title bar 36 → 32 on `BgApp` (ground) with a seam below; macOS traffic-light inset and
+ Windows' 180 px caption reserve unchanged.
+ - Transport: the 60 px island becomes a flat 44 px row on `Panel` with a seam below; the
+ console becomes a 30 px recessed group (`well` + field edge), transport keys 26 tall,
+ Play 36 wide — Studio's transport metrics. Contents and order unchanged;
+ `MainWindow.TransportFit.cs` folding thresholds are re-measured.
+ - Detail panel header stays 32 (already Studio's panel-toolbar height) on `Panel` with a
+ seam below. Status line stays 22 on ground.
+ - `SessionView` already has no island chrome; it only takes the tokens.
+- **Rationale**: Clarified decision 1. Panels butted edge to edge on 1 px seams leave
+ more room for the work than floating islands and make the structure clearer; every
+ panel opens with a 32 px panel toolbar on a seam, and the transport is one row plus a
+ seam (40 px in the general metric). 44 rather than 40 keeps Nota's 42 px console
+ contents (position + loop) legible without reflow.
+- **Alternatives**: Keep 60 px transport (looks like Ember's island); an in-window 30 px
+ menubar row (Nota uses a native menu on macOS — not a styling change); rejected.
+- **Guard updates** (`DesignTokenCheck.RunLayout`): TransportBar 44, console 30,
+ transport keys 26, Play 36; header 32; docked radius 0.
+
+## R6 — Elevation: bevel, seam ring, floating shadows
+
+- **Decision**: Per-variant `BoxShadows` resources in `NotaTheme.axaml`:
+ - `Shadow.Raised` → `inset 0 1 0 0 #12FFFFFF, 0 0 0 1 <seam>` (light: `#B3FFFFFF` bevel);
+ - `Shadow.Sunken` → `inset 0 0 0 1 <rule>` (field edge);
+ - `Shadow.Popover` → `0 0 0 1 <seam>, 0 10 28 0 #6B000000` (light `#381E2024`);
+ - `Shadow.Modal` → `0 0 0 1 <seam>, 0 24 64 0 #80000000`.
+ Menus, context menus, flyouts, ComboBox drop-downs and tooltips get the raised fill and a
+ seam ring but **no blur**: implementation showed Avalonia popups are separate windows sized
+ to their content, so a blur is clipped (and can render as dark corners on Linux). The
+ blurred shadows serve in-window overlays (command palette). The command
+ palette overlay gets `Shadow.Modal` (no scrim: it keeps CP-17, never dimming the window). OS dialog windows (`NotaWindow`) get no
+ app shadow (the OS draws one); their header becomes a raised bevelled strip.
+- **Guard**: `new BoxShadows` stays banned in `.cs`; a new XAML check allows blurred
+ shadows only in `Shadow.Popover` / `Shadow.Modal` and their users (menus, flyouts,
+ tooltips, palette). `BoxShadows` keys join the Dark/Light parity check.
+- **Avalonia note**: a popup's BoxShadow renders inside the popup's own window, so the
+ presenter needs ~12 px transparent margin (bottom ~28) or the shadow is clipped.
+
+## R7 — Radius scale 2 / 3 / 4
+
+- **Decision**: Remap `Radius.*` values (and `NotaRadius` mirrors): `Bar` 1 (plot bars,
+ unchanged), `Clip` 2, `Badge` 2, `Control` 3, `Tile` 3, `Panel` 3, `Body` 3, `Pill` 3
+ (chips and switches become nearly square). Add `Radius.Modal` 4 (splash,
+ command palette) and `Radius.Docked` 0. Fix the two literal `CornerRadius="2"`
+ (`MainWindow.axaml:365`, :383) to keys and render-call radii such as `ValueBar.cs:105`.
+- **Rationale**: FR-010. Nearly square corners suit flat panels that meet on seams:
+ seams, not rounding, separate surfaces. The scale is small / medium / large = 2 / 3 / 4
+ px, with pills at 3 px.
+
+## R8 — Type scale
+
+- **Decision** (Geist / Geist Mono already bundled):
+
+ | Class | Ember | Studio |
+ |---|---|---|
+ | `Title` | 600 · 26 | 600 · 13 |
+ | `Heading` | 600 · 13 | 600 · 13 |
+ | `Name` | 500 · 12 | 500 · 12 |
+ | default (buttons, tabs) | 500 · 11 | 500 · 12 |
+ | `Caption` | 400 · 11, Ink 4 | 400 · 11, secondary |
+ | `SectionLabel` / `GroupLabel` | 700 · 10 caps .14em | 600 · 11, muted, sentence case |
+ | `Readout` | Mono 500 · 13 | Mono 400 · 13 (position 14, .02em) |
+ | `Value` | Mono 400 · 10 | Mono 400 · 11 |
+ | `Eyebrow` (badges) | Mono 500 · 9 caps .18em | Mono 400 · 10, muted, as written |
+ | `DeviceName` | 600 · 12 | 600 · 12 |
+ | `DeviceSection` | 700 · 9 caps | 600 · 10.5, muted |
+ | `RowLabel` | 700 · 8 caps | 500 · 9 |
+ | `KnobLabel` | 700 · 7 caps | 500 · 8 |
+ | `KnobValue` | Mono 400 · 7 | Mono 400 · 8 |
+ | `Axis` | Mono 400 · 7 | Mono 400 · 7.5 |
+
+ Device text stays smaller than the shell's type because the 700 × 260 frame is kept
+ (clarification 2); sentence case is narrower than tracked caps, so 8 px sentence case
+ fits where 7 px caps did. `ss01` is enabled on the UI font via `FontFeatures` where
+ Avalonia 12 supports it on `TextBlock`; otherwise skipped (cosmetic).
+- **Verification**: truncation check by screenshot of every device card (quickstart).
+
+## R9 — Icons
+
+- **Decision**: `Glyph` stroke = 1.5 px at 16 px (scaled, min 1.2), round caps/joins; play
+ and record stay filled. No icon set swap — Nota's glyphs are already monoline
+ geometry.
+
+## R10 — Track colours
+
+- **Decision**: Keep nine roles and the base × 3 + shade index scheme
+ (`ArrangementView.cs:2683`, `PaletteShades = 3`). Retint the nine bases in Studio's
+ muted mid-saturation style: five base clip colours where the hue family matches, and
+ new hues at matching chroma for the rest (values in data-model.md). Return buses take
+ a neutral slate; Master becomes a muted grey. Stored indices are not
+ migrated (same as today).
+- **Rationale**: FR-020; spec assumption on nine roles.
+
+## R11 — Stock control retint and unstyled popups
+
+- **Decision**: Fluent `SystemAccentColor*` ramps → orange. Add Nota styles for
+ `ToolTip` (raised, 11 px primary, 3 px, popover shadow) and plain `FlyoutPresenter`
+ (raised, popover shadow) — today they fall back to Fluent defaults (84 files use
+ tooltips). Menu item hover → full accent fill with derived ink, 24 px items, 2 px
+ radius; gesture text uses `TextMuted` instead of `Opacity 0.45` (opacity is not a
+ state).
+
+## R12 — Rules carried over vs. dropped
+
+Kept from Ember (they fit Studio): one accent; no gradients/glow/textures; state
+changes colour not size; real-time not animated; numbers set (thin space, U+2212, fixed
+precision); Geist for words, Geist Mono for numbers; no literals in views; nothing may
+snapshot a colour; opacity is not a state.
+
+Changed: "no drop shadows" → "blurred shadows only on floating layers"; "caps labels" →
+"sentence case, no tracking"; "brass marks the audio path at rest" → "accent only live
+or chosen"; "role chromas brass · teal · rose · steel" → "viz ink · teal · rose · blue";
+islands → docked seams; radius scale.
+
+## R13 — Documentation
+
+- **Decision**: Rewrite DESIGN.md as the **Studio** design language, keep
+ its structure (source-of-truth table, rules, token tables, type, controls, shell,
+ tests, accepted exceptions, drift). Update `scripts/design-html.py` key lists and names (it
+ hard-codes Ember groups at :31-36, :59, :238-269) and regenerate DESIGN.html. Rewrite
+ `.claude/skills/nota-design/SKILL.md`. FEATURES.md lines that name Ember/brass
+ (:53, :347, :810, :923-925, :975). CHANGELOG `[Unreleased]` → Changed.
+- **Not reachable**: `../nota-docs` (user manual + screenshots) does not exist in this
+ environment; recorded as a follow-up in the PR.
+
+## R14 — Verification approach
+
+- **Decision**: `scripts/build-linux.sh` (native + managed + smoke test incl.
+ `DesignTokenCheck`) must pass. Visual check: run the app under Xvfb, capture each main
+ surface in dark and light, compare against the Studio rules (checklist in
+ [contracts/ui-contract.md](contracts/ui-contract.md)). Baseline screenshots are taken
+ before the change for the before/after in the PR.
diff --git a/specs/010-studio-visual-style/spec.md b/specs/010-studio-visual-style/spec.md
new file mode 100644
index 00000000..fce90aa4
--- /dev/null
+++ b/specs/010-studio-visual-style/spec.md
@@ -0,0 +1,401 @@
+# Feature Specification: Studio Visual Style
+
+**Feature Branch**: `010-studio-visual-style`
+
+**Created**: 2026-10-13
+
+**Status**: Draft
+
+## Clarifications
+
+### Session 2026-10-13
+
+- Q: Should the floating rounded islands give way to docked panels on seams? → A: Yes — docked flat panels meeting on 1 px seams; region order and contents unchanged.
+- Q: Should device cards grow to a 360 px height to fit the general type scale, or keep Nota's frame? → A: Keep the 700 × 260 frame (and documented width exceptions); reskin inside it.
+- Q: Should resting values (knob arcs, fader fills, curves) go neutral, with orange only for live or chosen state? → A: Yes — the "live or chosen" rule applies throughout.
+
+**Input**: User description: "Please restyle the Nota UI. I don't like the current Nota UI; give it a calmer, more focused studio look that puts the work first, while keeping all of Nota's features. We just want the UI styling to change."
+
+## Nota Context *(fill in — drives plan and tasks)*
+
+**Feature area** *(pick the main one)*:
+
+- [ ] Engine (C++, `src/native/nota.engine`) — real-time audio rules apply, see `ARCHITECTURE.md` AR table
+- [ ] Managed app (C#, `src/managed/*`) — domain, application, infrastructure, presentation
+- [x] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Ember)
+- [ ] Plugin hosting (`pluginhost/`) — the only place JUCE is allowed
+- [ ] Build / packaging / CI (`scripts/`, `.github/`) — see `BUILD.md`
+- [ ] Docs only
+
+**Nota docs to keep in mind** *(links relative to `specs/<slug>/`, where this file lands)*:
+[`ARCHITECTURE.md`](../../ARCHITECTURE.md) (AR rules),
+[`CONTRIBUTING.md`](../../CONTRIBUTING.md) (licensing, dependency policy, PR
+expectations), [`BUILD.md`](../../BUILD.md), [`DESIGN.md`](../../DESIGN.md),
+[`FEATURES.md`](../../FEATURES.md).
+
+**Design direction**: this feature replaces Nota's current design language ("Ember")
+with a new one, **Studio**, as the visual standard the app is held to. Its aim is that
+the chrome recedes and the work — track colours, clips, waveforms, meters — reads first.
+
+**Current state (for reference)**:
+
+- Nota's look is **Ember**: warm brownish neutrals (hue ~40°) in nine surface steps, one
+ brass/gold accent, two variants (Ember Graphite dark, Ember Paper light), switchable
+ live in Preferences → Appearance (Graphite / Paper / System).
+- The shell is a set of **floating islands** — transport, browser, canvas and detail
+ panel — with rounded 6 px corners, floating on a darker gutter with 12 px gaps.
+- Labels lean on **uppercase tracked caps** (section labels, knob labels, eyebrows,
+ badges). Brass marks "active, selected, changed" and also colours resting values
+ (knob arcs, audio-path fills).
+- Track colours are a nine-role palette at one lightness; mute/solo/arm use brass and red.
+- A design-token test in the smoke test enforces the Ember rules (token parity between the
+ two variants, bans on drop shadows, literal colours, font names, etc.).
+
+**Studio, in short** (the direction this feature sets, and why):
+
+- **Content carries the colour; the chrome recedes.** A **neutral, cool-to-neutral grey
+ studio** stepped in a few exact tones (well, ground, panel, raised, raised-hover),
+ separated by a **dark 1 px seam** between panels and a lighter 1 px **rule** inside a
+ panel, so track colours, clips, waveforms and meters read first.
+- **One accent, one meaning.** A single warm orange, used only for what is *live or
+ chosen* (play, selection, playhead, loop, toggles that are on, a control while it is
+ being dragged or focused). Resting values are neutral ink, so orange always means
+ something.
+- **Fixed state colours**: **red** for record/arm, **amber** for active mute, **blue** for
+ active solo, **green** for safe meter range and positive status.
+- **Docked, flat panels** butted against seams instead of floating islands — more room
+ for the work and a clearer structure. Depth is tone steps plus seams, with a faint top
+ bevel on raised controls. Real shadows only on things that float (menus, popovers,
+ modal windows).
+- **Small, nearly square corners** (2 / 3 / 4 px), dense rows (22–32 px), small crisp
+ type: Geist for words, Geist Mono with tabular numerals for every number.
+- **Sentence-case labels, no shouting** — no uppercase tracked labels; section labels are
+ quiet muted text. Calmer, easier to read, one labelling voice.
+- Selection marked by an **accent edge** (a 2 px left tick on rows, a 2 px underline on
+ tabs); menu hover is a full accent fill with dark ink.
+- **Studio Dark** is the default (a DAW is used in dark rooms for long sessions); **Studio
+ Light** is the same system in light greys.
+
+## User Scenarios & Testing *(mandatory)*
+
+### User Story 1 - The app wears the Studio look (Priority: P1)
+
+A producer opens Nota and sees the Studio look: neutral grey panels docked edge to edge on
+dark seams, a single orange accent on what is playing or selected, crisp small Geist type,
+nearly square corners. The arrangement, browser, transport, detail panel, mixer and
+dialogs all share it. Nothing they used to do has moved or disappeared.
+
+**Why this priority**: It is the request itself. Without the shell, panels and shared
+controls reskinned, nothing else matters.
+
+**Independent Test**: Open a representative project in the default dark appearance and
+compare each main surface (transport, browser, arrangement, session, modular, detail
+panel, mixer, clip editor, preferences, export dialog, command palette) against the
+Studio rules above: palette, seams, corners, type, accent usage and button states read as
+one system.
+
+**Acceptance Scenarios**:
+
+1. **Given** the default dark appearance, **When** the main window opens, **Then** every
+ surface uses Studio's neutral grey ladder and none of Ember's warm brown tints or brass
+ remain anywhere.
+2. **Given** the main window, **When** the user looks at the panel layout, **Then** the
+ transport, browser, canvas and detail panel are docked flat panels that meet on 1 px
+ dark seams, with no rounded floating islands and no visible gutter between them.
+3. **Given** the transport is stopped, nothing is selected and no toggle is on, **When**
+ the user scans the screen, **Then** no element is orange.
+4. **Given** the user presses play, selects a clip, enables loop or metronome, **When**
+ they look at the screen, **Then** exactly those live or chosen things turn orange (the
+ play key, the selected clip's band, the loop range, the toggle) and nothing else does.
+5. **Given** any button, toggle, field, tab, list row or menu, **When** the user hovers,
+ presses, focuses, selects or disables it, **Then** it shows the Studio treatment for
+ that state (hover lifts one tone step, press sinks to the well, toggled-on is a solid
+ accent fill with dark ink, selected rows/tabs get an accent edge, focus is a 1 px
+ accent edge, disabled uses the faint text tier).
+6. **Given** a menu, popover or modal dialog, **When** it opens, **Then** it floats with a
+ seam ring and a soft drop shadow (modals over a dimmed scrim); docked surfaces never
+ carry a blurred shadow.
+
+---
+
+### User Story 2 - Every feature still works exactly as before (Priority: P1)
+
+The same producer goes through their usual workflow — browse and drag a device, record a
+take, edit notes, automate a parameter, mix, export — and every control, shortcut,
+gesture, menu item and window is still there and behaves the same.
+
+**Why this priority**: The user explicitly asked to keep all of Nota's features. A
+restyle that loses or breaks one is a regression, not a feature.
+
+**Independent Test**: Run the smoke test and walk through the FEATURES.md capabilities
+in the restyled app; every capability is reachable from the same place and behaves as
+before.
+
+**Acceptance Scenarios**:
+
+1. **Given** the restyled app, **When** the user uses any capability listed in
+ FEATURES.md, **Then** it is reachable from the same panel, menu, shortcut or gesture as
+ before and produces the same result.
+2. **Given** an existing project saved before the restyle, **When** it is opened, **Then**
+ it loads unchanged (tracks, clips, devices, automation, track colour choices) and saving
+ it does not alter its musical content.
+3. **Given** any device card, **When** the user drags a knob, double-clicks to reset,
+ right-clicks for MIDI Learn / modulation, or switches presets, **Then** the interaction
+ is the same as before; only its appearance differs.
+4. **Given** the arrangement or piano roll, **When** the user clicks, drags or zooms,
+ **Then** hit targets land on the same positions as before the restyle.
+
+---
+
+### User Story 3 - Light appearance is Studio Light (Priority: P2)
+
+A producer who works in daylight switches Preferences → Appearance to the light option
+(or follows the OS). The app becomes the same system in Studio Light's greys, live, with
+no restart.
+
+**Why this priority**: Nota already offers a light variant and a System option; dropping
+them would remove a feature, and leaving Ember Paper would make the light mode look like
+the old app.
+
+**Independent Test**: Toggle Appearance between dark, light and System while a project
+is open and compare against the Studio Light values.
+
+**Acceptance Scenarios**:
+
+1. **Given** the app in dark, **When** the user picks light, **Then** every surface
+ switches immediately to the light grey ladder, with the accent darkened enough to hold
+ contrast on pale grey, and no surface keeps a dark or warm-paper colour.
+2. **Given** System is selected, **When** the OS switches appearance, **Then** Nota
+ follows, as before.
+3. **Given** either appearance, **When** text or a glyph sits on a solid accent or
+ coloured fill, **Then** it remains legible (contrast at least 4.5:1 for text).
+
+---
+
+### User Story 4 - Device cards and custom views speak the same language (Priority: P2)
+
+Device cards (instruments, audio and MIDI effects, hosted plug-ins) and the
+custom-drawn views (arrangement, piano roll, waveform/audio clip editor, meters, graphs,
+mixer, modular, session grid) adopt the Studio treatment so the whole app reads as one
+system rather than a Studio shell around Ember devices.
+
+**Why this priority**: Devices and canvases are most of the screen while working; a
+half-converted app would look inconsistent. It comes after the shell because the shell
+sets the tokens these views draw from.
+
+**Independent Test**: Open one instrument, one audio effect, one MIDI effect and one
+hosted plug-in card, plus the arrangement, piano roll, audio editor, mixer and modular
+views, and check each against the Studio rules below.
+
+**Acceptance Scenarios**:
+
+1. **Given** a device card, **When** it is shown, **Then** it has a panel-grey body with
+ 3 px corners and a seam ring, a raised header with a faint top bevel, the accent power
+ key, name and preset stepper; parameter labels are sentence case (no tracked caps) and
+ every value is set in the mono face with tabular numerals.
+2. **Given** a knob, fader or slider at rest, **When** the user looks at it, **Then** its
+ value arc or fill is neutral ink; **When** the user drags or focuses it, **Then** it
+ turns orange, and back to neutral on release.
+3. **Given** a track header in the arrangement or a mixer strip, **When** mute, solo or
+ arm is engaged, **Then** it fills amber, blue or red respectively, with legible ink.
+4. **Given** a clip in the arrangement, **When** it is drawn, **Then** it is a flat
+ rectangle in its track colour with a darker title band, and selecting it swaps the band
+ to the accent.
+5. **Given** a device graph (EQ curve, filter response, envelope, waveform), **When** it is
+ drawn, **Then** it sits in a recessed well, its curves are neutral ink at rest, and only
+ the selected or dragged node is orange.
+
+---
+
+### User Story 5 - Design documentation and guard tests describe the new look (Priority: P3)
+
+A contributor (human or agent) who builds new UI next week reads the design guideline,
+the design reference page and the design skill, and they describe the Studio
+system the app now uses; the design-token checks in the smoke test enforce it.
+
+**Why this priority**: Without this, the next change follows the old Ember rules and the
+app drifts back. It does not change what users see today, so it comes last.
+
+**Independent Test**: Read DESIGN.md, DESIGN.html and the nota-design skill; every value
+and rule they state matches the app, and the smoke test passes with the new rules and
+would fail on a reintroduced Ember colour or rule violation.
+
+**Acceptance Scenarios**:
+
+1. **Given** the updated design guideline, **When** a contributor looks up a colour,
+ radius, size or type style, **Then** it matches what the app renders.
+2. **Given** the design-token checks, **When** someone adds a blurred shadow to a docked
+ surface, a hard-coded colour, or an uppercase tracked label, **Then** the smoke test
+ fails, as it does today for the Ember bans.
+
+---
+
+### Edge Cases
+
+- **Stored track colours**: projects store a track colour index; after the restyle each
+ index maps to a Studio clip colour, so old projects open with a consistent
+ (possibly different) hue and no error.
+- **Hosted plug-in editors** (VST3 / AU windows) draw their own UI and are out of reach;
+ only Nota's frame around them is restyled.
+- **User-chosen colours stored as hex** (e.g. tag swatches, custom clip colours): they are
+ data and render as stored; ink on them is derived for legibility.
+- **Narrow windows / small screens**: the docked layout must not clip controls that were
+ reachable before at the same window size.
+- **Session view play state**: Nota turns Play green while Session clips run; under the
+ Studio rules this stays a distinct live state and remains distinguishable from the
+ arrangement play state.
+- **Overload and recording**: clip indicators and recording remain red and unmistakable;
+ orange is never used for a warning that used to be red.
+- **Text overflow**: switching uppercase labels to sentence case, or any type size change,
+ must not truncate a label that fitted before.
+- **Platform title bar**: macOS traffic lights and Windows caption buttons keep their
+ reserved space in the restyled header.
+
+## Requirements *(mandatory)*
+
+### Functional Requirements
+
+**Look — palette and surfaces**
+
+- **FR-001**: The app MUST replace the Ember palette with Studio's: a neutral grey ladder
+ (well, ground, panel, raised, raised-hover), a dark seam colour, a lighter rule colour,
+ three text tiers plus a faint tier for disabled, one orange accent with its line,
+ pressed and on-accent variants, red (record/error), amber (mute/warning), blue (solo),
+ green (safe range / positive status), and Studio's muted clip colours.
+- **FR-002**: The app MUST offer the same appearance choices as today (dark, light,
+ System) and switch between them live; dark MUST use the Studio Dark values and light MUST
+ use the Studio Light values.
+- **FR-003**: No Ember-specific colour (warm brown neutrals, brass, bronze, Ember track
+ palette) MUST remain visible anywhere in Nota's own UI in either appearance.
+- **FR-004**: The orange accent MUST appear only on live or chosen state: transport
+ playing, selection, playhead, loop range, toggles that are on, the selected tab/row
+ edge, menu-item hover, a device's power key, and a value control while it is focused or
+ dragged. Resting values (knob arcs, fader fills, meters, device curves) MUST be neutral.
+- **FR-005**: Mute, solo and arm/record MUST use amber, blue and red respectively when
+ engaged, wherever they appear (arrangement, mixer, session).
+- **FR-006**: Text and glyphs on any solid coloured fill MUST derive their colour for
+ contrast (at least 4.5:1) rather than use a fixed colour.
+
+**Look — shell and structure**
+
+- **FR-007**: The main window's regions (header, transport, browser, canvas, detail
+ panel, status line) MUST be docked flat panels that meet on 1 px seams, replacing the
+ floating rounded islands and gutter; their order and the features they contain stay as
+ they are today.
+- **FR-008**: Each docked panel that has a toolbar or header row MUST present it as a
+ Studio panel toolbar (panel grey, separated from the content by a seam).
+- **FR-009**: Elevation MUST follow Studio: flat by default, raised controls with a faint
+ top bevel and a seam ring, blurred shadows only on floating layers (menus, popovers,
+ dropdowns, modal windows, detached windows), modals over a dimmed scrim.
+- **FR-010**: Corner radii MUST follow Studio's scale: 2 px (inner keys, rows, menu
+ items, clips), 3 px (controls, groups, cards, readouts, popovers), 4 px (modal
+ windows). Segmented groups round only their outer corners.
+
+**Look — type, icons and labels**
+
+- **FR-011**: Typography MUST follow Studio's hierarchy (title, body, label, readout,
+ position readout, device label/value/readout) using the Geist and Geist Mono faces Nota
+ already bundles; every number a user reads to make a decision MUST be set in the mono
+ face with tabular numerals.
+- **FR-012**: Labels MUST be sentence case at normal letter spacing; uppercase tracked
+ labels, eyebrows and caps badges MUST be removed from Nota's own UI.
+- **FR-013**: Icons MUST follow Studio's monoline treatment (16 px grid, 1.5 px stroke,
+ round caps; 14 px inside pills and rows; filled play and record glyphs).
+
+**Look — controls and views**
+
+- **FR-014**: Buttons, icon buttons, toggles, segmented groups, pills/chips, fields,
+ search, tabs, menus, list/browser rows, dropdowns, scrollbars, tooltips and dialogs MUST
+ follow Studio's component treatments and state rules (rest, hover, pressed, toggled-on,
+ selected, focus, disabled) as listed in User Story 1, scenario 5.
+- **FR-015**: Device cards MUST adopt Studio's card treatment (panel body, seam ring,
+ raised bevelled header with power key, name, preset stepper and actions; recessed
+ display; titled sections divided by rules; label above operator above value) while
+ keeping their current frame sizes (700 × 260 and the documented width exceptions) and
+ control layout. Type inside cards rises toward Studio's general scale only where the frame allows
+ it without truncation or reflow.
+- **FR-016**: Knobs MUST adopt Studio's dial look (raised face with seam, well-coloured
+ track, neutral value arc, primary-ink pointer, accent arc only while focused or
+ dragged, bipolar arcs growing from twelve o'clock).
+- **FR-017**: Custom-drawn views — arrangement (clips with darker title band, accent band
+ when selected), piano roll (velocity shades of the clip colour, accent frame on
+ selection), audio clip editor, automation lanes, meters, graphs, mixer strips (track
+ colour top bar), session grid, modular view — MUST adopt Studio's treatment and draw all
+ colours from the active appearance.
+
+**Behaviour preserved**
+
+- **FR-018**: Every user-visible capability in FEATURES.md MUST remain available from the
+ same place, with the same shortcuts, gestures, menus and results.
+- **FR-019**: Hit-testing geometry that interactions depend on — arrangement row heights,
+ header column width, ruler, piano-roll key/row sizes, device card frame sizes, control
+ hit areas — MUST NOT change as a side effect of the restyle unless a requirement above
+ calls for it, and no control may become unreachable.
+- **FR-020**: Project files, preset files and saved preferences MUST stay compatible in
+ both directions; the restyle MUST NOT change any stored data format. A stored track
+ colour index MUST map to a valid colour in the new palette.
+- **FR-021**: The restyle MUST NOT change audio behaviour, engine code or the C ABI.
+
+**Documentation and guards**
+
+- **FR-022**: DESIGN.md, DESIGN.html and the nota-design skill MUST be rewritten to
+ describe the new Studio design language (its rules, token values for both
+ appearances, type, geometry, components) in place of Ember, and MUST agree with the app.
+- **FR-023**: The design-token checks in the smoke test MUST be updated to enforce the
+ new rules (token parity between appearances, Studio radius scale, shadows only on
+ floating layers, no hard-coded colours or font names in views, no uppercase tracked
+ labels), and MUST pass.
+- **FR-024**: The change MUST get a CHANGELOG `[Unreleased]` entry, and the user manual
+ screenshots/pages and FEATURES.md MUST be updated where they describe or show the old
+ look.
+
+### Key Entities
+
+- **Design token**: a named colour, radius, size, spacing or type style, with a value per
+ appearance (dark / light). The single source the whole UI draws from.
+- **Appearance**: dark, light or System; selects which token values are live.
+- **Track colour**: a stored per-track index into the clip colour palette; its rendition
+ changes, its stored value does not.
+
+## Success Criteria *(mandatory)*
+
+### Measurable Outcomes
+
+- **SC-001**: Checked against the Studio rules in DESIGN.md, a reviewer finds every main
+ surface listed in User Story 1 reads as one visual system (11 of 11 surfaces).
+- **SC-002**: 100% of FEATURES.md capabilities remain reachable and working after the
+ restyle; the smoke test passes.
+- **SC-003**: With the transport stopped and nothing selected or toggled on, zero
+ elements on screen use the accent colour.
+- **SC-004**: Zero Ember colour values remain in Nota's own UI in either appearance.
+- **SC-005**: All text on solid fills meets a 4.5:1 contrast ratio in both appearances;
+ all other body text meets 4.5:1 against its background.
+- **SC-006**: Switching appearance takes effect in under 1 second with no restart and no
+ surface left in the previous appearance.
+- **SC-007**: Every project in the repository's test projects opens and round-trips
+ without changes to its stored data.
+- **SC-008**: Every value DESIGN.md states matches what the app renders (spot-check of
+ colours, radii and type styles finds no mismatch).
+
+## Assumptions
+
+- "UI styling" means the Studio design system (palette, type, geometry, elevation,
+ component treatments, accent rules) as set out above and written into DESIGN.md,
+ applied to Nota's existing screens. No new features come with it — in particular,
+ user-editable colour tokens and a theme editor are out of scope.
+- Nota keeps its own information architecture: the order of regions, which controls each
+ panel holds, menus, windows, views (arrangement, session, modular) and the device
+ catalogue. Studio changes the *treatment* of each surface, not its layout: layout
+ changes that would move or resize Nota's features (an in-window menubar row, a
+ three-column transport grid, 196 px track headers, 360 px device cards) are not part of
+ this feature.
+- Nota's nine track-colour roles stay nine (stored indices keep their meaning); each is
+ retinted to Studio's muted mid-saturation clip-colour style: five base clip colours
+ where a role matches, and new hues at the same saturation and lightness for the rest.
+- Geist and Geist Mono are already bundled in Nota, so no new font dependency is needed.
+- The "Nota" brand name, logo and app icon stay; only Nota's chrome changes, to Studio's
+ unbranded look.
+- The Nota design language gets a new name in the docs (it is no longer "Ember"); the
+ name itself is an editorial choice made during planning.
+- The restyle adds no third-party code, fonts or assets, so no new licence row is
+ needed.
diff --git a/specs/010-studio-visual-style/tasks.md b/specs/010-studio-visual-style/tasks.md
new file mode 100644
index 00000000..90669c4c
--- /dev/null
+++ b/specs/010-studio-visual-style/tasks.md
@@ -0,0 +1,211 @@
+---
+
+description: "Task list for the Studio visual style restyle"
+---
+
+# Tasks: Studio Visual Style
+
+**Input**: Design documents from `/specs/010-studio-visual-style/`
+
+**Prerequisites**: plan.md, spec.md, research.md, data-model.md, contracts/ui-contract.md, quickstart.md
+
+**Tests**: No new test suite was requested. The existing gate (`tests/Nota.SmokeTest`,
+including `DesignTokenCheck`) is updated wherever a rule changes, so it keeps passing
+and keeps enforcing the new system. Visual checks follow quickstart.md.
+
+**Organization**: Grouped by user story. All UI paths are under
+`src/managed/Nota.App/` (abbreviated `App/`).
+
+## Format: `[ID] [P?] [Story] Description`
+
+- **[P]**: Can run in parallel (different files, no dependencies)
+- **[Story]**: Which user story this task belongs to (US1–US5)
+
+---
+
+## Phase 1: Setup
+
+**Purpose**: Working build and a "before" reference.
+
+- [X] T001 Initialise submodules (`git submodule update --init --recursive --depth 1`) and run `scripts/build-linux.sh` on unmodified `main` to record the baseline smoke-test result in `/tmp` (not committed)
+- [X] T002 Capture "before" screenshots of the main window, a device card, the mixer and a context menu under Xvfb per specs/010-studio-visual-style/quickstart.md §2 (kept outside the repo, for the PR description)
+
+---
+
+## Phase 2: Foundational (blocking)
+
+**Purpose**: The token and geometry layer every story paints from. Both variants are
+edited together because `DesignTokenCheck.Run` fails on a dark/light or XAML/C# mismatch.
+
+- [X] T003 Re-value every `Brush.*` key in both `ThemeDictionaries` (`Dark`, `Light`) of `App/Theme/NotaTheme.axaml` to the values in data-model.md §Surfaces, §Lines and grid, §Text, §Accent, §Semantics, §Data/graph chromas, §Track palette (including `Brush.Track1..9`, `ReturnA/B`, `Master`), and retint Fluent `SystemAccentColor*` ramps to the orange accent; rewrite the palette comments from "Ember Graphite/Paper, brass" to the Studio roles
+- [X] T004 Add the new keys to both dictionaries of `App/Theme/NotaTheme.axaml`: `Brush.Seam`, `Brush.Rule`, `Brush.TextFaint`, `Brush.Mute`, `Brush.Solo`, `Brush.VizInk`, `Brush.VizGrid`, `Brush.Scrim`, and the `BoxShadows` `Shadow.Raised`, `Shadow.Sunken`, `Shadow.Popover`, `Shadow.Modal` with the exact strings in data-model.md §Elevation
+- [X] T005 Mirror T003/T004 into `App/Theme/NotaPalette.cs`: re-value every `T("#dark","#light")` slot (same pairs as the XAML), add slots `Seam`, `Rule`, `TextFaint`, `Mute`, `Solo`, `VizInk`, `VizGrid`, `Scrim` with `// Brush.X` comments, extend `KeyMap` (and separate `Brush.SurfaceSelected` from `AccentSubtle`), re-value `TrackSlots` / `ReturnSlots` per data-model.md §Track palette, and update `InkOverrides`/`DeriveLight` so derived light inks land on the light grey ground (lightness reflected around the new ground; re-pin the four overrides)
+- [X] T006 Add `NotaPalette.InkOn(SolidColorBrush fill)` in `App/Theme/NotaPalette.cs`: a cached `Derived` brush returning `#17181A` or `#FFFFFF`, whichever has the higher WCAG contrast on the fill's current colour
+- [X] T007 Remap radii in `App/Theme/NotaTheme.axaml` and `App/Theme/NotaGeometry.cs` to data-model.md §Geometry (`Bar 1, Clip 2, Badge 2, Control 3, Tile 3, Panel 3, Body 3, Pill 3`), add `Radius.Modal` 4 and `Radius.Docked` 0 (XAML key + `NotaRadius.Modal`/`Docked`), and replace the literal `CornerRadius="2"` at `App/MainWindow.axaml` (~:365, ~:383) with `{StaticResource Radius.Clip}`
+- [X] T008 Update `tests/Nota.SmokeTest/DesignTokenCheck.cs` so the token layer passes: `Run` parity also covers `BoxShadows` keys in both dictionaries; `RunGeometry` reads the new radius values/keys; keep every existing ban
+- [X] T009 Run `scripts/build-linux.sh`; the smoke test must pass with the new token layer before story work continues
+
+**Checkpoint**: The app already repaints in Studio greys/orange in both appearances via the slots; structure and rules still Ember.
+
+---
+
+## Phase 3: User Story 1 — The app wears the Studio look (P1) 🎯 MVP
+
+**Goal**: Shell, shared control styles, menus/popovers/dialogs and accent rules follow Studio.
+
+**Independent test**: quickstart.md §2 — main window, transport, browser, detail panel, menus, tooltips, preferences, export dialog, command palette match contracts C1–C3 in dark.
+
+### Shell (docked seams)
+
+- [X] T010 [US1] In `App/MainWindow.axaml`, make the shell docked: `DockPanel`/`BodyGrid` background `Brush.Seam`; Browser margin `0,0,1,0`, Timeline margin `0`, DetailPanel margin `0,1,0,0` (seam shows through, 0 at window edges); DetailPanel `CornerRadius` → `Radius.Docked`; BrowserSplitter and DetailSplitter become 6 px transparent strips with −3 margins centred on the seam (same min sizes and drag behaviour)
+- [X] T011 [US1] Restyle the title bar in `App/MainWindow.axaml` (`TitleBar`) to 32 px on `Brush.BgApp` with a 1 px `Brush.Seam` bottom border; keep the macOS traffic-light inset and the 180 px Windows caption reserve (check `App/MainWindow.axaml.cs` / `NotaWindow.cs` for hard-coded 36)
+- [X] T012 [US1] Transport row: in `App/Theme/NotaTheme.axaml` set `Control.TransportBar` 44, `Control.Console` 30, `Control.Transport` 26, `Control.Play` 36 (mirror in `App/Theme/NotaGeometry.cs` `NotaSize`); `Border.transport` → `Brush.Panel`, no radius (`Radius.Docked`), 1 px `Brush.Seam` bottom only; `Border.console` → `Brush.BgSunken` + `Shadow.Sunken` (rule edge), `Radius.Control`; remove the `Margin="12,12,12,0"` on `TransportBar` in `App/MainWindow.axaml`
+- [X] T013 [US1] Re-measure the transport folding thresholds in `App/MainWindow.TransportFit.cs` for the new 26/36 key sizes and 12 px body text so nothing folds earlier than before at the same window width
+- [X] T014 [P] [US1] Docked panel chrome in code: `App/BrowserView.cs` (~:434-446), `App/ArrangementView.cs` (~:417-425), `App/ModularView.cs` (~:182) and the `NotaSpace.Gutter` margins at `App/MainWindow.axaml.cs` (~:381) → radius `NotaRadius.Docked`, no outer border (seams come from the grid), background per role (browser `Panel`, canvas `BgApp`)
+- [X] T015 [US1] Set `NotaSpace.Gutter`/`Space.Gutter` to 1 in `App/Theme/NotaGeometry.cs` and `App/Theme/NotaTheme.axaml`, and audit remaining users of `NotaSpace.Gutter` (`grep -rn "NotaSpace.Gutter\|Space.Gutter" App/`) so none relies on a 12 px gap for layout
+- [X] T016 [US1] Panel toolbars: detail-panel header (`App/MainWindow.axaml` DetailPanel header, `App/MainWindow.Detail.cs`) and browser header (`App/BrowserView.cs`) render as 32 px `Brush.Panel` strips with a 1 px `Brush.Seam` bottom; selected mode segment uses the accent underline/fill per contract C3
+
+### Control styles (NotaTheme.axaml)
+
+- [X] T017 [US1] Buttons in `App/Theme/NotaTheme.axaml`: default `Button` → `SurfaceRaised`, `TextPrimary`, `BoxShadow {DynamicResource Shadow.Raised}`, border 0, hover `SurfaceHover`, pressed `BgSunken`, disabled `TextFaint` (no opacity); `.primary` → weight 600 (Studio: primary action is weight, not colour — the accent stays reserved for live or chosen state) except where it is a toggled-on state; engaged/checked states (`ToggleButton:checked`, `.engaged`) → solid `Brush.Accent` + `Brush.TextOnAccent`; `.ghost`, `.cell`, `.chip` (radius `Radius.Pill`=3), `.tp-icon`, `.tp-play` (36 wide, accent fill only while playing; Session green kept as `SuccessDim`→`Success`)
+- [X] T018 [US1] Segments in `App/Theme/NotaTheme.axaml`: `Border.segmented` → raised group with `Shadow.Raised`, `Radius.Control`, inner keys square with 1 px `Brush.Seam` separators; `ToggleButton.seg:checked` → solid accent + `TextOnAccent`
+- [X] T019 [US1] Fields in `App/Theme/NotaTheme.axaml`: `TextBox.field`, `TextBox.search`, `ComboBox` → `BgSunken` (search: `BgApp`), `Shadow.Sunken` rule edge, `Radius.Control`, 26 tall; focus → 1 px accent inset edge (`inset 0 0 0 1` accent BoxShadow or BorderBrush `Brush.Accent`)
+- [X] T020 [US1] Tabs/list rows in `App/Theme/NotaTheme.axaml`: `TabItem` (or the app's tab segments) 32 tall, 12 px 500 `TextSecondary`, selected `TextPrimary` + 2 px accent underline; `ListBoxItem` / tree rows hover `SurfaceHover`, selected `SurfaceSelected` + 2 px accent left tick
+- [X] T021 [US1] Menus in `App/Theme/NotaTheme.axaml`: `MenuFlyoutPresenter`, `ContextMenu`, `FlyoutPresenter` (new default style) and the `ComboBox` popup border → `SurfaceRaised`, `Radius.Control`, padding 4, `BoxShadow {DynamicResource Shadow.Popover}` with a transparent presenter margin (≥12, bottom ≥28) so the blur is not clipped; `MenuItem` 24 tall, `Radius.Clip`, hover/selected → solid accent + `TextOnAccent`; gesture text `TextMuted` (remove `Opacity 0.45`); `Separator` → `Brush.Rule`
+- [X] T022 [US1] Add a `ToolTip` style in `App/Theme/NotaTheme.axaml`: `SurfaceRaised`, `TextPrimary` 11 px, `Radius.Control`, padding 6,3, `Shadow.Popover`; re-value `TooltipBg`/`TooltipText` slots (custom-drawn lane tooltips) to raised/primary in `App/Theme/NotaPalette.cs`
+- [X] T023 [US1] Scrollbars in `App/Theme/NotaTheme.axaml` and `App/Controls/ThinScrollBar*.cs`: transparent track, thumb `mix(muted 34%)` → use `NotaPalette.Wash(TextMuted, 0x57)`, hover `Wash(TextMuted, 0x85)`
+- [X] T024 [US1] Text classes in `App/Theme/NotaTheme.axaml` and `App/Theme/NotaFonts.cs` (`NotaType`): apply the type scale in research.md R8 (Title 600·13, default 500·12, Caption 400·11 secondary, SectionLabel/GroupLabel 600·11 muted, Readout Mono 400·13, Value Mono 400·11, Eyebrow Mono 400·10 muted); set every `*Tracking` constant and `LetterSpacing` setter to 0; enable `ss01` on the UI font if Avalonia 12 exposes `FontFeatures`
+- [X] T025 [US1] Sentence-case labels, shell side: add `NotaText.Label(string)` in `App/Theme/NotaText.cs` (new file, SPDX header) per research.md R2 with the acronym list; replace all-caps captions in `App/MainWindow.axaml` (LOOP, BPM, TAP, SIG, KEY, GRID, MST and any other caps literals) and the `.ToUpper*()` label sites in shell views (`App/DeviceWindow.cs:76`, `App/SessionView.Inspector.cs:226,:412`, `App/SessionView.Mixer.cs:62`, `App/MidiToolsView.cs:308,346,366`, `App/SessionView.Toolbar.cs:146`, `App/DeviceChainView.Shell.cs:109,132`)
+- [X] T026 [US1] Dialogs: `App/NotaWindow.cs` body `Brush.Panel`, header 32 `SurfaceRaised` + `Shadow.Raised` bevel and seam bottom; restyle per-window bodies in `App/ConfirmWindow.cs`, `App/ExportWindow.cs`, `App/PreferencesWindow.cs` (section titles → Title 600·13, groups → SectionLabel), `App/SplashWindow.cs` (`Radius.Modal`)
+- [X] T027 [US1] Command palette `App/CommandPaletteView.cs`: card `SurfaceRaised`, `Radius.Modal`, `Shadow.Modal`, full-window `Brush.Scrim` behind; rows 24, selected → accent fill + `TextOnAccent`
+- [X] T028 [US1] Glyph stroke in `App/Controls/Glyph.cs`: stroke 1.5 px at 16 px (scale with size, min 1.2), round caps and joins; play/record stay filled
+- [X] T029 [US1] Status line in `App/MainWindow.axaml`: on `Brush.BgApp` with a top `Brush.Seam`, `Caption` text 16 px in
+- [X] T030 [US1] Build, then verify US1 against contract C1–C3 under Xvfb (quickstart.md §2, dark); fix findings
+
+**Checkpoint**: The shell and all stock-styled UI read as Studio in dark.
+
+---
+
+## Phase 4: User Story 2 — Every feature still works (P1)
+
+**Goal**: Prove nothing moved, broke or vanished.
+
+**Independent test**: smoke test green; FEATURES.md walk-through; old project round-trip.
+
+- [ ] T031 [US2] Run `scripts/build-linux.sh`; all smoke-test checks pass (including the updated `DesignTokenCheck`)
+- [X] T032 [US2] Confirm hit-test geometry is untouched: `git diff main -- App/ArrangementView*.cs App/PianoRollView*.cs App/ClipEditorKit.cs App/DeviceCardKit.cs` shows no change to row heights, header column 228, overview/sections/ruler heights, piano keys/rows, `CardH`/`HeaderH`/`ParamCell`/knob sizes (contract C6.2); revert any accidental change
+- [X] T033 [US2] Open a project saved before the change (smoke-test fixture or a newly saved one from `main`), save it with the restyled build, and diff the JSON: no difference in content or track colour indices (contract C6.3)
+- [X] T034 [US2] Walk the FEATURES.md sections in the running app (Xvfb) and confirm each listed view/panel/menu/window opens from the same place; record anything not reachable and fix it
+
+---
+
+## Phase 5: User Story 3 — Light appearance (P2)
+
+**Goal**: Light = the Studio Light palette, live switch intact.
+
+**Independent test**: Preferences → Appearance Light / System; capture the same surfaces as US1.
+
+- [X] T035 [US3] Capture all quickstart.md §2 surfaces in Light; fix any surface that keeps a dark or warm colour (e.g. a view that snapshots `.Color` at construction instead of reading the slot — see `NotaPalette` "nothing may snapshot" rule)
+- [X] T036 [US3] Check derived light inks (`NotaPalette.Ink`) used by visualisers and tag swatches against the light ground; pin any that read poorly in `InkOverrides` in `App/Theme/NotaPalette.cs`
+- [X] T037 [US3] Verify contrast in both appearances for text on solid fills (accent, mute, solo, arm, track colours) ≥ 4.5:1 via `NotaPalette.InkOn`, and body text ≥ 4.5:1 on its ground (SC-005); verify the switch completes with no leftovers (SC-006)
+
+---
+
+## Phase 6: User Story 4 — Device cards and custom views (P2)
+
+**Goal**: Devices and canvases speak Studio.
+
+**Independent test**: one instrument, one audio effect, one MIDI effect, one plug-in card, arrangement, piano roll, audio editor, mixer, session, modular against contract C4–C5.
+
+### Shared device kit and value controls
+
+- [X] T038 [US4] `App/DeviceCardKit.cs`: replace `ToUpperInvariant()` in `KnobCell` (:66), `Switch` (:91, :102), `SliderRow` (:214), `Labeled` (:317) with `NotaText.Label`; `BypassTag` "BYPASSED" → "Bypassed"; modified label/value no longer brass — modified value `TextPrimary`, unmodified `TextSecondary`; `Segments` selected fill stays accent with `TextOnAccent`; device header 22 on `SurfaceRaised` with `Shadow.Raised` bevel, card body `Panel`, `Radius.Body` (3) + seam ring; sections `SurfaceCard` (= panel) framed by `Brush.Rule`, titled with the `DeviceSection` class
+- [X] T039 [US4] Device header power key and badge in `App/DeviceChainView.Shell.cs`: bypass switch on = accent ("power key"), processing-type `Subtitle` badge rendered via `NotaText.Label` in `TextMuted` mono 10 without tracking
+- [X] T040 [P] [US4] `App/Controls/Knob.cs`: track pointer hover (PointerEntered/Exited) alongside `_drag`; resting arc and pointer → `NotaPalette.VizInk` / `TextStrong`; while hovered or dragged → `Accent` / `AccentBright`; `ArcColor` (modulation chroma) unchanged; cap `SurfaceRaised` with `Seam` stroke; groove `BgSunken`
+- [X] T041 [P] [US4] Same rest-neutral / live-accent rule in `App/Controls/MiniFader.cs`, `App/Controls/PanBar.cs`, `App/Controls/SliderTrack.cs`, `App/Controls/RangeSliderTrack.cs`, `App/Controls/ValueBar.cs` (also replace render radius 4 with `NotaRadius.ControlValue`), `App/Controls/MixBar.cs`; `App/Controls/SwitchTrack.cs` on stays accent, track/knob radius 2 (square-ish: Studio has no pill switches) keeping `W = 18, H = 10, KnobD = 7, Inset = 1.5`
+- [X] T042 [P] [US4] `App/Controls/NotaGraph.cs`: `Chroma(0)` / `PrimaryPen` → `VizInk`; chroma order viz-ink · teal · rose · blue (`Steel`); grid `VizGrid`; frame `Rule`, `Radius.Control`; titles (:79, :121) via `NotaText.Label` instead of upper-casing; selected/dragged node accent, others `TextSecondary`
+- [X] T043 [P] [US4] Waveforms at rest → neutral: `App/Controls/WaveformView.cs` (`WavePen` → `VizInk`), `App/PreviewPlayer.cs` (~:1084-1086 `AccentMute`), `App/DeviceCards/**/MosaicViews.cs` (~:261); played/selected portion may stay accent
+
+### Device bodies (labels and resting accent)
+
+- [X] T044 [US4] Replace the 39 local `Caps(...)` helpers and the two `FormattedText Caps(...)` (`ChamberViews.cs:33`, `PrismViews.cs:41`) under `App/DeviceCards/` and `App/` with calls through `NotaText.Label` and the `DeviceSection`/`RowLabel` styles (no Bold, LetterSpacing 0); remove hand-set positive `LetterSpacing` on label text in views (112 occurrences / 65 files, `grep -rn "LetterSpacing" App/ --include=*.cs`)
+- [X] T045 [US4] Audit resting accent in device visualisers file by file under `App/DeviceCards/` and `App/Controls/` (start with ChamberViews, BeatRepeatViews, ConsortViews, then the rest by `grep -rln "NotaPalette.Accent\|Brass\b" App/DeviceCards App/Controls`): resting curves/fills/bars → `VizInk` or `TextSecondary`; keep accent only for selection, playhead, active step, dragged node, toggles on (contract C1.3–C1.4)
+- [X] T046 [US4] Screenshot every built-in device card (dark) and fix any truncated label caused by the new label size/case (contract C4.3)
+
+### Custom-drawn views
+
+- [X] T047 [US4] Arrangement `App/ArrangementView.cs`: `ChipToggle` (:2379) mute on → `Mute` fill + `InkOn(Mute)`, solo on → `Solo` fill + `InkOn(Solo)`, rest → `SurfaceRaised`/`TextSecondary` with seam edge; `ArmToggle` (:2359) armed → `Record` fill + `RecordInk`; track names 600 when selected; selected header `SelHeaderBg` + 2 px accent left tick
+- [X] T048 [US4] Arrangement clips (`App/ArrangementView*.cs` clip painting): flat `Radius.Clip` rect in track colour, title band = track colour mixed 30 % toward black (via `NotaPalette.Derived`, cached per index), band → accent when selected; clip title text `InkOn(band)` 9.5 px 600
+- [X] T049 [P] [US4] Mixer `App/MixerView.cs`: `Toggle` (:417) mute/solo → `Mute`/`Solo` fills with `InkOn`; `ArmToggle` (:401) → `Record`; strips `Panel` with seam separators, 3 px top bar in track colour (master `Master` grey), selected strip `SurfaceHover`
+- [X] T050 [P] [US4] Session `App/SessionView.Mixer.cs` `MixToggle` (:182) → same mute/solo/arm scheme; session grid clip slots follow the clip treatment of T048
+- [X] T051 [P] [US4] Piano roll / clip editor `App/PianoRollView*.cs`, `App/ClipEditorKit.cs`, `App/ClipEditorView.cs`: notes in velocity shades of the clip colour with a dark 1 px edge, selection = 2 px accent frame; keys `KeyWhite`/`KeyBlack` re-valued (T005); loop strip accent; tools-panel Apply = the one accent action only while a preview is pending
+- [X] T052 [P] [US4] Audio editor and automation: `App/AudioClipEditorView.cs`, `App/ArrangementView.Automation.cs`, `App/ArrangementView.LaneControl.cs`: curve and points `VizInk`, selected point accent; automation clip body 16 % owner colour over well, title band 30 % toward black
+- [X] T053 [P] [US4] Modular `App/ModularView*.cs`: canvas `BgApp`, node cards like device cards (T038), cable colours unchanged except any resting accent → `VizInk`
+- [X] T054 [US4] Build and verify US4 against contract C4–C5 under Xvfb in dark and light
+
+---
+
+## Phase 7: User Story 5 — Docs and guards (P3)
+
+**Goal**: The written design language and the smoke-test guards describe Studio.
+
+**Independent test**: DESIGN.md/DESIGN.html/skill match the app; a reintroduced blurred shadow on a docked surface or a caps-tracked label fails the smoke test.
+
+- [X] T055 [US5] `tests/Nota.SmokeTest/DesignTokenCheck.cs`: (a) blurred `BoxShadows` allowed only in `Shadow.Popover`/`Shadow.Modal` definitions and their users in `NotaTheme.axaml`, still banned in `.cs`; (b) radius values only 0/1/2/3/4; (c) no `ToUpper(Invariant)?()` in `DeviceCardKit.cs` label builders, `NotaGraph.cs`, and `Caps(` helpers, and no positive `LetterSpacing` in theme text classes; (d) `RunLayout`: TransportBar 44, console 30, header 22 kept, cards 700 kept; (e) update any Ember-specific assertion text
+- [X] T056 [P] [US5] Rewrite `DESIGN.md` as the Studio design language: source-of-truth table, rules (from research.md R12), token tables for dark/light from data-model.md, geometry, type (R8), controls and states (contract C3), device cards, shell (docked), tests, accepted exceptions (700 × 260 cards; device type at 7.5–10.5 px; 9 track roles; transport 44), known drift
+- [X] T057 [P] [US5] Update `scripts/design-html.py` key lists, group names and titles (:31-36, :59, :238-269) for the new tokens and the Studio name; run `python3 scripts/design-html.py` to regenerate `DESIGN.html`
+- [X] T058 [P] [US5] Rewrite `.claude/skills/nota-design/SKILL.md` for the Studio language (non-negotiables updated: accent live-or-chosen, sentence case, docked seams, floating-only shadows, 2/3/4 radii, `InkOn`, `NotaText.Label`)
+- [X] T059 [P] [US5] Update references to Ember/brass in `FEATURES.md` (~:53, :347, :810, :923-925, :975), `CLAUDE.md`/`CONTRIBUTING.md`/`.specify/memory/constitution.md` §VI and `.specify/templates/overrides/*.md` where they name "Ember" (wording only; constitution version bump PATCH)
+- [X] T060 [US5] Add a `CHANGELOG.md` `[Unreleased]` → Changed entry describing the new look (Studio neutral greys, orange accent for live/selected state, docked panels, sentence-case labels; no feature changes)
+
+---
+
+## Phase 8: Polish & cross-cutting
+
+- [X] T061 Remove dead Ember-only code left behind (unused slots/aliases with zero references, e.g. `AccentMute` if unused) only where `DesignTokenCheck` parity allows; keep names that are still referenced
+- [ ] T062 Final `scripts/build-linux.sh` run; smoke test green
+- [X] T063 Final before/after screenshots (dark + light) for the PR description; note `../nota-docs` screenshots as a follow-up (repository not available here)
+
+---
+
+## Dependencies & Execution Order
+
+- **Setup (T001–T002)** → **Foundational (T003–T009)** blocks everything.
+- **US1 (T010–T030)** after Foundational. T024–T025 (type + `NotaText.Label`) before US4's label work (T038, T042, T044).
+- **US2 (T031–T034)** after US1 and again after US4 (it is the regression gate; T031 is re-run in T062).
+- **US3 (T035–T037)** after US1 (light values come with Foundational; this story verifies and pins).
+- **US4 (T038–T054)** after T024–T025 and T005–T006 (`InkOn`, new slots).
+- **US5 (T055–T060)** after US1/US4 settle the rules and values.
+- **Polish (T061–T063)** last.
+
+### Parallel opportunities
+
+- T014 runs alongside T010–T013 (different files).
+- T040, T041, T042, T043 in parallel (separate control files).
+- T049, T050, T051, T052, T053 in parallel (separate views).
+- T056, T057, T058, T059 in parallel (separate docs).
+
+### Parallel example: User Story 4
+
+```text
+T040 Knob.cs | T041 faders/sliders/switch | T042 NotaGraph.cs | T043 waveforms
+then T044 Caps helpers → T045 visualiser audit → T046 truncation pass
+T049 Mixer | T050 Session | T051 Piano roll | T052 Audio/automation | T053 Modular
+```
+
+## Implementation Strategy
+
+- **MVP** = Foundational + US1: the token remap plus shell and control styles already
+ make Nota read as Studio on every main surface.
+- Then US4 (devices and canvases — the bulk of the screen while working), US3 (light
+ pass), US2 as the regression gate after each, and US5 so the rules stick.
+- Commits are layered to match: tokens → shell/styles → controls/devices → views → docs.
+
+## Phase 9: Convergence
+
+- [ ] T064 Restyle `src/managed/Nota.App/Remote/ConnectPhoneView.cs` (and `Remote/QrView.cs` comments): sentence-case labels via `NotaText.Label`, remove positive `LetterSpacing` and bold caps ("USB", section labels), resting ring/chip colours from `AccentDim`/`BorderBrass` to neutral ink, accent only while connecting per FR-012, FR-004 (partial)
+- [ ] T065 Make `src/managed/Nota.App/Controls/Inactive.cs` dim `NotaPalette.VizInk` (and the neutral value fills that replaced brass) so a bypassed card's resting values take the disabled look per FR-015 / US4 bypassed card (partial)
+- [ ] T066 Restyle device section frames in `src/managed/Nota.App/DeviceCards/**` (shared section builders) so sections sit on the panel tone divided by 1px rules instead of seam-framed boxes per FR-015 (partial)
+- [ ] T067 Resolve floating-layer elevation for menus/popovers: either render popups in-window (Avalonia overlay popups) so `Shadow.Popover` can blur, or record the departure in spec FR-009 with the user's agreement per FR-009 (partial)
+- [ ] T068 Replace the literal radius 4 in `src/managed/Nota.App/Controls/OperatorAlgoViz.cs:108` with `NotaRadius.ControlValue` per FR-010 (partial)
+- [ ] T069 Re-shoot the user-manual screenshots in `../nota-docs` (EN + RU) for the Studio look via the nota-docs skill per FR-024 (partial)
diff --git a/specs/011-colour-themes/checklists/requirements.md b/specs/011-colour-themes/checklists/requirements.md
new file mode 100644
index 00000000..9de7c1b4
--- /dev/null
+++ b/specs/011-colour-themes/checklists/requirements.md
@@ -0,0 +1,38 @@
+# Specification Quality Checklist: Selectable Colour Themes
+
+**Purpose**: Validate specification completeness and quality before proceeding to planning
+**Created**: 2026-10-13
+**Feature**: [spec.md](../spec.md)
+
+## Content Quality
+
+- [x] No implementation details (languages, frameworks, APIs)
+- [x] Focused on user value and business needs
+- [x] Written for non-technical stakeholders
+- [x] All mandatory sections completed
+
+## Requirement Completeness
+
+- [x] No [NEEDS CLARIFICATION] markers remain
+- [x] Requirements are testable and unambiguous
+- [x] Success criteria are measurable
+- [x] Success criteria are technology-agnostic (no implementation details)
+- [x] All acceptance scenarios are defined
+- [x] Edge cases are identified
+- [x] Scope is clearly bounded
+- [x] Dependencies and assumptions identified
+
+## Feature Readiness
+
+- [x] All functional requirements have clear acceptance criteria
+- [x] User scenarios cover primary flows
+- [x] Feature meets measurable outcomes defined in Success Criteria
+- [x] No implementation details leak into specification
+
+## Notes
+
+- "Colour token" is the design language's own user-facing vocabulary (DESIGN.md), not an
+ implementation detail; the spec names no files, classes or frameworks.
+- Scope calls made as assumptions rather than markers (theme = dark+light family; editor
+ and import out of scope; two built-ins; track colours themed) — good candidates for
+ `/speckit-clarify` to confirm.
diff --git a/specs/011-colour-themes/contracts/theme-file.md b/specs/011-colour-themes/contracts/theme-file.md
new file mode 100644
index 00000000..d7dc0923
--- /dev/null
+++ b/specs/011-colour-themes/contracts/theme-file.md
@@ -0,0 +1,45 @@
+# Contract: Colour Theme File (format version 1)
+
+The single shape every colour theme takes: the four built-ins now, user themes later
+(FR-012, US5). Built-ins live in `src/managed/Nota.App/Theme/Themes/<id>.json` and ship
+as embedded resources.
+
+```json
+{
+ "formatVersion": 1,
+ "id": "ember-graphite",
+ "name": "Ember Graphite",
+ "kind": "dark",
+ "colors": {
+ "BgApp": "#0B0A09",
+ "Panel": "#141310",
+ "Accent": "#D8A03D",
+ "ShadowBevel": "#08FFFFFF",
+ "...": "one entry per catalogue token"
+ }
+}
+```
+
+## Rules
+
+| # | Rule | On violation |
+|---|---|---|
+| F1 | `formatVersion` is `1`. | Built-in: check fails. Loader: theme skipped. |
+| F2 | `id` matches `^[a-z0-9]+(-[a-z0-9]+)*$`, is not `system`, and is unique across loaded themes. | same |
+| F3 | `name` is 1–40 characters. | same |
+| F4 | `kind` is `dark` or `light`. | same |
+| F5 | `colors` has **every** catalogue token ([data-model.md](../data-model.md)) and **no other** key. | Check names the theme and each missing or unknown token. |
+| F6 | Each value is `#RRGGBB` or `#AARRGGBB` (hex, either case). Tokens other than `ShadowBevel`, `ShadowPopover` and `ShadowModal` are opaque (alpha `FF` or omitted). | Check names theme + token + value. |
+| F7 | The theme meets every readability pairing in [ui-contract.md](ui-contract.md) § T3. | Check names theme + pairing + ratio. |
+| F8 | Studio themes only: no value equals an Ember-era palette value (the existing Studio rule, FR-016). | Check names the token. |
+
+The loader never throws to the UI. A built-in that fails F1–F6 is a build-time error,
+because the smoke test fails. At runtime the theme is left out of the list and the
+fallback of FR-007 applies.
+
+## Key order and comments
+
+Keys are written in catalogue order (surfaces → lines → text → accent → semantics → data
+→ tinted chrome → keys → shade targets → tracks → elevation), so diffs between themes
+line up. JSON has no comments. The *role* of each token is documented once, in
+`DESIGN.md` and in `NotaPalette.cs`, not repeated per file.
diff --git a/specs/011-colour-themes/contracts/ui-contract.md b/specs/011-colour-themes/contracts/ui-contract.md
new file mode 100644
index 00000000..71de8ff5
--- /dev/null
+++ b/specs/011-colour-themes/contracts/ui-contract.md
@@ -0,0 +1,75 @@
+# UI Contract: Colour Themes
+
+What a user sees and what the checks enforce. The Studio contract of
+[010](../../010-studio-visual-style/contracts/ui-contract.md) (C1–C6) stays in force for
+every theme; the only change is that "token values" now means the active theme's.
+
+## T1 — Preferences → Appearance
+
+- T1.1 **Colour theme** leads with a segmented control: **Dark · Light · Follow system**.
+ Below it sit two rows of cards, **Dark** then **Light** themes, in the built-in order
+ of [data-model.md](../data-model.md). Both rows always show, so the page never changes
+ height with the mode. Each card is:
+ - a 184 × 112 preview: a miniature Nota window (title bar, transport with the view
+ keys, browser names, four arrangement lanes with clips in the first track colours and
+ the playhead, the device panel) drawn in **that theme's own colours**, whichever
+ theme is live;
+ - in a 2 px frame, radius 3: seam at rest, rule on hover, the accent when chosen —
+ state changes the colour only;
+ - the theme name under it.
+- T1.2 With **Dark** or **Light**, one card is chosen and the row in use has the brighter
+ label. With **Follow system**, the labels read **In dark mode** and **In light mode** and
+ one card is chosen in each row. Labels change text and ink only. The segment keys keep
+ their weight when chosen (the accent fill marks the choice), so the switch never
+ changes width.
+- T1.3 **Dark** or **Light** wears that mode's remembered pick, so switching modes and
+ back returns to the same theme. Picking a card wears it and remembers it for its mode,
+ so a card in the other row switches mode; while following, it sets only that mode's
+ theme (`Appearance.WithMode` / `WithPick`).
+- T1.4 Turning follow system on applies the theme for the current OS mode (FR-005).
+ The cards are a `ListBox`, so keyboard focus and selection work as in any list.
+- T1.5 All changes apply on click (no Apply button), are saved at once, and are live
+ in every open window within 0.5 s (SC-001).
+- T1.6 Labels are sentence case per Studio. Theme names are shown as written.
+
+## T2 — Switching
+
+- T2.1 A switch re-tints every colour the app paints, including:
+ - XAML-styled controls;
+ - custom-drawn views (arrangement, mixer, piano roll, device cards, graphs, meters,
+ waveforms);
+ - washes, derived track shades and contrast-picked ink;
+ - shadows;
+ - Fluent's accent ramp;
+ - popups, menus, tooltips and windows that are open or opened later.
+- T2.2 Nothing but colour changes: no layout pass changes a size or position, and
+ selection, scroll, playback, open panels and focus are kept.
+- T2.3 Native chrome follows the theme's kind.
+- T2.4 Audio is unaffected. Switching happens on the UI thread only, and nothing
+ crosses to the engine.
+
+## T3 — Readability pairings (every built-in theme; check: `DesignTokenCheck.RunThemes`)
+
+Calibrated on Studio (research R7). Ratio = WCAG 2.x contrast ratio. ΔE = CIE76.
+
+| # | Pairing | Minimum |
+|---|---|---|
+| T3.1 | `TextPrimary`, `TextSecondary`, `TextMuted` on `BgApp`, `Panel`, `SurfaceRaised`, `SurfaceHover`, `BgSunken` | 4.5 |
+| T3.2 | `TextTertiary` on the same five | 3.0 |
+| T3.3 | `TextFaint`, `TextDisabled`, `TextAxis` on the same five | 2.5 |
+| T3.4 | `AccentBright` on `BgApp`, `Panel`, `BgSunken` | 2.3 |
+| T3.5 | Derived ink (`ReadableInkOn`) on `Accent`, `Mute`, `Solo`, `Record` | 4.5 |
+| T3.6 | Derived ink on `Track1`…`Track9`, `ReturnA`, `ReturnB` | 3.0 |
+| T3.7 | `Track1`…`Track9` pairwise | ΔE ≥ 12 |
+| T3.8 | `Accent`, `Mute`, `Solo`, `Record` pairwise | ΔE ≥ 15 |
+
+Track hues are not compared with state colours: Studio's solo blue is the Keys track
+blue by design (R7).
+
+## T4 — Ember
+
+- T4.1 Every Ember token equals its 0.52.1 value, or its R8 derivation for a
+ Studio-only token, **except** values nudged to meet T3. Each nudge keeps the hue and
+ changes lightness only, by the smallest step that passes.
+- T4.2 `DESIGN.md` lists every nudge: token, theme, 0.52.1 value → shipped value, and
+ the T3 pairing it failed (FR-017).
diff --git a/specs/011-colour-themes/data-model.md b/specs/011-colour-themes/data-model.md
new file mode 100644
index 00000000..65f47f4a
--- /dev/null
+++ b/specs/011-colour-themes/data-model.md
@@ -0,0 +1,101 @@
+# Data Model: Selectable Colour Themes
+
+## Colour theme
+
+| Field | Type | Rules |
+|---|---|---|
+| `id` | string | Unique. Lower-case kebab (`^[a-z0-9]+(-[a-z0-9]+)*$`). Stable: settings store it. `"system"` is reserved. |
+| `name` | string | Display name, 1–40 chars, shown as written (not sentence-cased). |
+| `kind` | `"dark"` \| `"light"` | Picks the native chrome / Fluent base variant and the follow-system list it appears in (FR-009). |
+| `formatVersion` | int | `1`. A future reader rejects a higher major version it does not know. |
+| `colors` | map token → colour | **Exactly** the token catalogue: no missing token, no unknown token. Colour = `#RRGGBB` or `#AARRGGBB`, upper- or lower-case hex. |
+
+Built-ins (FR-013), in this list order:
+
+| id | name | kind | Source |
+|---|---|---|---|
+| `studio-dark` | Studio Dark | dark | today's dark values, unchanged |
+| `studio-light` | Studio Light | light | today's light values, unchanged |
+| `ember-graphite` | Ember Graphite | dark | 0.52.1 dark values + R8 derivations, nudged per R7 |
+| `ember-paper` | Ember Paper | light | 0.52.1 light values + R8 derivations, nudged per R7 |
+
+Format: [contracts/theme-file.md](contracts/theme-file.md).
+
+## Colour token (catalogue)
+
+A name, fixed by the design language. Themes supply values only. Groups, in the order the
+design doc lists them:
+
+- **Surfaces**: `SurfaceAbyss`, `BgApp`, `Gutter`, `BgSunken`, `CanvasBg`, `SurfaceDeep`,
+ `LaneB`, `Panel`, `SurfaceCard`, `SurfaceInset`, `SurfaceRaised`, `SurfaceHover`,
+ `SurfaceActive`, `TrackOff`
+- **Lines and grid**: `Seam`, `Rule`, `BorderDefault`, `BorderStrong`, `BorderBrass`,
+ `GraphBorder`, `GridBeat`, `GridSubBeat`, `GridRow`, `GridBar`, `VizGrid`, `WellGrid`,
+ `PadGrid`
+- **Text**: `TextHeading`, `TextPrimary`, `TextStrong`, `TextSecondary`, `TextMuted`,
+ `TextTertiary`, `TextFaint`, `TextDisabled`, `TextAxis`, `TextOnAccent`, `VizInk`
+- **Accent**: `Accent`, `AccentHover`, `AccentBright`, `AccentDeep`, `AccentDim`,
+ `AccentEdge`, `AccentMute`, `AccentPale`, `AccentSubtle`, `SystemAccent`,
+ `SystemAccentLight1..3`, `SystemAccentDark1..3`
+- **Semantics**: `Record`, `RecordInk`, `Danger`, `DangerHover`, `DangerBright`,
+ `DangerDeep`, `DangerPale`, `Warning`, `Mute`, `Solo`, `Success`, `SuccessDim`,
+ `MuteTint`
+- **Data**: `Teal`, `TealBright`, `Rose`, `RoseBright`, `Steel`, `Sage`, `Threshold`,
+ `Marker`, `MarkerHot`, `Frozen`, `SignalIn`, `SignalInFill`, `HandleSel`
+- **Tinted chrome**: `SelHeaderBg`, `FrozenHeaderBg`, `Veil`, `TooltipBg`, `TooltipText`
+- **Keys**: `KeyWhite`, `KeyBlack`, `MiniKeyWhite`, `MiniKeyBlack`
+- **Shade targets**: `ShadeUp`, `ShadeDown`
+- **Tracks**: `Track1`…`Track9`, `ReturnA`, `ReturnB`, `Master`
+- **Elevation**: `ShadowBevel`, `ShadowPopover`, `ShadowModal`
+
+The authoritative list is the set of `T(nameof(X))` declarations in
+`Theme/NotaPalette.cs` (plus the named track/return slots), together with the elevation
+and `SystemAccent*` tokens: 85 + 11 + 3 + 7 = **106 tokens** at the time of planning.
+`DesignTokenCheck` derives the list from the code and compares every theme file against
+it, so the list above can never drift from what the check enforces.
+
+**Derived, not tokens**: washes (`Wash(slot, alpha)`, incl. `SurfaceHoverClear`,
+`DangerSubtle`), `Derived(...)` brushes (track shades, clip bands), `InkOn(fill)`,
+gradients, `Ink("#hex")` device hues (follow the theme's *kind*, R3).
+
+## Appearance setting (persisted in `settings.json`)
+
+| Field | Type | Default | Meaning |
+|---|---|---|---|
+| `ColourTheme` | string | `""` | A theme id, or `"system"` for follow system. `""` = not yet migrated (read the legacy field). |
+| `SystemDarkTheme` | string | `"studio-dark"` | Theme used while the OS is in dark mode. Must be a dark-kind theme. |
+| `SystemLightTheme` | string | `"studio-light"` | Theme used while the OS is in light mode. Must be a light-kind theme. |
+| `Theme` *(legacy)* | `AppTheme` (Dark/Light/System, stored as 0/1/2) | `Dark` | Kept and **written in step** for older Nota versions: the active theme's kind, or System when following. Read only for migration. |
+
+### Resolution (`Appearance.Resolve`, pure, in `Nota.Application`)
+
+Input: the stored fields and the set of known theme ids with their kinds. Output: the
+mode (single theme or follow), the single theme id, the dark-mode id and the light-mode id.
+All ids returned are known and of the right kind.
+
+1. **Migration**: if `ColourTheme == ""`, derive it from the legacy field:
+ Dark → `studio-dark`; Light → `studio-light`; System → `system`.
+2. **Single theme**: an unknown id → `studio-dark` (FR-007).
+3. **Per-mode ids**: an unknown or wrong-kind `SystemDarkTheme` → `studio-dark`.
+ An unknown or wrong-kind `SystemLightTheme` → `studio-light`.
+4. Resolution never throws and never writes. The caller saves only when the user changes
+ something.
+
+### State transitions (Preferences)
+
+```text
+Single(t) --pick theme u--------------> Single(u) (per-mode ids kept)
+Single(t) --turn on follow system-----> Follow(darkId, lightId) (stored per-mode ids)
+Follow --pick dark-mode theme d-----> Follow(d, lightId)
+Follow --pick light-mode theme l----> Follow(darkId, l)
+Follow --pick a theme u from list---> Single(u) (per-mode ids kept, FR-005)
+```
+
+Every transition saves the settings, re-applies the theme live (FR-003) and sets the
+legacy `Theme` field to match.
+
+## Unchanged
+
+- Project files and track colour indices (`base × 3 + shade`). A theme recolours the
+ slot; the stored index is untouched.
+- Geometry, type and spacing tokens (`Radius.*`, `Control.*`, `Space.*`, `NotaType`).
diff --git a/specs/011-colour-themes/plan.md b/specs/011-colour-themes/plan.md
new file mode 100644
index 00000000..7d51ba4c
--- /dev/null
+++ b/specs/011-colour-themes/plan.md
@@ -0,0 +1,192 @@
+# Implementation Plan: Selectable Colour Themes
+
+**Branch**: `011-colour-themes` | **Date**: 2026-10-13 | **Spec**: [spec.md](spec.md)
+
+**Input**: Feature specification from `/specs/011-colour-themes/spec.md`
+
+## Summary
+
+Turn Nota's two fixed palette variants into a list of named, single-look colour themes:
+Studio Dark, Studio Light, Ember Graphite and Ember Paper. The user picks one in
+Preferences → Appearance, or uses **follow system**, which pairs a dark-mode theme with
+a light-mode theme. Only colour changes. Layout, type and behaviour stay Studio's.
+
+The core move is to give colour **one home**: one JSON file per theme. Today every
+colour exists twice, as a `T("#dark","#light")` slot in `NotaPalette.cs` and as a
+`Brush.*` entry in both XAML `ThemeDictionaries`. Afterwards:
+
+1. **Theme files** (`Theme/Themes/*.json`, embedded) hold one value per token for one
+ theme (research R2, [contracts/theme-file.md](contracts/theme-file.md)).
+2. **`NotaPalette`** declares slots by token name. `Apply(theme)` re-tints the
+ long-lived slot brushes in place, as variant switches do today.
+3. **XAML** stops holding colours. At startup the slot brushes themselves are published
+ into `Application.Resources` under their `Brush.*` keys, so every
+ `{DynamicResource Brush.*}` follows a switch with no XAML change (R1, R6). Shadows
+ and the Fluent accent ramp are set as resources from theme tokens on each switch.
+4. **`NotaThemeService`** applies a theme by id, sets `RequestedThemeVariant` from the
+ theme's kind, and in follow-system mode swaps themes on the OS's
+ `ActualThemeVariantChanged` (R4).
+5. **Settings** gain `ColourTheme`, `SystemDarkTheme` and `SystemLightTheme`. One pure
+ resolver in `Nota.Application` handles migration and fallbacks, and the smoke test
+ covers it (R5).
+6. **Preferences** gets a theme list with previews and a follow-system row with two
+ per-mode pickers ([contracts/ui-contract.md](contracts/ui-contract.md) § T1).
+7. **Checks**: `DesignTokenCheck` validates every theme file against the token catalogue
+ and the readability pairings (T3), keeps the Studio rules on the Studio themes, and
+ tests the appearance resolver.
+8. **Ember** is rebuilt from release 0.52.1 by slot name. The 8 Studio-only tokens are
+ derived by role, and values failing T3 are nudged and documented (R8).
+
+## Nota: Read Before Planning
+
+- **UI work** → [`DESIGN.md`](../../DESIGN.md) (Studio) and the `nota-design` skill. This
+ feature adds a "Colour themes" section there.
+- **Anything** → [`CONTRIBUTING.md`](../../CONTRIBUTING.md): SPDX headers on new files,
+ no new dependency (`System.Text.Json` is in the base library).
+
+## Technical Context
+
+**Language/Version**: C# / .NET 10 (managed app only). Python 3 for the design-page
+generator script.
+
+**Primary Dependencies**: Avalonia 12.0.3 (existing), `System.Text.Json` (BCL). No new
+dependency.
+
+**Storage**:
+- `settings.json` (per machine): three new string fields; the legacy `Theme` field is
+ kept and written in step.
+- Theme files are embedded resources.
+- Project files: no change.
+
+**Audio-Thread Impact**: None. This is a UI-only change; nothing crosses the C ABI, and
+the engine is untouched.
+
+**Testing**:
+- `tests/Nota.SmokeTest`: `DesignTokenCheck` gains `RunThemes`, and `Program.cs` gains
+ the "design: themes" and "design: appearance" sections. Both read files as text and
+ call the pure resolver; no UI needed.
+- Screenshot comparison per [quickstart.md](quickstart.md).
+
+**Target Platform**: macOS 13+, Windows 10+, Linux (x64/arm64), as today.
+
+**Project Type**: Desktop app (Avalonia).
+
+**Performance Goals**: a theme switch repaints every window within 0.5 s (SC-001).
+Follow system reacts within 1 s (SC-008).
+
+**Constraints**:
+- Studio Dark and Studio Light render pixel-identical to 010 (SC-003). Their values are
+ copied, not re-derived.
+- No frame is drawn in the wrong theme at launch (SC-007).
+- Slot brush identity is preserved across switches; existing aliases and caches keep
+ working.
+
+**Scale/Scope**:
+- 106 tokens × 4 themes;
+- ~10 files changed in `Nota.App/Theme`, `PreferencesWindow.cs`, `App.axaml.cs`,
+ `Nota.Application/Settings.cs` (+ new `Appearance.cs`);
+- 4 new JSON files;
+- `DesignTokenCheck`, `Program.cs`, `scripts/design-html.py`, docs.
+
+## Constitution Check
+
+*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
+
+| Principle | Status | Note |
+|---|---|---|
+| I. Real-time audio safety | ✅ N/A | UI-only. No engine or audio-thread code touched. |
+| II. Boundary discipline | ✅ | No C ABI change. No JUCE. |
+| III. Licensing hygiene | ✅ | New `.cs` files carry the SPDX header. JSON files have none (JSON has no comments); they are data covered by the repo licence, like `settings.json`'s schema. No new dependency. |
+| IV. Verification gate | ✅ | The smoke test is extended (themes + appearance). The build scripts must pass. |
+| V. One logical change per PR | ✅ | A single feature PR, stacked on 010 (PR #1). It doesn't merge before 006. |
+| VI. Docs in sync | ✅ | CHANGELOG `[Unreleased]` Added entry, FEATURES.md (nota-features), DESIGN.md § Colour themes + Ember nudges, DESIGN.html regenerated, nota-design skill, nota-docs (Preferences page; the docs repo is unavailable in this environment, as for 010 T069). |
+| VII. Spec-first | ✅ | spec + clarify (3 Q) done; this plan; tasks next. |
+| VIII. Safety rules not weakened | ✅ | No rule touched. |
+
+**Post-design re-check**: unchanged. The design adds no engine surface. The design-check
+rules are **not** loosened for Studio: the Studio rule (no Ember value) keeps applying to
+both Studio themes. Ember's exemption from that rule is required by the spec (FR-016).
+
+## Project Structure
+
+### Documentation (this feature)
+
+```text
+specs/011-colour-themes/
+├── plan.md # this file
+├── research.md # R1–R10
+├── data-model.md # theme, token catalogue, appearance setting, resolution
+├── quickstart.md # gate, manual flows, screenshots, migration
+├── contracts/
+│ ├── theme-file.md # theme JSON format v1 (F1–F8)
+│ └── ui-contract.md # Preferences UI (T1), switching (T2), readability (T3), Ember (T4)
+└── tasks.md # /speckit-tasks
+```
+
+### Source Code (repository root)
+
+```text
+src/managed/
+├── Nota.Application/
+│ ├── Settings.cs # + ColourTheme, SystemDarkTheme, SystemLightTheme; legacy Theme kept
+│ └── Appearance.cs # NEW — pure resolver: migration, fallbacks, built-in ids
+└── Nota.App/
+ ├── App.axaml.cs # apply the resolved appearance before the first window
+ ├── Nota.App.csproj # EmbeddedResource Theme/Themes/*.json
+ ├── PreferencesWindow.cs # theme list + follow-system row + per-mode pickers (T1)
+ └── Theme/
+ ├── Themes/
+ │ ├── studio-dark.json # NEW — today's dark values, verbatim
+ │ ├── studio-light.json # NEW — today's light values, verbatim
+ │ ├── ember-graphite.json # NEW — 0.52.1 dark + R8 derivations, T3 nudges
+ │ └── ember-paper.json # NEW — 0.52.1 light + R8 derivations, T3 nudges
+ ├── NotaColourTheme.cs # NEW — theme record, JSON loader + validation, built-in registry
+ ├── NotaPalette.cs # slots by token name; Apply(theme); ColorIn(slot, theme); full KeyMap; washes
+ ├── NotaThemeService.cs # apply by id/mode; publish brushes, shadows, accent ramp; follow system
+ └── NotaTheme.axaml # colour entries removed from ThemeDictionaries; header explains where colour lives
+
+tests/Nota.SmokeTest/
+├── DesignTokenCheck.cs # RunThemes (F1–F8, T3); Run reworked: keys → KeyMap; Studio checks read studio-*.json
+└── Program.cs # "-- design: themes --", "-- design: appearance --"
+
+scripts/design-html.py # palette from theme JSON; one section per built-in theme
+DESIGN.md, DESIGN.html # § Colour themes, token roles, Ember nudge table
+.claude/skills/nota-design/SKILL.md # where colour lives now; how to add a theme
+CHANGELOG.md, FEATURES.md # Added: colour themes + follow system
+```
+
+**Structure Decision**: all code stays where theming already lives (`Nota.App/Theme`,
+`PreferencesWindow.cs`). The only Application-layer addition is the pure resolver, which
+lives next to `Settings`. That keeps it free of Avalonia and directly testable from the
+smoke test, which does not reference `Nota.App`.
+
+## Approach notes for tasks
+
+- **Extract, don't retype**: a one-off script (scratch, not committed) generates
+ `studio-dark.json` and `studio-light.json` from the current `T()` pairs and XAML-only
+ values, and `ember-*.json` from `git show f37f51e:…`. The smoke test then proves the
+ Studio files match the 010 values token for token, before the old pairs are deleted.
+- **Order**:
+ 1. theme files + loader;
+ 2. `NotaPalette` by name, with Studio applied, still on today's ThemeDictionaries;
+ 3. publish brushes and remove XAML colours;
+ 4. resolver + settings;
+ 5. service;
+ 6. Preferences UI;
+ 7. Ember tuning;
+ 8. checks/docs.
+
+ Studio must look identical after each of steps 1–5 (screenshot diff).
+- **Risk: styles that read a `Color` resource rather than a brush** (e.g.
+ `SystemAccentColor*` in Fluent templates). These are set as `Color` resources on every
+ switch. A grep for `{DynamicResource` keys that resolve to non-brush types is part of
+ step 3.
+- **Risk: `StaticResource Brush.*`**: none today (verified: 0 uses). The check keeps it
+ that way.
+- **Risk: popups already open during a switch**: they are separate windows and are
+ covered by `RepaintEverything` walking `desktop.Windows`. Popup roots are added to the
+ walk if the screenshot pass shows a stale one.
+
+## Complexity Tracking
+
+No constitution violations to justify.
diff --git a/specs/011-colour-themes/quickstart.md b/specs/011-colour-themes/quickstart.md
new file mode 100644
index 00000000..d2530822
--- /dev/null
+++ b/specs/011-colour-themes/quickstart.md
@@ -0,0 +1,56 @@
+# Quickstart: verifying colour themes
+
+## Prerequisites
+
+As for any Nota build: [`BUILD.md`](../../BUILD.md). On Linux, the smoke test needs an
+audio sink (PulseAudio null sink is fine). The screenshots need an X server (Xvfb).
+
+## 1. Automated gate
+
+```bash
+scripts/build-linux.sh # or scripts/build.sh on macOS
+```
+
+Expect in the smoke test output:
+- `-- design: themes --`: for each of the four built-ins, `catalogue complete`,
+ `values valid`, every T3 pairing ✓, and `studio: no Ember value` for the two Studio
+ themes.
+- `-- design: appearance --`: the migration/fallback table of
+ [data-model.md](data-model.md) § Resolution, one ✓ per case (legacy Dark / Light /
+ System; unknown id; wrong-kind per-mode id; empty file).
+- The existing `-- design: studio --` checks unchanged.
+
+Negative check: delete one key from a copy of `ember-paper.json` (in a scratch build).
+The check fails and names `ember-paper` and that token.
+
+## 2. Manual: pick a theme (US1)
+
+1. Launch Nota and open a project with several tracks in different colours, a device
+ card, and the mixer.
+2. Preferences → Appearance → pick **Ember Graphite**. Every window recolours at once.
+ Playback keeps going, and selection and scroll stay where they were.
+3. Pick **Ember Paper**, **Studio Light**, then **Studio Dark**. Each applies fully.
+ Open a context menu and a tooltip in each: they match.
+4. Quit and relaunch: Nota opens in the last theme, with no flash of another.
+
+## 3. Manual: follow system (US2)
+
+1. Turn on **Follow system**. Set *In dark mode* = Studio Dark and
+ *In light mode* = Ember Paper.
+2. Flip the OS appearance both ways. Nota follows within 1 s.
+3. Pick a list theme: follow system turns off. Turn it back on: your two choices are
+ still set.
+
+## 4. Screenshots (SC-003, SC-004)
+
+Retake the 010 screen set (arrangement, mixer, session, device cards, browser, menus,
+preferences, command palette, export dialog) in all four themes.
+- **Studio Dark / Light**: pixel-compare against the 010 shots. They must be identical.
+- **Ember**: overlay on the Studio shot of the same kind. Element edges must coincide;
+ only colour differs.
+
+## 5. Migration (US1/AC4)
+
+Start once from a `settings.json` containing only `"Theme": 2` (System). Nota opens in
+follow system with Studio Dark / Studio Light. After any change to Appearance, the file
+holds the new fields and `Theme` still reflects the mode.
diff --git a/specs/011-colour-themes/research.md b/specs/011-colour-themes/research.md
new file mode 100644
index 00000000..8801a37a
--- /dev/null
+++ b/specs/011-colour-themes/research.md
@@ -0,0 +1,214 @@
+# Research: Selectable Colour Themes
+
+Decisions that the plan rests on, each with what was checked and what was rejected.
+All findings are against branch `010-studio-visual-style` (Studio), which this feature
+builds on, and against release 0.52.1 (`main`, Ember) for the Ember values.
+
+## R1 — One source of colour: theme data, not XAML dictionaries
+
+**Today**: every colour exists twice. One copy is a `T("#dark", "#light")` slot in
+`Theme/NotaPalette.cs`, read by the custom-drawn views. The other is a
+`SolidColorBrush x:Key="Brush.*"` in each of the two `ThemeDictionaries` of
+`Theme/NotaTheme.axaml`, read by XAML and styles through `{DynamicResource}`.
+`DesignTokenCheck` keeps the two copies in step.
+
+**Decision**: the theme files (R2) become the only place colour values live.
+- `NotaPalette` keeps its long-lived slot brushes, but a slot is now declared by **token
+ name** only (`T(nameof(BgApp))`). `Apply(theme)` sets each slot's `Color` from the
+ theme's values.
+- At startup, `NotaThemeService` puts **the same brush objects** into
+ `Application.Resources` under their `Brush.*` keys. The mapping comes from the
+ existing `KeyMap`, extended to every key the XAML uses (R6).
+- The colour entries are removed from `NotaTheme.axaml`'s `ThemeDictionaries`. Every
+ `{DynamicResource Brush.*}` then resolves to a slot brush, and that brush re-tints in
+ place on a theme switch. The XAML and custom-drawn layers can no longer disagree.
+
+**Why**: two copies × four themes would be eight hand-synced lists. With one copy,
+adding a theme is one file (FR-012, SC-006). Avalonia's `SolidColorBrush` is mutable
+and invalidates what it paints when `Color` changes. `NotaThemeService.RepaintEverything`
+already covers the custom-drawn views that read brushes inside `Render()`.
+
+**Rejected**:
+- *A custom `ThemeVariant` per theme* (`new ThemeVariant("EmberGraphite",
+ ThemeVariant.Dark)`) with generated `ThemeDictionaries`. This works in Avalonia, but
+ it leaves the XAML/C# duplication in place. It also makes `ActualThemeVariant` a
+ custom value, which complicates reading the OS mode for follow system (R4).
+- *Keeping XAML dictionaries and adding two more per theme*. This doubles the duplication.
+
+## R2 — Theme file format: JSON, embedded
+
+**Decision**: one JSON file per built-in theme in `src/managed/Nota.App/Theme/Themes/`
+(`studio-dark.json`, `studio-light.json`, `ember-graphite.json`, `ember-paper.json`),
+shipped as embedded resources and parsed with `System.Text.Json`, which is part of the
+.NET base library (no new dependency). The shape is in
+[contracts/theme-file.md](contracts/theme-file.md): `id`, `name`, `kind`, `formatVersion`,
+`colors{token: "#RRGGBB" | "#AARRGGBB"}`.
+
+**Why**: the smoke test reads theme files as plain text, as it already reads the XAML,
+and checks them without loading the app. A later "import theme" feature can read the
+same shape from a user folder unchanged (FR-012, US5). JSON is the format
+`settings.json` already uses.
+
+**Rejected**:
+- *C# literals per theme*: a user theme can't take that shape.
+- *XAML resource files*: they can't be validated without an Avalonia runtime, and the
+ format isn't friendly to users.
+
+## R3 — The token catalogue
+
+**Decision**: the token set is the slot set `NotaPalette` declares. That is the 86
+named slots, plus `Track1`…`Track9`, `ReturnA` and `ReturnB` (the anonymous array
+slots, named now), plus the theme-only tokens below. A theme must give every token a
+value; the check fails on a missing or extra token (FR-008, FR-015).
+
+Theme-only tokens (needed by XAML; not palette slots today):
+- **Shadow colours**: `ShadowBevel` (the raised control's top-edge highlight),
+ `ShadowPopover` and `ShadowModal` (the blurred drop colour). The shadow *geometry*
+ (offsets, blur, inset, the seam ring that uses `Seam`, the sunken ring that uses
+ `Rule`) is Studio structure and is built in code (FR-010).
+- **Fluent accent ramp**: `SystemAccent`, `SystemAccentLight1..3`,
+ `SystemAccentDark1..3`. These are stored explicitly so Studio stays bit-exact. Ember's
+ ramp is computed once with the rule Studio's ramp follows (light n = mix toward white
+ 0.12·n; dark n = accent × (1 − 0.10·n)) and stored.
+
+Two XAML keys are washes of other tokens, not tokens: `SurfaceHoverClear` is `SurfaceHover`
+at alpha 0, and `DangerSubtle` is `Danger` at alpha 0x33. Both become
+`NotaPalette.Wash(...)` and follow the theme on their own.
+
+**One-off device hues** (`NotaPalette.Ink("#hex")`) are not tokens. They are identity
+hues of single visualisers. They follow the active theme's **kind**: a dark theme uses
+the hex as given, and a light theme uses the derived or pinned light value as today.
+`LegacyRole` hexes still resolve to role slots, so they follow the theme (FR-011).
+
+## R4 — Appearance: single theme or follow system
+
+**Decision**: there are two modes, set by `RequestedThemeVariant` on the application.
+- **Single theme**: `RequestedThemeVariant` is set to the theme's kind (`Dark` /
+ `Light`), so Fluent's own internals and the native window chrome match the kind
+ (FR-009).
+- **Follow system**: `RequestedThemeVariant = Default`. `ActualThemeVariantChanged`
+ (already hooked in `NotaThemeService`) applies the dark-mode or light-mode theme.
+ If the OS gives no signal, Avalonia reports Light, which matches the spec's
+ fallback (spec, Edge Cases).
+
+`App.OnFrameworkInitializationCompleted` already applies the theme before the first
+window is created. The new call stays in the same place (FR-006, SC-007).
+
+## R5 — Settings and migration
+
+**Decision**: `Settings` gains three fields:
+- `ColourTheme`: a theme id, or `"system"`. An empty string means "not migrated yet".
+- `SystemDarkTheme` and `SystemLightTheme`: theme ids.
+
+The legacy `Theme` (`AppTheme`) field stays and is **written back in step** (Dark /
+Light by the active theme's kind, System when following), so an older Nota opening the
+same `settings.json` still gets a sensible variant.
+
+All reading goes through one pure function in `Nota.Application`, `Appearance.Resolve(...)`.
+It handles migration, unknown ids and wrong-kind ids (FR-007, spec Edge Cases). The smoke
+test can call it without a UI.
+
+The settings file stores enums as numbers today (no `JsonStringEnumConverter`). Ids are
+plain strings, so no converter change is needed.
+
+## R6 — Every XAML key reaches a slot
+
+The 70 `Brush.*` keys in each XAML dictionary map onto slots as follows:
+- 46 match a slot's `// Brush.X` comment.
+- The rest are aliases or names that are not commented:
+ - aliases: `ChromeBg` → `BgSunken`, `Hairline` → `GraphBorder`, `SurfaceSelected` → `SelHeaderBg`, `Chroma*` → `Teal`/`Rose`/`Steel`…;
+ - the text inks;
+ - `Track1..9`, `ReturnA/B`, `Master`;
+ - the two washes from R3.
+
+`KeyMap` is extended to the full list. The check asserts that every
+`Brush.*` key any view or style references is in `KeyMap` (this replaces today's
+"key exists in both dictionaries" check).
+
+## R7 — Readability bar: calibrated on Studio
+
+The spec requires "the contrast minimums the design language sets" (FR-014).
+`DESIGN.md` names no numeric pairings today, so this feature defines them, in
+[contracts/ui-contract.md](contracts/ui-contract.md) § T3. WCAG 2.x is the target. Where
+Studio itself sits below WCAG, the floor is Studio's own value, because Studio must not
+change (SC-003).
+
+Studio, measured (WCAG contrast ratio, worst pairing per class):
+
+| Pairing | Studio Dark | Studio Light | Floor set |
+|---|---|---|---|
+| Body text (primary, secondary, muted) on ground, panel, raised, hover, well | 4.68 | 4.76 | **4.5** (WCAG AA) |
+| Tertiary text on the same five | 3.73 | 3.40 | **3.0** |
+| Faint / disabled / axis text on the same five | 3.03 | 2.58 | **2.5** (Studio floor; WCAG exempts disabled and incidental text) |
+| Accent line (`AccentBright`) on ground, panel, well | 7.85 | **2.39** | **2.3** (Studio floor) |
+| Derived ink on accent, mute, solo, record fills | ≥ 5.92 | ≥ 4.58 | **4.5** |
+| Derived ink on track fills | ≥ 5.98 | ≥ 4.23 | **3.0** (glyph) |
+| Track hues pairwise, ΔE76 | 17.7 | 15.7 | **12** |
+| Accent, mute, solo, record pairwise, ΔE76 | 18.1 | 43.2 | **15** |
+
+**Finding to raise (not fixed here)**: in Studio Light, the accent line on the ground
+(2.39) and the faint text (2.58) sit below WCAG's 3:1 for graphics and incidental text.
+This feature must leave Studio untouched (SC-003), so it records these values as the
+floors rather than fixing them. Raising them is a separate, small Studio change.
+
+**Interpretation of FR-014 "distinguishable"**: the nine track colours must differ from
+each other, and accent, mute, solo and record must differ from each other. In Studio,
+*solo = the Keys track blue* by design (one blue serves both), so the check does not
+compare track hues against state colours.
+
+## R8 — Ember values and the nudges they will need
+
+**Source**: `main` at `f37f51e` ("Release 0.52.1"), `Theme/NotaPalette.cs` and
+`Theme/NotaTheme.axaml`. Ember declares 77 named slots, and every one has a Studio slot
+of the same name and role, because 010 re-valued slots by role and kept their names. So
+Ember maps by **slot name**.
+
+**Studio-only slots**, derived in Ember's palette by the role Studio gives them (FR-013):
+
+| Token | Ember value from |
+|---|---|
+| `Seam` | Ember `Gutter` |
+| `Rule` | Ember `BorderStrong` |
+| `TextFaint` | Ember `TextDisabled` |
+| `Mute` | Ember `Warning` (Ember's amber) |
+| `Solo` | Ember `Steel` (Ember's blue) |
+| `VizInk` | mix(Ember `TextPrimary`, Ember `BgSunken`, 0.92), Studio's formula |
+| `VizGrid` | Ember `WellGrid` |
+| `Master` | Ember `TextMuted` (Studio: the master strip is muted grey) |
+| `ShadowBevel` | Ember's `Shadow.Raised` colour (`#08FFFFFF` / `#66FFFFFF`) |
+| `ShadowPopover`, `ShadowModal` | Studio's drop alpha over Ember's darkest tone |
+| `SystemAccent*` | R3 ramp rule applied to Ember `Accent` |
+
+**Measured against R7 before any nudge** (the list that ships is produced by the check
+during implementation and goes into DESIGN.md per FR-017):
+- **Ember Graphite**:
+ - muted text on hover is 4.45;
+ - tertiary text on hover is 2.94;
+ - disabled text is 2.01–2.51 on several surfaces;
+ - ink on the record fill is 4.31.
+- **Ember Paper**:
+ - muted text is 3.54–4.09 on most surfaces;
+ - tertiary text is 2.57–2.96;
+ - disabled text is 2.00–2.67;
+ - ink on the accent fill is 4.38;
+ - Perc and Return track hues are ΔE 7.5 apart.
+
+**Nudge rule (clarified)**: keep the hue and move lightness only, the smallest step that
+passes, in steps of 1 % L in HSL. Each nudge is recorded as old → new plus the
+failing pairing.
+
+## R9 — Design docs page
+
+`scripts/design-html.py` reads its palette from `NotaTheme.axaml`'s dictionaries. Once
+the colours leave the XAML (R1), it reads the theme JSON files instead and renders one
+palette section per built-in theme. It keeps the existing rule that the page can only
+show values the app actually uses.
+
+## R10 — Out of scope (confirmed by the spec)
+
+These are left out:
+- the theme editor;
+- importing and exporting themes;
+- per-project themes;
+- the phone remote's web page;
+- any change to Studio's values, including the R7 finding.
diff --git a/specs/011-colour-themes/spec.md b/specs/011-colour-themes/spec.md
new file mode 100644
index 00000000..3b5f955b
--- /dev/null
+++ b/specs/011-colour-themes/spec.md
@@ -0,0 +1,385 @@
+# Feature Specification: Selectable Colour Themes
+
+**Feature Branch**: `011-colour-themes`
+
+**Created**: 2026-10-13
+
+**Status**: Draft
+
+## Clarifications
+
+### Session 2026-10-13
+
+- Q: Should a theme hold both a dark and a light version (switch picks the side), or be one fixed look per entry? → A: One fixed look per entry (Studio Dark, Studio Light, Ember Graphite, Ember Paper…), each marked dark or light. "Follow system" needs its own pairing: a chosen theme for dark mode and one for light mode.
+- Q: Should each theme set its own colours for tracks, or should track colours stay the same in every theme? → A: Each theme sets its own colour for each of the nine track colour slots (and the return and master colours); a track keeps its slot and shows the active theme's colour for it.
+- Q: If an old Ember colour fails today's readability minimum, adjust it or keep it exact? → A: Keep Ember exact except values that fail; nudge each failing one just enough to pass, and list every change (old → new, why) in the design docs.
+
+**Input**: User description: "Selectable colour themes: turn Nota's two fixed palette variants (the dark/light token pairs) into a set of named colour themes the user picks in Preferences → Appearance — e.g. Studio Dark, Studio Light, and a warm 'Ember' colour set — keeping the Studio layout, type and behaviour unchanged; designed so user-editable/importable themes (a theme editor) can follow later."
+
+## Nota Context *(fill in — drives plan and tasks)*
+
+**Feature area** *(pick the main one)*:
+
+- [ ] Engine (C++, `src/native/nota.engine`) — real-time audio rules apply, see `ARCHITECTURE.md` AR table
+- [ ] Managed app (C#, `src/managed/*`) — domain, application, infrastructure, presentation
+- [x] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Studio)
+- [ ] Plugin hosting (`pluginhost/`) — the only place JUCE is allowed
+- [ ] Build / packaging / CI (`scripts/`, `.github/`) — see `BUILD.md`
+- [ ] Docs only
+
+**Nota docs to keep in mind** *(links relative to `specs/<slug>/`, where this file lands)*:
+[`ARCHITECTURE.md`](../../ARCHITECTURE.md) (AR rules),
+[`CONTRIBUTING.md`](../../CONTRIBUTING.md) (licensing, dependency policy, PR
+expectations), [`BUILD.md`](../../BUILD.md), [`DESIGN.md`](../../DESIGN.md),
+[`FEATURES.md`](../../FEATURES.md).
+
+**Depends on**: [`010-studio-visual-style`](../010-studio-visual-style/spec.md) (the Studio
+restyle, PR #1). This feature builds on Studio's token set and branches from it; it lands
+after 010 does.
+
+**Current state (for reference)**:
+
+- Every colour the app paints is a named token (surfaces, lines, text, accent,
+ semantics, graph chromas, the nine track hues, shadows). Each token has exactly **two
+ values**: one for the dark appearance and one for the light.
+- Preferences → Appearance offers **Dark / Light / System**. The choice applies live and
+ is remembered between launches. System follows the operating system and flips with it.
+- Those two value sets are the **Studio** colours. The earlier **Ember**
+ colours (warm brown neutrals, brass accent; "Ember Graphite" dark, "Ember Paper"
+ light) were replaced by 010 and survive only in project history.
+- Layout, geometry, type, the "live or chosen" accent rule and the state treatments are
+ part of Studio's structure, not its colours. This feature does not touch them.
+
+**Shape of the feature (clarified)**: a **colour theme** is a single, fixed look. It has a
+name, is marked **dark** or **light**, and gives every colour token one value. The
+built-ins are Studio Dark, Studio Light, Ember Graphite and Ember Paper. The appearance
+setting becomes: **one chosen theme**, or **follow system**. Follow system uses a
+*theme for dark mode* and a *theme for light mode*, both chosen by the user. The
+current Dark / Light / System control is replaced by this.
+
+## User Scenarios & Testing *(mandatory)*
+
+### User Story 1 - Pick a colour theme (Priority: P1)
+
+A producer opens Preferences → Appearance, chooses **Dark**, and sees the dark colour
+themes as cards, each a miniature Nota window in that theme's colours. They pick "Ember
+Graphite". Every
+open window recolours at once — arrangement, mixer, device cards, browser, menus,
+dialogs — without a restart and without losing their place. They quit, relaunch, and
+Nota opens in Ember Graphite.
+
+**Why this priority**: This is the feature. Without it there are no themes, only the two
+fixed variants.
+
+**Independent Test**: With a project open, switch theme in Preferences and check that
+every surface recolours live. Relaunch and confirm the choice is kept.
+
+**Acceptance Scenarios**:
+
+1. **Given** Nota on Studio Dark, **When** the user picks Ember Graphite in
+ Preferences → Appearance, **Then** every open window repaints in Ember Graphite at
+ once. Nothing else changes: playback, selection, scroll, open panels and window
+ layout stay as they were.
+2. **Given** the user chose Ember Paper and quit, **When** Nota launches again, **Then**
+ it opens in Ember Paper, and no frame is first drawn in another theme.
+3. **Given** any theme, **When** the user looks at the Preferences theme cards, **Then**
+ each card shows its name and a miniature Nota window in that theme's colours (ground,
+ panel, text, accent, seams and the first track colours), and sits under the mode of
+ its kind. The active theme is marked as chosen.
+4. **Given** a settings file from before this feature, **When** Nota launches, **Then**
+ the old appearance maps across: Dark → Studio Dark, Light → Studio Light, System →
+ follow system with Studio Dark for dark mode and Studio Light for light mode.
+
+---
+
+### User Story 2 - Follow the system with a theme for each mode (Priority: P1)
+
+A producer works by day in a bright room and at night in a dark one, with their OS set
+to switch automatically. In Preferences → Appearance they turn on "Follow system" and
+pick Ember Paper for light mode and Studio Dark for dark mode. When the OS flips, Nota
+flips with it to the matching theme.
+
+**Why this priority**: Nota already offers "System" today. Moving to single-look themes
+must not take it away.
+
+**Independent Test**: Turn on follow system, choose a theme for each mode, flip the OS
+appearance both ways, and check that Nota follows. Relaunch in each OS mode.
+
+**Acceptance Scenarios**:
+
+1. **Given** follow system with Ember Paper (light) and Studio Dark (dark), **When** the
+ OS switches to dark, **Then** Nota shows Studio Dark; **when** it switches back,
+ Ember Paper.
+2. **Given** follow system is on, **When** the user picks a theme for dark mode,
+ **Then** only themes marked dark are offered. The same goes for light mode.
+3. **Given** follow system is on, **When** the user chooses **Dark** or **Light**,
+ **Then** follow system turns off and that mode's theme applies. The two per-mode
+ choices are kept for next time.
+4. **Given** follow system and the OS in light mode at launch, **Then** Nota opens in the
+ light-mode theme on the first frame.
+
+---
+
+### User Story 3 - Built-in themes that hold up everywhere (Priority: P1)
+
+Whatever theme is chosen, Nota stays fully usable. Text is readable on every surface, live
+state (playing, selected, armed, muted, soloed) is still obvious, meters still read
+safe / warning / over, and track colours stay distinguishable from each other. No surface
+falls back to another theme's colour or to a raw default.
+
+**Why this priority**: A theme that breaks one view (unreadable menu text, an invisible
+mute state, a stray Studio grey in an Ember window) is worse than no theme. This story is
+the quality bar for every built-in theme.
+
+**Independent Test**: For each built-in theme, walk the screenshot set used
+for 010 (arrangement, mixer, session, device cards, browser, menus, preferences, command
+palette, dialogs) and run the automated colour checks.
+
+**Acceptance Scenarios**:
+
+1. **Given** any built-in theme, **When** the automated check runs,
+ **Then** every colour token has a value, and every text-on-surface pairing the design
+ names meets its contrast minimum (≥ 4.5:1 for text, ≥ 3:1 for glyphs and state
+ fills against their ground).
+2. **Given** any built-in theme, **When** a track is muted, soloed or armed, **Then** the
+ state is shown with that theme's mute / solo / arm colours, and the ink on them is
+ readable.
+3. **Given** any built-in theme, **When** the transport is stopped, nothing is selected and
+ no toggle is on, **Then** no accent colour is on screen. The Studio "live or chosen"
+ rule holds in every theme.
+4. **Given** a project with tracks in all nine track colours, **When** the theme changes,
+ **Then** each track keeps its colour *role*, with the hue that theme gives the role,
+ and the project file is unchanged.
+
+---
+
+### User Story 4 - Ember comes back as a colour set (Priority: P2)
+
+Someone who preferred the old warm look picks "Ember Graphite" (dark) or "Ember Paper"
+(light) and gets the warm brown neutrals and the brass accent back. Studio's
+structure stays: docked seam panels, sentence-case labels, neutral resting values,
+orange only for live or chosen, which in Ember becomes brass only for live or chosen.
+
+**Why this priority**: Ember is the second theme that proves the system works, and it
+gives back the old palette without bringing back the old layout. It ranks below US1–US3
+because those cover any theme.
+
+**Independent Test**: Pick each Ember theme. Compare screenshots against Ember-era screenshots for
+colour only (ground, panel, text, accent hues). Layout must match the Studio screenshots,
+not the Ember-era ones.
+
+**Acceptance Scenarios**:
+
+1. **Given** Ember Graphite, **When** the main window shows, **Then** its ground, panel,
+ raised and text tones and its accent are the Ember Graphite values of release 0.52.1.
+2. **Given** Ember Paper, **Then** they are the Ember Paper values of 0.52.1.
+ *Exception for 1 and 2*: a value nudged to meet the readability minimum (FR-013),
+ which is listed in the design docs.
+3. **Given** an Ember theme, **When** any view is compared with the Studio theme of the
+ same kind (dark or light), **Then** sizes,
+ radii, spacing, type and which elements carry the accent are identical. Only the
+ colours differ.
+
+---
+
+### User Story 5 - Themes as data, ready for user themes later (Priority: P3)
+
+A contributor adds a new built-in theme by writing one complete theme definition: a
+name, its kind (dark or light), and a value for every colour token. Nothing else in the app changes.
+If they leave out a token, the automated check names the missing token before the change
+can ship. This is the groundwork a later theme editor or theme import will use. That
+editor is **not** part of this feature.
+
+**Why this priority**: The user asked for themes "designed so user-editable themes can
+follow". This story keeps that path open at low cost now, without building the editor.
+
+**Independent Test**: Add a throwaway theme definition in a test build. Confirm it shows
+in Preferences and applies fully. Remove one token and confirm the check fails and names
+it.
+
+**Acceptance Scenarios**:
+
+1. **Given** a new complete theme definition, **When** the app runs, **Then** the theme
+ appears in the Preferences list and applies like the built-in ones, with no other code
+ or view changes.
+2. **Given** a theme definition that lacks a token or has an invalid colour, **When** the
+ automated check runs, **Then** it fails and names the theme and the token.
+
+---
+
+### Edge Cases
+
+- **Stored theme no longer exists** (renamed or removed in a later version, or a
+ hand-edited settings file): Nota falls back to Studio Dark. For a per-mode choice in
+ follow system, it falls back to Studio Dark or Studio Light for that mode. It does not
+ crash or show an error dialog.
+- **Per-mode choice of the wrong kind** (e.g. a hand-edited file puts a light theme as
+ the dark-mode choice): treated as unknown, and the same fallback applies.
+- **OS reports no appearance** (platforms or sessions without a dark/light signal):
+ follow system uses the light-mode theme, as the platform default.
+- **Theme changed while a popup, menu, tooltip or modal is open**: the open surface
+ recolours too, or closes cleanly. No half-recoloured popup stays on screen.
+- **Theme changed during playback or recording**: audio is not interrupted and no
+ dropout is attributable to the switch (the switch is UI-only).
+- **Colours derived from tokens** (washes, selection tints, shades of track colours, ink
+ computed for contrast on a fill, one-off device hues mapped onto roles): these follow
+ the active theme, not Studio's values.
+- **Stored per-item colours** (e.g. a custom tag or device hue saved in a project): shown
+ through the same theme mapping as today, and never rewritten in the file.
+- **Secondary windows** (Preferences, export, plugin windows' Nota chrome, the
+ connect-phone view, the welcome screen): all follow the theme, including windows opened
+ after the switch.
+- **Kind and native chrome**: the operating system's own window parts (title bar on
+ some platforms, scroll bars, native dialogs) follow the active theme's kind. A dark
+ theme gets dark native chrome.
+
+## Requirements *(mandatory)*
+
+### Functional Requirements
+
+**Choosing a theme**
+
+- **FR-001**: Preferences → Appearance MUST offer a **colour theme** choice, mode first:
+ **Dark**, **Light** or **Follow system**, over the dark and the light themes by name.
+ Both kinds always show, so changing mode never moves the page; the mode decides which
+ theme is chosen (one per kind while following the system).
+- **FR-002**: Each theme MUST be shown with a preview of that theme's colours (at least
+ ground, panel, primary text and accent), drawn as a miniature Nota window. The active
+ theme MUST be visibly marked as chosen, following Studio's selected-option treatment.
+- **FR-003**: Choosing a theme MUST recolour every open window and every colour drawn by
+ the app (controls, custom-drawn views, graphs, meters, waveforms, track colours,
+ shadows) right away, without a restart, and without changing any other state.
+- **FR-004**: With **follow system** on, the user MUST be able to choose one theme for
+ the OS's dark mode and one for its light mode. Each choice offers only themes of the
+ matching kind. Nota MUST switch between them live when the OS appearance changes.
+- **FR-005**: Choosing a single theme MUST turn follow system off. The two per-mode
+ choices MUST be kept, so turning follow system on again restores them.
+- **FR-006**: The appearance setting (single theme, or follow system with its dark-mode
+ and light-mode choices) MUST be remembered across launches. Nota MUST start in the
+ right theme without first showing another.
+- **FR-007**: Settings from before this feature MUST map across: Dark → Studio Dark,
+ Light → Studio Light, System → follow system with Studio Dark and Studio Light. If no
+ setting is stored, Nota MUST use Studio Dark. An unknown or wrong-kind stored theme MUST
+ fall back to the Studio theme of the needed kind.
+
+**What a theme is**
+
+- **FR-008**: A colour theme MUST consist of a unique identifier, a display name, a kind
+ (**dark** or **light**), and a value for **every** colour token. The colour tokens are
+ the full set the design language defines, including the nine track colour slots and
+ the return and master colours, semantic colours
+ (mute, solo, arm/record, warning, success) and shadow colours.
+- **FR-009**: A theme's kind MUST decide which family the operating system's native
+ chrome uses (dark or light) and which list it appears in for follow system.
+- **FR-010**: A theme MUST NOT change anything except colour: geometry, spacing, radii,
+ type, icons, layout, which elements carry the accent, and all behaviour stay those of
+ the Studio design language.
+- **FR-011**: Colours that the app derives from tokens (tints, shades, contrast-picked
+ ink, mappings of stored one-off hues onto roles) MUST be derived from the **active**
+ theme's values.
+- **FR-012**: Built-in themes MUST be defined in one place per theme, as data in the same
+ complete form a future user-supplied theme would take. Adding a built-in theme MUST
+ require no change outside its own definition and the list of built-ins.
+
+**Built-in themes**
+
+- **FR-013**: Nota MUST ship these four built-in themes:
+ - **Studio Dark** and **Studio Light**: today's dark and light colours, unchanged.
+ Studio Dark is the default.
+ - **Ember Graphite** (dark) and **Ember Paper** (light): the pre-Studio Ember colours,
+ mapped onto today's token set. For tokens that Studio added and Ember never had
+ (seam, rule, faint text, mute, solo, viz ink, viz grid, the inset surface), the
+ values are derived in Ember's palette by the same roles Studio uses. Any Ember value
+ that fails FR-014 is moved the smallest step that passes (same hue, lightness only
+ where possible). All other Ember values stay exactly as released.
+- **FR-014**: Every built-in theme MUST meet the contrast minimums the design language
+ sets (≥ 4.5:1 for text on its surface, ≥ 3:1 for glyphs and state fills). Each MUST
+ also keep the nine track colours and the mute / solo / arm colours distinguishable
+ from each other and from the accent.
+
+**Guarding quality**
+
+- **FR-015**: The automated design check MUST verify, for every built-in theme, that
+ every token has a valid value, that the contrast minimums of FR-014
+ hold, and that a theme's preview colours come from that theme. On failure it MUST name
+ the theme and the token.
+- **FR-016**: The existing Studio checks (no Ember value in Studio's colours, neutral
+ resting values, and the others) MUST keep applying to both Studio themes. Checks about
+ structure (radii, type, shadows only on overlays, no tracked caps) MUST apply
+ regardless of theme. The Ember themes' colour values are exempt from the "no Ember value" rule
+ and from nothing else.
+
+**Docs**
+
+- **FR-017**: The design documentation MUST describe colour themes: what a theme
+ contains, the built-in themes with their token values, follow system, and how to add a
+ theme. It MUST list every Ember value that was adjusted from 0.52.1, with the old value,
+ the new value and the contrast pairing it failed. The
+ changelog and feature list MUST record the new Preferences option.
+
+### Key Entities
+
+- **Colour theme**: an identifier (stable, used in settings), a display name, a kind
+ (dark or light), and one value per colour token. The built-in themes are Studio Dark,
+ Studio Light, Ember Graphite and Ember Paper. Later, user themes take the same
+ shape.
+- **Colour token**: a named colour role in the design language (e.g. ground, panel, seam,
+ primary text, accent, mute, track hue 3, popover shadow colour). The set of tokens is
+ fixed by the design language; themes only supply values.
+- **Appearance setting**: either *one chosen theme*, or *follow system* with a dark-mode
+ theme and a light-mode theme. All three theme identifiers are stored, so switching
+ modes loses no choice. It replaces the old Dark / Light / System value and is
+ migrated from it (FR-007).
+
+## Success Criteria *(mandatory)*
+
+### Measurable Outcomes
+
+- **SC-001**: A user can change the colour theme from Preferences in 2 interactions
+ (open Appearance, pick a theme), and every open window shows the new colours within
+ 0.5 s of the click.
+- **SC-002**: For 100% of built-in themes (at least 4), the
+ automated check passes with no missing token, invalid value or contrast failure.
+- **SC-003**: In a side-by-side screenshot review of the 010 screen set, Studio Dark and
+ Studio Light screenshots after this feature are indistinguishable from those before it.
+- **SC-004**: In the same review under the Ember themes, zero elements differ from their Studio
+ counterpart in size, position, radius or type. Only colour differs.
+- **SC-005**: Switching theme during playback causes no audible dropout across 20
+ switches.
+- **SC-006**: Adding a further built-in theme in a test build touches only that theme's
+ definition and the built-in list. No view or control code changes.
+- **SC-007**: After relaunch, the stored theme is in effect on the first frame in 100%
+ of launches, including follow system in either OS mode.
+- **SC-008**: With follow system on, Nota matches an OS appearance change within 1 s,
+ in both directions, in 100% of 10 flips.
+
+## Assumptions
+
+- **Theme = one fixed look (clarified).** Each theme is dark or light. Follow system pairs
+ a dark-mode theme with a light-mode one. So a user can mix families, e.g. Ember Paper
+ by day and Studio Dark by night.
+- **User-editable and importable themes are out of scope.** That includes a theme editor,
+ import/export of theme files, and per-project themes. FR-012 and US5 keep the data
+ shape ready for them.
+- **Four built-in themes** (Studio Dark/Light, Ember Graphite/Paper) are enough to ship. More, e.g. a high-contrast
+ theme, can be added later per FR-012 without a new spec.
+- **Track colours are themed (clarified).** Projects store track colours as palette roles, not raw
+ colours, so a theme can give each role its own hue without touching project files.
+- **Ember values** come from the last pre-Studio release (0.52.1) palette. Studio-only
+ tokens get Ember-palette values by Studio's derivation rules (e.g. seam = Ember's
+ gutter tone, rule = Ember's strong border).
+- **Settings are per machine**, like the existing appearance setting. They are not stored
+ in projects.
+- **The phone remote's web page** keeps its own look. Only the in-app connect-phone view
+ is themed.
+- **Depends on 010** being merged first, or this branch carrying it.
+
+## Nota Compliance Checklist *(review before implementation; re-check in tasks.md)*
+
+- [x] Every new source file will carry the AGPL-3.0-only SPDX header (two lines, see CONTRIBUTING.md)
+- [x] No new dependency
+- [x] Audio-thread impact considered: UI-only change; no engine or audio-thread involvement
+- [x] Managed/native crossings unchanged; no JUCE outside `pluginhost/`
+- [x] Smoke-test impact assessed: the design-token check is extended per FR-015/FR-016; no engine behaviour change
+- [x] User-visible change → `CHANGELOG.md` `[Unreleased]` entry and FEATURES.md planned (FR-017)
+- [x] UI change → follows `DESIGN.md` (Studio design language); themes vary colour only (FR-010)
diff --git a/specs/011-colour-themes/tasks.md b/specs/011-colour-themes/tasks.md
new file mode 100644
index 00000000..fda27075
--- /dev/null
+++ b/specs/011-colour-themes/tasks.md
@@ -0,0 +1,250 @@
+---
+
+description: "Task list for selectable colour themes"
+---
+
+# Tasks: Selectable Colour Themes
+
+**Input**: Design documents from `/specs/011-colour-themes/`
+
+**Prerequisites**: plan.md, spec.md, research.md, data-model.md, contracts/theme-file.md, contracts/ui-contract.md, quickstart.md
+
+**Tests**: The spec requires automated checks (FR-015, FR-016, US5/AC2), so the smoke-test
+tasks are part of the work, not optional. They extend the existing gate
+(`tests/Nota.SmokeTest`); no new test project.
+
+**Organization**: grouped by user story. Paths under `src/managed/Nota.App/` are written
+`App/`, `src/managed/Nota.Application/` as `Application/`, and `tests/Nota.SmokeTest/` as
+`Smoke/`.
+
+## Format: `[ID] [P?] [Story] Description`
+
+- **[P]**: Can run in parallel (different files, no dependencies on incomplete tasks)
+- **[Story]**: Which user story the task belongs to (US1–US5)
+
+---
+
+## Phase 1: Setup
+
+**Purpose**: A working build and a Studio reference to diff against.
+
+- [X] T001 Build `011-colour-themes` with `scripts/build-linux.sh` (PulseAudio null sink, Xvfb) and record the smoke-test result (same two environmental failures as 010 expected: "Consort stress", palette keystroke timing) in `/tmp` (not committed)
+- [X] T002 Capture the Studio reference screenshot set (arrangement, mixer, session, a device card, browser, a context menu, Preferences → Appearance, command palette, export dialog) in Dark and Light under Xvfb, kept outside the repo, for the SC-003 pixel diff
+
+---
+
+## Phase 2: Foundational (blocking)
+
+**Purpose**: Colour gets one home (research R1–R3, R6). After this phase Studio must
+render pixel-identical to T002, and nothing user-visible changes yet.
+
+- [X] T003 Write a scratch generator (outside the repo, `/tmp/claude-0/scripts/themes-gen.py`) that emits `App/Theme/Themes/studio-dark.json` and `studio-light.json` from the current `T("#dark","#light")` pairs in `App/Theme/NotaPalette.cs` (85 named slots plus `Track1..9`, `ReturnA`, `ReturnB`), the `Shadow.*` colours and the `SystemAccentColor*` ramp in `App/Theme/NotaTheme.axaml`, as tokens `ShadowBevel`, `ShadowPopover`, `ShadowModal`, `SystemAccent`, `SystemAccentLight1..3` and `SystemAccentDark1..3`. Shape per contracts/theme-file.md: `formatVersion` 1, `id`, `name`, `kind`, `colors` in catalogue order; 106 tokens
+- [X] T004 Generate and commit `App/Theme/Themes/studio-dark.json` and `App/Theme/Themes/studio-light.json` with T003, and add `<EmbeddedResource Include="Theme/Themes/*.json" />` to `App/Nota.App.csproj`
+- [X] T005 Create `App/Theme/NotaColourTheme.cs` (SPDX header). It holds:
+ - `sealed record NotaColourTheme(string Id, string Name, NotaThemeKind Kind, IReadOnlyDictionary<string, Color> Colors)`;
+ - `enum NotaThemeKind { Dark, Light }`;
+ - `NotaThemes.BuiltIn`, the ordered list loaded from the embedded JSON via `System.Text.Json`;
+ - validation of F1–F6. A failing file is left out and logged, never thrown to the UI;
+ - `NotaThemes.Find(id)` and `NotaThemes.OfKind(kind)`.
+- [X] T006 Rework `App/Theme/NotaPalette.cs` to declare every slot by token name:
+ - `T(nameof(BgApp))`, plus `"Track1".."Track9"`, `"ReturnA"`, `"ReturnB"`; keep every field name, its brush identity and the role comments.
+ - Replace `Apply(NotaThemeVariant)` with `Apply(NotaColourTheme)`. It sets each slot from `theme.Colors[name]`, then re-runs washes, gradients, track/return arrays and derivations as today.
+ - Replace `NotaThemeVariant` with `NotaThemeKind` throughout, including `Ink()`: dark kind uses the hex, light kind uses the derived or pinned value.
+ - Add `ColorIn(SolidColorBrush slot, NotaColourTheme theme)`.
+ - Start in `studio-dark`.
+- [X] T007 Extend `KeyMap` in `App/Theme/NotaPalette.cs` to every `Brush.*` key the XAML uses (research R6):
+ - add the text inks, `Track1..9`, `ReturnA/B`, `Master` and the aliases `ChromeBg`, `Hairline` and `SurfaceSelected`;
+ - add `SurfaceHoverClear = Wash(SurfaceHover, 0x00)` and `DangerSubtle = Wash(Danger, 0x33)`;
+ - expose `NotaPalette.AllKeys` for publishing.
+- [X] T008 In `App/Theme/NotaThemeService.cs`, add `Publish()`, called once at startup: put each `KeyMap` brush into `Application.Current.Resources` under its `Brush.*` key. Add `ApplyStructural(theme)`, which on every switch sets:
+ - `Shadow.Raised` (inset bevel `ShadowBevel`);
+ - `Shadow.Sunken` (inset ring `Rule`);
+ - `Shadow.Popover` and `Shadow.Modal` (ring `Seam` + drop `ShadowPopover`/`ShadowModal`, the geometry of data-model 010 § Elevation);
+ - the seven `SystemAccentColor*` `Color` resources.
+- [X] T009 Remove every `SolidColorBrush`, `Color` and `BoxShadows` entry from the `Dark` and `Light` `ThemeDictionaries` in `App/Theme/NotaTheme.axaml`. Drop the empty dictionaries. Rewrite the header comment: colour lives in `Theme/Themes/*.json`, slot brushes are published by `NotaThemeService`, and views keep using `{DynamicResource Brush.*}`. Then grep the `.axaml` files for any `DynamicResource` key that no longer resolves (`Color` vs brush) and fix it.
+- [X] T010 Wire startup in `App/App.axaml.cs`: `NotaThemeService.Publish()`, then apply `studio-dark` or `studio-light` from the legacy `Settings.Theme` (temporary until US1/US2), before the first window as today.
+- [X] T011 Update `Smoke/DesignTokenCheck.cs` `Run`. Replace the "XAML key exists in both dictionaries / slot equals XAML pair" checks with two checks: every `Brush.*` key referenced in `App/**/*.axaml|*.cs` is a `KeyMap` key, and every `T(nameof(X))` slot name is a catalogue token. Keep `RunStudio`, pointed at the Studio theme files.
+- [X] T012 One-time parity proof, scratch and not a permanent check: have the T003 generator diff `studio-*.json` against the 010 pairs read with `git show 010-studio-visual-style:…`. Expect 0 differences in 106 tokens × 2. Record the result in the PR description.
+- [X] T013 Build and run the smoke test (`/tmp/claude-0/scripts/check.sh`). Retake the T002 set and pixel-diff it against T002 with ImageMagick `compare -metric AE`. Expect 0 differing pixels in all shots (SC-003). Fix any drift before going on.
+
+**Checkpoint**: one source of colour; Studio unchanged; checks green.
+
+---
+
+## Phase 3: User Story 3 — Built-in themes that hold up everywhere (Priority: P1)
+
+**Goal**: the theme checks exist before more themes do, so every later theme lands
+against the bar (FR-014, FR-015, contracts/ui-contract.md § T3).
+
+**Independent Test**: `-- design: themes --` passes for both Studio themes. A scratch
+copy with a token removed or a pairing broken fails and names the theme and token.
+
+- [X] T014 [US3] Add `RunThemes()` to `Smoke/DesignTokenCheck.cs`. For each `App/Theme/Themes/*.json` it checks:
+ - F1–F6 of contracts/theme-file.md, with the catalogue derived from `NotaPalette.cs` plus the elevation and `SystemAccent*` tokens;
+ - the T3.1–T3.8 pairings: WCAG contrast; ΔE76 in Lab; derived ink = `ReadableInkOn`'s rule, dark `#17181A` or white;
+ - F8 (no Ember-era value) for `studio-*` only, reusing `RunStudio`'s Ember list.
+
+ Failures name theme, token or pairing, and the measured value.
+- [X] T015 [US3] Add the `-- design: themes --` section to `Smoke/Program.cs`, calling `RunThemes()`
+- [X] T016 [US3] Prove the negative path: a scratch run with a token deleted from a temporary copy of `studio-light.json`, and one with `TextMuted` set to the ground colour. Each must fail and name the theme and token. Revert, and record the output in the PR description, not the repo.
+- [X] T017 [US3] Confirm both Studio themes pass T3 unchanged (research R7 floors). If one doesn't, the floor table is wrong, not Studio: correct contracts/ui-contract.md § T3 and research.md R7 with the measured value and a note.
+
+**Checkpoint**: quality bar enforced for any theme.
+
+---
+
+## Phase 4: User Story 1 — Pick a colour theme (Priority: P1) 🎯 MVP
+
+**Goal**: Preferences lists themes. Picking one recolours everything live and survives a
+restart. Old settings migrate.
+
+**Independent Test**: quickstart.md §2 and §5. Requires a second theme to pick: until
+US4 lands, use Studio Dark ↔ Studio Light, which already shows the full path.
+
+- [X] T018 [P] [US1] Add `ColourTheme` (string, default `""`), `SystemDarkTheme` (default `"studio-dark"`) and `SystemLightTheme` (default `"studio-light"`) to `Application/Settings.cs` with doc comments. Keep `Theme` (`AppTheme`) and document it as legacy: written in step, read only for migration.
+- [X] T019 [P] [US1] Create `Application/Appearance.cs` (SPDX header), a pure resolver per data-model.md § Resolution:
+ - `ThemeIds` constants (`StudioDark`, `StudioLight`, `EmberGraphite`, `EmberPaper`, `System = "system"`);
+ - `record AppearanceChoice(bool FollowSystem, string Single, string Dark, string Light)`;
+ - `Appearance.Resolve(Settings, IReadOnlyDictionary<string, bool /*isDark*/> known)`, which migrates when `ColourTheme == ""` and falls back for unknown or wrong-kind ids;
+ - `Appearance.Store(Settings, AppearanceChoice, bool activeIsDark)`, which also writes the legacy `Theme` in step.
+- [X] T020 [US1] Add a `-- design: appearance --` section to `Smoke/Program.cs` covering every row of data-model.md § Resolution:
+ - legacy Dark, Light and System;
+ - an empty file;
+ - an unknown single id;
+ - an unknown dark-mode id and a wrong-kind light-mode id;
+ - a round trip through `Store`, checking that the legacy `Theme` is written.
+- [X] T021 [US1] Rework `App/Theme/NotaThemeService.cs`:
+ - `Set(AppearanceChoice)` resolves the active theme, sets `RequestedThemeVariant` from its kind, calls `NotaPalette.Apply(theme)` and `ApplyStructural(theme)`, then repaints;
+ - `Apply(themeId)` does the single-theme path;
+ - keep `RepaintEverything`, and extend the walk to open popup roots if T025 shows a stale popup.
+- [X] T022 [US1] Startup in `App/App.axaml.cs`: resolve with `Appearance.Resolve(settings, NotaThemes.BuiltIn → kinds)` and call `NotaThemeService.Set(...)` before the first window. This replaces T010's temporary call.
+- [X] T023 [US1] Replace `ThemePicker()` and `ThemeSwatch` in `App/PreferencesWindow.cs` with a **Colour theme** list per contracts/ui-contract.md T1.1, T1.2, T1.5 and T1.6:
+ - one 26 px row per `NotaThemes.BuiltIn` entry: a preview chip of four 10×10 squares (`BgApp`, `Panel`, `TextPrimary`, `Accent` read via `ColorIn(slot, theme)`), the name, and the kind in `TextMuted`;
+ - Studio's selected-row treatment for the active row;
+ - on click, `Appearance.Store`, save, then `NotaThemeService.Set`.
+- [X] T024 [US1] Update the Appearance section's label and help text in `App/PreferencesWindow.cs` to sentence case, per Studio: "Colour theme", plus a one-line hint.
+- [X] T025 [US1] Verify US1 per quickstart.md §2 and §5 under Xvfb:
+ - switch Studio Dark ↔ Studio Light with a context menu and a tooltip open, and during playback;
+ - relaunch, and confirm no first frame in the wrong theme by screenshotting at the earliest window map;
+ - migrate from `{"Theme": 1}` and from `{"Theme": 2}`.
+
+**Checkpoint**: MVP: themes selectable and persisted (with the two Studio themes).
+
+---
+
+## Phase 5: User Story 2 — Follow the system with a theme for each mode (Priority: P1)
+
+**Goal**: follow system with a chosen theme per OS mode (FR-004, FR-005).
+
+**Independent Test**: quickstart.md §3.
+
+- [X] T026 [US2] In `App/Theme/NotaThemeService.cs`, follow mode sets `RequestedThemeVariant = Default`. On `ActualThemeVariantChanged` it applies `choice.Dark` or `choice.Light`. When there is no OS signal, Avalonia reports Light and the light-mode theme applies.
+- [X] T027 [US2] Add a **Follow system** row under the list in `App/PreferencesWindow.cs` (contracts/ui-contract.md T1.3–T1.4):
+ - same selected treatment as the list rows; no list row is selected while it is on;
+ - while on, it shows **In dark mode** and **In light mode** drop-downs listing `NotaThemes.OfKind(Dark/Light)` with the preview chip;
+ - picking a list row turns follow off and keeps both per-mode ids.
+- [X] T028 [US2] Verify US2 per quickstart.md §3: *(Verified on macOS by the user, 2026-10-13: Follow system switches immediately when the OS appearance flips.)*
+ - flip the variant by forcing `ActualThemeVariant` via the platform setting available under Xvfb, or a debug hook if none, and record which was used;
+ - relaunch in follow mode;
+ - the per-mode ids survive switching to a single theme and back.
+
+**Checkpoint**: Dark / Light / System parity with today, plus per-mode choice.
+
+---
+
+## Phase 6: User Story 4 — Ember comes back as a colour set (Priority: P2)
+
+**Goal**: Ember Graphite and Ember Paper, faithful to 0.52.1 except for documented
+readability nudges (FR-013, contracts/ui-contract.md T4).
+
+**Independent Test**: both pass `-- design: themes --`. Screenshots overlay the Studio
+shots of the same kind with identical geometry (SC-004).
+
+- [X] T029 [US4] Extend the scratch generator (T003) to emit `App/Theme/Themes/ember-graphite.json` and `ember-paper.json`:
+ - every token present in 0.52.1 is taken by slot name from `git show f37f51e:src/managed/Nota.App/Theme/NotaPalette.cs` (and `NotaTheme.axaml` for `SystemAccent*` and the `Shadow.Raised` bevel);
+ - Studio-only tokens are derived per research.md R8;
+ - the `SystemAccent*` ramp is computed by the R3 rule.
+- [X] T030 [US4] Run `RunThemes()` on the generated Ember files and list every T3 failure. Then nudge each failing token per research R8 (same hue, HSL lightness in 1 % steps, smallest step that passes) in the generator, not by hand. Iterate until both pass, then commit the two JSON files.
+- [X] T031 [US4] Have the generator also print the nudge table: theme, token, 0.52.1 value → shipped value, failing pairing and ratio before → after. Keep it for T035.
+- [X] T032 [US4] Screenshot the T002 set in Ember Graphite and Ember Paper. Overlay each on the Studio shot of the same kind, comparing edges: `compare` on an edge-detected pair, or a visual check of a 50 % blend. Confirm no element moved or resized (SC-004). Check that mute, solo and arm, meters and track colours read correctly.
+
+**Checkpoint**: four built-in themes, all passing.
+
+---
+
+## Phase 7: User Story 5 — Themes as data (Priority: P3)
+
+**Goal**: adding a theme needs only its file and the built-in list (FR-012, SC-006).
+
+**Independent Test**: quickstart.md §1 negative check, plus a throwaway fifth theme.
+
+- [X] T033 [US5] Make the built-in list data-driven: `NotaThemes.BuiltIn` orders by a `BuiltInOrder` array of ids in `App/Theme/NotaColourTheme.cs`, the only line a new built-in adds besides its file. Confirm no view or control code names a theme id except `Appearance` defaults and that array, using a grep in `RunThemes`.
+- [X] T034 [US5] Throwaway check, not committed: add a copy of `studio-dark.json` as `test-theme.json` with a new id and name, and confirm it appears in Preferences and applies. Remove one token and confirm the smoke test fails and names it. Revert, and record in the PR description.
+
+---
+
+## Phase 8: Polish & Cross-Cutting
+
+- [X] T035 [P] DESIGN.md: add a § Colour themes section covering what a theme is, the token catalogue by group with roles, the four built-ins, follow system, how to add a theme (file + `BuiltInOrder`), the T3 readability table, and the R7 Studio Light finding. Include the Ember nudge table from T031. Update the token tables to say values live in `Theme/Themes/*.json`.
+- [X] T036 [P] `scripts/design-html.py`: read the palette from `src/managed/Nota.App/Theme/Themes/*.json` instead of `NotaTheme.axaml`, and render one palette section per built-in theme. Regenerate `DESIGN.html`.
+- [X] T037 [P] `.claude/skills/nota-design/SKILL.md`: update where colour lives (theme files, not XAML), how to add a token (`NotaPalette` slot + every theme file + `KeyMap` if XAML uses it), and how to add a theme.
+- [X] T038 [P] `CHANGELOG.md` `[Unreleased]` → Added: colour themes (Studio Dark/Light, Ember Graphite/Paper) and follow system with a theme per mode. Changed: the Appearance setting replaces Dark / Light / System, and existing settings carry over.
+- [X] T039 [P] Run the nota-features skill to update `FEATURES.md` (Preferences → Appearance: colour themes, follow system)
+- [ ] T040 nota-docs: the docs repo (`../nota-docs`) isn't available in this environment, the same as 010 T069. Note the affected page (Preferences → Appearance) in the PR description for a follow-up.
+- [X] T041 Final gate: full `scripts/build-linux.sh`. Only the two known environmental failures are allowed, and both must be shown to fail identically on the base branch. Retake the SC-003 Studio diff (0 px). Then run `/speckit-converge`.
+
+---
+
+## Dependencies & Execution Order
+
+- **Setup (1)** → **Foundational (2)** blocks everything.
+- **US3 (3)** comes next, so every later theme lands against the checks.
+- **US1 (4)** depends on Foundational and US3. It is the MVP.
+- **US2 (5)** depends on US1 (service + Preferences).
+- **US4 (6)** depends on US3 (checks) and Foundational (format). It can run in parallel with US1 and US2, since it touches only the generator and the JSON files.
+- **US5 (7)** depends on US1 (list in Preferences).
+- **Polish (8)** after US4. T035 needs T031's table.
+
+Within phases:
+- T018 ∥ T019 (different files).
+- T035–T039 are mutually parallel.
+- Everything touching `NotaPalette.cs`, `NotaThemeService.cs` or `PreferencesWindow.cs` is sequential.
+
+## Parallel Example: after Phase 3
+
+```text
+Stream A (US1 → US2): T018 ∥ T019 → T020 → T021 → T022 → T023 → T024 → T025 → T026 → T027 → T028
+Stream B (US4): T029 → T030 → T031 → T032
+```
+
+## Implementation Strategy
+
+1. **MVP**: Phases 1–4 give themes in Preferences with live switching, persistence and migration, using the two Studio themes. Studio is pixel-identical.
+2. **Parity**: Phase 5 restores System, now with per-mode choice.
+3. **The point of it**: Phase 6 brings Ember back.
+4. **Groundwork and docs**: Phases 7–8, then `/speckit-converge` before marking the PR ready.
+
+## Notes
+
+- The theme JSON files are generated once by a scratch script outside the repo, as in 006. After that the files are the source of truth. The Ember derivations (R8) and every nudge (DESIGN.md table) are documented, so any value can be traced without the script.
+- Keep each commit buildable. Commit per phase checkpoint.
+
+---
+
+## Phase 9: Convergence
+
+- [X] T042 Add a `RunThemes` guard that the Preferences theme chip draws each theme's own colours (`NotaPalette.ColorIn(slot, _theme)` in `App/PreferencesWindow.cs` `ThemeChip`), never the live slot colour, per FR-015 (partial)
+- [ ] T043 With follow system on, open a context menu and a tooltip, then flip the OS appearance. Confirm the open popups recolour with the windows, on a desktop with an appearance signal (the macOS build), together with T028, per spec Edge Cases / contracts T2.1 (partial)
+
+## Phase 10: Appearance page, mode first (revision)
+
+The first picker showed themes as list rows with four 10 px squares; it read as a font
+menu and hid Follow system's pairing behind drop-downs. Revised after review: mode first,
+then cards.
+
+- [X] T044 `Nota.Application/Appearance.cs`: `AppearanceMode`, `ModeOf`, `WithMode`, `WithPick` — the page's rules, pure, with `RunAppearance` checks (remembered per-mode pick, follow-system picks set one mode)
+- [X] T045 `App/PreferencesWindow.cs`: replace the list and drop-downs with the Dark · Light · Follow system segmented control and a `ListBox.themes` row of cards per kind; `ThemePreview` draws a miniature window with `NotaPalette.ColorIn(slot, _theme)`; the label row is top-aligned (`TopRow`)
+- [X] T046 `Theme/NotaTheme.axaml`: `ListBox.themes` (no list chrome) and `Border.ThemeFrame` (2 px, seam / rule / accent by state); `RunThemes` guard now reads `ThemePreview`
+- [X] T047 Contract T1.1–T1.4, FR-001/FR-002, US1/US2 scenarios, CHANGELOG, FEATURES and DESIGN updated; screenshots in all four themes and in follow system
+- [X] T048 No layout shift: both rows always show (labels change text and ink, the mode only decides which cards are chosen), and shell `ToggleButton.seg` keeps its weight when checked so keys never change width (DESIGN.md rule 11); measured identical in every mode
+
diff --git a/specs/012-ui-polish/checklists/requirements.md b/specs/012-ui-polish/checklists/requirements.md
new file mode 100644
index 00000000..ae68c1a2
--- /dev/null
+++ b/specs/012-ui-polish/checklists/requirements.md
@@ -0,0 +1,36 @@
+# Specification Quality Checklist: UI Polish Pass
+
+**Purpose**: Validate specification completeness and quality before proceeding to planning
+**Created**: 2026-10-14
+**Feature**: [spec.md](../spec.md)
+
+## Content Quality
+
+- [x] No implementation details (languages, frameworks, APIs)
+- [x] Focused on user value and business needs
+- [x] Written for non-technical stakeholders
+- [x] All mandatory sections completed
+
+## Requirement Completeness
+
+- [x] No [NEEDS CLARIFICATION] markers remain
+- [x] Requirements are testable and unambiguous
+- [x] Success criteria are measurable
+- [x] Success criteria are technology-agnostic (no implementation details)
+- [x] All acceptance scenarios are defined
+- [x] Edge cases are identified
+- [x] Scope is clearly bounded
+- [x] Dependencies and assumptions identified
+
+## Feature Readiness
+
+- [x] All functional requirements have clear acceptance criteria
+- [x] User scenarios cover primary flows
+- [x] Feature meets measurable outcomes defined in Success Criteria
+- [x] No implementation details leak into specification
+
+## Notes
+
+- Every requirement traces to a finding in critique.md (F1–F12).
+- Open design choices are recorded as assumptions, not markers, for /speckit-clarify to confirm: how the arrangement header rows merge, whether the browser brand prefix goes, and the scope of the device-card header unification (built-ins and plugin cards).
+
diff --git a/specs/012-ui-polish/contracts/ui-contract.md b/specs/012-ui-polish/contracts/ui-contract.md
new file mode 100644
index 00000000..0746f1ca
--- /dev/null
+++ b/specs/012-ui-polish/contracts/ui-contract.md
@@ -0,0 +1,67 @@
+# UI Contract: UI Polish Pass
+
+Each line can be checked by eye on a screenshot or by an automated check. The Studio
+contract (010 C1–C6) and the theme contract (011 T1–T4) still hold.
+
+## P1 — Layout defects
+
+- **P1.1** Adding a track scrolls it fully into view. The scroll area and the pinned
+ return/master band meet on a 1 px `Seam`. Below the last track, the lane side is lane
+ colour and the header side is header colour.
+- **P1.2** At a 1200 × 800 window in Session view, every toolbar control is either visible
+ or listed in the toolbar's "⋯" overflow menu. The inspector can be toggled (the setting
+ is remembered), is 260 px wide, and covers no column header. When the content is wider
+ than the space, a scroll cue shows.
+- **P1.3** Opening Modular with tracks and no selection lists the tracks and selects the
+ first non-return track. An empty project shows "No tracks yet" in the sidebar. With no
+ graph to show, the canvas shows "Pick a track to see its signal graph".
+
+## P2 — Floating windows
+
+- **P2.1** The mixer window's width equals the width of its strips and master plus
+ padding, clamped between 560 px and the screen width. There is 0 px of dead space to the
+ right of the master.
+- **P2.2** Escape closes the mixer, the export window (as Cancel) and the command palette.
+- **P2.3** Window titles are in sentence case: "Mixer", "Export audio", "Edit tags",
+ "Connect phone"…
+
+## P3 — Labels
+
+- **P3.1** No all-caps or Title Case label in Nota's own UI, except data and proper names
+ (data-model § Label rules). For example, the palette headers read "Suggested ·
+ Arrangement", "Recent" and "Actions".
+- **P3.2** `RunLabels` fails, naming `file:line`, when such a label is reintroduced.
+
+## P4 — Device cards
+
+- **P4.1** Header order on every built-in and plugin card: name · preset · badges ·
+ power. The power slot is reserved on every card. On all cards, the preset picker's left
+ edge sits at the same x within 1 px for the same card width, and the power key's right
+ edge sits at the card edge minus the inset.
+- **P4.2** Sections inside built-in cards have no fill and no frame. Neighbouring sections
+ are divided by a 1 px `Rule`. In an edge-overlay diff, the position of every control,
+ graph and label is unchanged within 1 px. Graph windows and wells keep their frame.
+- **P4.3** Instrument Rack, the generic instrument card and the Sends card use the same
+ header as every other card.
+
+## P5 — Icons and the view switcher
+
+- **P5.1** Every icon is a `Glyph`. `RunIcons` finds 0 path geometry outside
+ `Controls/Glyph.cs`.
+- **P5.2** At 16 px, stroked icons draw 1.5 px lines, and below that, `max(1.2, …)`. Icons
+ in the rail, browser, Preferences, palette, history and player match in weight.
+- **P5.3** The view switcher is three 28 × 24 icon segments in the same place and order
+ (Arrangement, Session, Modular). The current view uses the accent fill. The tooltip and
+ the accessible name are the view name. It is at least 100 px narrower than before.
+
+## P6 — Chrome
+
+- **P6.1** Built-in browser rows show "Aurora", "Bass"… with no "Nota" prefix. The type tag
+ is one ink step quieter than today and still meets T3.3. Searching "nota aurora" and
+ "aurora" both find Aurora.
+- **P6.2** The add-device target is 28 px wide with a "+" glyph and a tooltip. It is dashed
+ (radius 3) only while a drag is over the chain. The same applies to the rack chain
+ target.
+- **P6.3** The mixer scale reads "+6, 0, −12, −48" with U+2212. Ranges follow the dash rule.
+ `RunNumbers` fails on a hyphen-minus before a digit in a view literal.
+- **P6.4** The arrangement header rows (Overview, Sections, Zoom/ruler) are unchanged.
diff --git a/specs/012-ui-polish/critique.md b/specs/012-ui-polish/critique.md
new file mode 100644
index 00000000..4eb8b121
--- /dev/null
+++ b/specs/012-ui-polish/critique.md
@@ -0,0 +1,47 @@
+# Screenshot critique: Studio Dark, 2026-10-14
+
+The input to this spec. These are 11 screens of the `011-colour-themes` build under Xvfb at
+1200 × 800:
+- arrangement with the device dock;
+- session;
+- modular;
+- the mixer overlay;
+- the browser context menu and preview;
+- the command palette;
+- the export dialog;
+- the Auto Filter card and the Drum Rack card.
+
+The screenshots are kept outside the repo. To reproduce them, see quickstart.md.
+
+## Overall
+
+The base is solid. The grey ladder, the seams and "orange only when live" read well, and
+the device cards (Auto Filter especially) are the strongest part of the app. What remains
+is leftovers and inconsistency rather than wrong direction:
+- labels still in all caps or title case;
+- overlays that don't read as overlays;
+- toolbars that crowd or overflow;
+- device-card headers that differ from card to card.
+
+## Findings
+
+| # | Area | Finding | Severity |
+|---|---|---|---|
+| F1 | Arrangement | After adding a Drum Rack track, its header was drawn in the gap above the returns, overlapping "Reverb". This is unconfirmed: it may be a relayout not yet finished when the shot was taken, or it may predate the restyle. | Critical, to confirm |
+| F2 | Session | The toolbar overflows: the position and tempo readouts are cut off at the right. The inspector covers the column header of the last visible track ("Delay"). | Moderate |
+| F3 | Modular | The "Tracks" list is empty while the project has four tracks and a master. Either a bug or a missing empty state. | Moderate |
+| F4 | Mixer, export | They open over the arrangement with no edge or shadow and read as part of the page. The mixer stops short on the right and leaves dead space. Neither has a header naming it. | Moderate |
+| F5 | Labels | All caps left over: the palette section header ("SUGGESTED · ARRANGEMENT"), the Drum Rack meta ("0 PADS · 0 CHOKE GROUPS", "CHOKE") and the mixer's "PAN". | Moderate |
+| F6 | Labels | Title case left over: "Add to Favorites", "Stop All Clips", "Capture Scene", "Session Rec" and "Live Freeze". | Minor |
+| F7 | Device cards | The header differs per card: Synth has S/L badges, Auto Filter a power key on the right, Drum Rack neither. The preset stepper sits in a different place on each. | Moderate |
+| F8 | Icons | `Glyph` shapes sit next to about 60 inline icon paths with their own stroke weights (left rail, browser, Preferences, command palette, history, preview player, Rhythm card). | Minor |
+| F9 | Arrangement | Three header rows (Overview, Sections, Zoom) come before the first track, and Zoom sits in the track-name column. | Minor, deferred (keep as is, per clarify) |
+| F10 | Browser | A muted "Nota" prefix starts every built-in row, so the same word repeats down the whole list. | Minor |
+| F11 | Device dock | The "Add device" drop zone fills most of an empty dock, and it is the only dashed element in the app. | Minor |
+| F12 | Numbers | The loop range is shown as "1.1 - 5.1" with a hyphen. The mixer scale may use hyphens where it needs minus signs. | Minor |
+
+## What works
+
+- Device cards: Auto Filter's graph, tabs and neutral resting values.
+- The command palette: clear structure, keyboard hints and a strong focus ring. It is the model for other overlays.
+- Settings → Appearance and the browser preview player are clean and calm.
diff --git a/specs/012-ui-polish/data-model.md b/specs/012-ui-polish/data-model.md
new file mode 100644
index 00000000..a3315332
--- /dev/null
+++ b/specs/012-ui-polish/data-model.md
@@ -0,0 +1,85 @@
+# Data Model: UI Polish Pass
+
+No project or preset format changes. The "data" here is the shape of a few shared UI
+contracts.
+
+## Icon (the shared set, `Controls/Glyph.cs`)
+
+| Field | Rule |
+|---|---|
+| Kind | A `GlyphKind` enum value. The only way to draw an icon (`RunIcons`). |
+| Grid | 16 units. Drawn from path data scaled from 16 to the requested size, never `Stretch.Uniform`. |
+| Style | **Stroked**: round caps and joins, stroke = `max(1.2, size × 1.5/16)`. **Filled**: transport shapes, OS marks, star, disclosure carets. |
+| Size | Any. The natural size is 16 unless the kind declares otherwise (transport keeps 11/10). |
+
+**New kinds** (R8):
+- Views: `Arrangement` (three horizontal lanes with clip blocks), `Session` (a 2×3 clip
+ grid), `Modular` (three nodes joined by cables).
+- Rail and pages: `Keyboard`, `Sliders`, `Folder`, `Downloads`, `Star`, `Bookmark`, `Doc`,
+ `Midi`, `Map`, `History`, `Sidebar`, `Options`, `Search`, `Gamepad`, `Phone`, `Plug`,
+ `Appearance`, `Library`.
+- Player and transport: `Loop`, `Speaker`, `SpeakerLow`, `SpeakerHigh`, `SpeakerMute`,
+ `Metronome`, `Follow`, `Snap`, `Automation`, `ChainLink`.
+- Palette kinds: `Action`, `Track`, `Device`, `Preset`, `Patch`.
+- OS marks (filled): `Apple`, `Windows`, `Linux`.
+
+Duplicates collapse into one kind: Star, Plug, Downloads, Options.
+
+## Device-card header (`BuildCardShell`)
+
+The slots run left to right, with fixed positions. The header is 22 px tall.
+
+| Slot | Content | Empty when |
+|---|---|---|
+| Name | The device name. The Compact variant drops the "Nota " prefix, as today. | never |
+| Preset | `DeviceCardKit.PresetPicker` (stepper and menu) | the device has no presets |
+| Badges | Subtitle badge (sentence case), voice count, `HeaderAccessory` / `HeaderExtra` (Learn, S/L size) | none |
+| Power | Bypass `SwitchTrack` | not bypassable (instruments). The slot is still reserved, so right edges align down a chain. |
+
+## Device-card section (`DeviceCardKit.Section`)
+
+| Field | Rule |
+|---|---|
+| Fill | None. It sits on the card surface. |
+| Edges | A 1 px `Rule` only on edges shared with a neighbour (`Top`, `Left`), chosen by the caller. |
+| Padding | Unchanged from the box it replaces, so content does not move. |
+| Not covered | Graph windows (`NotaGraph.Window`) and wells (`BgSunken` + `GraphBorder`) keep their own frame. |
+
+## Label rules (`RunLabels`)
+
+- **Label context**:
+ - C# assignments to `Text`, `Content`, `Header`, `Title` and `ToolTip.SetTip`;
+ - axaml attributes of the same names;
+ - `MenuItem` / `NativeMenuItem` headers;
+ - command titles in `CommandCatalog`;
+ - the first argument of local label builders (`Mono`, `SectionHead`, `Field`, `Caps`,
+ `DrumCap`, `Header`).
+- **Fails on**:
+ - **All caps**: two or more letters, no lower case, not entirely `NotaText.Fixed`
+ tokens, and not passed through `NotaText.Label`.
+ - **Title Case**: a capitalised word after the first one that isn't on the allow-list.
+- **Allow-list**:
+ - acronyms and units from `NotaText.Fixed`;
+ - view and panel names (Arrangement, Session, Modular, Mixer, Finder);
+ - "Nota …" product and device names;
+ - proper nouns.
+- **Skipped as data**:
+ - interpolated strings;
+ - preset tables;
+ - engine parameter display names (automation, MIDI-learn);
+ - scale and warp tables;
+ - sample device names.
+- **Ratchet**: a `file:line` allow-list with a reason for each entry. After this feature it
+ holds only data exemptions.
+
+## Settings
+
+| Field | Type | Default | Meaning |
+|---|---|---|---|
+| `SessionInspectorOpen` | bool | `true` | Whether the Session view's inspector column is shown (R2). |
+
+## Number setting (DESIGN.md § Numbers addition)
+
+- **Minus**: U+2212 everywhere a number is shown, including scale labels (`−12`).
+- **Ranges**: an en dash U+2013. Closed between plain numbers (`1–127`, `1.1–5.1`); spaced
+ when either endpoint contains a space (`20 Hz – 20 kHz`).
diff --git a/specs/012-ui-polish/plan.md b/specs/012-ui-polish/plan.md
new file mode 100644
index 00000000..a3569f3b
--- /dev/null
+++ b/specs/012-ui-polish/plan.md
@@ -0,0 +1,188 @@
+# Implementation Plan: UI Polish Pass
+
+**Branch**: `012-ui-polish` | **Date**: 2026-10-14 | **Spec**: [spec.md](spec.md)
+
+**Input**: Feature specification from `/specs/012-ui-polish/spec.md`
+
+## Summary
+
+This is a polish pass driven by a screenshot critique ([critique.md](critique.md)) and
+code research ([research.md](research.md)). There are six workstreams, each mapped to a
+user story. All are UI-only, and none changes a feature, shortcut, menu or saved format:
+
+1. **Defects (US1)**:
+ - **New track at the arrangement's bottom edge.** It isn't revealed and has no
+ boundary against the pinned returns. Add a seam, scroll the track into view, and
+ paint the lane side below the tracks in the lane colour (R1).
+ - **Session toolbar.** It has no overflow; it gets priority collapse and a "⋯" menu.
+ The inspector becomes collapsible and narrower (R2).
+ - **Modular sidebar.** It is never built when nothing is selected. Always refresh it,
+ auto-select a track, and add empty states (R3).
+2. **Floating windows (US2)**: the mixer sizes to its strips; Escape closes the mixer and
+ export; window titles are in sentence case. They stay windows: the critique's "no
+ edge" was the test display's missing window manager (R4).
+3. **Labels (US3)**:
+ - fix the all-caps and Title Case sources (palette search headers, Drum Rack, mixer,
+ session inspector, Preferences, native menu, command titles, window titles);
+ - route label builders through `NotaText.Label`;
+ - add the `RunLabels` check, starting as a shrinking ratchet (R5).
+4. **Device cards (US4)**:
+ - one header order in the shared `BuildCardShell` (name · preset · badges · power,
+ with a reserved power slot);
+ - move Instrument Rack, `SimpleCard` and Sends onto it (R6);
+ - add one `DeviceCardKit.Section`, which draws rule-divided sections instead of framed
+ boxes, and sweep about 90 helpers and inline boxes onto it (R7).
+5. **Icons (US5)**:
+ - extend `Glyph` into the single icon set (about 35 new kinds, including Arrangement,
+ Session and Modular);
+ - replace about 45 inline paths;
+ - make the view switcher three icon segments with tooltips;
+ - add the `RunIcons` check (R8).
+6. **Chrome (US6)**:
+ - drop the "Nota" prefix in browser rows and quieten the type tags;
+ - make the add-device target slim, dashed only while dragging;
+ - add minus signs on the mixer scale, the range-dash rule, and stronger number and
+ radius checks (R9);
+ - leave the arrangement header rows untouched (clarified).
+
+## Nota: Read Before Planning
+
+- **UI work** → [`DESIGN.md`](../../DESIGN.md) (Studio) and the `nota-design` skill.
+- **Anything** → [`CONTRIBUTING.md`](../../CONTRIBUTING.md): SPDX headers on new files,
+ no new dependency.
+
+## Technical Context
+
+**Language/Version**: C# / .NET 10 (managed app only).
+
+**Primary Dependencies**: Avalonia 12.0.3 (existing). No new dependency.
+
+**Storage**: `settings.json` gains one bool, `SessionInspectorOpen` (default true). No
+project-format change.
+
+**Audio-Thread Impact**: None. UI-only; nothing crosses the C ABI.
+
+**Testing**:
+- `tests/Nota.SmokeTest`:
+ - new `RunLabels` and `RunIcons` checks;
+ - `RunNumbers` gains hyphen-minus literals;
+ - `RunGeometry` gains `Rectangle.RadiusX`;
+ - `PaletteTests` expectations are updated for sentence-case headers.
+- Screenshots under Xvfb in all four themes:
+ - every built-in card, before and after, with an edge-overlay diff;
+ - the critique tour re-run.
+
+**Target Platform**: macOS 13+, Windows 10+, Linux, as today. Window chrome is verified
+on macOS (Xvfb has no window manager).
+
+**Project Type**: Desktop app (Avalonia).
+
+**Performance Goals**: no regression. Section and header changes remove elements rather
+than add them.
+
+**Constraints**:
+- Card frames (700 × 260 and the documented exceptions), section positions and content,
+ and arrangement row heights stay unchanged.
+- Arrangement header rows are untouched (FR-012).
+- Every theme stays within the readability bar.
+
+**Scale/Scope**:
+- 51 built-in cards plus the plugin card;
+- about 90 section helpers and inline boxes;
+- about 45 inline icons;
+- about 60 label literals;
+- about 20 files for defects and chrome.
+
+## Constitution Check
+
+*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
+
+| Principle | Status | Note |
+|---|---|---|
+| I. Real-time audio safety | ✅ N/A | UI-only. |
+| II. Boundary discipline | ✅ | No C ABI change. No JUCE. |
+| III. Licensing hygiene | ✅ | New files get the SPDX header. No dependency. Icons are drawn in-house (no icon font, per DESIGN.md). |
+| IV. Verification gate | ✅ | The smoke test is extended (labels, icons, numbers, geometry). Build scripts must pass. |
+| V. One logical change per PR | ⚠️ | Six workstreams in one feature. **Mitigation**: one commit per workstream, each buildable and screenshot-verified, so the PR can be split along those lines if the maintainer asks. Recorded in Complexity Tracking. |
+| VI. Docs in sync | ✅ | DESIGN.md (floating windows, header anatomy, sections, icon rule, range rule), the nota-design skill, CHANGELOG. FEATURES.md only where a described label changes (e.g. view switcher). nota-docs is noted as a follow-up (that repo is unavailable here). |
+| VII. Spec-first | ✅ | Spec plus 4 clarifications and plan findings; tasks next. |
+| VIII. Safety rules not weakened | ✅ | Design checks only get stricter. Allow-lists are data-only exemptions with reasons. |
+
+**Post-design re-check**: unchanged. The R4 correction removes the only item that would
+have changed behaviour (turning windows into overlays).
+
+## Project Structure
+
+### Documentation (this feature)
+
+```text
+specs/012-ui-polish/
+├── plan.md # this file
+├── critique.md # the input: findings F1–F12
+├── research.md # R1–R10
+├── data-model.md # icon set, card-header slots, label rules, settings
+├── quickstart.md # verification runs
+├── contracts/
+│ └── ui-contract.md # P1–P6 visual and behavioural contract
+└── tasks.md # /speckit-tasks
+```
+
+### Source Code (repository root)
+
+```text
+src/managed/
+├── Nota.Application/
+│ ├── Palette/PaletteSearch.cs # sentence-case group/suggested/recent headers
+│ ├── Palette/CommandCatalog.cs # command titles → sentence case
+│ └── Settings.cs # + SessionInspectorOpen
+└── Nota.App/
+ ├── ArrangementView.cs # footer seam, reveal new/selected track, lane backdrop (R1)
+ ├── SessionView.Toolbar.cs / SessionView.cs / SessionView.Inspector.cs # overflow, inspector collapse, labels (R2, R5)
+ ├── ModularView.cs, MainWindow.axaml.cs # sidebar refresh, auto-select, empty states (R3)
+ ├── MixerWindow.cs, MixerView.cs, ExportWindow.cs, NotaWindow.cs # size-to-content, Escape, titles, minus signs (R4, R9)
+ ├── CommandPaletteView.cs # header via NotaText.Label; icons → Glyph
+ ├── DeviceChainView.Shell.cs # header order + reserved power slot (R6)
+ ├── DeviceCardKit.cs # + Section(body, edges) (R7)
+ ├── DeviceCards/** # SectionBox/TabFrame/IslandBox → Section; inline boxes swept; Rack onto the shell
+ ├── Controls/Glyph.cs # + ~35 kinds incl. Arrangement/Session/Modular (R8)
+ ├── MainWindow.axaml # view switcher → icon segments; transport toggle icons → Glyph; menu labels
+ ├── BrowserView.cs, PreferencesWindow*.cs, HistoryView.cs, PreviewPlayer.cs, NotaIcons.cs # icons → Glyph; labels
+ ├── DeviceChainView.cs, RackCardView.cs # slim add-device target (R9)
+ └── Theme/NotaText.cs # Fixed list readable by the check (internal)
+
+tests/Nota.SmokeTest/
+├── DesignTokenCheck.cs # RunLabels, RunIcons; RunNumbers/RunGeometry extended
+├── PaletteTests.cs # header expectations
+└── Program.cs # "-- design: labels --", "-- design: icons --"
+
+DESIGN.md, DESIGN.html (regenerate), .claude/skills/nota-design/SKILL.md, CHANGELOG.md
+```
+
+**Structure Decision**: every change stays in the files that own the behaviour today. The
+only new shared pieces are `DeviceCardKit.Section` and the extended `Glyph` set. No new
+project or layer.
+
+## Order of work
+
+Each step is buildable, screenshot-verified and one commit:
+
+1. **Labels (US3)**: lowest risk, and it unblocks the `RunLabels` ratchet that guards
+ everything after it.
+2. **Defects (US1)**: F1 → F3 → F2.
+3. **Floating windows (US2).**
+4. **Icons (US5)**: extend `Glyph`, then replace by file, then the view switcher, then
+ `RunIcons`.
+5. **Card headers (US4a)**: shell order, then Rack, `SimpleCard` and Sends onto the shell.
+6. **Card sections (US4b)**:
+ - `DeviceCardKit.Section`, then helpers delegated, then inline boxes swept;
+ - batch by folder (instruments, effects, MIDI, racks), with a before/after edge diff
+ per card;
+ - largest diff, so it comes last.
+7. **Chrome (US6)**: browser prefix and tags, add-device target, numbers.
+8. **Docs, tour re-run, converge.**
+
+## Complexity Tracking
+
+| Violation | Why Needed | Simpler Alternative Rejected Because |
+|-----------|------------|-------------------------------------|
+| Six workstreams in one PR (Constitution V) | The critique is one coherent polish pass, and the user asked for it as one spec. The work shares one verification harness (the tour and the card diffs). | Six PRs would each need the same screenshot baseline and review context. Instead, one commit per workstream keeps it splittable on request. |
diff --git a/specs/012-ui-polish/quickstart.md b/specs/012-ui-polish/quickstart.md
new file mode 100644
index 00000000..cd353aa2
--- /dev/null
+++ b/specs/012-ui-polish/quickstart.md
@@ -0,0 +1,38 @@
+# Quickstart: verifying the UI polish pass
+
+## 1. Gate
+
+```bash
+scripts/build-linux.sh # or scripts/build.sh on macOS
+```
+
+Expect these smoke-test sections to pass: `-- design: labels --` and `-- design: icons --`
+(new), plus the extended numbers and geometry checks, `PaletteTests`, and every existing
+design, theme and appearance check. The only allowed failure is the known environmental
+one ("Consort stress"), and it must also fail on the base branch.
+
+## 2. Screenshot harness (Xvfb, 1200 × 800)
+
+- **Tour**: re-run the critique tour (`tour.sh <theme>`) in all four themes and check
+ every finding F1–F8 and F10–F12 against contracts/ui-contract.md (SC-001).
+- **Cards**: before and after every built-in card, with an edge-overlay diff:
+ `convert … -edge 1` for each, then compare. The control positions must match within
+ 1 px (P4.2).
+- **Defect runs**:
+ - add a track while the tracks fill the view, and check that the new one is fully
+ visible above a seam (P1.1);
+ - open Session at 1200 × 800 (P1.2);
+ - open a project, then switch to Modular with nothing selected (P1.3).
+
+## 3. Manual on macOS (window chrome)
+
+1. Open the mixer with 2, 5 and 12 tracks. The window fits its strips. Press Escape and
+ it closes.
+2. Open Export audio. The title bar reads "Export audio". Press Escape and it cancels.
+3. Hover the three view keys. Each tooltip shows the view name.
+
+## 4. Regression
+
+- Every FEATURES.md path and shortcut still works (SC-006). In particular, view switching
+ through the menu and the palette is unchanged.
+- Projects from before this feature open unchanged.
diff --git a/specs/012-ui-polish/research.md b/specs/012-ui-polish/research.md
new file mode 100644
index 00000000..54ab28b0
--- /dev/null
+++ b/specs/012-ui-polish/research.md
@@ -0,0 +1,279 @@
+# Research: UI Polish Pass
+
+Code research against `012-ui-polish`, which carries 010 and 007. Paths are under
+`src/managed/Nota.App/` unless they say otherwise. Each R maps to the critique findings
+(F#) and the user stories in the spec.
+
+## R1 — F1: a new track drawn over the returns (US1)
+
+**Structure** (`ArrangementView.cs:257-427`):
+- Normal tracks live in a vertical `ScrollViewer` (`_scroller`). Its content is an
+ absolute `Canvas` of headers (`RebuildHeaders`, `:1652`; each card is 64 px, placed at
+ `RowTop(i)`) plus the lanes.
+- Returns and Master live in a separate **pinned footer** docked to the bottom
+ (`_footer`, 40 px per row, `RebuildFooterHeaders`, `:2414`). The footer never scrolls.
+- The space below the last track is the empty part of the scroll viewport, painted in the
+ header-column colour (`leftBackdrop`, `:361`). There is no fixed spacer.
+
+**On add**: `MainWindow.ApplyInsertResult` → `Timeline.Refresh()` rebuilds the headers,
+the footer and the heights. Nothing scrolls the new track into view: `_scroller`'s offset
+is never set in code.
+
+**Most likely cause**: two gaps together.
+- No seam separates the scroll area from the pinned footer.
+- A new track is never revealed.
+
+When the new 64 px card lands at the bottom of the viewport, it is drawn flush against the
+first return row with no boundary, and reads as overlapping. A secondary risk:
+`Refresh(rebuildHeaders:false)` during recording updates the lanes but not the headers.
+
+**Decision**:
+- Draw a 1 px `Seam` on top of the footer band.
+- Scroll a newly added or selected track into view after `Refresh`.
+- Give the empty area below the tracks the lane colour on the lane side.
+**Reproduction** (Xvfb, adding a Drum Rack from the browser, screenshot at once and 5 s
+later):
+- **010 and 012**: the new track's 64 px header is clipped by the bottom of the scroll
+ viewport, so only its name strip shows. It sits directly on the pinned Reverb row with
+ no boundary. It persists after 5 s, so it is not a relayout race. Confirmed as
+ described.
+- **0.52.1**: inconclusive. The scripted browser click missed under the older floating
+ layout, so no track was added. The 010 layout made the defect visible by removing the
+ 12 px gutter between the islands.
+
+## R2 — F2: Session toolbar overflow; inspector covering headers (US1)
+
+**Toolbar** (`SessionView.Toolbar.cs:42-144`):
+- Two `Auto` groups in a `Grid "Auto,*,Auto"` inside a 44 px border.
+- Left group: Session rec, Fixed off/1/2/4/8, Quant, Follow, Capture scene.
+- Right group: I/O·Sends·Mixer, position readout, Back to arrangement, Stop all.
+- Together they need about 1130 px. At a 1200 px window the session area is about 855 px
+ wide, because the browser takes 344. There is no overflow handling, so the right group
+ runs off the edge.
+
+**Inspector**: a real 300 px grid column (`SessionView.cs:40,50,123`). The column headers
+scroll horizontally with the cells and are clipped at the inspector's edge.
+
+**Decision**:
+1. The toolbar collapses by priority as the width shrinks (a `SizeChanged` breakpoint):
+ - first, the right group's text labels become icons with tooltips;
+ - then the position readout and Back to arrangement move into an overflow "⋯" menu.
+
+ Every control stays reachable (FR-002).
+2. The inspector becomes collapsible with a toolbar toggle that is remembered, and
+ narrows to 260 px.
+3. When the inspector is open and the content is wider than the space, the header row
+ keeps a visible scroll cue, so nothing is silently covered.
+
+## R3 — F3: Modular shows an empty track list (US1)
+
+`ModularView.RefreshSidebar()` (`:243`) runs only from `Show(trackId)` or from a
+`Refresh()` guarded by `_global || _trackId > 0`. `MainWindow.SetView(Modular)` calls
+`Show` only when a track is selected, or when `_lastInstrumentTrackId > 0`, which is 0
+after opening a project. So with no selection the sidebar is never built, and nothing can
+be clicked.
+
+**Decision**:
+- `SetView(Modular)` always refreshes the sidebar and auto-selects the first non-return
+ track when none is selected.
+- Add an empty state for the sidebar ("No tracks yet") and for the canvas ("Pick a track
+ to see its signal graph").
+
+## R4 — F4: "Overlays" are OS windows (US2, spec correction)
+
+- **Mixer**: a `NotaWindow` (`MixerWindow.cs:33`), fixed at 1040 × 460, shown non-modal.
+ Strips are fixed 154 px boxes in a left-aligned `StackPanel` (`MixerView.cs:40,138`), so
+ dead space follows them. It has no Escape handling.
+- **Export**: a modal `NotaWindow` (`ExportWindow.cs:63`), 560 wide, closed by Export,
+ Cancel or the OS. It has no Escape handling.
+- **Command palette**: the only true in-window overlay (`PaletteLayer`, with
+ `Shadow.Modal`, Escape, click-outside and focus restore).
+- **On macOS and Windows**, `NotaWindow` draws its own 32 px title bar with the window
+ name. On Linux it uses the native frame (`NotaWindow.cs:47-54`).
+
+The critique's "no edge, no header, no shadow" came from Xvfb having **no window
+manager**, so native frames and shadows were missing. That is an artefact of the test
+harness, not what users see.
+
+**Decision (spec amended, see Clarifications)**:
+- Keep the mixer and export as windows. Making them in-window overlays would change
+ behaviour: for example, you could no longer put the mixer on a second screen.
+- Fix what users actually see:
+ - **Mixer**: the window width fits its strips, with a minimum of 560 and a maximum of
+ the screen width. There is no dead area inside it.
+ - **Mixer and export**: Escape closes them, the same as the palette.
+ - **Export**: on every platform, the window title reads "Export audio", in sentence
+ case.
+- No new shared overlay host is needed. The palette stays as it is.
+
+## R5 — F5/F6: label case (US3)
+
+**Sources of all caps**:
+- `Nota.Application/Palette/PaletteSearch.cs`: `"SUGGESTED · " + …ToUpperInvariant()`
+ (`:377`), `"RECENT"` (`:370`), and the group labels `"ACTIONS"`… (`:284`). These are
+ rendered raw at `CommandPaletteView.cs:292`.
+- Drum Rack meta (`RackCardView.Drum.cs:660`), `MixerView` `Mono("PAN")` (`:328`).
+- The session inspector's `SectionHead`/`Field`/`Mono` literals (`SessionView.Inspector.cs`).
+- Preferences sidebar groups and shortcut group titles (`PreferencesWindow.cs:63-75,
+ 1050-1172`).
+- `KeyPicker` "MAJOR/MINOR".
+
+**Sources of Title Case**:
+- The native menu (`MainWindow.axaml:27-109`), which already mixes cases.
+- Command titles (`Nota.Application/Palette/CommandCatalog.cs:22-90`), shown in the palette
+ and menus.
+- Browser, session, mixer and freeze labels: "Add to Favorites", "Stop All Clips",
+ "Capture Scene", "Session Rec", "Live Freeze", "Monitor In", "All Ins", "Separate Stems…",
+ "Convert Melody to New MIDI Track", and others.
+- Window titles: "Export Audio", "Edit Tags", "Don't Save", "Connect Phone".
+
+**Decision**:
+- Fix at the source: correct the literals, and route the builders (`Header()`,
+ `SectionHead`, `Mono`, `Field`) through `NotaText.Label`.
+- Palette headers become "Suggested · Arrangement", "Recent", "Actions"…
+ `tests/Nota.SmokeTest/PaletteTests.cs:195-196` and `:100` change with them.
+- Out of scope, kept as written because they are data:
+ - device and product names ("Nota Auto Filter");
+ - preset names, which DESIGN.md says are title-cased places;
+ - automation and parameter display names from the engine;
+ - MIDI-learn binding names;
+ - user data;
+ - proper nouns ("Finder").
+- **New check `RunLabels`** in `DesignTokenCheck`:
+ - It scans string literals in label contexts: `Text=`, `Content=`, `Header=`, `Title=`,
+ `ToolTip`, `MenuItem`/`NativeMenuItem` headers, command titles, and the first argument
+ of the local label builders.
+ - It fails on all caps (two or more letters, no lower case, not entirely `NotaText.Fixed`
+ acronyms, and not reaching `NotaText.Label`).
+ - It fails on Title Case (a capitalised word after the first one that isn't on the
+ allow-list: view and panel names, acronyms, "Nota …" names, proper nouns).
+ - It skips interpolated strings and the data files listed above.
+ - It starts as a ratchet allow-list (`file:line`, each with a reason) that this feature
+ shrinks to the data-only exemptions.
+ - `RunStudio`'s upper-casing check is extended to `PaletteSearch.cs`.
+
+## R6 — F7: device-card headers (US4)
+
+**One builder already exists**: `DeviceChainView.Shell.cs:112` `BuildCardShell(ShellSpec,
+body)`.
+- Today's order: the name on the left; on the right, the badge (`Subtitle`), the preset
+ picker, `HeaderExtra`, then bypass (power).
+- The power key appears only when `Bypassable`, which means effects. Instruments are not
+ bypassable.
+
+**Differences come from the spec**:
+- Synth, Keys, Mosaic and the MIDI bodies add a Learn button plus an S/L size toggle
+ through `HeaderAccessory`.
+- Drum Rack sets `Subtitle` "DRUMS · N PADS".
+
+**Cards that bypass the shell**:
+- Instrument Rack draws its own frame and `RackHeader`.
+- `SimpleCard` is used by the generic instrument card and the Sends card.
+- `RackShell` is dead code.
+
+**Decision**:
+- The header order becomes **name · preset stepper · badges (subtitle, accessories) ·
+ power**, with fixed slots. The power slot is reserved for every card, empty when the
+ device has no bypass. This keeps the right edge aligned down a chain.
+- Instrument Rack, `SimpleCard` and the Sends card move onto `BuildCardShell` through
+ `ShellSpec`. Delete `RackHeader` and the dead `RackShell`.
+- Fix the shell's header comment ("26px chrome bar" → 22).
+- Plugin cards already use the shell, so they follow automatically.
+
+## R7 — Rule-divided sections (US4, FR-020)
+
+There is no shared section builder. The copies:
+- 13 private `SectionBox` copies (one per instrument card);
+- `TabFrame` in 16 effect bodies, plus Pentad and Consort;
+- `IslandBox` in the 6 MIDI bodies;
+- `PluginCard.Section`, `RhythmInstrumentCard.Section`, Pendulum's `StripBox`, Drum Rack's
+ `DrumBox`;
+- about 50 inline framed `Border`s (`SurfaceCard` + `BorderDefault`, radius 3–6).
+
+Graph windows draw their own frame in `NotaGraph.Window`, and wells (`BgSunken` +
+`GraphBorder`) are a different pattern. Both stay.
+
+**Decision**:
+- Add `DeviceCardKit.Section(body, edges)`: no fill and no frame, just a 1 px `Rule` on
+ the edges it shares with a neighbour (top or left), with the inner padding unchanged.
+- Make the local helpers one-line delegates to it.
+- Sweep the inline boxes by pattern: `SurfaceCard`/`Card2` background with `BorderDef`
+ border.
+- Positions and sizes must not change. Every card is screenshot before and after, and an
+ edge overlay confirms nothing moved.
+- Update DESIGN.md `:516-517` and `:167-168`.
+
+## R8 — F8 + the view switcher: one icon set (US5)
+
+**`Glyph`** (`Controls/Glyph.cs`): 44 kinds, monoline at `max(1.2, size × 1.5/16)`, round
+caps.
+
+**About 45 icons drawn outside it**:
+- the browser rail and `GridIcon`;
+- the Preferences pages and store OS marks;
+- the palette kind icons (`Stretch.Uniform`, which the browser comment warns against);
+- history, the preview player, the Rhythm folder;
+- the transport toggles in `MainWindow.axaml`;
+- `NotaIcons.ChainLink`.
+
+Stroke weights run from 1.0 to 1.2 px effective, with several duplicates (star, plug,
+downloads, options).
+
+**Decision**:
+- Extend `Glyph` into the one icon set:
+ - Add the missing kinds: Keyboard, Sliders, Folder, Downloads, Star, Bookmark, Doc, Midi,
+ Map, History, Sidebar, Options, Search, Gamepad, Phone, Plug, Appearance, Loop,
+ Speaker, the speaker levels, Metronome, Follow, Snap, Automation, ChainLink, the
+ palette kinds, and the OS marks (filled).
+ - Add **Arrangement** (three horizontal lanes with clip blocks), **Session** (a 2×3 grid
+ of clip cells) and **Modular** (three nodes joined by cables).
+- Every kind is drawn from path data on a 16-unit grid at the shared stroke. A shape is
+ either stroked or filled, never `Stretch.Uniform`.
+- Replace every inline path with a `Glyph`.
+- New check: in `Nota.App`, outside `Controls/Glyph.cs`, any of `Geometry.Parse`,
+ `StreamGeometry.Parse`, `PathGeometry.Parse`, a `Data="M` attribute or an SVG path
+ string constant (`"M\d`) fails.
+
+**View switcher** (`MainWindow.axaml:154-162`): three `ToggleButton.seg` with text, about
+230 px wide, no tooltips. The `view.arrangement/session/modular` commands have **no
+keyboard shortcuts** (empty gestures in `CommandCatalog.cs:49-51`).
+
+**Decision**:
+- Three 28 × 24 icon segments, about 88 px in total, which saves about 140 px (SC-007).
+- Tooltip = the view name. If a shortcut is ever assigned, the tooltip shows it.
+- `AutomationProperties.Name` = the view name.
+- The spec's "existing shortcut" wording becomes "menu command / palette command", since
+ there is no shortcut today. No shortcut is added: that would be a behaviour change.
+
+## R9 — F10–F12: browser prefix, add-device target, numbers (US6)
+
+- **Browser prefix**: `BrowserViewModel.Prefix`/`ShortName` (`:70-72`) are rendered as
+ `RowPrefix` (`BrowserView.cs:823`).
+ - Drop the prefix element from rows.
+ - Search already matches the full `Name`, so "Nota Aurora" and "Aurora" both match.
+ - Make the type tag quieter by one ink step (`TextFaint`) while keeping it ≥ T3.3 in
+ every theme.
+- **Add device** (`DeviceChainView.cs:242`; rack `RackCardView.cs:1264`): 140 × 260 with
+ a dashed `BorderStrong` outline at radius 7, which is off the radius scale.
+ - It becomes a 28 px-wide slim target with a "+" glyph and a tooltip.
+ - It is dashed (radius 3) only while a drag is over the chain.
+ - The rack sibling gets the same treatment.
+ - `RunGeometry` learns about `Rectangle.RadiusX`.
+- **Numbers**:
+ - The loop readout already uses an en dash (`TransportViewModel.cs:103`). F12's
+ "hyphen" was the glyph at 11 px. Keep it.
+ - Real defect: the mixer scale `{"+6","0","-12","-48"}` (`MixerView.cs:363`) uses
+ hyphen-minus. Fix it with U+2212.
+ - Ranges mix spaced and unspaced en dashes. Rule: closed (unspaced) between plain
+ numbers ("1–127"), spaced when an endpoint contains a space or a unit with a space.
+ Document the rule in DESIGN.md § Numbers.
+ - `RunNumbers` gains a check for `"-\d` inside literals in views.
+
+## R10 — Verification harness
+
+- **Screenshots**: the same Xvfb harness, at 1200 × 800, in all four themes.
+ - Before/after of every built-in card (51) for the sections and header changes, using
+ an edge-overlay diff to prove nothing moved.
+ - The critique tour re-run for SC-001.
+- **Limits**: Xvfb has no window manager, so window chrome (mixer and export title bars)
+ is verified on macOS by the user.
diff --git a/specs/012-ui-polish/spec.md b/specs/012-ui-polish/spec.md
new file mode 100644
index 00000000..a8b0c676
--- /dev/null
+++ b/specs/012-ui-polish/spec.md
@@ -0,0 +1,368 @@
+# Feature Specification: UI Polish Pass
+
+**Feature Branch**: `012-ui-polish`
+
+**Created**: 2026-10-14
+
+**Status**: Draft
+
+**Input**: User description: "UI polish pass after the Studio restyle and colour themes, driven by a screenshot critique of 11 screens: (1) fix real layout defects — a newly added track overlapping the return tracks in the arrangement (to confirm), the Session toolbar overflowing and the inspector clipping track column headers, the Modular view showing an empty Tracks list while the project has tracks; (2) one treatment for in-window overlays (mixer, export dialog) with a header, edge and popover shadow, modelled on the command palette; (3) finish the sentence-case label rule — remove leftover all-caps and Title Case and extend the automated check; (4) one device-card header anatomy across all cards; (5) one icon set — inline icon paths moved into the shared Glyph set; (6) lighter arrangement chrome — fewer header rows above tracks, quieter browser rows, slimmer add-device target, en dash for ranges. Features and behaviour unchanged."
+
+## Clarifications
+
+### Session 2026-10-14
+
+- Q: Should this pass also settle the two open questions from 010 — device-card sections divided by rules instead of framed boxes, and soft menu shadows? → A: Sections divided by rules, yes; menu shadows no (later, separately).
+- User addition (same session): replace the Arrangement / Session / Modular word buttons with icons, as part of the icon-set work.
+- Q: To reach two header rows above the first track, should the Sections row or the Overview strip give way? → A: Neither. Keep the Overview, Sections and Zoom/ruler rows exactly as they are, with no removal, merge, move or restyle. Critique F9 is out of scope.
+- Q: Should the "Nota" prefix on built-in browser rows go, dim, or stay? → A: Go, in the browser rows only. Rows read "Aurora", "Bass"…, and full names ("Nota Aurora") stay everywhere else: card headers, device chain, menus and search.
+- Q: Where does the power key sit on every device-card header? → A: At the far right. The order is name, preset stepper, badges, power, as on Auto Filter today.
+- Plan finding (research R4): the mixer and export are separate OS windows, not in-window overlays. Under the test display (no window manager) they showed no frame. On macOS and Windows they have Nota's own title bar. US2 is narrowed to what users see: the mixer fits its strips, and Escape closes the mixer and export like the palette. Neither becomes an overlay.
+- Plan finding (research R8, R9): the view commands have no keyboard shortcut today, so the view keys show their name (and a shortcut only if one is assigned later). The loop readout already uses an en dash. The real number defect is the mixer scale's hyphen-minus.
+
+## Nota Context *(fill in — drives plan and tasks)*
+
+**Feature area** *(pick the main one)*:
+
+- [ ] Engine (C++, `src/native/nota.engine`) — real-time audio rules apply, see `ARCHITECTURE.md` AR table
+- [ ] Managed app (C#, `src/managed/*`) — domain, application, infrastructure, presentation
+- [x] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Studio)
+- [ ] Plugin hosting (`pluginhost/`) — the only place JUCE is allowed
+- [ ] Build / packaging / CI (`scripts/`, `.github/`) — see `BUILD.md`
+- [ ] Docs only
+
+**Nota docs to keep in mind** *(links relative to `specs/<slug>/`, where this file lands)*:
+[`ARCHITECTURE.md`](../../ARCHITECTURE.md) (AR rules),
+[`CONTRIBUTING.md`](../../CONTRIBUTING.md) (licensing, dependency policy, PR
+expectations), [`BUILD.md`](../../BUILD.md), [`DESIGN.md`](../../DESIGN.md),
+[`FEATURES.md`](../../FEATURES.md).
+
+**Depends on**: [`011-colour-themes`](../011-colour-themes/spec.md), which in turn builds
+on [`010-studio-visual-style`](../010-studio-visual-style/spec.md). This branch builds on
+both.
+
+**Input evidence**: [critique.md](critique.md), findings F1–F12 from a screenshot tour of
+11 screens. Every requirement below traces to one or more findings.
+
+## User Scenarios & Testing *(mandatory)*
+
+### User Story 1 - Nothing overlaps, overflows or goes missing (Priority: P1)
+
+A producer adds tracks, works in Session view on a laptop-sized window, and opens Modular.
+Every track header, toolbar control and track list is fully visible and in the right
+place. Nothing is drawn on top of anything else, cut off at the edge, or shown empty when
+there is content.
+
+**Why this priority**: These are defects, not taste. A track drawn over a return track or
+a cut-off toolbar makes the app look broken (critique F1–F3).
+
+**Independent Test**: At a 1200 × 800 window, add tracks of each type in Arrangement and
+check the order and spacing of headers and lanes. Open Session and check that every
+toolbar control and column header is fully visible. Open Modular with a project that has
+tracks and check the track list.
+
+**Acceptance Scenarios**:
+
+1. **Given** a project with returns, **When** the user adds an instrument, audio or MIDI
+ track, **Then** the new track appears above the returns with its full header height,
+ and no header or lane overlaps another, both immediately and after the window
+ repaints.
+2. **Given** Session view at a 1200 × 800 window, **When** it shows, **Then** every
+ toolbar control is either fully visible or reachable from an overflow control, and no
+ track column header is covered by the inspector.
+3. **Given** a project with tracks, **When** the user opens Modular, **Then** the track
+ list shows those tracks. If the list is legitimately empty, it shows an empty state
+ saying what to do.
+
+---
+
+### User Story 2 - Floating windows behave like the palette (Priority: P1)
+
+The mixer and the export window are separate windows with Nota's title bar. They should
+behave as consistently as the command palette: Escape closes them, and the mixer is
+exactly as wide as its strips, with no dead space.
+
+**Why this priority**: The mixer and export are used constantly. A mixer with an empty
+half and windows that ignore Escape feel unfinished (F4, corrected by research R4).
+
+**Independent Test**: Open the mixer with 2, 5 and 12 tracks and check its width. Press
+Escape in the mixer, the export window and the palette.
+
+**Acceptance Scenarios**:
+
+1. **Given** the mixer window, **When** it opens, **Then** its width fits its strips and
+ the master. It is at least 560 px and at most the screen width (scrolling beyond
+ that), with no empty area to the right of the last strip.
+2. **Given** the mixer, the export window or the command palette, **When** the user
+ presses Escape, **Then** it closes. The export window treats Escape as Cancel.
+3. **Given** macOS or Windows, **When** the mixer or export opens, **Then** its title bar
+ names it in sentence case ("Mixer", "Export audio").
+
+---
+
+### User Story 3 - One labelling voice (Priority: P2)
+
+Every label in the app is in sentence case, with acronyms and units kept as written (MIDI,
+LFO, dB). No label shouts in capitals or uses Title Case.
+
+**Why this priority**: The Studio rule is mostly in place already, and the leftovers
+stand out precisely because everything else is consistent (F5, F6).
+
+**Independent Test**: Visit the screens in the critique and confirm no label is in all
+caps or Title Case. The automated check fails if one is reintroduced.
+
+**Acceptance Scenarios**:
+
+1. **Given** the palette, Drum Rack, mixer, session toolbar, browser menu and freeze
+ menu, **When** they show, **Then** the labels read "Suggested · Arrangement",
+ "0 pads · 0 choke groups", "Choke", "Pan", "Add to favorites", "Stop all clips",
+ "Capture scene", "Session rec" and "Live freeze".
+2. **Given** a new label in all caps or Title Case in Nota's own UI, **When** the
+ automated check runs, **Then** it fails and names the file and line.
+
+---
+
+### User Story 4 - Every device card has the same header and calmer sections (Priority: P2)
+
+Whatever device a producer adds, its card header has the same parts in the same places:
+name, preset stepper, any badges, and the power key at the far right. Their eye and hand learn one layout. Inside
+the card, sections sit on the card's own surface, separated by thin rules rather than
+each framed in its own box, as the Studio rules set out.
+
+**Why this priority**: Cards are where producers spend most of their time, and three
+different header layouts in one chain look accidental (F7).
+
+**Independent Test**: Add one of every built-in device and compare the headers side by
+side.
+
+**Acceptance Scenarios**:
+
+1. **Given** every built-in instrument, audio effect and MIDI effect, **When** its card
+ shows, **Then** its header has, from left to right: the name, the preset stepper,
+ device-specific badges, then the power key at the far right. Each part is in the same position and
+ size on every card.
+2. **Given** a device that has no power state or no presets, **When** its card shows,
+ **Then** the missing part's slot is empty, and the other parts do not shift.
+3. **Given** any built-in card with several sections, **When** it shows, **Then** its
+ sections are divided by 1 px rules on the card surface, with no framed box around each
+ section. Section titles, contents and positions are unchanged, and graph windows keep
+ their own frame.
+
+---
+
+### User Story 5 - One icon set, including the view switcher (Priority: P2)
+
+Every icon in the app comes from one set, drawn on one grid with one stroke weight, so
+icons in the rail, browser, Settings, palette and cards look like siblings. The
+Arrangement / Session / Modular switcher in the transport row becomes three icon keys,
+freeing room in the transport.
+
+**Why this priority**: The view switcher is on screen all the time, and icon keys give
+the crowded transport row room to breathe. One set also makes swapping or extending icons
+later easy (F8). Raised from P3 at the user's request.
+
+**Independent Test**: Visit the left rail, browser tabs, Settings sidebar, command
+palette, history view and preview player and compare icon weight and size. The automated
+check fails if an icon is drawn outside the shared set.
+
+**Acceptance Scenarios**:
+
+1. **Given** any screen, **When** icons show, **Then** they share one stroke weight and
+ one grid, and each looks the same as before in shape and meaning.
+2. **Given** a view that draws an icon outside the shared set, **When** the automated
+ check runs, **Then** it fails and names the file.
+3. **Given** the transport row, **When** it shows, **Then** Arrangement, Session and
+ Modular are three icon keys in the same place and order, with the current view marked
+ as selected (accent fill, as today). Hovering a key shows its name (and its shortcut,
+ if one is ever assigned), and screen readers announce the view name.
+4. **Given** the view keys, **When** the user clicks one,
+ **Then** the same view opens as before. View switching from the menu and the command
+ palette is unchanged; there is no keyboard shortcut today and none is added.
+
+---
+
+### User Story 6 - Lighter chrome around the work (Priority: P3)
+
+The browser list is quieter. An empty device chain doesn't fill the dock with a dashed
+box. Ranges read as ranges. The arrangement's header rows (Overview, Sections,
+Zoom/ruler) stay exactly as they are.
+
+**Why this priority**: Each item is small, and together they give calm to the main
+screen (F10–F12).
+
+**Independent Test**: Compare the browser, the empty dock and the range readouts against
+the critique screenshots. Confirm the arrangement header rows are unchanged.
+
+**Acceptance Scenarios**:
+
+1. **Given** the arrangement, **When** it shows, **Then** the Overview, Sections and
+ Zoom/ruler rows are exactly as before, with the same rows, positions, contents and
+ controls.
+2. **Given** the browser's built-in list, **When** it shows, **Then** each row starts with
+ the device's own name ("Aurora", "Bass"…) without the "Nota" prefix, and the type tag
+ is visually quieter than the name. The full name ("Nota Aurora") still appears on the
+ device card, in the device chain and in menus, and searching "Nota Aurora" or "Aurora"
+ still finds it.
+3. **Given** an empty device chain, **When** the dock shows, **Then** the add-device
+ target is a slim element at the end of the chain. A dashed outline appears only while
+ something is being dragged.
+4. **Given** any range, **When** it shows, **Then** it uses an en dash, closed between plain
+ numbers ("1–127") and spaced when an endpoint contains a space. Negative numbers use
+ the true minus sign everywhere, including the mixer scale ("−12").
+
+---
+
+### Edge Cases
+
+- **Small windows**: at the minimum window size, the session toolbar overflow and the
+ arrangement header changes still leave every control reachable.
+- **Every theme**: windows, card headers, sections and icons look right in all four built-in themes, and
+ every theme still passes the readability bar.
+- **Third-party plugin cards** (VST3 / AU) use the same header anatomy for the parts Nota
+ draws: name, preset where available, and power at the far right.
+- **Devices with unusual widths** (the documented card-width exceptions) keep the same
+ header order. The parts do not stretch or reflow.
+- **Labels from data** (user track names, preset names, plugin names, tags) are shown as
+ written and are never re-cased.
+- **Localised or long labels** must not truncate where they fitted before.
+
+## Requirements *(mandatory)*
+
+### Functional Requirements
+
+**Defects (US1)**
+
+- **FR-001**: Adding a track MUST place its header and lane above the returns at full
+ height with no overlap, both immediately and after any repaint (F1). If the overlap
+ reproduces on the earlier releases too, the fix still belongs here.
+- **FR-002**: The session toolbar MUST keep every control fully visible or reachable
+ through an overflow control at a 1200 × 800 window. The inspector MUST NOT cover track
+ column headers (F2).
+- **FR-003**: Modular MUST list the project's tracks. When the list is legitimately
+ empty, it MUST show an empty state naming the next action (F3).
+
+**Overlays (US2)**
+
+- **FR-004**: The mixer and export windows MUST close on Escape (export as Cancel), the
+ same as the command palette. Their window titles MUST be in sentence case (F4,
+ research R4). They stay separate windows.
+- **FR-005**: The mixer window MUST size its width to its strips and the master, between
+ 560 px and the screen width, with no dead area to the right of the last strip (F4).
+
+**Labels (US3)**
+
+- **FR-006**: Every label in Nota's own UI MUST be in sentence case, with acronyms and
+ units kept as written. The labels listed in US3/AC1 MUST change accordingly (F5, F6).
+- **FR-007**: The automated design check MUST fail on an all-caps or Title Case label
+ literal in Nota's own UI and name the file and line. It MUST allow acronyms, units,
+ proper names and labels that come from user data.
+
+**Device cards (US4)**
+
+- **FR-008**: Every built-in device card's header MUST follow one anatomy, left to right:
+ name, preset stepper, device-specific badges, then the power key at the far right, at
+ fixed positions and sizes (clarified). A part
+ a device lacks leaves its slot empty (F7).
+- **FR-009**: Plugin device cards MUST use the same anatomy for the parts Nota draws.
+
+**Icons (US5)**
+
+- **FR-010**: Every icon MUST come from the shared icon set, drawn on one grid at one
+ stroke weight, with no change in shape or meaning (F8).
+- **FR-011**: The automated design check MUST fail when a view draws an icon outside the
+ shared set.
+- **FR-019**: The Arrangement / Session / Modular switcher MUST be three icon keys from
+ the shared set, in the same order and place, with the selected-key treatment for the
+ current view. Each key MUST have a tooltip with the view name (plus the shortcut, if one
+ exists) and an accessible name. Menu and palette commands for switching views are
+ unchanged, and no shortcut is added.
+- **FR-020**: Built-in device-card sections MUST be divided by 1 px rules on the card
+ surface instead of framed boxes. Section titles, contents, positions and the card frame
+ are unchanged, and graph windows keep their own frame (resolves 010 T066).
+
+**Chrome (US6)**
+
+- **FR-012**: The arrangement's header rows (Overview, Sections, Zoom/ruler) MUST NOT be
+ removed, merged, moved or restyled by this feature. Critique F9 is deferred
+ (clarified).
+- **FR-013**: Built-in browser rows MUST show the device name without the "Nota" prefix,
+ in the browser list only. Full names stay everywhere else, and search still matches
+ both forms. The type tag MUST be visually quieter than the name (F10).
+- **FR-014**: An empty device chain MUST show a slim add-device target at the end of the
+ chain. A dashed outline appears only during a drag (F11).
+- **FR-015**: Ranges MUST use an en dash, closed between plain numbers and spaced when an
+ endpoint contains a space. Negative numbers MUST use the true minus sign everywhere
+ numbers are shown, including the mixer scale (F12, research R9).
+
+**General**
+
+- **FR-016**: No feature, shortcut, menu item, gesture or saved format may change. Device
+ card frames, arrangement row heights and the arrangement header rows stay as they are.
+- **FR-017**: All changes MUST look right in all four built-in themes and keep every
+ theme passing the readability bar.
+- **FR-018**: DESIGN.md MUST describe the floating-window behaviour, the device-card header
+ anatomy and the icon-set rule. The changelog MUST record the visible changes.
+
+### Key Entities
+
+- **Floating window**: the mixer and export windows. Each has a title bar (Nota's on
+ macOS/Windows, native on Linux), closes on Escape, and the mixer sizes to its content.
+- **Device-card header**: the strip at the top of a card, with fixed slots, left to
+ right: name, preset stepper, badges, power.
+- **Icon**: a named shape in the shared set. It has one grid, one stroke weight, and a
+ filled or stroked style. New in this feature: icons for Arrangement, Session and
+ Modular.
+
+## Success Criteria *(mandatory)*
+
+### Measurable Outcomes
+
+- **SC-001**: A re-run of the critique's screenshot tour shows 0 of the in-scope findings
+ left (F1–F8 and F10–F12; F9 is deferred). F1 and F3 count as closed if they are fixed or
+ shown not to reproduce.
+- **SC-002**: At a 1200 × 800 window, no control in any main view is cut off, and the
+ arrangement header rows are pixel-identical to before, apart from colour from the
+ active theme.
+- **SC-003**: Every built-in device card has its power, name and preset parts
+ at the same positions, within 1 px.
+- **SC-004**: The automated check finds 0 all-caps or Title Case label literals and 0
+ icons drawn outside the shared set. The existing design, theme and appearance checks
+ still pass.
+- **SC-005**: Escape closes the mixer, export and palette in 3 of 3 cases, and the
+ mixer's empty width to the right of the master strip is 0 px with 2, 5 and 12 tracks.
+- **SC-006**: Every feature in FEATURES.md is still reachable by the same path and
+ shortcut.
+- **SC-007**: The view switcher takes at least 100 px less width in the transport row at
+ a 1200 × 800 window, and every view is still one click and one shortcut away.
+
+## Assumptions
+
+- **Scope is the critique plus the clarified additions.** That means rule-divided card
+ sections (010 T066) and icon view keys. New features, new device layouts and engine
+ work are out of scope. Soft menu shadows (010 T067) stay out: they need menus drawn
+ inside the window, which is a separate piece of work.
+- **View-key icons** are new drawings in the shared set (arrangement: horizontal lanes;
+ session: a clip grid; modular: connected nodes), at Studio's 16 px, 1.5 px monoline
+ spec. The final drawings are a plan and design decision.
+- **Sentence case** follows the existing Studio rule and acronym list. Proper nouns and
+ product names stay capitalised ("Nota Auto Filter" keeps its capitals as a name).
+- **The browser's "Nota" prefix** is dropped from the browser rows only (clarified). Device
+ names themselves are unchanged.
+- **Windows stay windows.** The mixer and export keep being separate windows (research
+ R4). Preferences and plugin windows are out of scope.
+- **Arrangement header rows** are out of scope (clarified): Overview, Sections and the
+ Zoom/ruler row stay as they are.
+- **Screenshots** come from the same Xvfb harness as 010 and 011, at 1200 × 800, in every
+ theme.
+- **Depends on 011**, which in turn depends on 010, landing first or this branch carrying
+ both.
+
+## Nota Compliance Checklist *(review before implementation; re-check in tasks.md)*
+
+- [x] Every new source file will carry the AGPL-3.0-only SPDX header (two lines, see CONTRIBUTING.md)
+- [x] No new dependency
+- [x] Audio-thread impact considered: UI-only; no engine or audio-thread involvement
+- [x] Managed/native crossings unchanged; no JUCE outside `pluginhost/`
+- [x] Smoke-test impact assessed: design checks extended (FR-007, FR-011); no engine behaviour change
+- [x] User-visible change → `CHANGELOG.md` `[Unreleased]` entry planned (FR-018); FEATURES.md only if a described behaviour changes
+- [x] UI change → follows `DESIGN.md` (Studio design language)
diff --git a/specs/012-ui-polish/tasks.md b/specs/012-ui-polish/tasks.md
new file mode 100644
index 00000000..48b4d066
--- /dev/null
+++ b/specs/012-ui-polish/tasks.md
@@ -0,0 +1,284 @@
+---
+
+description: "Task list for the UI polish pass"
+---
+
+# Tasks: UI Polish Pass
+
+**Input**: Design documents from `/specs/012-ui-polish/`
+
+**Prerequisites**: plan.md, spec.md, critique.md, research.md, data-model.md, contracts/ui-contract.md, quickstart.md
+
+**Tests**: The spec requires automated checks (FR-007, FR-011, SC-004), so the check tasks
+are part of the work. They extend the existing gate in `tests/Nota.SmokeTest`. There is no
+new test project.
+
+**Organization**: by user story. Paths under `src/managed/Nota.App/` are written `App/`,
+`src/managed/Nota.Application/` as `Application/`, and `tests/Nota.SmokeTest/` as `Smoke/`.
+Each phase is one commit that builds and is screenshot-verified, so the PR can be split per
+workstream (plan § Complexity Tracking).
+
+## Format: `[ID] [P?] [Story] Description`
+
+- **[P]**: Can run in parallel (different files, no dependencies on incomplete tasks)
+- **[Story]**: Which user story the task belongs to (US1–US6)
+
+---
+
+## Phase 1: Setup
+
+**Purpose**: a known-good build and a full visual baseline to diff against.
+
+- [X] T001 Build `012-ui-polish` with `scripts/build-linux.sh` (Xvfb, PulseAudio null sink) and record the smoke-test result in `/tmp`, not committed. Only "Consort stress" should fail.
+- [X] T002 [P] Write `/tmp/claude-0/scripts/cards.sh <theme> <outdir>`, outside the repo. It adds each of the 51 built-in devices from the browser one at a time and screenshots the dock. Capture the **baseline** in Studio Dark and Studio Light into `/tmp/claude-0/shots/cards-before/`.
+- [X] T003 [P] Re-run the critique tour (`/tmp/claude-0/scripts/tour.sh`) in all four themes into `/tmp/claude-0/shots/tour-before/` as the SC-001 baseline.
+- [X] T004 [P] Write `/tmp/claude-0/scripts/edgediff.sh before.png after.png`. It edge-detects both images (`convert -colorspace gray -edge 1 -threshold 25%`), dilates by 1 px, then reports the moved-edge pixel count and writes a red overlay. This is the P4.2 "nothing moved" check.
+
+---
+
+## Phase 2: Foundational (blocking)
+
+**Purpose**: the guards go in first. Every later phase lands against them.
+
+- [X] T005 Make `NotaText.Fixed` readable by the check: `internal` in `App/Theme/NotaText.cs`, parsed by regex like `KeyMap` is. Add the proper nouns and view names the label rule allows: Arrangement, Session, Modular, Mixer, Finder, Nota.
+- [X] T006 Add `RunLabels()` to `Smoke/DesignTokenCheck.cs` per data-model.md § Label rules:
+ - label-context literal extraction for `.cs` and `.axaml`;
+ - the all-caps and Title Case rules, with the allow-list and data skips;
+ - a **ratchet** allow-list `Smoke/LabelAllowList.txt` (`file:line # reason`), seeded with today's hits so the check starts green. Failures name `file:line` and the literal.
+- [X] T007 Add `RunIcons()` to `Smoke/DesignTokenCheck.cs`. In `App/`, outside `Controls/Glyph.cs`, these fail: `Geometry.Parse`, `StreamGeometry.Parse`, `PathGeometry.Parse`, an axaml `Data="M` attribute, or a string literal matching `^"?[MmFf][0-9 ]`. It uses a ratchet `Smoke/IconAllowList.txt` seeded with today's call sites.
+- [X] T008 Extend `RunNumbers` in `Smoke/DesignTokenCheck.cs`: a view string literal containing a hyphen-minus directly before a digit (`"-12"`, `" -3"`) fails, except in format strings and in key or shortcut text. Seed a ratchet line for `App/MixerView.cs:363`.
+- [X] T009 Extend `RunGeometry` in `Smoke/DesignTokenCheck.cs`: `Rectangle` `RadiusX`/`RadiusY` literals must be on the 0/1/2/3/4 scale. Seed a ratchet for `App/DeviceChainView.cs` and `App/DeviceCards/Rack/RackCardView.cs`, the add-device targets.
+- [X] T010 Add the `-- design: labels --` and `-- design: icons --` sections to `Smoke/Program.cs`. Build and run `/tmp/claude-0/scripts/check.sh`; every check passes with the seeded ratchets.
+
+**Checkpoint**: the guards are in place. From here, each phase removes its ratchet lines.
+
+---
+
+## Phase 3: User Story 1 — Nothing overlaps, overflows or goes missing (Priority: P1) 🎯 MVP
+
+**Goal**: fix the three defects (contracts P1.1–P1.3; research R1–R3).
+
+**Independent Test**: quickstart.md § 2, the defect runs.
+
+- [X] T011 [US1] In `App/ArrangementView.cs`:
+ - Draw a 1 px `Brush.Seam` top edge on the pinned return/master footer band, using a `Border` around `_footer` and `footerHeaderPanel` with `BorderThickness(0,1,0,0)`.
+ - Paint the empty lane side below the last track with the lane colour, keeping the header side the header colour (`leftBackdrop`).
+- [X] T012 [US1] In `App/ArrangementView.cs`, add `RevealTrack(int index)`, which sets `_scroller.Offset` so `RowTop(i)…RowTop(i)+RowHeight` is fully visible. Call it after `Refresh()` for a newly inserted track (`App/MainWindow.Dnd.cs` `ApplyInsertResult`, `OnArrangementDrop`) and on keyboard selection changes (`Select`).
+- [X] T013 [US1] Verify F1 with `/tmp/claude-0/scripts/f1-repro.sh` adapted to fill the view with tracks first. The new track must be fully visible above the seam, both at once and after 5 s.
+- [X] T014 [US1] In `App/ModularView.cs` and `App/MainWindow.axaml.cs`:
+ - `SetView(Modular)` always calls `RefreshSidebar()`.
+ - When no track is selected, auto-select the first non-return track (`Show(t)`).
+ - Remove the `_trackId > 0` guard on sidebar refresh in `Refresh()`.
+- [X] T015 [US1] In `App/ModularView.cs`, add the empty states: "No tracks yet" in the sidebar for an empty project, and "Pick a track to see its signal graph" on the canvas when `_trackId <= 0`. Both use `TextBlock.Caption`, sentence case.
+- [X] T016 [US1] Add `SessionInspectorOpen` (bool, default `true`) to `Application/Settings.cs` with a doc comment.
+- [X] T017 [US1] In `App/SessionView.cs`:
+ - The inspector column becomes 260 wide (`InspectorW`) and collapsible.
+ - Add an "Inspector" icon toggle (Glyph `Sidebar`) at the right end of the session toolbar, bound to `SessionInspectorOpen`.
+ - When content overflows beside the inspector, show the existing horizontal scroll bar as a cue.
+- [X] T018 [US1] In `App/SessionView.Toolbar.cs`, add priority collapse on `SizeChanged`:
+ - Level 1: the right group's labels become icon-only keys with tooltips (I/O, Sends, Mixer, Stop all).
+ - Level 2: "Back to arrangement" and the position readout move into a "⋯" overflow `MenuFlyout`.
+
+ Every control stays reachable (P1.2). Thresholds are measured from the groups' desired sizes, not hard-coded.
+
+ *Done as*: one fold order (readout → Back to arrangement → Capture scene → section toggles → Follow) into "⋯", which offers whatever is hidden. The icon-only level 1 was dropped: the fold already keeps every control reachable, and I/O, Sends and Mixer read better as words than as new icons. The arrangement has no keyboard track navigation, so T012's `Select` hook is not needed; drops go through `ApplyInsertResult`.
+- [X] T019 [US1] Verify US1 under Xvfb at 1200 × 800:
+ - Session with the inspector open and closed shows nothing cut off;
+ - Modular after opening a project with no selection lists the tracks and selects one;
+ - an empty project shows both empty states.
+
+ Commit "fix(008): US1".
+
+---
+
+## Phase 4: User Story 2 — Floating windows behave like the palette (Priority: P1)
+
+**Goal**: contracts P2.1–P2.3 (research R4).
+
+**Independent Test**: quickstart.md § 3 on macOS; the Escape behaviour under Xvfb.
+
+- [X] T020 [P] [US2] `App/MixerWindow.cs` + `App/MixerView.cs`: the mixer window width = the strips' desired width + master + padding, clamped to `[560, screen working-area width]`. Recompute on track add or remove while it's open. The height stays 460. Strips fill without a trailing dead area.
+- [X] T021 [P] [US2] Escape closes the window: in `App/MixerWindow.cs` (`KeyDown` Escape → `Close()`, unless a text field has focus) and in `App/ExportWindow.cs` (Escape → the same path as Cancel).
+- [X] T022 [P] [US2] Window titles in sentence case: `App/ExportWindow.cs` "Export audio", `App/TagEditorWindow.cs` "Edit tags", `App/Remote/ConnectPhoneView.cs` "Connect phone", `App/WhatsNewWindow.cs` "What's new", and any other `Title =` literal flagged by `RunLabels`. Remove their ratchet lines.
+- [X] T023 [US2] Verify under Xvfb: the mixer width with 2, 5 and 12 tracks leaves 0 px of dead area (screenshot crop), and Escape closes the mixer and the export window. Commit "feat(008): US2".
+
+---
+
+## Phase 5: User Story 3 — One labelling voice (Priority: P2)
+
+**Goal**: P3.1–P3.2 (research R5). Shrink the `RunLabels` ratchet to data-only exemptions.
+
+**Independent Test**: `-- design: labels --` passes with only data exemptions left in `Smoke/LabelAllowList.txt`.
+
+- [X] T024 [P] [US3] `Application/Palette/PaletteSearch.cs`: the group labels ("Actions", "Tracks", "Devices", "Presets", "Modular"), "Recent", and "Suggested · " + the origin label in sentence case, with no `ToUpperInvariant`. Update `Smoke/PaletteTests.cs:195-196` to expect "Recent" and "Suggested". Extend `RunStudio`'s upper-casing check to `PaletteSearch.cs`.
+- [X] T025 [P] [US3] `Application/Palette/CommandCatalog.cs`: every command title in sentence case ("New project", "Show mixer", "Quantize notes"…), with product and view names kept. Update `Smoke/PaletteTests.cs:100` and any test that matches a title.
+- [X] T026 [P] [US3] `App/MainWindow.axaml` native menu: every `Header` in sentence case ("Save as…", "Save version with note…", "Lock envelopes", "Paste bounced audio", "Copy clips to session / arrangement", "Narrow grid", "Widen grid", "Triplet grid", "Snap to grid", "Adaptive grid", "Command palette…", "Connect phone…", "Toggle full screen", "What's new", "Live freeze").
+- [X] T027 [P] [US3] Session labels:
+ - `App/SessionView.Toolbar.cs`: "Session rec", "Capture scene", "Stop all", "Back to arrangement".
+ - `App/SessionView.Grid.cs`: "Stop all clips".
+ - `App/SessionView.Mixer.cs`: "All ins", "Ext in".
+ - `App/SessionView.Inspector.cs`: route `SectionHead`, `Field` and `Mono` through `NotaText.Label` ("Color", "Launch", "Follow action", "Length", "Loop", "Start", "Loop end", "Tempo", "Signature", "Off globally").
+- [X] T028 [P] [US3] Mixer and detail labels: `App/MixerView.cs` `Mono` through `NotaText.Label` ("Pan"), and "Monitor in" / "Monitor auto". Same in `App/MainWindow.Detail.cs`.
+- [X] T029 [P] [US3] `App/DeviceCards/Rack/RackCardView.Drum.cs`: the meta line becomes `$"{n} pad{s} · {g} choke group{s}"`. `App/DeviceChainView.Instruments.cs`: the Drum Rack subtitle "Drums · {n} pads".
+- [X] T030 [P] [US3] Browser, arrangement and other menus:
+ - `App/BrowserView.cs`: "Add to favorites" / "Remove from favorites".
+ - `App/MainWindow.Freeze.cs`: "Live freeze".
+ - `App/MainWindow.Stems.cs` and `App/ArrangementView.LaneControl.cs`: "Separate stems…", "Convert melody to new MIDI track", "Slice to new MIDI track", "Get the AI model for melody & harmony…", "Copy to scene".
+ - `App/PianoRollView.Expression.cs`: "Clear all expression".
+ - `App/MainWindow.PasteBounced.cs`: the dialog title.
+- [X] T031 [P] [US3] Preferences and pickers:
+ - `App/PreferencesWindow.cs`: sidebar groups and shortcut group titles go through `NotaText.Label` ("Devices", "Plug-ins", "General", "File", "Window", "Command palette", "Transport", "Arrangement & editing", "Piano roll", "Browser · preview", "Mouse"); "System default".
+ - `App/PreferencesWindow.Downloads.cs`: "Sample packs".
+ - `App/Controls/KeyPicker.cs`: "Major" / "Minor".
+ - `App/SaveChangesWindow.cs`: "Don't save".
+ - `App/TagEditorWindow.cs`: "New tag".
+
+ *Done as*: view names (Arrangement, Session, Modular, Mixer) keep their capital, so it is "Back to Arrangement", "Show Mixer" and "Copy clips to Session / Arrangement". Settings page names after a colon stay capitalised ("Settings: Audio"). LUFS, USB, OK and DAW joined `NotaText.Fixed`.
+- [X] T032 [US3] Shrink `Smoke/LabelAllowList.txt` to data-only exemptions (preset tables, engine parameter display names, MIDI-learn names, sample device names), each with a reason. Run the check (green), take a screenshot pass of the palette, session, mixer, Drum Rack, Preferences and menus, and commit "style(008): US3".
+
+---
+
+## Phase 6: User Story 5 — One icon set, including the view switcher (Priority: P2)
+
+**Goal**: P5.1–P5.3 (research R8, data-model § Icon).
+
+**Independent Test**: `-- design: icons --` passes with an empty `IconAllowList.txt`. The view keys work and show tooltips.
+
+- [X] T033 [US5] Extend `App/Controls/Glyph.cs` per data-model § Icon:
+ - Add path-based kinds on a 16-unit grid, drawn with the shared stroke rule or filled. No `Stretch.Uniform`.
+ - Add all the new kinds: the views, rail/pages, player/transport, palette kinds and OS marks.
+ - Keep existing kinds pixel-identical.
+ - Each new kind gets a one-line comment naming what it depicts.
+- [X] T034 [US5] Write `/tmp/claude-0/scripts/glyph-sheet.sh`, outside the repo. It renders every `GlyphKind` at 12/16/24 px in Studio Dark and Light on a contact sheet (via a hidden `--glyph-sheet` debug path or a smoke-test render to PNG) for visual review of weight consistency. Review it, and fix any kind that reads heavier or lighter.
+- [X] T035 [P] [US5] Replace the inline icons in `App/BrowserView.cs`: `GridIcon` rail icons, Options, Downloads arrow, disclosure carets, favourite star → `Glyph`. Remove the `GridIcon` helper.
+- [X] T036 [P] [US5] Replace the inline icons in `App/PreferencesWindow.cs` (page icons, search) and `App/PreferencesWindow.Store.cs` (OS marks) → `Glyph`. Remove `IconBox` path use.
+- [X] T037 [P] [US5] Replace the inline icons in `App/CommandPaletteView.cs` (kind icons, search; drop `Stretch.Uniform`), `App/HistoryView.cs` (options, star), `App/PreviewPlayer.cs` (loop, speaker levels, play, caret, stop) and `App/DeviceCards/Instruments/RhythmInstrumentCard.cs` (folder) → `Glyph`.
+- [X] T038 [P] [US5] Replace the transport toggle icons in `App/MainWindow.axaml` (metronome, follow, snap, automation) and `App/NotaIcons.cs` `ChainLink` (used by `MainWindow.axaml:507`, `MainWindow.Freeze.cs:274` and `ArrangementView.cs:1788`) → `Glyph`. Delete `NotaIcons.cs` if it ends up empty.
+- [X] T039 [US5] View switcher in `App/MainWindow.axaml:154-162`:
+ - The three `ToggleButton.seg` hold `Glyph` Arrangement / Session / Modular, at 28 × 24, in the same order.
+ - `ToolTip.Tip` and `AutomationProperties.Name` are the view name. The tooltip appends a shortcut only if the command gains one (read from `CommandCatalog`).
+ - The checked state uses the accent fill, as today.
+ - Measure the width before and after; it must be at least 100 px narrower (SC-007).
+
+ *Measured*: about 230 px → 87 px at 1200 × 800.
+- [X] T040 [US5] Empty `Smoke/IconAllowList.txt`. Run the check (green), take screenshots of the rail, browser, Preferences, palette, history, player and transport in all four themes, and commit "feat(008): US5".
+
+---
+
+## Phase 7: User Story 4 — Same header and calmer sections on every card (Priority: P2)
+
+**Goal**: P4.1–P4.3 (research R6, R7). This is the largest diff, verified per card against the T002 baseline.
+
+**Independent Test**: `cards.sh` after the change, then `edgediff.sh` per card. The header slots align, and section content moves by at most 1 px.
+
+- [X] T041 [US4] `App/DeviceChainView.Shell.cs` `BuildCardShell`:
+ - Header order: name · preset · badges (subtitle, voice count, `HeaderAccessory`/`HeaderExtra`) · power.
+ - The power slot has a fixed width on every card, empty when the device isn't bypassable.
+ - Fix the "26px chrome bar" comment to say 22.
+- [X] T042 [US4] Move `App/DeviceCards/Rack/RackCardView.cs` (Instrument Rack and Audio Effect Rack) onto `BuildCardShell` via `ShellSpec`, keeping "Rack · N chains" as a badge. Delete `RackHeader` and the dead `RackShell`.
+- [X] T043 [US4] Move `DeviceCardKit.SimpleCard` users (`App/DeviceCards/**/GenericInstrumentCard.cs`, the Sends card in `App/DeviceChainView.cs:239`) onto `BuildCardShell`. Remove `SimpleCard` if it ends up unused.
+- [X] T044 [US4] Verify the headers with `cards.sh` in Studio Dark: the preset picker's left edge and the power key's right edge align across cards of equal width (P4.1). Plugin card check: load the built-in test plugin, if the smoke test ships one, or skip with a note.
+
+ *Checked*: the preset picker starts 171 px into every 700-wide card (Auto Filter, Drum Rack, Instrument Rack). The plugin card uses the same shell; no test plugin ships, so it was not loaded. Sends uses the shell as a `Utility` card (no device menu, selection or presets).
+- [X] T045 [US4] Add `DeviceCardKit.Section(Control body, SectionEdge edges)` in `App/DeviceCardKit.cs`, with `[Flags] enum SectionEdge { None, Top, Left }`. It has no fill or frame, draws only a 1 px `Brush.Rule` on the given edges, and keeps the same inner padding as today's boxes (data-model § Device-card section).
+- [X] T046 [US4] Make every local helper a one-line delegate to `DeviceCardKit.Section`. This covers the 13 instrument `SectionBox`es, the effect-body `TabFrame` outer frame (not its tab bar), the 6 MIDI `IslandBox`es, `PluginCard.Section`, `RhythmInstrumentCard.Section`, Pendulum's `StripBox` and Drum Rack's `DrumBox`. The caller passes the edge it shares with the previous section.
+
+ *Done as*: `Section` is a `RuleSection` decorator that keeps the 1 px inset and, by default, finds its neighbouring sections from the layout (`SectionEdge.Auto`), so a sweep site is a plain swap. Pendulum's `StripBox` is a header strip (a bottom hairline), not a framed box, so it stays. The `TabFrame` helpers return no frame of their own; their outer frames are inline and go with the sweeps.
+- [X] T047 [P] [US4] Sweep the inline framed section boxes in `App/DeviceCards/Instruments/*.cs` (`SurfaceCard`/`Card2` background + `BorderDef` border) → `Section`. Leave graph windows and wells alone. Run `edgediff` on each instrument card.
+- [X] T048 [P] [US4] Same sweep in `App/DeviceCards/Bodies/*.cs` (effects). Run `edgediff` on each effect card.
+- [X] T049 [P] [US4] Same sweep in `App/DeviceCards/Midi/*.cs` and `App/DeviceCards/Rack/*.cs`. Run `edgediff` on each.
+- [X] T050 [US4] Capture all 51 cards with `cards.sh` in all four themes, compare with the baseline through `edgediff`, and inspect each by eye. Fix any card where a control moved by more than 1 px or a rule is missing between neighbours. Commit "style(008): US4".
+
+
+ *Result*: 50 cards × Studio Dark and Studio Light, captured after the section sweep and the card-surface fix. Every card body aligns with its baseline at a (0, 0) offset (2-D shift search ±1 px), so no control, graph or label moved. Remaining differences are the removed frames/fills, the new rules and animated visuals (Flanger, Phaser, Pendulum, MIDI note views). The light-theme pass caught card bodies showing the gutter tone once the fills were gone; body roots now paint `SurfaceCard` (8261110).
+---
+
+## Phase 8: User Story 6 — Lighter chrome (Priority: P3)
+
+**Goal**: P6.1–P6.4 (research R9).
+
+**Independent Test**: browser rows, the empty dock, the mixer scale and an unchanged arrangement header, in all four themes.
+
+- [X] T051 [P] [US6] `App/BrowserView.cs`: drop the `RowPrefix` element from built-in rows (rows show `ShortName`). The type tag moves one ink step quieter (`TextFaint`), still ≥ T3.3. Search stays on the full `Name` (`BrowserViewModel.Matches`). Verify that "nota aurora" and "aurora" both find Aurora.
+- [X] T052 [P] [US6] `App/DeviceChainView.cs` `AddDeviceCard` and `App/DeviceCards/Rack/RackCardView.cs` `ChainAddDeviceCard`:
+ - A 28 px-wide target with Glyph `Plus` and the tooltip "Add device — double-click in the browser or drop here".
+ - Dashed outline, `BorderStrong`, radius 3, shown only while a drag is over the chain (`DragDrop.DragEnter` / `DragLeave` / `Drop` handlers).
+ - Remove the radius-7 and radius-6 ratchet lines.
+- [X] T053 [P] [US6] `App/MixerView.cs:363` scale labels become `{"+6","0","−12","−48"}` (U+2212). Normalise the range dashes per data-model § Number setting in the files research R9 lists: closed between plain numbers, spaced when an endpoint has a space. Remove the `RunNumbers` ratchet line.
+- [X] T054 [US6] Verify P6.4: the arrangement header rows (Overview, Sections, Zoom/ruler) are pixel-identical to `tour-before` in every theme. Commit "style(008): US6".
+
+
+ *Result*: Overview, Sections and Zoom/ruler rows are pixel-identical (0 differing pixels) to `tour-before` in all four themes.
+---
+
+## Phase 9: Polish & Cross-Cutting
+
+- [X] T055 [P] DESIGN.md:
+ - § Floating windows (Escape, sizing, sentence-case titles);
+ - § Device cards: the header anatomy with slots and a reserved power slot, plus rule-divided sections (replacing `:516-517` and `:167-168`);
+ - § Icons: the one set, the grid and stroke, filled vs stroked, the new kinds;
+ - § Numbers: the range-dash rule;
+ - § Enforced by tests: `RunLabels`, `RunIcons`, the extended `RunNumbers` and `RunGeometry`.
+
+ Regenerate `DESIGN.html` with `python3 scripts/design-html.py`.
+- [X] T056 [P] `.claude/skills/nota-design/SKILL.md`: the header anatomy, `DeviceCardKit.Section`, "every icon is a Glyph", and the label rule with its check.
+- [X] T057 [P] `CHANGELOG.md` `[Unreleased]` Changed:
+ - icon view switcher;
+ - calmer device cards (line-divided sections, one header layout);
+ - fitted mixer window and Escape to close;
+ - consistent sentence-case labels;
+ - a quieter browser list;
+ - a slimmer add-device target.
+
+ Fixed: new tracks now scroll into view; the session toolbar fits small windows; Modular lists tracks on open.
+- [X] T058 [P] Run the nota-features skill for `FEATURES.md`: the view switcher wording and the session inspector toggle. Note nota-docs as a follow-up in the PR (the repo is unavailable here).
+- [X] T059 Re-run the critique tour in all four themes and tick off F1–F8 and F10–F12 against contracts/ui-contract.md (SC-001). Take before/after contact sheets for the PR.
+
+ *Result*: F1 new track revealed above a seam; F2 Session toolbar fits with "⋯"; F3 Modular lists tracks; F4 mixer fits its strips, Escape closes mixer/export (chrome checked on macOS by the user); F5/F6 sentence case; F7 one header layout; F8 one icon set; F10 no "Nota" prefix in rows; F11 slim add-device key; F12 minus signs and closed ranges. Contact sheets per theme are attached to the PR conversation.
+- [X] T060 Final gate: a full `scripts/build-linux.sh`. Only the known "Consort stress" failure is allowed, and it must also fail on the base. Then run `/speckit-converge`.
+
+
+ *Result*: `scripts/build-linux.sh` — 2 failures under heavy concurrent screenshot load: "Consort stress" (known, also fails on the 011 base) and the palette per-keystroke budget, which passes when re-run on a quiet machine (median 4.4 ms, worst 7.8 ms, budget 8 ms). Design checks 134/134.
+---
+
+## Dependencies & Execution Order
+
+- **Setup (1)** → **Foundational (2)** blocks every story, because the checks must exist first.
+- **US1 (3)** and **US2 (4)** are independent of each other and of US3–US6. US1 is the MVP.
+- **US3 (5)** comes before US5 and US4, because their new labels (tooltips, badges) must pass `RunLabels`.
+- **US5 (6)** comes before US4 (7), because card badges and the Sends card may use new `Glyph` kinds.
+- **US6 (8)** depends on US5 (`Plus`/`Glyph` in the add-device target).
+- **Polish (9)** comes last.
+
+Within phases:
+- T020 ∥ T021 ∥ T022;
+- T024–T031 are all different files, so parallel;
+- T035–T038 parallel after T033;
+- T047–T049 parallel after T045–T046;
+- T051–T053 parallel.
+
+## Parallel Example: Phase 5 (labels)
+
+```text
+T024 PaletteSearch ∥ T025 CommandCatalog ∥ T026 MainWindow.axaml menu ∥ T027 Session* ∥
+T028 Mixer/Detail ∥ T029 Drum Rack ∥ T030 browser/arrangement menus ∥ T031 Preferences/pickers
+→ T032 shrink the ratchet + verify
+```
+
+## Implementation Strategy
+
+1. **MVP**: Phases 1–3 (guards plus the three defects). This is shippable alone.
+2. Then US2, US3, US5, US4 and US6 in that order, one commit each, so each can become its own PR on request.
+3. Then docs, the tour re-run and converge.
+
+## Notes
+
+- **Ratchets** (`LabelAllowList.txt`, `IconAllowList.txt`, the seeded `RunNumbers` and `RunGeometry` lines) only ever shrink. A phase is not done while it leaves its own ratchet lines behind.
+- **Card baseline**: every card change is compared with the T002 baseline by `edgediff`. A moved control is a defect, not a design choice.
+- **Window chrome**: the mixer and export titles and title bars are checked on macOS by the user (Xvfb has no window manager).
+
+## Phase 10: Convergence
+
+- [X] T061 Make the Instrument Rack chain's "+ Device" slot (`App/DeviceCards/Rack/RackCardView.cs` `IrAddDeviceSlot`) show its dashed outline only while a drag is over it, per FR-014 (partial)
+- [X] T062 Shrink `Smoke/RadiusAllowList.txt` to data-only exemptions: put the Mosaic drop target (`App/DeviceCards/Instruments/MosaicInstrumentCard.cs`, radius 6) on the radius scale, and fix or document the 7 px switch knob radius in `App/Theme/NotaTheme.axaml`, per plan: ratchets shrink to data-only exemptions (partial)
+- [X] T063 Make the Session inspector toggle (`App/SessionView.Toolbar.cs` `_inspectorToggle`) the Glyph `Sidebar` icon key with a tooltip, or record why the text toggle stays, per T017 (contradicts)
diff --git a/specs/013-browser-categories/checklists/requirements.md b/specs/013-browser-categories/checklists/requirements.md
new file mode 100644
index 00000000..4bb93263
--- /dev/null
+++ b/specs/013-browser-categories/checklists/requirements.md
@@ -0,0 +1,37 @@
+# Specification Quality Checklist: Device categories in the browser
+
+**Purpose**: Validate specification completeness and quality before proceeding to planning
+**Created**: 2026-10-14
+**Feature**: [spec.md](../spec.md)
+
+## Content Quality
+
+- [x] No implementation details (languages, frameworks, APIs)
+- [x] Focused on user value and business needs
+- [x] Written for non-technical stakeholders
+- [x] All mandatory sections completed
+
+## Requirement Completeness
+
+- [x] No [NEEDS CLARIFICATION] markers remain
+- [x] Requirements are testable and unambiguous
+- [x] Success criteria are measurable
+- [x] Success criteria are technology-agnostic (no implementation details)
+- [x] All acceptance scenarios are defined
+- [x] Edge cases are identified
+- [x] Scope is clearly bounded
+- [x] Dependencies and assumptions identified
+
+## Feature Readiness
+
+- [x] All functional requirements have clear acceptance criteria
+- [x] User scenarios cover primary flows
+- [x] Feature meets measurable outcomes defined in Success Criteria
+- [x] No implementation details leak into specification
+
+## Notes
+
+- Both clarifications resolved 2026-10-14: FR-002 → foldable section headers (A);
+ FR-005 → plug-ins join the categories, unknown under "Other" (A). 16/16 items pass.
+- Clarify session 2026-10-14 (3 questions): instrument, audio-effect and MIDI-effect
+ category membership confirmed in Assumptions; FR-001 no longer "proposed". 16/16 pass.
diff --git a/specs/013-browser-categories/contracts/ui-contract.md b/specs/013-browser-categories/contracts/ui-contract.md
new file mode 100644
index 00000000..c7b46c57
--- /dev/null
+++ b/specs/013-browser-categories/contracts/ui-contract.md
@@ -0,0 +1,66 @@
+# UI contract: Device categories in the browser
+
+**Feature**: [../spec.md](../spec.md) · **Data model**: [../data-model.md](../data-model.md)
+
+This is what a user (and the smoke test) can observe on the Instruments, Audio effects and
+MIDI effects tabs. The Files, Presets, Projects, Map and History tabs are out of scope
+(FR-010).
+
+## C1: Layout
+
+```text
+[ Search ……………………… 26 ] [⋮]
+(EQ & filter) (Dynamics) (Reverb & delay) (Modulation) ← category chips, wrapping
+(Distortion) (Pitch & time) (Utility) (Racks) (Other?)
+(Favorites) (tag) (tag) … +N ← existing row, unchanged
+Built-in ───────────────────────── 26
+ Auto Filter envelope / LFO
+ …
+```
+
+- **Chip order**: the tab's category order. "Other" comes last and only appears when a
+ device on the tab maps there.
+- **Look**: chips reuse `MakeChip`, so they are 20 tall pills, sentence case, with the
+ engaged state in the accent wash (FR-008).
+- **Narrow browser**: the row wraps; no chip goes behind an overflow menu.
+- **Where the row shows**: only on the three device tabs, and only while "Category chips"
+ is on.
+
+## C2: Picking
+
+- **Picking a chip** narrows the list to that category's devices (and their presets as
+ usual). Clicking the picked chip clears it; clicking another switches to it.
+- **Per tab**: each tab holds its own pick through tab switches. A restart clears all picks.
+- **Device rows** are the same objects as in the full list: double-click, drag, preview,
+ preset expansion, favourite and tag behave identically (FR-007).
+
+## C3: Combining (FR-006)
+
+- **Filters stack**: a device shows only if it passes the chip, the search, and the
+ Favorites or tag chip.
+- **Ordering**: "Group by source" (Built-in / Plug-ins headers) and "Favorites first" order
+ the narrowed list as they do the full list.
+- **Counts**: the search-box count and the status line count the narrowed list.
+- **Empty result**: "No matches".
+
+## C4: View options (⋮)
+
+The order is:
+
+1. Show type tags
+2. **Category chips** (new; checked by default)
+3. Group by source
+4. Favorites first
+
+- **Turning it off** hides the row and clears every tab's pick, so the full list returns,
+ exactly as before 013 (SC-003).
+- **Persistence**: the toggle is saved as `BrowserCategoryChips`.
+
+## C5: Design check (FR-009)
+
+`DesignTokenCheck.RunBrowser` fails when:
+
+- a built-in device has no category;
+- a category lists a name that isn't in the catalogue;
+- a category has no built-ins;
+- the per-tab totals stop being 18 / 26 / 6.
diff --git a/specs/013-browser-categories/data-model.md b/specs/013-browser-categories/data-model.md
new file mode 100644
index 00000000..c89ffbfb
--- /dev/null
+++ b/specs/013-browser-categories/data-model.md
@@ -0,0 +1,65 @@
+# Data model: Device categories in the browser
+
+**Feature**: [spec.md](spec.md) · **Research**: [research.md](research.md) (R1, R2, R9)
+
+These are in-memory and settings-level entities only. Nothing changes in the project
+format, the C ABI or the engine.
+
+## DeviceCategory (static, `Nota.Application/Palette/DeviceCategories.cs`)
+
+| Field | Type | Rule |
+|---|---|---|
+| `Name` | string | Sentence case, unique within its tab. |
+| `Builtins` | string[] | The catalogue names (`"Nota Reverb"`) of its built-in members. Must not be empty. |
+
+Tab order (the chip order):
+
+- **Instrument**: Synths · Keys & physical · Drums · Samplers · Racks
+- **AudioEffect**: EQ & filter · Dynamics · Reverb & delay · Modulation · Distortion ·
+ Pitch & time · Utility · Racks
+- **MidiEffect**: Generate · Shape
+
+`Other` is the fallback for a plug-in (or an unmapped built-in). Its chip comes last and
+only exists when it has devices.
+
+**Operations**:
+
+- `Of(type)` and `Order(type)`: the tab's categories in order.
+- `Position(type, name)`: the index, or `int.MaxValue`.
+- `For(BuiltinDevice)`: the device's category, or `Other`.
+- `ForPlugin(instrument, reported)`: the R2 token table, or `Other`.
+
+**Invariants** (checked by `DesignTokenCheck.RunBrowser`, FR-009 / SC-001):
+
+- every built-in device is in exactly one category of its own type;
+- no stale names;
+- no empty category;
+- sentence-case names;
+- 18 / 26 / 6.
+
+## BrowserItem (existing)
+
+| Member | Type | Rule |
+|---|---|---|
+| `DeviceCategory` | string (init) | Set on top-level device rows in `Rebuild()`: built-ins use `DeviceCategories.For`, plug-ins use `ForPlugin(isInstrument, Category)`. |
+
+## Category filter (`BrowserViewModel`)
+
+| Member | Type | Notes |
+|---|---|---|
+| `_categoryFilter` | `string[3]` | Per device tab (0 Instruments, 1 Audio effects, 2 MIDI effects); `""` means no chip. In memory only. |
+| `CategoryFilter(int tab)` | string | The picked category, or `""`. |
+| `SetCategoryFilter(int tab, string name)` | method | Sets or clears (`""`) the tab's pick and rebuilds that tab. |
+| `CategoriesOn(int tab)` | `IReadOnlyList<string>` | The tab's order, plus `Other` when a device on the tab maps there. |
+
+A device passes when the tab's filter is `""` or its shelf equals the filter. The shelf
+is `DeviceCategory`, or `Other` when the tab doesn't list it.
+
+## Settings (`Nota.Application/Settings.cs`)
+
+| Property | Type | Default | Notes |
+|---|---|---|---|
+| `BrowserCategoryChips` | bool | `true` | Shows the category chip row. A missing key in an older `settings.json` resolves to `true` (FR-003). |
+
+The headers-version keys `BrowserCategoryView` and `BrowserFoldedCategories` are removed.
+They were never released.
diff --git a/specs/013-browser-categories/plan.md b/specs/013-browser-categories/plan.md
new file mode 100644
index 00000000..2c462a1e
--- /dev/null
+++ b/specs/013-browser-categories/plan.md
@@ -0,0 +1,155 @@
+# Implementation Plan: Device categories in the browser
+
+**Branch**: `013-browser-categories` | **Date**: 2026-10-14 | **Spec**: [spec.md](spec.md)
+
+**Input**: Feature specification from `/specs/013-browser-categories/spec.md`
+
+## Summary
+
+> **Revised (R9):** the first build used foldable category headers. After seeing it, the
+> user chose Ableton-style **category chips** instead. This summary describes the chips
+> design; R3–R6 in research.md are kept for history.
+
+The Instruments, Audio effects and MIDI effects tabs get a row of category chips above the
+list. Picking a chip narrows the list to that category; it is on by default. The work
+splits five ways:
+
+1. **Categories** (unchanged from the first build): a pure `DeviceCategories` class in
+ `Nota.Application` holds:
+ - the confirmed lists (Instruments 5, Audio effects 8, MIDI effects 2) with their
+ built-in members;
+ - the `Other` fallback;
+ - the plug-in mapping (VST3 sub-categories; AU type names map to Other) (R1, R2).
+
+ Each device row carries its category.
+2. **Chips (US1)**: `BrowserViewModel` gains a per-tab category filter applied in the
+ existing device loop, next to the favourite/tag filter, plus `CategoriesOn(tab)`.
+ `BrowserView` gains a wrapping chip row between the search row and the Favorites/tags
+ row, built with the existing `MakeChip`. One pick per tab: click again to clear (R9).
+3. **Off switch (US2)**: "Category chips" in ⋮, persisted as
+ `Settings.BrowserCategoryChips` (default true). Turning it off clears the picks.
+4. **Combining (US3) and plug-ins (US4)**: the chip stacks with search, Favorites and tags
+ for free (all of them filter the same loop). Plug-ins carry their mapped category, and
+ the Other chip appears only when something maps there.
+5. **Guard and docs**:
+ - `DesignTokenCheck.RunBrowser` (unchanged);
+ - behavioural checks in `BrowserCategoryTests` (`--browser`);
+ - CHANGELOG, FEATURES.md, DESIGN.md and the nota-instrument skill.
+
+It is UI and settings only: no engine, C ABI, project-format or shortcut change.
+
+## Nota: Read Before Planning
+
+- **UI work** → [`DESIGN.md`](../../DESIGN.md) (Studio) and the `nota-design` skill.
+ The chips reuse `MakeChip`, the filter-chip style of the Favorites / tags and the Files
+ sample chips; there are no new controls.
+- **A built-in device** → the `nota-instrument` skill. Its registration checklist gains
+ "add the device to `DeviceCategories`".
+- **Anything** → [`CONTRIBUTING.md`](../../CONTRIBUTING.md): SPDX headers on new files,
+ no new dependency.
+
+## Technical Context
+
+**Language/Version**: C# / .NET 10 (managed app only).
+
+**Primary Dependencies**: Avalonia 12.0.3 (existing). No new dependency.
+
+**Storage**: `settings.json` gains `BrowserCategoryChips` (bool, default true). The picked
+chip is not saved. No project-format change.
+
+**Audio-Thread Impact**: None. This is a UI-thread list projection; nothing crosses the
+C ABI.
+
+**Testing**: `tests/Nota.SmokeTest`:
+- **New**: `DesignTokenCheck.Browser.cs` (`RunBrowser`, wired into `Program.cs`).
+- **Behavioural checks** in `BrowserCategoryTests.cs`, run in sequence and alone with
+ `--browser`. They use `FakePluginCatalog` and `FakeBrowserLibrary` from
+ `BrowserTestSupport.cs`.
+- **Screenshots**: the device tabs under Xvfb in all four themes.
+
+**Target Platform**: macOS 13+, Windows 10+, Linux, as today.
+
+**Project Type**: Desktop app (Avalonia).
+
+**Performance Goals**: no measurable change. Ordering at most a few hundred device rows
+with a multi-key sort is negligible next to today's rebuild. The palette is unaffected
+because it reads the unchanged trees.
+
+**Constraints**:
+- With no chip picked, the list must be today's sequence exactly (SC-003).
+- No new colour, radius or icon style (FR-008).
+- Device rows, preset expansion, drag, preview, favourites and tags are unchanged
+ (FR-007, FR-010).
+
+**Scale/Scope**:
+- 50 built-in devices across 15 categories, plus any number of plug-ins;
+- about 6 source files touched and 2 new (one app, one test).
+
+## Constitution Check
+
+*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
+
+| Principle | Status | Note |
+|---|---|---|
+| I. Real-time audio safety | ✅ N/A | UI-only. |
+| II. Boundary discipline | ✅ | No C ABI change. The plug-in category string already crosses today, in the plug-in description. No JUCE outside `pluginhost/`. |
+| III. Licensing hygiene | ✅ | The two new files carry the SPDX header. No dependency. |
+| IV. Verification gate | ✅ | The smoke test gains `RunBrowser` and behavioural browser checks. `scripts/build-linux.sh` must pass. |
+| V. One logical change per PR | ✅ | One feature: browser categories. |
+| VI. Docs in sync | ✅ | CHANGELOG `[Unreleased]`; FEATURES.md (nota-features); DESIGN.md browser bullet; nota-instrument skill checklist. nota-docs (sibling repo) is noted as a follow-up because it isn't available here. |
+| VII. Spec-first | ✅ | Spec plus 5 clarifications; plan now, tasks next. |
+| VIII. Safety rules not weakened | ✅ | Checks only get stricter (a new guard). |
+
+**Post-design re-check**: unchanged. The chips design adds one settings key and one
+in-memory filter, and leaves the list code path as it was when no chip is picked.
+
+## Project Structure
+
+### Documentation (this feature)
+
+```text
+specs/013-browser-categories/
+├── plan.md # this file
+├── research.md # R1–R8
+├── data-model.md # DeviceCategory, BrowserItem additions, view-model state, settings
+├── quickstart.md # automated + manual verification
+├── contracts/
+│ └── ui-contract.md # C1–C6 observable behaviour
+├── checklists/requirements.md
+└── tasks.md # /speckit-tasks (not created here)
+```
+
+### Source Code (repository root)
+
+```text
+src/managed/
+├── Nota.Application/
+│ ├── Palette/DeviceCategories.cs # NEW: category lists, For(), ForPlugin(), Order() (R1, R2)
+│ └── Settings.cs # + BrowserCategoryView, BrowserFoldedCategories (R5)
+├── Nota.Presentation/ViewModels/
+│ └── BrowserViewModel.cs # BrowserItem.DeviceCategory; per-tab category filter,
+│ # CategoriesOn (R9)
+└── Nota.App/
+ └── BrowserView.cs # category chip row (WrapPanel, MakeChip);
+ # ⋮ "Category chips"; settings load/save (R9)
+
+tests/Nota.SmokeTest/
+├── DesignTokenCheck.Browser.cs # NEW: RunBrowser (R7)
+├── BrowserCategoryTests.cs # NEW: chip filter behaviour (--browser)
+├── BrowserTestSupport.cs # + FakePluginCatalog, FakeBrowserLibrary
+└── Program.cs # wire RunBrowser and BrowserCategoryTests
+
+DESIGN.md · CHANGELOG.md · FEATURES.md · .claude/skills/nota-instrument/SKILL.md
+```
+
+**Structure Decision**: the existing three-layer split is kept.
+- Pure category data and mapping go in `Nota.Application`, next to
+ `BuiltinDeviceCatalog`, so both the view model and the smoke test can reach them.
+- List projection goes in the `Nota.Presentation` view model, which already owns
+ grouping and search.
+- Header drawing and settings I/O go in `Nota.App/BrowserView.cs`, which already owns
+ the ⋮ menu and the group row.
+
+## Complexity Tracking
+
+No constitution violations, so nothing to justify.
diff --git a/specs/013-browser-categories/quickstart.md b/specs/013-browser-categories/quickstart.md
new file mode 100644
index 00000000..79208c88
--- /dev/null
+++ b/specs/013-browser-categories/quickstart.md
@@ -0,0 +1,56 @@
+# Quickstart: validating device categories
+
+**Feature**: [spec.md](spec.md) · **Contract**: [contracts/ui-contract.md](contracts/ui-contract.md)
+
+## Prerequisites
+
+- A Linux build environment as for 012: .NET 10 SDK, CMake toolchain, and Xvfb plus a
+ PulseAudio null sink for screenshots.
+- `scripts/build-linux.sh` (or `scripts/build.sh` on macOS) builds native and managed
+ code and runs the smoke test.
+
+## 1. Automated checks
+
+```bash
+scripts/build-linux.sh # full gate
+dotnet tests/Nota.SmokeTest/bin/Release/net10.0/Nota.SmokeTest.dll --browser # categories alone
+```
+
+Expect these to pass:
+
+- **`-- design: browser --`**:
+ - every built-in is categorised;
+ - no stale names;
+ - 18 / 26 / 6;
+ - sentence case.
+- **`-- browser: device categories --`**:
+ - with no chip picked, each tab is today's list exactly;
+ - each category's chip lists exactly its devices, and every device is in one;
+ - clearing a chip restores the full list;
+ - picks are per tab;
+ - the chip stacks with search and with the Favorites chip;
+ - with fake plug-ins, Reverb & delay lists the built-ins and then the VST3 reverb under
+ Plug-ins;
+ - an AU `Effect` makes an Other chip appear and lists under it;
+ - the MIDI tab has no Other chip;
+ - an existing `settings.json` has the chips on.
+
+## 2. Manual / screenshot checks (Xvfb, all four themes)
+
+1. Fresh `HOME`, Audio effects tab: the 8 chips appear above Favorites, none picked, and
+ the full list shows.
+2. Pick Reverb & delay: only Chamber, Delay and Reverb show, and the chip is engaged.
+ Click it again to get the full list back. Pick Dynamics, then Modulation: the list
+ switches.
+3. With Dynamics picked, type "Prism": only Prism. Clear the search, favourite Compressor
+ and turn on Favorites: only Compressor.
+4. Switch to Instruments (unfiltered) and back: Dynamics is still picked.
+5. ⋮ → untick "Category chips": the row hides and the full list returns. Relaunch: still
+ off. Tick it again.
+6. Narrow the browser to its minimum: the chips wrap onto more lines and nothing overlaps.
+7. Capture the three tabs in all four themes, with and without a chip picked.
+
+## 3. Plug-ins (macOS, optional)
+
+Scan plug-ins (Settings → Plug-ins). A VST3 reverb appears under Reverb & delay. An
+AU-only effect sits under the Other chip (a known limitation, research R2).
diff --git a/specs/013-browser-categories/research.md b/specs/013-browser-categories/research.md
new file mode 100644
index 00000000..6b916850
--- /dev/null
+++ b/specs/013-browser-categories/research.md
@@ -0,0 +1,277 @@
+# Research: Device categories in the browser
+
+**Feature**: [spec.md](spec.md) · **Plan**: [plan.md](plan.md) · **Date**: 2026-10-14
+
+All the code facts below come from the current tree (branch `013-browser-categories`, on top
+of 012). There are no NEEDS CLARIFICATION items left: the five spec decisions settled
+the questions about how the feature behaves, and the rest is design.
+
+## What exists today
+
+- `Nota.Presentation/ViewModels/BrowserViewModel.cs`:
+ - holds one tree per device tab (`_instrTree`, `_fxTree`, `_midiTree`);
+ - flattens each tree into a visible collection (`Instruments`, `Effects`,
+ `MidiEffects`) in `RebuildVisible(tab)`, which:
+ - applies the search query, the favourite/tag chip, "Favorites first" (a stable
+ `OrderByDescending`) and "Group by source" (`OrderBy(IsPlugin)`);
+ - emits `BrowserItemKind.Group` rows captioned `BUILT-IN` / `PLUG-INS` with a
+ `GroupCount`.
+- Built-ins come from `Nota.Application/Palette/BuiltinDeviceCatalog.cs`:
+ - the tree is sorted by `Name`;
+ - plug-ins are appended in catalogue order, unsorted;
+ - each plug-in already carries its reported category in `BrowserItem.Category`. It comes
+ from `pluginhost` as JUCE's `PluginDescription::category`, with `|` replaced by `/`:
+ VST3 gives `Fx/Reverb`, AU gives JUCE's type name (for example `Effect`, `Synth`).
+- `Nota.App/BrowserView.cs`:
+ - `GroupRow` draws a header: a `GroupLabel` caption through `NotaText.Label`, a hairline
+ and a mono count, 22 px high (`GroupRowH`);
+ - group rows can't be selected (`SelectionChanged` clears them);
+ - `ShowOptionsMenu` holds the ⋮ check items, "Group by source" among them, and persists
+ them through `ISettingsService`;
+ - `StatusFor` counts devices from `VisibleDeviceCounts`, which counts collection rows.
+- `Nota.Application/Settings.cs` has `BrowserGroupBySource`, `BrowserFavoritesFirst` and
+ `BrowserShowTypeTags` (all default true). It already persists lists (`RecentProjects`,
+ `PaletteRecent`).
+- The smoke test (`tests/Nota.SmokeTest/Program.cs`, around line 14490) builds a
+ `BrowserViewModel` over `EmptyPluginCatalog` and asserts the row sequence
+ `BUILT-IN, Nota Aurora, Pads, Glacier Pad` for a search.
+
+## R1: Where categories are defined
+
+**Decision**: a new pure class, `Nota.Application/Palette/DeviceCategories.cs`, sitting
+next to `BuiltinDeviceCatalog`. It holds:
+
+- for each tab (Instrument / AudioEffect / MidiEffect), the ordered category list, each
+ category with its built-in device names, written exactly as the spec's Assumptions list
+ them;
+- `Other`, a constant that always sorts last;
+- `For(BuiltinDevice)`, which returns the device's category, or `Other` if none;
+- `ForPlugin(bool instrument, string reported)`, the plug-in mapping (R2);
+- `Order(type)`, which returns the category names in tab order.
+
+**Rationale**:
+
+- One block that reads like the spec makes membership easy to review and to change.
+- It keeps the catalogue's semantic descriptors (which the palette reads) separate from the
+ browser's shelving.
+- Pure code can be tested from the smoke test without a UI.
+
+**Alternatives rejected**:
+
+- A `Category` field on `BuiltinDevice`: this touches 50 constructor lines and scatters one
+ category's members across the file.
+- Deriving the category from `SemanticDescriptor.Role` (`synth.subtractive`…): roles are
+ finer-grained and don't match the confirmed groups (Prism's role is dynamics, but the
+ palette may change roles for search reasons).
+
+## R2: Mapping plug-in categories
+
+**Decision**: split the reported string on `/` and `|`, then trim and lower-case each
+token. The first token in the tab's table wins, and an unrecognised or empty string maps to
+`Other`. Tables:
+
+| Tab | Reported token(s) | Category |
+|---|---|---|
+| Instruments | `synth` | Synths |
+| | `piano` | Keys & physical |
+| | `drum` | Drums |
+| | `sampler` | Samplers |
+| Audio effects | `eq`, `filter` | EQ & filter |
+| | `dynamics`, `mastering` | Dynamics |
+| | `reverb`, `delay` | Reverb & delay |
+| | `modulation` | Modulation |
+| | `distortion` | Distortion |
+| | `pitch shift` | Pitch & time |
+| | `analyzer`, `tools`, `spatial`, `surround`, `restoration`, `up-downmix` | Utility |
+
+Tokens that are deliberately skipped:
+
+- markers: `fx`, `instrument`, `mono`, `stereo`;
+- `generator`, `external`, `network`;
+- AU type names such as `effect` and `music effect`.
+
+A plug-in whose tokens are all skipped lands in `Other`.
+
+**Rationale**:
+
+- VST3's sub-category vocabulary (`Steinberg::Vst::PlugType`) is fixed and small.
+- Taking the first recognised token handles "Fx|Delay|Reverb" (spec edge case:
+ listed once, under the first recognised category).
+- Case-insensitive tokens also catch CLAP-style feature words (`reverb`, `delay`) if a
+ host format reports them.
+
+**Known limitation, recorded and not solved**:
+
+- AU plug-ins report only their component type (`Effect`), so an AU-only effect lands in
+ `Other`. AU instruments reporting `Synth` still map to Synths.
+- Most AU plug-ins also ship as VST3, and that copy maps correctly.
+- Guessing a category from the plug-in's name is out of scope (FR-005 says "mapped from
+ the category they report").
+
+## R3: Ordering inside the category view *(superseded by R9)*
+
+**Decision**: the category view is a new branch in `RebuildVisible`. Today's flat path stays
+as it is, so SC-003 ("restores today's flat list exactly") holds by construction. In the
+category branch the visible devices are ordered by these keys, in priority order:
+
+1. category position (`Other` last);
+2. when "Group by source" is on: built-in before plug-in;
+3. when "Favorites first" is on: favourite before the rest;
+4. `ShortName` (case-insensitive, invariant). Built-ins sort without their "Nota "
+ prefix, so plug-ins interleave correctly when "Group by source" is off.
+
+Each category with at least one visible device gets a header carrying that count. With
+"Group by source" on there are no separate Built-in / Plug-ins headers (FR-005).
+
+**Rationale**:
+
+- It keeps the meaning favourites have today: they float to the top of their source run,
+ and the source run sits inside the category.
+- A plain multi-key `OrderBy`/`ThenBy` over at most a few hundred rows is cheap.
+
+**Alternative rejected**: favourites first across sources within a category. That breaks
+the FR-005 rule that built-ins come before plug-ins.
+
+## R4: Category headers and folding *(superseded by R9)*
+
+**Decision**:
+
+- **Header row**: a category header is a `BrowserItemKind.Group` row with `Path =
+ "cat:<tab>:<name>"` and a new `IsFoldable = true`. `GroupRow` adds a caret in front of
+ the caption: `RailIcon(CaretRight|CaretDown, 12, "Brush.TextTertiary")`, the same glyph
+ and size device rows use for disclosure. Otherwise the row is unchanged: `GroupLabel`
+ caption, hairline, mono count, 22 px. It gets a hand cursor, and a `PointerPressed` on
+ the row toggles the fold.
+- **Fold state**: the view model holds `HashSet<string>` keys `instr:<name>`,
+ `fx:<name>`, `midi:<name>`. `ToggleCategoryFold(item)` flips a key, rebuilds that tab and
+ raises `CategoryFoldsChanged`. `BrowserView` persists on that event (same pattern as the
+ ⋮ toggles).
+- **While searching**: a folded category's devices are hidden, and its header still shows
+ the count. While a search query is active, folds are ignored: every matching category
+ shows open, the caret is hidden, and clicks on the header do nothing. Clearing the query
+ brings back the saved folds untouched (US3/AC2).
+- **Accessibility**: `AutomationProperties.Name` is "<category>, <n> devices,
+ folded|open".
+
+**Rationale**:
+
+- This reuses the existing header style (FR-008).
+- Ignoring folds during a search keeps the spec's "search shows matches inside folded
+ categories without changing the saved fold state" simple to reason about and to test.
+
+**Alternatives rejected**:
+
+- An expander control: a new control style, and DESIGN.md asks for reuse.
+- Foldable `Folder` items: device rows would gain a depth and indent, which changes every
+ row's look.
+
+## R5: Settings and defaults *(revised by R9)*
+
+**Decision**: two properties are added to `Settings`:
+
+- `BrowserCategoryView` (bool, default `true`);
+- `BrowserFoldedCategories` (`List<string>`, default empty).
+
+How they behave:
+
+- Missing keys in an existing `settings.json` take the initializer value, so existing users
+ get the category view on (FR-003).
+- The ⋮ menu gains "Group by category" as the first of the grouping toggles, above "Group
+ by source". The name parallels the existing toggle, and its sentence case passes
+ `RunLabels`.
+- `BrowserViewModel.CategoryView` defaults to `true` as well, so a view model built without
+ settings (the smoke test) matches a fresh profile.
+
+## R6: Status-line counts *(superseded by R9)*
+
+**Decision**: `VisibleDeviceCounts` counts the devices that passed search and filter
+*before* folding, so folding a category doesn't change "26 audio effects · 26 built-in".
+The view model records these counts during `RebuildVisible`.
+
+**Rationale**: folding is a view choice, not a filter. The status line answers "what
+matches", as today.
+
+## R7: Guarding built-in membership (FR-009)
+
+**Decision**: a new `DesignTokenCheck.RunBrowser()` section
+(`tests/Nota.SmokeTest/DesignTokenCheck.Browser.cs`), wired into `Program.cs` next to the
+other design sections. It asserts:
+
+- every `BuiltinDeviceCatalog.All` entry is in exactly one category of its own tab (no
+ `Other`);
+- every name in `DeviceCategories` exists in the catalogue with the matching type (a stale
+ entry fails, ratchet style);
+- no category is empty of built-ins;
+- the category names are sentence case per `NotaText.Label`, which returns them
+ unchanged;
+- the counts are 18 / 26 / 6 (SC-001).
+
+Behavioural checks go in `Program.cs` next to the existing browser block:
+
+- category order per tab;
+- folding, and search inside a folded category;
+- favourites within a category;
+- the "Group by source" ordering with a fake plug-in catalogue;
+- `Other`;
+- the flat view equals today's sequence.
+
+`BrowserTestSupport.cs` gains a `FakePluginCatalog` (descriptions in the
+`Name | Format | inst|fx | Vendor | Category` form).
+
+## R8: Documentation touch-points
+
+- `CHANGELOG.md` `[Unreleased]`: one entry.
+- `FEATURES.md` via `nota-features`: the browser section.
+- The user manual's browser page via `nota-docs`. That manual lives in the sibling repo
+ `nota-daw/nota-docs`, which isn't available in this session, so it is noted as a
+ follow-up in the PR (as in 012).
+- `DESIGN.md`, the browser bullet in the layout section (around line 651): category headers are foldable group headers with a caret, and
+ "Other" comes last.
+- The `.claude/skills/nota-instrument/SKILL.md` registration checklist: "add the device to
+ its category in `DeviceCategories`" (the check fails otherwise).
+- No shortcut changes, so `nota-shortcuts` is not needed.
+
+## R9: Category chips instead of headers (revision)
+
+The headers version (R3–R6) was built and shown. The user then chose Ableton-style chips
+instead: a chip narrows the list to one category, and there are no headers or folding.
+
+**Decision**:
+
+- **Filter, not a layout**: the category is one more filter in `RebuildVisible`'s existing
+ device loop, next to `PassesLibraryFilter`. The view model holds `_categoryFilter[3]`
+ (one category name per device tab, `""` = none) and exposes:
+ - `CategoryFilter(tab)` and `SetCategoryFilter(tab, name)`;
+ - `CategoriesOn(tab)`: the tab's fixed order, plus `Other` when any device on the tab
+ maps there.
+
+ `BrowserItem.DeviceCategory` (R1/R2) stays. A device's shelf is its `DeviceCategory`,
+ normalised to `Other` when its tab doesn't list that name. With no chip picked, the
+ loop is exactly today's, so SC-003 holds by construction. "Group by source" and
+ "Favorites first" order the narrowed list as before, so no ordering code is needed.
+- **Chips get their own row**: today's Favorites/tags row is a single-line `ChipStrip`
+ whose extra chips go into a "+N" menu, which would hide most of the 8 effect categories
+ at the default width. The category chips therefore get their own `WrapPanel` row (like
+ the Files tab's sample chips), between the search row and the Favorites/tags row. They
+ are shown on the three device tabs while "Category chips" is on, and use the same
+ `MakeChip` (20 tall pill, accent wash when engaged).
+- **Pick behaviour**: one chip at a time per tab. A click picks it, a click on the picked
+ chip clears it, and a click on another switches. The pick survives tab switches but not
+ a restart, so the list never opens mysteriously narrowed.
+- **Settings**:
+ - `BrowserCategoryView` and `BrowserFoldedCategories` (both unreleased) are replaced by
+ `BrowserCategoryChips` (bool, default `true`);
+ - ⋮ gains "Category chips" where "Group by category" sat;
+ - turning it off clears all three tabs' picks.
+- **Empty state**: a picked chip counts as filtering, so an empty result says "No
+ matches", not "No audio effects yet".
+- **Removed with the headers**: the category branch, folds, folded counts, the header
+ caret and click, and their tests.
+
+**Alternatives rejected**:
+
+- Category chips in the existing single-line strip: most would sit behind "+N".
+- Several chips at once (OR): fine later; one-at-a-time matches the Favorites/tag chips
+ and keeps the narrowed list's meaning obvious.
+- Remembering the pick across restarts: a hidden narrowing on launch reads as missing
+ devices.
diff --git a/specs/013-browser-categories/spec.md b/specs/013-browser-categories/spec.md
new file mode 100644
index 00000000..675a35e6
--- /dev/null
+++ b/specs/013-browser-categories/spec.md
@@ -0,0 +1,276 @@
+# Feature Specification: Device categories in the browser
+
+**Feature Branch**: `013-browser-categories`
+
+**Created**: 2026-10-14
+
+**Status**: Draft
+
+**Input**: User description: "Better categorise the built-in devices in the browser. Today each browser tab (Instruments, Audio effects, MIDI effects) shows the built-in devices as one long flat list. Give every device a category (for example synths, drums, samplers, keys for instruments; filters, dynamics, reverb/delay, modulation, distortion, EQ, utility for effects) and let the list be grouped/filtered by category, with that category view enabled by default."
+
+## Nota Context *(fill in — drives plan and tasks)*
+
+**Feature area** *(pick the main one)*:
+
+- [ ] Engine (C++, `src/native/nota.engine`) — real-time audio rules apply, see `ARCHITECTURE.md` AR table
+- [x] Managed app (C#, `src/managed/*`) — domain, application, infrastructure, presentation
+- [x] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Studio)
+- [ ] Plugin hosting (`pluginhost/`) — the only place JUCE is allowed
+- [ ] Build / packaging / CI (`scripts/`, `.github/`) — see `BUILD.md`
+- [ ] Docs only
+
+**Nota docs to keep in mind** *(links relative to `specs/<slug>/`, where this file lands)*:
+[`ARCHITECTURE.md`](../../ARCHITECTURE.md) (AR rules),
+[`CONTRIBUTING.md`](../../CONTRIBUTING.md) (licensing, dependency policy, PR
+expectations), [`BUILD.md`](../../BUILD.md), [`DESIGN.md`](../../DESIGN.md),
+[`FEATURES.md`](../../FEATURES.md).
+
+**Builds on**: `012-ui-polish` (browser rows without the "Nota" prefix, quieter type tags,
+the shared icon set). Stacked on that branch.
+
+### Today
+
+- The Instruments tab lists 18 built-in instruments, the Audio effects tab 26 built-in
+ effects and the MIDI effects tab 6 MIDI effects. Each tab is one alphabetical list under a
+ single "Built-in" header, followed by a "Plug-ins" header for installed plug-ins.
+- Each row already carries a short type tag on the right ("wavetable synth", "drum
+ machine", "envelope / LFO"…), but the tag is not something the list can be grouped or
+ narrowed by.
+- The view options (⋮) offer "Group by source" (the Built-in / Plug-ins headers),
+ "Favorites first" and "Show type tags". The filter chips under the search field are
+ Favorites plus the user's own tags.
+- Installed plug-ins report their own category (for example a VST3 "Fx|Reverb" or an Audio
+ Unit type); the browser keeps it but does not use it for grouping.
+
+## Clarifications
+
+### Session 2026-10-14
+
+- Q: How should the categories appear? → A: ~~As section headers in the list, each
+ foldable. No category chips.~~ **Revised after seeing the headers built:** as category
+ chips, like Ableton — a row of chips above the list; picking one narrows the list to that
+ category. No category headers and no folding.
+- Q: How do the chips behave? → A: One category at a time per tab: a click picks it, a
+ second click clears it. Each tab keeps its own pick while switching tabs; a restart clears
+ it. Chips combine with search, Favorites and tags; with no chip picked the list is today's
+ list. The chip row is on by default and "Category chips" in ⋮ hides it.
+- Q: Should plug-ins be categorised too? → A: Yes — plug-ins join the same categories from
+ the category they report; anything unrecognised goes under "Other".
+- Q: How should the 18 instruments be grouped? → A: Synths (Synth, Volt, Bass, Monolith,
+ Pentad, Consort, Operator, Aurora, Flux, Pendulum) · Keys & physical (Keys, Physical) ·
+ Drums (Rhythm, Drum Rack) · Samplers (Sampler, Mosaic, Grain) · Racks (Instrument Rack).
+- Q: How should the 26 built-in audio effects be grouped? → A: EQ & filter (EQ-3, EQ-8,
+ Dynamic EQ-8, Auto Filter) · Dynamics (Compressor, Prism, Ceiling, Shutter) · Reverb &
+ delay (Reverb, Chamber, Delay) · Modulation (Chorus, Flanger, Phaser, Orbit) · Distortion
+ (Valve, Vintage, Forge, Crush) · Pitch & time (Auto Shift, Beat Repeat, Strata) · Utility
+ (Utility, Level, Lens) · Racks (Audio Effect Rack).
+- Q: Should the 6 MIDI effects be categorised? → A: Yes — Generate (Arp, Chord, Random) ·
+ Shape (Scale, Length, Velocity).
+
+## User Scenarios & Testing *(mandatory)*
+
+### User Story 1 — Narrow the list to one kind of device (Priority: P1)
+
+A producer opens the Audio effects tab looking for "something for space". Above the list
+is a row of category chips — EQ & filter, Dynamics, Reverb & delay, Modulation, Distortion,
+Pitch & time, Utility, Racks. They click **Reverb & delay** and the list shows just Chamber,
+Delay and Reverb. A second click on the chip brings the whole list back. The Instruments
+tab (Synths, Keys & physical, Drums, Samplers, Racks) and the MIDI effects tab (Generate,
+Shape) work the same way.
+
+**Why this priority**: it is the whole point of the request. The list grows with every
+release, and a category is how musicians think about devices ("I need a compressor", not
+"I need something starting with C"). It is how Ableton's browser works, which many users
+know.
+
+**Independent Test**: on a fresh profile, each device tab shows its category chips in a
+fixed order; picking a chip lists exactly that category's devices; clearing it restores the
+full list.
+
+**Acceptance Scenarios**:
+
+1. **Given** a fresh profile, **When** the Audio effects tab is opened, **Then** the 8
+ category chips show above the list, none picked, and the list is today's full list.
+2. **Given** the Audio effects tab, **When** the user picks Reverb & delay, **Then** the
+ list shows exactly Chamber, Delay and Reverb, and the chip shows as engaged.
+3. **Given** a chip is picked, **When** the user clicks it again or picks another one,
+ **Then** the list returns to all devices or switches to the other category.
+4. **Given** a chip is picked, **When** the user double-clicks or drags a device, expands
+ it to see its presets, favourites it or tags it, **Then** everything works exactly as in
+ the full list.
+
+---
+
+### User Story 2 — Hide the chips (Priority: P2)
+
+A long-time user who knows every device by name doesn't want the extra row. They switch
+"Category chips" off in the browser's view options; the row disappears, the list is the
+full list, and the choice is remembered the next time Nota starts.
+
+**Why this priority**: the chips are the new default, but nobody should lose the compact
+browser they already know.
+
+**Independent Test**: switch the chips off, restart Nota, and the row is still hidden and
+the list unfiltered; switch them on again and the chips return.
+
+**Acceptance Scenarios**:
+
+1. **Given** a chip is picked, **When** the user turns "Category chips" off, **Then** the
+ row hides and the list shows every device again.
+2. **Given** the user turned the chips off, **When** Nota restarts, **Then** they are still
+ off.
+
+---
+
+### User Story 3 — Combine a category with search and favourites (Priority: P2)
+
+A user picks Dynamics, then types "multi" in the search, or turns on the Favorites chip:
+the list shows only devices that are in Dynamics *and* match the search / are favourites.
+
+**Why this priority**: narrowing works best when the filters stack; a chip that reset the
+search or the Favorites chip would feel broken.
+
+**Independent Test**: pick Dynamics, type "Prism": only Prism shows; clear the search:
+Dynamics' four devices; turn on Favorites with Compressor favourited: only Compressor.
+
+**Acceptance Scenarios**:
+
+1. **Given** Dynamics is picked, **When** the user searches, **Then** only matches inside
+ Dynamics show, and the search-box count counts them.
+2. **Given** Dynamics is picked, **When** the Favorites chip (or a tag chip) is on, **Then**
+ only Dynamics devices that are favourites (or carry the tag) show.
+3. **Given** a chip is picked on Audio effects, **When** the user switches to Instruments
+ and back, **Then** Instruments is unfiltered and Audio effects still has its chip picked.
+
+---
+
+### User Story 4 — Plug-ins in the same categories (Priority: P3)
+
+A user with installed plug-ins picks Reverb & delay and sees a third-party reverb alongside
+Nota's own reverbs.
+
+**Why this priority**: valuable for users with many plug-ins, but the built-in categories
+deliver the core of the request on their own.
+
+**Independent Test**: with a plug-in that reports a reverb category installed, picking
+Reverb & delay lists it; a plug-in reporting nothing recognisable is listed under an
+"Other" chip.
+
+**Acceptance Scenarios**:
+
+1. **Given** an installed plug-in that reports a category Nota recognises, **When** that
+ category's chip is picked, **Then** the plug-in is listed (under the Plug-ins header when
+ "Group by source" is on).
+2. **Given** a plug-in whose category Nota does not recognise, **When** the tab is shown,
+ **Then** an "Other" chip appears last and lists it; the plug-in is never hidden from the
+ full list.
+
+### Edge Cases
+
+- **A chip with a search that matches nothing in it**: the list is empty and shows the
+ existing "No matches" state.
+- **"Other" with nothing in it** (no unrecognised plug-ins, or the MIDI tab): no "Other"
+ chip.
+- **Favorites first / Group by source**: unchanged — they order the narrowed list exactly
+ as they order the full one.
+- **A device that fits two categories** (Auto Filter: filter or modulation? Strata: pitch
+ or texture?): it is in exactly one, its primary job. No duplicates.
+- **Rack devices** (Instrument Rack, Drum Rack, Audio Effect Rack) have a clear place.
+- **A new built-in device added in a later release without a category**: it is still
+ listed in the full list and under "Other", and the design check fails until it gets one.
+- **A plug-in reporting several categories** (for example VST3 "Fx|Delay|Reverb"): it is
+ in one category, the first Nota recognises.
+- **Narrow browser**: the chip row wraps onto a second line rather than hiding chips;
+ nothing overlaps.
+- **Turning the chips off while one is picked**: the pick clears with the row, so a hidden
+ filter never narrows the list.
+
+## Requirements *(mandatory)*
+
+### Functional Requirements
+
+- **FR-001**: Every built-in instrument, audio effect and MIDI effect MUST belong to
+ exactly one category. The categories and their order MUST be fixed per tab (listed in
+ Assumptions), named in sentence case.
+- **FR-002**: The device tabs MUST show a row of category chips above the list, in the
+ tab's category order, wrapping when the browser is narrow. Picking a chip MUST narrow the
+ list to that category; a second click MUST clear it; picking another MUST switch. One
+ chip is picked at most per tab. There are no category headers and no folding.
+- **FR-003**: The chip row MUST be shown by default, for a new profile and for existing
+ users, and MUST be switchable off in the browser's view options ("Category chips"); the
+ choice MUST persist across restarts. Turning it off clears any picked chip.
+- **FR-004**: The picked chip is remembered per tab while Nota runs (switching tabs keeps
+ it) and is cleared by a restart.
+- **FR-005**: Installed plug-ins MUST join the same categories, mapped from the category
+ they report; a plug-in whose category is missing or not recognised MUST be listed under an
+ "Other" chip (last, shown only when it has devices), and always in the full list.
+- **FR-006**: The chip MUST combine with search, the Favorites chip and tag chips (a device
+ shows only if it passes all of them). With no chip picked the list MUST be exactly
+ today's list. "Group by source" and "Favorites first" order the narrowed list as they
+ order the full one.
+- **FR-007**: Opening, dragging, previewing, expanding presets, favouriting and tagging a
+ device MUST work identically with a chip picked.
+- **FR-008**: Category chips MUST follow `DESIGN.md`: the existing filter-chip style
+ (20 tall, pill, engaged in the accent wash), sentence case, no new colours or icon
+ styles.
+- **FR-009**: The design checks MUST fail if a built-in device has no category, so a device
+ added later cannot silently land under "Other".
+- **FR-010**: No device, preset, shortcut or saved project changes. Tags and favourites
+ are unaffected. The Files, Presets, Projects, Map and History tabs are unchanged.
+
+### Key Entities
+
+- **Device category**: a named group on one tab ("Reverb & delay"), with a fixed position
+ in that tab's order. A built-in device has exactly one. Plug-ins map to one from the
+ category they report, or to "Other".
+- **Category chips setting**: show the chip row, on/off, per user, persisted, default on.
+- **Picked category**: per tab, at most one, held while Nota runs.
+
+## Success Criteria *(mandatory)*
+
+### Measurable Outcomes
+
+- **SC-001**: 100 % of built-in devices (18 instruments, 26 audio effects, 6 MIDI effects)
+ belong to a category, each to exactly one, and each chip lists exactly its devices.
+- **SC-002**: Getting to a given kind of device (for example "a delay") takes one click on
+ a chip, after which the list fits on one screen in a 1200 × 800 window.
+- **SC-003**: With no chip picked, or with the chips off, the list is exactly today's list
+ (same order, same headers); the off setting survives a restart in 3 of 3 tries.
+- **SC-004**: Every existing browser action (open, drag, preview, expand presets,
+ favourite, tag, search) works with a chip picked, with no regressions in the smoke tests.
+- **SC-005**: The chips read correctly in all four built-in themes and pass the design
+ checks.
+
+## Assumptions
+
+- **Categories** (confirmed in clarify; names sentence case):
+ - *Instruments* (confirmed): Synths (Synth, Volt, Bass, Monolith, Pentad, Consort,
+ Operator, Aurora, Flux, Pendulum), Keys & physical (Keys, Physical), Drums (Rhythm, Drum
+ Rack), Samplers (Sampler, Mosaic, Grain), Racks (Instrument Rack) — in that order.
+ - *Audio effects* (confirmed): EQ & filter (EQ-3, EQ-8, Dynamic EQ-8, Auto Filter),
+ Dynamics (Compressor, Prism, Ceiling, Shutter), Reverb & delay (Reverb, Chamber, Delay),
+ Modulation (Chorus, Flanger, Phaser, Orbit), Distortion (Valve, Vintage, Forge, Crush),
+ Pitch & time (Auto Shift, Beat Repeat, Strata), Utility (Utility, Level, Lens), Racks
+ (Audio Effect Rack) — in that order.
+ - *MIDI effects* (confirmed): Generate (Arp, Chord, Random), Shape (Scale, Length,
+ Velocity) — in that order.
+- The existing type tag on each row stays; the category is a separate, coarser grouping.
+- "Other" exists only for plug-ins (or a future uncategorised device); its chip is last
+ and only shown when it has devices.
+- Plug-in categories are mapped from the VST3 sub-categories and Audio Unit types the
+ plug-in catalogue already stores; the exact mapping table is a planning detail.
+- The chip-row setting is a per-user preference stored with the other browser view options;
+ the picked chip is not saved. No project-format change.
+- Picking one chip at a time (not several) keeps the list's meaning obvious; picking
+ several can follow if users ask for it.
+- Users of other languages see the categories in English, like the rest of the app today.
+
+## Nota Compliance Checklist *(review before implementation; re-check in tasks.md)*
+
+- [ ] Every new source file will carry the AGPL-3.0-only SPDX header (two lines, see CONTRIBUTING.md)
+- [x] No new dependency
+- [x] Audio-thread impact considered: none (browser UI and catalogue data only)
+- [x] Managed/native crossings go through the pure C ABI in `nota_engine.h` only (AR-7); no JUCE outside `pluginhost/` — no new crossing
+- [ ] Smoke-test impact assessed: design check for uncategorised built-ins (FR-009); browser grouping covered by the existing browser tests
+- [ ] User-visible change → `CHANGELOG.md` `[Unreleased]` entry planned, FEATURES.md (browser section)
+- [ ] UI change → follows `DESIGN.md` (Studio design language)
diff --git a/specs/013-browser-categories/tasks.md b/specs/013-browser-categories/tasks.md
new file mode 100644
index 00000000..547cd126
--- /dev/null
+++ b/specs/013-browser-categories/tasks.md
@@ -0,0 +1,398 @@
+---
+
+description: "Task list for device categories in the browser"
+---
+
+# Tasks: Device categories in the browser
+
+**Input**: Design documents from `/specs/013-browser-categories/`
+
+**Prerequisites**: plan.md, spec.md, research.md, data-model.md, contracts/ui-contract.md, quickstart.md
+
+**Tests**: The spec requires a guard (FR-009) and measurable checks (SC-001, SC-003, SC-004),
+so the check tasks are part of the work. They extend the existing gate in
+`tests/Nota.SmokeTest`; there is no new test project.
+
+**Organization**: by user story. Path shorthands:
+
+| Shorthand | Path |
+|---|---|
+| `App/` | `src/managed/Nota.App/` |
+| `Application/` | `src/managed/Nota.Application/` |
+| `VM` | `src/managed/Nota.Presentation/ViewModels/BrowserViewModel.cs` |
+| `Smoke/` | `tests/Nota.SmokeTest/` |
+
+The Xvfb harness and capture scripts from 012 live in `/tmp/claude-0/`, outside the repo.
+
+## Format: `[ID] [P?] [Story] Description`
+
+- **[P]**: Can run in parallel (different files, no dependencies on incomplete tasks)
+- **[Story]**: Which user story the task belongs to (US1–US4)
+
+---
+
+## Phase 1: Setup
+
+**Purpose**: a known-good build and a visual baseline of the three device tabs.
+
+- [X] T001 Build `013-browser-categories` with `scripts/build-linux.sh` (Xvfb, PulseAudio null sink) and record the smoke-test result in `/tmp`, not committed. Only the known "Consort stress" failure is allowed; the palette keystroke budget may also fail under load and passes when re-run quietly.
+- [X] T002 [P] Capture the **baseline** Instruments, Audio effects and MIDI effects tabs (browser at its default width, fresh `HOME`) in all four themes into `/tmp/claude-0/shots/browser-before/`. Use a small `/tmp/claude-0/scripts/browser-tabs.sh <theme> <outdir>` that clicks the three rail tabs. Also capture the Audio effects tab with ⋮ open.
+
+---
+
+## Phase 2: Foundational (blocking)
+
+**Purpose**: category data, the guard, settings and row fields. Every story builds on these.
+
+- [X] T003 Create `Application/Palette/DeviceCategories.cs`:
+ - the two-line SPDX header and a why-comment;
+ - a `public const string Other = "Other"`;
+ - per `BuiltinDeviceType`, an ordered list of `(string Name, string[] Builtins)` written exactly as the spec's Assumptions list them:
+ - Instruments: Synths, Keys & physical, Drums, Samplers, Racks;
+ - Audio effects: EQ & filter, Dynamics, Reverb & delay, Modulation, Distortion, Pitch & time, Utility, Racks;
+ - MIDI effects: Generate, Shape.
+
+ Use the full catalogue names (`"Nota Reverb"`).
+ - `For(BuiltinDevice)` returns the category, or `Other`;
+ - `Order(BuiltinDeviceType)` returns the names in tab order;
+ - `Position(BuiltinDeviceType, string)` returns the index, or `int.MaxValue` for `Other` or an unknown name;
+ - `ForPlugin(bool instrument, string reported)` returns `Other` for now (US4 fills it in).
+
+ See data-model.md § DeviceCategory.
+- [X] T004 [P] Create `Smoke/DesignTokenCheck.Browser.cs`, a `partial class DesignTokenCheck` with the SPDX header and `RunBrowser()`. Per research R7 it yields:
+ - every `BuiltinDeviceCatalog.All` entry is in exactly one category of its own type (none `Other`);
+ - every listed name exists in the catalogue with that type (a stale name fails, naming it);
+ - no category has an empty `Builtins`;
+ - `NotaText.Label(name) == name` for every category name;
+ - the per-tab totals are 18 / 26 / 6.
+
+ Each failure names the device or category.
+- [X] T005 Wire `RunBrowser()` into `Smoke/Program.cs` as a `-- design: browser --` section, next to the other `DesignTokenCheck.Run*` calls (around line 63–81).
+- [X] T006 [P] In `Application/Settings.cs`, add these next to `BrowserGroupBySource`, each with an XML doc line:
+ - `public bool BrowserCategoryView { get; set; } = true;`
+ - `public List<string> BrowserFoldedCategories { get; set; } = new();`
+
+ See data-model.md § Settings.
+- [X] T007 In `VM` `BrowserItem`, add:
+ - `public string DeviceCategory { get; init; } = "";`
+ - `public bool IsFoldable { get; init; }`
+ - `public bool IsFolded { get; init; }`
+
+ In `Rebuild()`, set `DeviceCategory` on each built-in (look up the `BuiltinDevice` in `BuiltinDeviceCatalog.All` by `Type` and `Kind`, then `DeviceCategories.For`). Set it to `DeviceCategories.Other` on plug-ins for now.
+- [X] T008 Build and run the smoke test. `-- design: browser --` must be green, and the rest unchanged from T001.
+
+ *Result*: T001 baseline — only "Consort stress" fails. Design checks 152/152 (134 + 18 new browser checks). `ForPlugin` was written in full with T003 and plug-in rows get it in T007, so T026–T027 land here.
+
+**Checkpoint**: categories exist and are guarded. Nothing visible has changed yet.
+
+---
+
+## Phase 3: User Story 1 — Browse devices by what they do (Priority: P1) 🎯 MVP
+
+**Goal**: the device tabs show built-in devices grouped by category by default (contract C1, research R3).
+
+**Independent test**: on a fresh profile, each device tab lists its categories in the fixed order, and every built-in appears exactly once, alphabetically within its category.
+
+- [X] T009 [US1] In `VM`, add the `CategoryView` property: a `bool _categoryView = true`, and a setter that rebuilds the device tabs, following the `GroupBySource` pattern. Doc comment: "Group the device tabs under category headers."
+- [X] T010 [US1] In `VM` `RebuildVisible(tab)`, branch on `_categoryView`, leaving the existing flat path **byte-for-byte unchanged**. In the category branch:
+ 1. Filter devices with today's library-filter and query rules.
+ 2. Order them by these keys:
+ - `DeviceCategories.Position(type, DeviceCategory)`;
+ - then, if `_groupBySource`, `IsPlugin`;
+ - then, if `_favoritesFirst && _library != null`, not-favourite;
+ - then `ShortName` (`StringComparer.OrdinalIgnoreCase`).
+ 3. For each run of the same category, emit a `Group` row:
+ - `Name` = the category;
+ - `GroupCount` = the devices in that run;
+ - `Path = $"cat:{TabKey(tab)}:{name}"`, where `TabKey` is `instr`, `fx` or `midi`;
+ - `IsFoldable = true`.
+ 4. Emit the devices and their preset rows exactly as the flat path does.
+- [X] T011 [P] [US1] Add `FakeBrowserLibrary : IBrowserLibrary` to `Smoke/BrowserTestSupport.cs`: in-memory favourites (a `HashSet<string>`), no tags (empty lists, no-op tag methods).
+- [X] T012 [US1] Update the existing browser search assertion in `Smoke/Program.cs` (around line 14510): with the category view on by default, the expected sequence for "Glacier" is `Synths, Nota Aurora, Pads, Glacier Pad`.
+- [X] T013 [US1] Add category-view checks to the browser block of `Smoke/Program.cs`, using a fresh `BrowserViewModel` over `EmptyPluginCatalog`:
+ - **(a)** On each tab, the `Group` row names equal `DeviceCategories.Order(type)`.
+ - **(b)** Each built-in appears exactly once, under its `DeviceCategories.For` header.
+ - **(c)** Within each category, devices are in `ShortName` order.
+ - **(d)** Header `GroupCount` equals the rows beneath it.
+ - **(e)** With a `FakeBrowserLibrary` where Nota Delay is a favourite, Delay is first under Reverb & delay (FR-004).
+ - **(f)** Expanding a device in the category view inserts its preset rows directly beneath it, inside its category (FR-007).
+ - **(g)** A search for "Compressor" shows Compressor under the Dynamics header; every header shown has at least one device row beneath it, and categories without matches are absent (FR-006).
+- [X] T014 [US1] Build, run the smoke test, then capture the three tabs in all four themes into `/tmp/claude-0/shots/browser-after/` with `browser-tabs.sh`. Check:
+ - the headers match the Built-in header style (FR-008, SC-005);
+ - "EQ & filter" keeps its casing;
+ - every device is visible under a header (SC-001).
+
+ *Result*: the category checks live in `Smoke/BrowserCategoryTests.cs` (run in sequence from `Program.cs`, or alone with `--browser`) rather than inline, so they can be run in seconds. 18/18 pass. Studio Dark capture: headers in order with counts, devices alphabetical, "EQ & filter" keeps its casing. The four-theme run is in T025 and T034, once the caret is in.
+
+**Checkpoint**: MVP. The browser is categorised by default; folding, the off switch and plug-in mapping follow.
+
+---
+
+## Phase 4: User Story 2 — Turn the category view off (Priority: P2)
+
+**Goal**: "Group by category" in ⋮, persisted; off restores today's list exactly (contract C4, research R5).
+
+**Independent test**: untick "Group by category" and the flat list returns row for row; it stays off after a restart.
+
+- [X] T015 [US2] In `App/BrowserView.cs` `ShowOptionsMenu`, add a `CheckItem("Group by category", _vm?.CategoryView ?? true, v => …)` directly after "Show type tags" and before "Group by source". It sets `_vm.CategoryView`, saves `_settings.Current.BrowserCategoryView`, and calls `RefreshCounts()`.
+- [X] T016 [US2] In `App/BrowserView.cs` `SetSettings` and `SetViewModel`, apply `settings.Current.BrowserCategoryView` to `vm.CategoryView`, alongside `GroupBySource` and `FavoritesFirst`.
+- [X] T017 [US2] Add checks to `Smoke/Program.cs`:
+ - **(a)** With `CategoryView = false`, the Instruments sequence is `BUILT-IN` followed by every built-in instrument in `Name` order, which is today's flat list (SC-003). Same for the Audio effects tab.
+ - **(b)** Turning it back on restores the category headers.
+ - **(c)** `JsonSerializer.Deserialize<Settings>("{}")` has `BrowserCategoryView == true` and an empty `BrowserFoldedCategories` (FR-003, existing users).
+- [X] T018 [US2] Manual check under Xvfb (quickstart § 2 step 4): untick, relaunch with the same `HOME`, and it's still off. Compare the flat-list screenshot with the T002 baseline: it must be identical.
+
+ *Result*: the checks are in `Smoke/BrowserCategoryTests.cs`; all pass. Under Xvfb, unticking wrote `"BrowserCategoryView": false`. After a relaunch the Instruments list matches the T002 baseline except a 40×36 patch on the rail button that had just been clicked (hover state); the list itself is pixel-identical.
+
+---
+
+## Phase 5: User Story 3 — Fold the categories you don't need (Priority: P2)
+
+**Goal**: headers fold on click; folds persist per tab; a search ignores folds without changing them; counts are unaffected (contract C2, C3, C5; research R4, R6).
+
+**Independent test**: fold all but one category on Audio effects; only that category's devices show; switch tabs and restart, and the folds are kept; a search reveals hits inside folded categories, and clearing the search restores the folds.
+
+- [X] T019 [US3] In `VM`, add the fold state:
+ - `HashSet<string> _folded` (`StringComparer.Ordinal`) with keys `"{TabKey}:{name}"`;
+ - `SetFoldedCategories(IEnumerable<string>)`, which loads without raising the event;
+ - `IReadOnlyCollection<string> FoldedCategories`;
+ - `public event Action? CategoryFoldsChanged`;
+ - `ToggleCategoryFold(BrowserItem header)`. It does nothing unless `header.IsFoldable`. Otherwise it parses the tab from `Path` (`cat:<tabKey>:<name>`), flips the key, `RebuildVisible(tab)`, and raises the event.
+- [X] T020 [US3] In `VM` `RebuildVisible`'s category branch:
+ - **No query**: a header in `_folded` gets `IsFolded = true` and its devices and presets are skipped; the header and its `GroupCount` stay.
+ - **Query active**: headers get `IsFoldable = false` and `IsFolded = false`, and folds are ignored.
+- [X] T021 [US3] In `VM`, record per-tab `(builtin, plugins)` counts of the filtered devices *before* folding, during `RebuildVisible` (both branches), and have `VisibleDeviceCounts(tab)` return them (R6). Check that `App/BrowserView.cs` `StatusFor` still reads correctly.
+- [X] T022 [US3] In `App/BrowserView.cs` `GroupRow`, when `item.IsFoldable`:
+ - **Caret**: put `RailIcon(item.IsFolded ? GlyphKind.CaretRight : GlyphKind.CaretDown, 12, "Brush.TextTertiary")` before the label in a new leading `Auto` column, with the label's left margin adjusted so the caret sits where a device row's disclosure sits.
+ - **Click**: `Cursor = Hand`; `PointerPressed` calls `_vm?.ToggleCategoryFold(item)`, then `RefreshCounts()`, and sets `e.Handled = true`.
+ - **Accessible name**: `AutomationProperties.SetName(grid, $"{name}, {count} devices, {(folded ? "folded" : "open")}")`.
+
+ Non-foldable group rows (Built-in / Plug-ins, or any header during a search) render exactly as today. The new tooltip and automation strings must pass `RunLabels`.
+- [X] T023 [US3] In `App/BrowserView.cs`:
+ - `SetSettings` / `SetViewModel` call `vm.SetFoldedCategories(settings.Current.BrowserFoldedCategories)`;
+ - subscribe once to `vm.CategoryFoldsChanged`, which writes `_settings.Current.BrowserFoldedCategories = vm.FoldedCategories.ToList()` and calls `_settings.Save()`.
+- [X] T024 [US3] Add checks to `Smoke/Program.cs`:
+ - **(a)** Folding Dynamics on Audio effects removes Compressor, Prism, Ceiling and Shutter. The Dynamics header stays with `IsFolded` and `GroupCount == 4`.
+ - **(b)** `VisibleDeviceCounts(1)` is unchanged by the fold.
+ - **(c)** A search for "Prism" shows Dynamics (`IsFoldable == false`) with Prism. Clearing the query brings back the folded Dynamics, and `FoldedCategories` is unchanged throughout (US3/AC2).
+ - **(d)** `ToggleCategoryFold` during a search is a no-op.
+ - **(e)** Folding on Audio effects doesn't affect Instruments' `Racks` (keys are per tab).
+ - **(f)** `SetFoldedCategories(new[]{"fx:Dynamics","fx:Nonexistent"})` folds Dynamics and ignores the unknown key.
+- [X] T025 [US3] Manual check under Xvfb (quickstart § 2 steps 2–3, 7):
+ - fold, switch tabs, relaunch: the folds are kept;
+ - a search shows hits in folded categories with no caret, and clearing it restores the folds;
+ - the minimum browser width truncates captions with the caret and count visible.
+
+ Screenshot folded and open headers in all four themes.
+
+ *Result*: all fold checks pass (`--browser`). Under Xvfb:
+ - Dynamics and Modulation fold with their counts kept, and the status line stays "26 built-in";
+ - "comp" shows Dynamics open with no caret, and clearing it restores both folds;
+ - a relaunch restores the folds from `settings.json`;
+ - at the 160 px minimum width the caption, caret and count stay visible, with no overlap.
+
+ Two fixes found here:
+ - a header click no longer opens the empty preview player (it cleared `_listPointerDown`; the same flash existed on the old Built-in header);
+ - the search-box count and the empty state include devices under folded headers, so a tab with every category folded doesn't say "No audio effects yet".
+
+ Four-theme captures are in T034.
+
+---
+
+## Phase 6: User Story 4 — Plug-ins land in the same categories (Priority: P3)
+
+**Goal**: plug-ins map from their reported category; unknown goes to Other, last; source order respected (contract C1, research R2, R3).
+
+**Independent test**: with fake plug-ins reporting `Fx/Reverb` and `Effect`, the first appears under Reverb & delay and the second under Other, last.
+
+- [X] T026 [US4] Implement `DeviceCategories.ForPlugin(bool instrument, string reported)` in `Application/Palette/DeviceCategories.cs` per research R2:
+ - split on `/` and `|`, then trim and lower-case each token;
+ - the first token found in the tab's table wins;
+ - skipped tokens are listed in a comment;
+ - empty or unrecognised maps to `Other`.
+
+ Token tables:
+ - **Instruments**: `synth` → Synths; `piano` → Keys & physical; `drum` → Drums; `sampler` → Samplers.
+ - **Effects**:
+ - `eq`, `filter` → EQ & filter;
+ - `dynamics`, `mastering` → Dynamics;
+ - `reverb`, `delay` → Reverb & delay;
+ - `modulation` → Modulation;
+ - `distortion` → Distortion;
+ - `pitch shift` → Pitch & time;
+ - `analyzer`, `tools`, `spatial`, `surround`, `restoration`, `up-downmix` → Utility.
+- [X] T027 [US4] In `VM` `Rebuild()`, set plug-in rows' `DeviceCategory = DeviceCategories.ForPlugin(isInstrument, category)`, replacing the T007 placeholder.
+- [X] T028 [P] [US4] Add `FakePluginCatalog(params string[] descriptions) : IPluginCatalog` to `Smoke/BrowserTestSupport.cs`. Descriptions use the `Name | Format | inst|fx | Vendor | Category` form that `Rebuild()` parses; `Id` is `"fake:" + index`.
+- [X] T029 [US4] Add checks to `Smoke/Program.cs`:
+ - **(a)** `ForPlugin` table cases:
+ - `Fx/Reverb` → Reverb & delay;
+ - `Fx/Dynamics/EQ` → Dynamics (first recognised);
+ - `Fx/Pitch Shift` → Pitch & time;
+ - `Instrument/Synth/Sampler` → Synths;
+ - `Instrument/Drum` → Drums;
+ - `Effect` → Other;
+ - `""` → Other;
+ - `Fx` → Other.
+ - **(b)** A view model over a `FakePluginCatalog` with "Ambience | VST3 | fx | Smart | Fx/Reverb", "Mystery | AU | fx | Acme | Effect" and "Ana | VST3 | inst | Sonic | Instrument/Synth":
+ - with Group by source on, Reverb & delay lists Chamber, Delay, Reverb, then Ambience;
+ - with it off, it lists Ambience, Chamber, Delay, Reverb (interleaved by short name);
+ - Other is the last header on Audio effects and holds Mystery;
+ - Ana is under Synths after the built-ins;
+ - the MIDI tab is unaffected.
+ - **(c)** No separate `BUILT-IN` / `PLUG-INS` header appears in the category view (FR-005).
+
+ *Result*: T026–T028 landed with Phase 2–3 (`ForPlugin` in T003, plug-in rows in T007, `FakePluginCatalog` with T011). T029's checks pass: the mapping table; Reverb & delay with Group by source on (Chamber, Delay, Reverb, Ambience) and off (Ambience, Chamber, Delay, Reverb); Other last; a synth plug-in after the built-in synths; no source headers; the MIDI tab untouched; counts 26 + 2.
+
+---
+
+## Phase 7: Polish & Cross-Cutting
+
+- [X] T030 [P] `DESIGN.md`:
+ - **Browser bullet** (layout section, around line 651): device tabs group under foldable category headers in the group-header style, with a 12 px disclosure caret and the count; Other is last; a search ignores folds.
+ - **"Enforced by tests" list**: add `RunBrowser`.
+
+ Regenerate `DESIGN.html` with `python3 scripts/design-html.py`.
+- [X] T031 [P] `.claude/skills/nota-instrument/SKILL.md`: add "add the device to its category in `Application/Palette/DeviceCategories.cs` (the `RunBrowser` check fails otherwise)" to the registration checklist.
+- [X] T032 [P] `CHANGELOG.md` `[Unreleased]` Added: the browser groups instruments, audio effects and MIDI effects into foldable categories by default (plug-ins included, by their reported category). "Group by category" in ⋮ turns it off.
+- [X] T033 [P] Run the nota-features skill for `FEATURES.md`: the browser section (categories, folding, the view option). Note nota-docs (the sibling repo `nota-daw/nota-docs`, unavailable here) as a follow-up in the PR. nota-shortcuts is N/A (no shortcut change).
+ *Result*:
+ - DESIGN.md has a "Browser categories" bullet and a `RunBrowser` row. `DESIGN.html` is regenerated from tokens only, so it is unchanged.
+ - FEATURES.md gains a "Device categories" bullet and "group by category" in View options. The compact-index bullet's stale "tertiary Nota prefix" claim now describes the short names shipped in 008.
+ - The nota-docs follow-up goes in the PR.
+
+- [X] T034 Run quickstart.md § 2 in full under Xvfb in all four themes. Make before/after contact sheets of the three device tabs (T002 vs final) for the PR.
+- [X] T035 Nota closing checks:
+ - the two-line SPDX header is on `Application/Palette/DeviceCategories.cs` and `Smoke/DesignTokenCheck.Browser.cs`;
+ - no new dependency (`LICENSES/third-party.md` N/A);
+ - no engine behaviour change (smoke engine coverage N/A).
+ *Result*:
+ - **T034**: the three device tabs, captured in all four themes plus Studio Light with folds, read correctly. Headers match the Built-in header style, and the caret sits in the device caret column. Contact sheets were sent in the session.
+ - **T035**: SPDX headers are on the three new files. No dependency, native or project-format change.
+
+- [X] T036 *(moved to T049, after the chips rework)* Final gate: a full `scripts/build-linux.sh`. Only the known "Consort stress" failure is allowed (it also fails on the base). Then run `/speckit-converge`.
+
+---
+
+## Dependencies & Execution Order
+
+- **Setup (1)** → **Foundational (2)** blocks every story: categories, guard, settings and row fields.
+- **US1 (3)** is the MVP and comes before US2, US3 and US4, which all build on the category branch in `RebuildVisible` (T010).
+- **US2 (4)** and **US3 (5)** are independent of each other once US1 is done. Both touch `App/BrowserView.cs`, so run them one after the other (US2 first, it's smaller).
+- **US4 (6)** depends only on US1 (T010) and T007. It can run alongside US2 and US3 except where `Smoke/Program.cs` is shared, which is sequential.
+- **Polish (7)** comes last.
+
+Within phases:
+- T004 ∥ T006 (different files) after T003;
+- T011 ∥ T009–T010;
+- T028 ∥ T026–T027;
+- T030 ∥ T031 ∥ T032 ∥ T033.
+
+## Parallel Example: Phase 2
+
+```text
+T003 DeviceCategories.cs
+ → T004 DesignTokenCheck.Browser.cs ∥ T006 Settings.cs
+ → T005 wire RunBrowser → T007 BrowserItem fields + Rebuild → T008 build
+```
+
+## Implementation Strategy
+
+1. **MVP**: Phases 1–3. Built-ins are categorised by default, guarded by `RunBrowser`. This is shippable alone.
+2. Then US2 (off switch), US3 (folding) and US4 (plug-ins), one commit each.
+3. Then docs, the screenshot run and converge.
+
+## Notes
+
+- **The flat path is frozen.** T010 must not change today's branch of `RebuildVisible`, and T017(a) proves it.
+- **Device rows are shared objects** between the two views. Never copy a `BrowserItem` device to place it under a header, or drag, favourite and expand state would split.
+- **Header names come from `DeviceCategories` only.** Never retype a category string in the view or tests: use `DeviceCategories.Order` and `For`.
+
+---
+
+## Phase 8: Rework — category chips instead of headers (research R9)
+
+**Why**: after seeing the headers build (US1 and US3 above), the user chose Ableton-style
+chips. Spec FR-002–FR-006, US1–US3, the plan summary, the data model and the contract are
+revised. The category data, `RunBrowser`, the plug-in mapping and the test fakes stay.
+The header branch, folding and their checks are removed.
+
+**Independent test**: each device tab shows its chips. A chip lists exactly its category,
+and with no chip the list is today's.
+
+- [X] T037 In `VM`, remove the headers build:
+ - `CategoryView`, the `RebuildCategoryView` branch and its call;
+ - the fold state (`_folded`, `SetFoldedCategories`, `FoldedCategories`, `CategoryFoldsChanged`, `ToggleCategoryFold`, `FoldedDeviceCount`, `_foldedDevices`) and the folded counts in `VisibleDeviceCounts`, which goes back to as before;
+ - `BrowserItem.IsFoldable` / `IsFolded`.
+
+ Keep `DeviceCategory`, `TabKey` and `TypeOf`.
+- [X] T038 In `VM`, add the category filter (data-model § Category filter):
+ - `string[] _categoryFilter = { "", "", "" }`;
+ - `CategoryFilter(int tab)`;
+ - `SetCategoryFilter(int tab, string name)`, which rebuilds that tab;
+ - `CategoriesOn(int tab)`: `Order(TypeOf(tab))`, plus `Other` when any tree node's shelf is `Other`;
+ - in `RebuildVisible`'s device loop, `if (!PassesCategoryFilter(tab, node)) continue;` beside `PassesLibraryFilter`. The shelf is `DeviceCategory`, normalised to `Other` when the tab doesn't list it.
+- [X] T039 [P] In `Application/Settings.cs`, replace `BrowserCategoryView` and `BrowserFoldedCategories` with `public bool BrowserCategoryChips { get; set; } = true;` (doc: "Show the category chips above the device lists (Synths, Dynamics…)").
+- [X] T040 In `App/BrowserView.cs`, remove the headers build:
+ - restore `GroupRow` (no caret, no click, the original margins and columns);
+ - restore `VisibleCount` without folded devices;
+ - remove the fold load/save wiring, `CategoryView` application, and the "Group by category" ⋮ item.
+- [X] T041 In `App/BrowserView.cs`, add the chip row:
+ - a `WrapPanel _categoryChips` in a host `Border` (same margins as `_chipsHost`), placed in `topStack` between `headerRow` and `_chipsHost`;
+ - `RebuildCategoryChips()` makes one `MakeChip(name, null, active, …)` per `_vm.CategoriesOn(_active)`; a click toggles `_vm.SetCategoryFilter(_active, active ? "" : name)`, then rebuilds the chips and calls `RefreshCounts()`;
+ - shown only on tabs 0–2 while `BrowserCategoryChips` is on; rebuilt on tab change and on `DevicesRebuilt`;
+ - a tooltip "<n> devices" per chip if cheap, else none.
+
+ The chip spacing matches the Files tab's `_sampleChips`.
+- [X] T042 In `App/BrowserView.cs`, add `CheckItem("Category chips", …)` in ⋮ after "Show type tags". It saves `BrowserCategoryChips`; turning it off calls `SetCategoryFilter(t, "")` for tabs 0–2, then updates the row's visibility and `RefreshCounts()`. Apply the setting in `SetSettings` / `SetViewModel`. `EmptyMessage`'s `filtering` also counts a picked category.
+- [X] T043 Rewrite `Smoke/BrowserCategoryTests.cs` for chips:
+ - **(a)** No pick: each tab equals today's list (`BUILT-IN` plus built-ins by `Name`).
+ - **(b)** `CategoriesOn` equals `Order` on each tab (no plug-ins means no Other).
+ - **(c)** For every category, picking it lists exactly its built-ins (`DeviceCategories.Of(type)`), and the union over the chips covers every device once.
+ - **(d)** Clearing the pick restores (a).
+ - **(e)** Picks are per tab.
+ - **(f)** Dynamics plus the search "Prism" gives only Prism; Dynamics plus Favorites with Compressor favourited gives only Compressor.
+ - **(g)** Expanding a device while picked shows its presets beneath it.
+ - **(h)** The `ForPlugin` table.
+ - **(i)** With `FakePluginCatalog`: Reverb & delay gives `BUILT-IN`, Chamber, Delay, Reverb, `PLUG-INS`, Ambience; `CategoriesOn(1)` ends with Other, which lists Mystery; Synths includes Ana; the MIDI tab has no Other.
+ - **(j)** `Deserialize<Settings>("{}").BrowserCategoryChips == true`.
+
+ Restore the `Program.cs` Glacier assertion to `BUILT-IN, Nota Aurora, Pads, Glacier Pad`.
+- [X] T044 Build. Run `--browser` and the design checks (`check.sh`): all pass, `RunLabels` included (the new chip and ⋮ strings).
+- [X] T045 Under Xvfb, run quickstart § 2 steps 1–6:
+ - pick and clear a chip;
+ - switch chips;
+ - a chip plus search and Favorites;
+ - the pick is kept per tab;
+ - ⋮ off clears and hides it and survives a relaunch;
+ - the minimum width wraps.
+
+ Compare the no-pick list with the T002 baseline (it must be pixel-identical below the chip row).
+- [X] T046 Capture the three tabs in all four themes, with and without a chip picked, and make before/after contact sheets for the PR (quickstart § 2 step 7).
+ *Result*:
+ - **Checks**: `--browser` 29/29; design checks 152/152 (`RunLabels` included). `BrowserView.cs` was restored to its pre-headers state and the chip row added fresh.
+ - **Under Xvfb**:
+ - Audio effects shows 8 chips in three wrapped rows above Favorites;
+ - Reverb & delay narrows to Chamber, Delay and Reverb;
+ - Dynamics switches the list, and with "prism" it shows only Prism;
+ - Instruments is unfiltered while Audio effects keeps Dynamics.
+ - **⋮ off**: clears the pick and hides the row. After a relaunch, the list matches the T002 baseline pixel for pixel (AE 0).
+ - **Minimum width**: one chip per line, no overlap.
+ - **Captures**: four themes, unpicked and picked. Contact sheets were sent in the session.
+
+- [X] T047 [P] Docs:
+ - `DESIGN.md`: replace the "Browser categories" bullet with the chip row (its own wrapping row above Favorites/tags, `MakeChip`, one pick per tab, Other last when used);
+ - `FEATURES.md`: replace the "Device categories" bullet and the View options wording ("category chips");
+ - `CHANGELOG.md`: rewrite the Added entry for chips.
+- [X] T048 [P] Re-check `.claude/skills/nota-instrument/SKILL.md`. The category step stays as written: it names `DeviceCategories.cs` and the browser check, not headers.
+- [X] T049 Final gate: a full `scripts/build-linux.sh`. Only the known "Consort stress" failure is allowed. Then run `/speckit-converge`.
+
+ *Result*: 3265 passed and 1 failed. The failure is "Consort stress" (2.23 ms against a 2.90 ms budget), which also fails on the base (T001). Results:
+ - `-- design: browser --` all pass;
+ - `-- browser: device categories --` 29/29;
+ - the restored search assertion passes (`BUILT-IN / Nota Aurora / Pads / Glacier Pad`).
+
+
+## Phase 9: Convergence
+
+- [X] T050 Reword `specs/013-browser-categories/plan.md` § "Nota: Read Before Planning" (line 44): the chips reuse `MakeChip` (the filter-chip style), not `GroupLabel` and the disclosure caret, per plan: R9 chips decision (contradicts)
+- [X] T051 Update the `DESIGN.md` Filter chips row (line 466): the Favorites / tags strip overflows into `+N`, and the device tabs' category row wraps so every category stays in sight, per FR-008 (partial)
diff --git a/src/managed/Nota.App/App.axaml.cs b/src/managed/Nota.App/App.axaml.cs
index 27801e1c..b4853493 100644
--- a/src/managed/Nota.App/App.axaml.cs
+++ b/src/managed/Nota.App/App.axaml.cs
@@ -88,9 +88,11 @@ public partial class App : Avalonia.Application
e.SetObserved();
};
- // Palette variant (Preferences → Appearance), applied before the first window
- // paints so nothing flashes graphite on the way to paper.
- NotaThemeService.Set(Services.GetRequiredService<ISettingsService>().Current.Theme);
+ // Colour theme (Preferences → Appearance), applied before the first window paints so
+ // nothing flashes one theme on the way to another. Old Dark / Light / System
+ // settings resolve onto the Studio themes (Appearance.Resolve).
+ foreach (var err in NotaThemes.LoadErrors) log.Error($"Colour theme skipped — {err}", null);
+ NotaThemeService.Set(Appearance.Resolve(Services.GetRequiredService<ISettingsService>().Current, NotaThemeService.KnownThemes));
// Nota Mosaic's samples resolve against the Samples and data folders; installed sample
// packs get their Mosaic presets in the background (once per pack version).
diff --git a/src/managed/Nota.App/ArrangementView.Automation.cs b/src/managed/Nota.App/ArrangementView.Automation.cs
index 4bd3937e..4aabd3f3 100644
--- a/src/managed/Nota.App/ArrangementView.Automation.cs
+++ b/src/managed/Nota.App/ArrangementView.Automation.cs
@@ -391,7 +391,7 @@ public sealed partial class ArrangementView
}
foreach (var (label, apply) in top)
{
- var it = new MenuItem { Header = label, Icon = AutoDot(), Foreground = DeviceCardKit.AccentBright };
+ var it = new MenuItem { Header = label, Icon = AutoDot() };
it.Click += (_, _) => apply();
flyout.Items.Add(it);
}
@@ -545,7 +545,7 @@ public sealed partial class ArrangementView
(ScaleMidiBody.PFollowKey, "Follow Key"), (ScaleMidiBody.PLearn, "Learn"),
};
foreach (var (p, label) in ps) mMenu.Items.Add(MLeaf(m, p, label));
- var notes = new MenuItem { Header = "Custom Notes" };
+ var notes = new MenuItem { Header = "Custom notes" };
string[] degrees = { "Root", "♭2", "2", "♭3", "3", "4", "♭5", "5", "♭6", "6", "♭7", "7" };
for (int d = 0; d < 12; d++) notes.Items.Add(MLeaf(m, ScaleMidiBody.PMask0 + d, degrees[d]));
mMenu.Items.Add(new Separator());
@@ -609,10 +609,11 @@ public sealed partial class ArrangementView
flyout.ShowAt(anchor, showAtPointer: true);
}
- // A small brass dot dropped into a MenuItem.Icon slot to flag an already-automated param.
+ // A small dot dropped into a MenuItem.Icon slot to flag an already-automated param. Not the
+ // accent: the hovered item fills with it, and the dot must stay visible there.
private static Control AutoDot() => new Avalonia.Controls.Shapes.Ellipse
{
- Width = 7, Height = 7, Fill = DeviceCardKit.Brass,
+ Width = 7, Height = 7, Fill = NotaPalette.TextPrimary,
VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center,
};
@@ -620,7 +621,7 @@ public sealed partial class ArrangementView
private MenuItem Leaf(string header, string key, Action apply, HashSet<string> automated)
{
var it = new MenuItem { Header = header };
- if (automated.Contains(key)) { it.Icon = AutoDot(); it.Foreground = DeviceCardKit.AccentBright; }
+ if (automated.Contains(key)) { it.Icon = AutoDot(); }
it.Click += (_, _) => apply();
return it;
}
diff --git a/src/managed/Nota.App/ArrangementView.LaneControl.cs b/src/managed/Nota.App/ArrangementView.LaneControl.cs
index a16867ab..1081052a 100644
--- a/src/managed/Nota.App/ArrangementView.LaneControl.cs
+++ b/src/managed/Nota.App/ArrangementView.LaneControl.cs
@@ -1190,7 +1190,7 @@ public sealed partial class ArrangementView
// Audio clip → stems (AI model) and → MIDI: Convert / Slice to New MIDI Track.
if (!clip.IsMidi)
{
- var stems = new MenuItem { Header = "Separate Stems…", Icon = MenuKit.Icon(GlyphKind.Stems) };
+ var stems = new MenuItem { Header = "Separate stems…", Icon = MenuKit.Icon(GlyphKind.Stems) };
stems.Click += (_, _) => _o.SeparateStemsRequested?.Invoke(trackId, idx);
var convert = new MenuItem { Header = "Convert", Icon = MenuKit.Icon(GlyphKind.Arrow) };
@@ -1200,13 +1200,13 @@ public sealed partial class ArrangementView
if (enabled) mi.Click += (_, _) => _o.ConvertClipRequested?.Invoke(trackId, idx, mode);
return mi;
}
- convert.Items.Add(ConvItem("Convert Melody to New MIDI Track", ClipConvertMode.Melody, true));
+ convert.Items.Add(ConvItem("Convert melody to new MIDI track", ClipConvertMode.Melody, true));
convert.Items.Add(ConvItem("Convert Harmony to New MIDI Track", ClipConvertMode.Harmony, true));
convert.Items.Add(ConvItem("Convert Drums to New MIDI Track", ClipConvertMode.Drums, true));
- convert.Items.Add(ConvItem("Slice to New MIDI Track", ClipConvertMode.Slice, true));
+ convert.Items.Add(ConvItem("Slice to new MIDI track", ClipConvertMode.Slice, true));
if (_o.CanTranscribe?.Invoke() == false)
{
- var better = new MenuItem { Header = "Get the AI Model for Melody & Harmony…" };
+ var better = new MenuItem { Header = "Get the AI model for melody & harmony…" };
better.Click += (_, _) => _o.TranscriptionModelRequested?.Invoke();
convert.Items.Add(new Separator());
convert.Items.Add(better);
@@ -1222,7 +1222,7 @@ public sealed partial class ArrangementView
{
var toSession = new MenuItem { Header = inGroup ? "Copy selection to Session" : "Copy to Session", Icon = MenuKit.Icon(GlyphKind.Grid), InputGesture = MenuKit.CopyToOtherViewKey };
toSession.Click += (_, _) => { EnsureSelected(); _o.CopySelectionToSession(); };
- var toScene = new MenuItem { Header = "Copy to Scene", Icon = MenuKit.Icon(GlyphKind.Grid) };
+ var toScene = new MenuItem { Header = "Copy to scene", Icon = MenuKit.Icon(GlyphKind.Grid) };
for (int s = 0; s < eng.SceneCount; s++)
{
int sc = s;
@@ -1342,7 +1342,7 @@ public sealed partial class ArrangementView
DrawRecPeaks(ctx, re, rr);
if (rr.Width > 34)
{
- var ft = new FormattedText("REC", CultureInfo.InvariantCulture,
+ var ft = new FormattedText("Rec", CultureInfo.InvariantCulture,
FlowDirection.LeftToRight, NotaFonts.SansBold, 9, RecText);
Glyph.Draw(ctx, GlyphKind.Record, new Rect(rr.X + 5, rr.Y + 3 + (ft.Height - 7) / 2, 7, 7), RecText);
ctx.DrawText(ft, new Point(rr.X + 16, rr.Y + 3));
@@ -1549,10 +1549,12 @@ public sealed partial class ArrangementView
double x0 = _o.BeatToX(c.StartBeat);
double x1 = _o.BeatToX(c.StartBeat + c.LengthBeats);
if (x1 < 0 || x0 > w || c.LengthBeats <= 0) return;
- var (fill, _, _, content) = ClipColors(colorIndex);
+ var (_, _, _, body) = ClipColors(colorIndex);
+ // The clip: a flat body in the track colour, radius 2, no outline; its notes and
+ // waveform in a deeper shade of it; selection adds a 1px accent edge.
+ var content = ClipInk(colorIndex);
var rect = new Rect(x0, y + 2, Math.Max(2, x1 - x0), rowH - 4);
- // A flat body in the track tint, radius 2, no outline; selection adds a 1px brass edge.
- ctx.DrawRectangle(fill, selected ? ClipSelBorder : null, rect, NotaRadius.ClipValue, NotaRadius.ClipValue);
+ ctx.DrawRectangle(body, selected ? ClipSelBorder : null, rect, NotaRadius.ClipValue, NotaRadius.ClipValue);
// Resize-edge affordance: a bright bar on the edge a drag would trim.
if (edgeHi != Drag.None)
@@ -1568,24 +1570,27 @@ public sealed partial class ArrangementView
if (c.IsMidi) DrawNotes(ctx, c, contentRect, content, pitches);
else DrawWaveform(ctx, c, contentRect, content);
- // 2px band in the track colour along the top edge: the clip's family marker.
+ // The title band: the track colour mixed 30% toward black across the top, the
+ // accent when the clip is selected; the name sits on it in derived ink. It is drawn
+ // over the content — the content area and the ADSR frame keep their geometry.
+ // A row too short for a band keeps the 2px family marker.
+ bool tall = rect.Height > TitleBandH * 2.5;
+ var band = selected ? NotaPalette.Accent : ClipBand(colorIndex);
if (rect.Width > 3)
- ctx.FillRectangle(content, new Rect(rect.X + 1, rect.Y + 1, rect.Width - 2, BandH));
+ {
+ using var bc = ctx.PushClip(new RoundedRect(rect, NotaRadius.ClipValue));
+ ctx.FillRectangle(band, new Rect(rect.X, rect.Y, rect.Width, tall ? TitleBandH : BandH + 1));
+ }
- if (rect.Width > 24 && rect.Height > 14 && ShowsLabel(c))
+ if (tall && rect.Width > 24 && ShowsLabel(c))
{
// The clip's own name (set via its menu) wins; otherwise the track name.
string text = string.IsNullOrEmpty(c.Name) ? label : c.Name;
var ft = new FormattedText(text, CultureInfo.InvariantCulture,
- FlowDirection.LeftToRight, Typeface.Default, 9, content)
+ FlowDirection.LeftToRight, NotaFonts.SansSemiBold, 9.5, NotaPalette.InkOn(band))
{ MaxTextWidth = Math.Max(8, rect.Width - 10), Trimming = TextTrimming.CharacterEllipsis };
- var plate = new Rect(rect.X + 1, rect.Y + BandH + 1,
- Math.Min(rect.Width - 2, ft.Width + 8), ft.Height + 2);
using var _ = ctx.PushClip(rect);
- // A soft plate keeps the name readable over a dense waveform without
- // reintroducing a full-width strip.
- ctx.FillRectangle(LabelPlate, plate);
- ctx.DrawText(ft, new Point(rect.X + 5, rect.Y + BandH + 2));
+ ctx.DrawText(ft, new Point(rect.X + 5, rect.Y + (TitleBandH - ft.Height) / 2));
}
if (!c.IsMidi && row >= 0) DrawAdsr(ctx, c, trackId, row, selected, content, NotaPalette.BgSunken);
@@ -1596,7 +1601,8 @@ public sealed partial class ArrangementView
ctx.DrawRectangle(InactiveVeil, null, rect.Deflate(1), NotaRadius.ClipValue, NotaRadius.ClipValue);
}
- private const double BandH = 2; // clip colour band along the top edge
+ private const double BandH = 2; // the content area starts under this (ADSR frame, notes)
+ private const double TitleBandH = 12; // the drawn title band over the top of the content
// The clip's ADSR: the curve whenever it shapes the clip, the handles while the clip is
// hovered, selected or being edited. Drawn in the clip's own colour; the hot handle is brass.
@@ -1755,6 +1761,8 @@ public sealed partial class ArrangementView
ctx.DrawGeometry(brush, null, geo);
}
+ private static readonly IPen AutoCurvePen = new Pen(NotaPalette.VizInk, 1.6);
+
private void DrawAutomation(DrawingContext ctx, double w)
{
var (rLo, rHi) = _o.VisibleRowRange();
@@ -1765,8 +1773,10 @@ public sealed partial class ArrangementView
ctx.FillRectangle(AutoScrim, new Rect(0, y, w, RowH(i)));
if (_o.IsSlimRowAt(i)) continue; // a slim group bar has no room for an envelope
- var (fill, _, strip, content) = ClipColors(t.ColorIndex);
- var pen = new Pen(content, 1.6);
+ // Automation: the curve and its points in neutral viz ink; only the
+ // point or segment under the pointer takes the accent.
+ var content = NotaPalette.VizInk;
+ var pen = AutoCurvePen;
var ordered = t.AutoPoints.OrderBy(p => p.Beat).ToList();
if (ordered.Count == 0)
@@ -1827,9 +1837,9 @@ public sealed partial class ArrangementView
// Target-selector pill (top-left) — width fits the label, text centred.
double pillW = PillWidth(t.AutoLabel);
var pill = PillRect(i, pillW);
- ctx.DrawRectangle(strip, null, pill, 3, 3);
+ ctx.DrawRectangle(NotaPalette.SurfaceRaised, null, pill, NotaRadius.ControlValue, NotaRadius.ControlValue);
var ft = new FormattedText(t.AutoLabel, CultureInfo.InvariantCulture,
- FlowDirection.LeftToRight, Typeface.Default, 9, content);
+ FlowDirection.LeftToRight, NotaFonts.SansMedium, 9, NotaPalette.TextPrimary);
using (ctx.PushClip(pill))
ctx.DrawText(ft, new Point(pill.X + 6, pill.Y + (PillH - ft.Height) / 2));
}
diff --git a/src/managed/Nota.App/ArrangementView.Overview.cs b/src/managed/Nota.App/ArrangementView.Overview.cs
index e7f3783e..0cb665a7 100644
--- a/src/managed/Nota.App/ArrangementView.Overview.cs
+++ b/src/managed/Nota.App/ArrangementView.Overview.cs
@@ -47,7 +47,7 @@ public sealed partial class ArrangementView
{
var label = new TextBlock
{
- Text = "OVERVIEW", Classes = { "SectionLabel" },
+ Text = "Overview", Classes = { "SectionLabel" },
VerticalAlignment = VerticalAlignment.Center,
};
_overviewRange = new TextBlock
diff --git a/src/managed/Nota.App/ArrangementView.Sections.cs b/src/managed/Nota.App/ArrangementView.Sections.cs
index 833db60c..1739962b 100644
--- a/src/managed/Nota.App/ArrangementView.Sections.cs
+++ b/src/managed/Nota.App/ArrangementView.Sections.cs
@@ -55,7 +55,7 @@ public sealed partial class ArrangementView
{
var label = new TextBlock
{
- Text = "SECTIONS", Classes = { "SectionLabel" },
+ Text = "Sections", Classes = { "SectionLabel" },
HorizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Center,
Margin = new Thickness(8, 0, 0, 0),
@@ -161,13 +161,14 @@ public sealed partial class ArrangementView
private sealed class SectionsControl : Control
{
private static readonly IBrush LaneBg = NotaPalette.Wash(NotaPalette.BgSunken, 0xFF);
- // Spans alternate between a brass-marked and a neutral treatment, so a long song
- // reads as a rhythm of blocks rather than one continuous ribbon of labels.
- private static readonly IBrush WarmFill = NotaPalette.Wash(NotaPalette.Accent, 0x33);
+ // Spans alternate between two neutral tone steps, so a long song reads as a rhythm of
+ // blocks rather than one continuous ribbon of labels. Neither is the accent: a section
+ // at rest is neither live nor chosen. (A span being drawn — Draft — is.)
+ private static readonly IBrush WarmFill = NotaPalette.Wash(NotaPalette.SurfaceHover, 0xFF);
private static readonly IBrush ColdFill = NotaPalette.Wash(NotaPalette.SurfaceRaised, 0xFF);
- private static readonly IBrush WarmEdge = NotaPalette.AccentBright;
+ private static readonly IBrush WarmEdge = NotaPalette.TextFaint;
private static readonly IBrush ColdEdge = NotaPalette.BorderStrong;
- private static readonly IBrush WarmInk = NotaPalette.AccentBright;
+ private static readonly IBrush WarmInk = NotaPalette.TextPrimary;
private static readonly IBrush ColdInk = NotaPalette.TextSecondary;
private static readonly IBrush HintInk = NotaPalette.TextDisabled;
private static readonly IBrush DraftFill = NotaPalette.Wash(NotaPalette.AccentBright, 0x28);
diff --git a/src/managed/Nota.App/ArrangementView.cs b/src/managed/Nota.App/ArrangementView.cs
index 93d46a38..87d6edcd 100644
--- a/src/managed/Nota.App/ArrangementView.cs
+++ b/src/managed/Nota.App/ArrangementView.cs
@@ -134,6 +134,24 @@ public sealed partial class ArrangementView : UserControl
/// <summary>Combined height of every visible row.</summary>
internal double RowsHeight => _rowTops[_tracks.Count];
+ /// <summary>Scroll the track list so <paramref name="trackId"/>'s whole row is in view. Runs
+ /// after the next layout pass, so it also works straight after a Refresh that added the
+ /// row (the scroll extent isn't updated until then). A row already fully visible doesn't move.</summary>
+ public void RevealTrack(int trackId)
+ {
+ Dispatcher.UIThread.Post(() =>
+ {
+ int i = _tracks.FindIndex(t => t.Id == trackId);
+ if (i < 0) return;
+ double top = RowTop(i), bottom = RowTop(i + 1), view = _scroller.Viewport.Height;
+ double y = _scroller.Offset.Y;
+ if (top < y) y = top;
+ else if (bottom > y + view) y = bottom - view;
+ else return;
+ _scroller.Offset = new Vector(_scroller.Offset.X, Math.Max(0, y));
+ }, DispatcherPriority.Background);
+ }
+
/// <summary>Row containing <paramref name="y"/>, or -1 when it falls outside the rows.</summary>
internal int RowAtY(double y)
{
@@ -290,7 +308,7 @@ public sealed partial class ArrangementView : UserControl
Margin = new Thickness(8, 0, 0, 0),
Children =
{
- new TextBlock { Text = "ZOOM", Classes = { "SectionLabel" }, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(6, 0, 2, 0) },
+ new TextBlock { Text = "Zoom", Classes = { "SectionLabel" }, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(6, 0, 2, 0) },
zoomOut, zoomIn,
},
};
@@ -398,30 +416,37 @@ public sealed partial class ArrangementView : UserControl
bottom.BindResource(Border.BackgroundProperty, "Brush.BgSunken");
bottom.BindResource(Border.BorderBrushProperty, "Brush.Hairline");
+ // The pinned return/master band meets the scrolling tracks on a seam, so a track
+ // scrolled to the bottom edge never reads as sitting on a return row (critique F1).
+ var footerSeam = new Border { Height = 1 };
+ footerSeam.BindResource(Border.BackgroundProperty, "Brush.Seam");
+
var root = new DockPanel();
DockPanel.SetDock(_overviewRow, Dock.Top);
DockPanel.SetDock(_sectionsRow, Dock.Top);
DockPanel.SetDock(top, Dock.Top);
DockPanel.SetDock(bottom, Dock.Bottom);
DockPanel.SetDock(_footer, Dock.Bottom);
+ DockPanel.SetDock(footerSeam, Dock.Bottom);
root.Children.Add(_overviewRow); // Overview sits above the ruler
root.Children.Add(_sectionsRow); // …then the named song sections
root.Children.Add(top);
root.Children.Add(bottom);
root.Children.Add(_footer);
+ root.Children.Add(footerSeam); // docked after the footer → sits on top of it
root.Children.Add(centerArea);
- // The island: like the browser, the arrangement is a rounded card floating on the app
- // ground rather than a full-bleed region. ClipToBounds keeps the ruler, the header
- // column and the pinned footer inside the rounded corners.
+ // A docked panel like the browser: square, no frame of its own — it meets its
+ // neighbours on the seam the shell grid draws. ClipToBounds keeps the ruler, the
+ // header column and the pinned footer inside it.
var island = new Border
{
- BorderThickness = new Thickness(1),
+ BorderThickness = new Thickness(0),
ClipToBounds = true,
Child = root,
};
- island.BindResource(Border.CornerRadiusProperty, "Radius.Panel");
- island.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");
+ island.BindResource(Border.CornerRadiusProperty, "Radius.Docked");
+ island.BindResource(Border.BackgroundProperty, "Brush.BgApp"); // lanes sit on the ground
island.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");
Content = island;
}
@@ -1714,8 +1739,8 @@ public sealed partial class ArrangementView : UserControl
VerticalAlignment = VerticalAlignment.Center,
Children =
{
- ChipToggle("M", t.Muted, danger: false, v => _engine?.SetTrackMute(t.Id, v)),
- ChipToggle("S", t.Soloed, danger: false, v => _engine?.SetTrackSolo(t.Id, v)),
+ ChipToggle("M", t.Muted, NotaPalette.Mute, v => _engine?.SetTrackMute(t.Id, v)),
+ ChipToggle("S", t.Soloed, NotaPalette.Solo, v => _engine?.SetTrackSolo(t.Id, v)),
},
};
@@ -1723,7 +1748,7 @@ public sealed partial class ArrangementView : UserControl
Grid.SetColumn(tri, 0);
Grid.SetColumn(name, 1);
Grid.SetColumn(chips, 2);
- var kind = TypeTag("GROUP");
+ var kind = TypeTag("Group");
Grid.SetColumn(kind, 3);
row.Children.Add(tri);
row.Children.Add(name);
@@ -1791,13 +1816,7 @@ public sealed partial class ArrangementView : UserControl
// Freeze badge: a drawn chain-link for a sleeping live-freeze source (1);
// a drawn snowflake for an in-place frozen track or a linked frozen track (2).
Control badge = t.LiveRole == 1
- ? new Avalonia.Controls.Shapes.Path
- {
- Data = NotaIcons.ChainLink, Stretch = Stretch.None,
- Stroke = FrozenAccent, StrokeThickness = 1.4,
- Width = 14, Height = 14,
- VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, 4, 0),
- }
+ ? new Glyph(GlyphKind.ChainLink, 14) { Foreground = FrozenAccent, Margin = new Thickness(0, 0, 4, 0) }
: new Glyph(GlyphKind.Freeze, 10) { Foreground = FrozenAccent, Margin = new Thickness(0, 0, 4, 0) };
Grid.SetColumn(badge, 0);
nameRow.Children.Add(badge);
@@ -1809,8 +1828,8 @@ public sealed partial class ArrangementView : UserControl
// Row 2: M / S / ● (record-arm) — 18×16 chips.
var btnRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 3, Margin = new Thickness(0, 5, 0, 0) };
- btnRow.Children.Add(ChipToggle("M", t.Muted, danger: false, v => _engine?.SetTrackMute(t.Id, v)));
- btnRow.Children.Add(ChipToggle("S", t.Soloed, danger: false, v => _engine?.SetTrackSolo(t.Id, v)));
+ btnRow.Children.Add(ChipToggle("M", t.Muted, NotaPalette.Mute, v => _engine?.SetTrackMute(t.Id, v)));
+ btnRow.Children.Add(ChipToggle("S", t.Soloed, NotaPalette.Solo, v => _engine?.SetTrackSolo(t.Id, v)));
// Record-arm applies to instrument (MIDI capture) + audio (input capture) tracks;
// return and group tracks have no input, so they get no arm chip.
if (!t.IsReturn && !t.IsGroup)
@@ -2221,10 +2240,10 @@ public sealed partial class ArrangementView : UserControl
};
void Paint()
{
- // Engaged: the brass wash + edge of M/S; at rest a neutral chip.
- chip.Background = Brush(state ? "Brush.AccentSubtle" : "Brush.SurfaceRaised");
- chip.BorderBrush = Brush(state ? "Brush.BorderBrass" : "Brush.BorderDefault");
- glyph.Foreground = Brush(state ? "Brush.AccentHover" : "Brush.TextStrong");
+ // Engaged: a solid accent key with derived ink (toggled on); at rest a raised key.
+ chip.Background = Brush(state ? "Brush.Accent" : "Brush.SurfaceRaised");
+ chip.BorderBrush = Brush(state ? "Brush.Accent" : "Brush.Seam");
+ glyph.Foreground = Brush(state ? "Brush.TextOnAccent" : "Brush.TextSecondary");
chip.Opacity = usable ? 1.0 : 0.4;
ToolTip.SetTip(chip, usable
? (state ? "Monitoring input — click to stop" : "Monitor input: hear it live through this track")
@@ -2339,8 +2358,8 @@ public sealed partial class ArrangementView : UserControl
{
var tb = new TextBlock
{
- Text = text, FontSize = 8, FontWeight = FontWeight.Medium, Classes = { "Mono" },
- Foreground = Brush("Brush.TextDisabled"), VerticalAlignment = VerticalAlignment.Center,
+ Text = NotaText.Label(text), FontSize = 9, Classes = { "Mono" },
+ Foreground = Brush("Brush.TextMuted"), VerticalAlignment = VerticalAlignment.Center,
Margin = new Thickness(6, 0, 0, 0),
};
return tb;
@@ -2371,9 +2390,10 @@ public sealed partial class ArrangementView : UserControl
return pill;
}
- // A small 18×16 stateful chip toggle (M/S/●). Danger variant reds when active.
- // Record-arm, drawn to the almanac's record rule: at rest a neutral chip with a red
- // disc; armed, solid record red with a pale disc.
+ // A small 18×16 stateful key (M/S/●): a raised key at rest; on, a solid fill in the
+ // toggle's own colour — mute amber, solo blue, arm red — with
+ // derived ink. Record-arm: at rest a neutral key with a red disc; armed, solid red with a
+ // white disc.
private Control ArmToggle(bool initial, Action<bool> onChanged)
{
bool state = initial;
@@ -2382,7 +2402,7 @@ public sealed partial class ArrangementView : UserControl
void Paint()
{
chip.Background = state ? NotaPalette.Record : NotaPalette.SurfaceRaised;
- chip.BorderBrush = state ? NotaPalette.Record : NotaPalette.BorderDefault;
+ chip.BorderBrush = state ? NotaPalette.Record : NotaPalette.Seam;
disc.Foreground = state ? NotaPalette.RecordInk : NotaPalette.Record;
}
Paint();
@@ -2394,12 +2414,12 @@ public sealed partial class ArrangementView : UserControl
return chip;
}
- private Control ChipToggle(string text, bool initial, bool danger, Action<bool> onChanged)
+ private Control ChipToggle(string text, bool initial, SolidColorBrush onFill, Action<bool> onChanged)
{
bool state = initial;
var tb = new TextBlock
{
- Text = text, FontSize = 9, FontWeight = FontWeight.Bold,
+ Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold,
HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center,
};
var chip = new Border
@@ -2411,16 +2431,15 @@ public sealed partial class ArrangementView : UserControl
{
if (state)
{
- // Engaged (mute / solo): brass edge and brass ink on the wash.
- chip.Background = Brush(danger ? "Brush.Record" : "Brush.AccentSubtle");
- chip.BorderBrush = Brush(danger ? "Brush.Record" : "Brush.BorderBrass");
- tb.Foreground = Brush(danger ? "Brush.RecordInk" : "Brush.AccentHover");
+ chip.Background = onFill;
+ chip.BorderBrush = onFill;
+ tb.Foreground = NotaPalette.InkOn(onFill);
}
else
{
- chip.Background = Brush("Brush.SurfaceRaised");
- chip.BorderBrush = Brush("Brush.BorderDefault");
- tb.Foreground = Brush("Brush.TextStrong");
+ chip.Background = NotaPalette.SurfaceRaised;
+ chip.BorderBrush = NotaPalette.Seam;
+ tb.Foreground = NotaPalette.TextSecondary;
}
}
Paint();
@@ -2474,7 +2493,7 @@ public sealed partial class ArrangementView : UserControl
private Control BuildSlimRow(string title, int colorIndex, int trackId, string bgKey, double volume,
Action<double> setVolume, out MeterBar meter, out MiniFader fader, out TextBlock db, bool masterSpine = false)
{
- var spineBrush = masterSpine ? NotaPalette.Accent : ClipColors(colorIndex).content;
+ var spineBrush = masterSpine ? NotaPalette.Master : ClipColors(colorIndex).content;
var name = new TextBlock
{
Text = title, FontSize = 11, FontWeight = FontWeight.SemiBold, Foreground = Brush("Brush.TextPrimary"),
@@ -2519,7 +2538,7 @@ public sealed partial class ArrangementView : UserControl
grid.Children.Add(body);
bool sel = trackId > 0 && trackId == SelTrackId;
- if (sel) spine.Background = NotaPalette.Accent; // selected: brass stripe, name stays Ink 1
+ if (sel) spine.Background = NotaPalette.Accent; // selected: accent stripe, name stays primary
var card = new Border
{
Width = HeaderW, Height = FooterRowH, ClipToBounds = true,
@@ -2584,29 +2603,29 @@ public sealed partial class ArrangementView : UserControl
internal static double Shape(double t, float curve)
=> curve == 0f ? t : Math.Pow(t, Math.Pow(2.0, -curve * 4.0));
- // ---- data colours (mirror the "Ember Graphite" tokens in NotaTheme.axaml) --
- private static readonly IBrush LaneBgA = NotaPalette.BgSunken; // the canvas is sunken, not the app ground
+ // ---- data colours (mirror the tokens in NotaTheme.axaml) --
+ private static readonly IBrush LaneBgA = NotaPalette.BgApp; // lanes on the ground
private static readonly IBrush LaneBgB = NotaPalette.LaneB; // Brush.LaneB
private static readonly IBrush ChromeBg = NotaPalette.BgSunken; // Brush.BgSunken
private static readonly IPen BeatPen = new Pen(NotaPalette.GridBeat, 1); // Brush.GridBeat
private static readonly IPen BarPen = new Pen(NotaPalette.GridBar, 1); // Brush.GridBar
private static readonly IPen SubBeatPen = new Pen(NotaPalette.GridSubBeat, 1); // finer than a beat
- // Playhead: a 1px brass line with a 7×5 flag on the ruler, no glow (almanac § timeline).
+ // Playhead: a 1px accent line with a 7×5 flag on the ruler, no glow (almanac § timeline).
// The brush is the palette slot itself — a SolidColorBrush built from its Color froze the
// playhead in one theme.
private static readonly IBrush PlayheadBrush = NotaPalette.Accent;
private static readonly IPen PlayheadPen = new Pen(PlayheadBrush, 1);
// Selection edges a clip with 1px brass — a state never thickens a border to 2px.
- private static readonly IPen ClipSelBorder = new Pen(NotaPalette.AccentBright, 1);
+ private static readonly IPen ClipSelBorder = new Pen(NotaPalette.Accent, 1);
private static readonly IBrush EdgeHighlight = NotaPalette.MarkerHot; // resize-edge affordance
private static readonly IBrush InactiveVeil = NotaPalette.Wash(NotaPalette.Veil, 0xB0); // deactivated-clip scrim
private static readonly IBrush RulerText = NotaPalette.TextSecondary; // Brush.TextSecondary
// Drag position tooltip (req 2.9): dark pill + bright text near the cursor.
private static readonly IBrush TooltipBg = NotaPalette.Wash(NotaPalette.TooltipBg, 0xDC);
private static readonly IBrush TooltipText = NotaPalette.TooltipText;
- // Selected-track highlight: just a soft brass wash on the lane row — no edge
- // lines, so it never fights the grid. Header uses a warm tinted background.
- private static readonly IBrush SelWash = NotaPalette.Wash(NotaPalette.Accent, 0x20); // Accent @ ~12%
+ // Selected-track highlight: a faint neutral lift on the lane row — no edge lines, so it
+ // never fights the grid; the header's accent edge is what marks the selection.
+ private static readonly IBrush SelWash = NotaPalette.Wash(NotaPalette.TextPrimary, 0x0D); // a neutral lift; the header's accent edge marks the selection
// A group's lane is chrome between its children, not another lane to scan.
internal static readonly IBrush GroupLaneBg = NotaPalette.Wash(NotaPalette.BgSunken, 0xE0);
// Plate behind a clip's name so it survives a dense waveform without a full-width strip.
@@ -2653,7 +2672,7 @@ public sealed partial class ArrangementView : UserControl
// Track palette (mirror Brush.Track1..8 + ReturnA/B), each base offered in 3 shades
// (normal / lighter / darker) so a colour index is base*Shades + shade. Return buses
- // sit at ReturnColorBase..; clips derive fill @16%, border @50%, strip @20%, content full.
+ // sit at ReturnColorBase..; clips derive fill @30%, border @50%, strip @20%, content full.
internal const int PaletteShades = 3;
internal static readonly int PaletteBases = NotaPalette.TrackColors.Length; // 8
internal static readonly int ReturnColorBase = PaletteBases * PaletteShades; // 24
@@ -2736,11 +2755,24 @@ public sealed partial class ArrangementView : UserControl
private static (IBrush fill, IPen border, IBrush strip, IBrush content) ClipColors(int idx)
{
if (_clipColors.TryGetValue(idx, out var v)) return v;
- v = (ClipTint(idx, 0.16), new Pen(ClipTint(idx, 0.50), 1), ClipTint(idx, 0.20),
+ v = (ClipTint(idx, 0.30), new Pen(ClipTint(idx, 0.50), 1), ClipTint(idx, 0.20),
NotaPalette.Derived(() => TrackColorForIndex(idx)));
_clipColors[idx] = v;
return v;
}
+ // A clip's title band: its track colour mixed 30% toward black; its notes and waveform a
+ // deeper shade, 58% toward black, so they read on the full-colour body.
+ private static readonly Dictionary<int, SolidColorBrush> _clipBands = new(), _clipInks = new();
+ internal static SolidColorBrush ClipBand(int idx) => Shade(_clipBands, idx, 0.30);
+ internal static SolidColorBrush ClipInk(int idx) => Shade(_clipInks, idx, 0.58);
+ private static SolidColorBrush Shade(Dictionary<int, SolidColorBrush> cache, int idx, double t)
+ {
+ if (cache.TryGetValue(idx, out var b)) return b;
+ b = NotaPalette.Derived(() => Mix(TrackColorForIndex(idx), NotaPalette.ShadeDown.Color, t));
+ cache[idx] = b;
+ return b;
+ }
+
/// <summary>The theme-following brush for a palette index. A view that wants a track's
/// colour takes this; wrapping <see cref="TrackColorForIndex"/> in a new brush freezes it
/// in the variant that was active when the view was built.</summary>
diff --git a/src/managed/Nota.App/AudioClipEditorView.cs b/src/managed/Nota.App/AudioClipEditorView.cs
index b3ea8778..cf879eee 100644
--- a/src/managed/Nota.App/AudioClipEditorView.cs
+++ b/src/managed/Nota.App/AudioClipEditorView.cs
@@ -114,16 +114,16 @@ public sealed class AudioClipEditorView : UserControl
_wave.AdsrCommitted = SetAdsr;
// CLIP — where it sits, and its length (± one beat).
- var clip = Section("CLIP",
+ var clip = Section("Clip",
Pair(Labeled("Start", Field(_startText)), Labeled("Length", Stepper(_lengthText, () => Resize(-1), () => Resize(1)))));
// PLAYBACK — gain, varispeed pitch, direction.
- var gain = SliderRow("GAIN", 44, () => _gain / 2.0, v => SetGain(v * 2.0), GainText, out _syncGain,
+ var gain = SliderRow("Gain", 44, () => _gain / 2.0, v => SetGain(v * 2.0), GainText, out _syncGain,
reset: () => SetGain(1.0), valueW: 44);
var pitchRow = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), ColumnSpacing = 10 };
pitchRow.Children.Add(new TextBlock
{
- Text = "PITCH", Width = 44, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 0.72,
+ Text = "Pitch", Width = 44, FontSize = 9, FontWeight = FontWeight.Medium,
Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center,
});
var pitch = Stepper(_pitchText, () => Pitch(-1), () => Pitch(1), zone: 24);
@@ -131,7 +131,7 @@ public sealed class AudioClipEditorView : UserControl
// Reverse is non-destructive (the file is untouched) and free to toggle, so it
// doubles as an audition switch; the wave mirrors so it always reads in playing order.
var reverse = SwitchRow("Reverse", () => _reversed, ToggleReverse, out _syncReverse, height: 22);
- var playback = Section(SectionTitle("PLAYBACK"), 10, gain, pitchRow, reverse);
+ var playback = Section(SectionTitle("Playback"), 10, gain, pitchRow, reverse);
// WARP — on/off and the stretch mode, the two detectors, what they found.
var warpSwitch = SwitchRow("Warp", () => _warpEnabled, ToggleWarp, out _syncWarp);
@@ -144,21 +144,21 @@ public sealed class AudioClipEditorView : UserControl
ToolTip.SetTip(detect, "Detect the file's tempo and conform it to the project");
var transients = ClipEditorKit.Button("To transients", TransientWarp);
ToolTip.SetTip(transients, "Pin a marker on every hit so drums lock to the grid");
- var warp = Section(SectionTitle("WARP", _markerCount), 8,
+ var warp = Section(SectionTitle("Warp", _markerCount), 8,
warpRow, Pair(detect, transients), Card(KeyValue("Detected", _detectedText)));
// ADSR — the clip's amplitude shape (the ADSR tab swaps the inspector to it). Times
// run on a square-law slider over the clip length, so short attacks stay fine-grained.
- var attack = SliderRow("ATTACK", 52, () => TimeNorm(_adsr.AttackBeats),
+ var attack = SliderRow("Attack", 52, () => TimeNorm(_adsr.AttackBeats),
v => SetAdsrStage(AdsrHandle.Attack, NormTime(v), _adsr.Sustain), () => AdsrTime(_adsr.AttackBeats), out _syncAttack,
reset: () => SetAdsr(ClipAdsrKit.Reset(AdsrHandle.Attack, _adsr)), valueW: 52);
- var decay = SliderRow("DECAY", 52, () => TimeNorm(_adsr.DecayBeats),
+ var decay = SliderRow("Decay", 52, () => TimeNorm(_adsr.DecayBeats),
v => SetAdsrStage(AdsrHandle.DecaySustain, _adsr.AttackBeats + NormTime(v), _adsr.Sustain), () => AdsrTime(_adsr.DecayBeats), out _syncDecay,
reset: () => { var a = _adsr; a.DecayBeats = 0; SetAdsr(a); }, valueW: 52);
- var sustain = SliderRow("SUSTAIN", 52, () => _adsr.Sustain,
+ var sustain = SliderRow("Sustain", 52, () => _adsr.Sustain,
v => SetAdsrStage(AdsrHandle.DecaySustain, _adsr.AttackBeats + _adsr.DecayBeats, v), () => ClipAdsrKit.SustainText(_adsr.Sustain), out _syncSustain,
reset: () => { var a = _adsr; a.Sustain = 1f; SetAdsr(a); }, valueW: 52);
- var release = SliderRow("RELEASE", 52, () => TimeNorm(_adsr.ReleaseBeats),
+ var release = SliderRow("Release", 52, () => TimeNorm(_adsr.ReleaseBeats),
v => SetAdsrStage(AdsrHandle.Release, _lengthBeats - NormTime(v), _adsr.Sustain), () => AdsrTime(_adsr.ReleaseBeats), out _syncRelease,
reset: () => SetAdsr(ClipAdsrKit.Reset(AdsrHandle.Release, _adsr)), valueW: 52);
var resetAll = ClipEditorKit.Button("Reset", () => SetAdsr(ClipAdsr.Identity));
@@ -282,7 +282,7 @@ public sealed class AudioClipEditorView : UserControl
{
_pitch = (int)Math.Round(ai.PitchSemitones);
_pitchText.Text = Semis(_pitch);
- _pitchText.Foreground = _pitch != 0 ? NotaPalette.AccentBright : NotaPalette.TextPrimary;
+ _pitchText.Foreground = _pitch != 0 ? NotaPalette.TextPrimary : NotaPalette.TextSecondary;
_gain = ai.Gain;
_syncGain();
_wave.SetGain(ai.Gain);
@@ -623,8 +623,8 @@ public sealed class AudioClipEditorView : UserControl
private bool _bpmScrubMoved; // a plain click (no drag) must not re-warp the clip
// Volume envelope (M9 follow-up): points (beat, value 0..1) in clip-local beats.
- private static readonly IPen EnvPen = new Pen(NotaPalette.Accent, 1.8);
- private static readonly IPen EnvPenDim = new Pen(NotaPalette.Wash(NotaPalette.Accent, 0x60), 1);
+ private static readonly IPen EnvPen = new Pen(NotaPalette.VizInk, 1.8); // the curve at rest: neutral
+ private static readonly IPen EnvPenDim = new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0x60), 1);
private static readonly IBrush EnvWash = NotaPalette.Wash(NotaPalette.BgSunken, 0x99);
private static readonly IBrush NodeFill = NotaPalette.TextSecondary;
private static readonly IBrush NodeHot = NotaPalette.Accent;
diff --git a/src/managed/Nota.App/BrowserView.cs b/src/managed/Nota.App/BrowserView.cs
index dfd111fe..3780b9f5 100644
--- a/src/managed/Nota.App/BrowserView.cs
+++ b/src/managed/Nota.App/BrowserView.cs
@@ -4,8 +4,8 @@
// M4.1-C / M7-4 + Phase 3 + the "compact index" refresh (mockup 1a): the left
// browser, an island panel with a 40px icon rail (Instr / FX / MIDI / Files /
// Preset / Proj / Map) down its left edge. Each tab shows one list of single-line
-// 24px rows, sectioned into BUILT-IN and PLUG-INS with counts; the "Nota" prefix
-// drops to tertiary ink so names scan on their distinctive word, and the device
+// 24px rows, sectioned into Built-in and Plug-ins with counts; a built-in row shows
+// its distinctive word without the "Nota" family name, and the device
// type sits at the right edge as a quiet tag. A search box filters the active list
// live, a ⋮ button holds the view options, chips filter by favorite/tag, a status
// line counts what is on screen, and a pinned preview footer auditions the selection — a
@@ -117,60 +117,14 @@ public sealed class BrowserView : UserControl
private Point _pressPoint;
private PointerPressedEventArgs? _pressArgs;
- // Rail icons — stroke glyphs on the design's 24-unit grid, 1.5 stroke, round caps and
- // joins. Each sits in its OWN optical box inside that grid (roughly 18 wide by 14–18
- // tall), which is how they end up looking the same weight next to each other — so they
- // must all be scaled by one factor, not each stretched to fill the icon box. GridIcon
- // does that; see the note there.
- // Instruments — a piano keyboard: case with key dividers and three short black keys.
- private const string IconKeyboard = "M3.5 6 h17 v12 h-17 z M9.2 6 v12 M14.8 6 v12 M6.3 6 v5 M12 6 v5 M17.7 6 v5";
- // Audio effects — vertical faders with offset handles (a mixer/EQ strip).
- private const string IconSliders = "M7 4.5 v15 M12 4.5 v15 M17 4.5 v15 M5 9 h4 M10 14.5 h4 M15 7.5 h4";
- // Files — a folder with a raised tab on the left.
- private const string IconFolder = "M3.5 7.5 h5.6 l2.1 2.6 h9.3 v9.4 h-17 z";
- private const string IconDownloads = "M12 4 V15 M7 10 L12 15 L17 10 M5 19 H19"; // as Settings → Downloads
- private const string IconStar = "M12 3 L14.5 9 L21 9.3 L16 13.5 L17.7 20 L12 16.2 L6.3 20 L8 13.5 L3 9.3 L9.5 9 Z";
- // Presets — a bookmark (a saved snapshot). Distinct from the fader glyphs above.
- private const string IconBookmark = "M6.5 4 h11 v16 l-5.5 -4.4 l-5.5 4.4 z";
- // Projects — a document with a dog-ear and two content lines.
- private const string IconDoc = "M6 3.5 h7.6 l4.8 4.8 v12.2 h-12.4 z M13.6 3.5 v4.8 h4.8 M9.2 13.4 h6 M9.2 16.8 h6";
- private const string IconPlay = "M7 4 L19 12 L7 20 Z";
- // MIDI effects — an eighth note: head bottom-left, tall stem, flag curling to the right.
- private const string IconMidi = "M6 17.2 a2.6 2.4 0 1 0 5.2 0 a2.6 2.4 0 1 0 -5.2 0 M11.2 17.2 V5 c3 .9 5.6 2.4 5.6 5.6";
- // MIDI-learn map — two nodes joined by a link (a control mapped to a parameter).
- private const string IconMap = "M3.4 17.6 a2.6 2.6 0 1 0 5.2 0 a2.6 2.6 0 1 0 -5.2 0 M15.4 6.4 a2.6 2.6 0 1 0 5.2 0 a2.6 2.6 0 1 0 -5.2 0 M7.9 15.7 L16.1 8.3";
- // Collapse / expand — a window with its left sidebar ruled off.
- // A clock face with a counter-clockwise arrow tail: project version history.
- private const string IconHistory = "M4.6 9.2 A8 8 0 1 1 4 12 M4.6 9.2 L3.6 5.8 M4.6 9.2 L8 8.6 M12 7.6 V12 L15 14";
- private const string IconSidebar = "M3.5 5.5 h17 v13 h-17 z M9.5 5.5 v13";
- // View options — three centred rules, shortening downward (a sort/·filter glyph).
- private const string IconOptions = "M4 7 H20 M7 12 H17 M10 17 H14";
-
- /// <summary>One glyph off the design's 24-unit grid, rendered at <paramref name="size"/>.
- /// The Path keeps the full 24×24 box and draws at its native coordinates; a Viewbox then
- /// scales that square as a whole. Stretch.Uniform on the Path would instead normalise
- /// every glyph to its own bounding box — a wide one and a tall one would come out the
- /// same size, which is exactly the optical balance the grid exists to set. Pass
- /// <paramref name="strokeToken"/> only where no style already paints the stroke: a local
- /// value outranks a style setter, and the rail's active/inactive colours are styles.</summary>
- private static Viewbox GridIcon(string data, double size, string? strokeToken = null, double strokeWidth = 1.5)
+ // Rail icons come from the shared Glyph set (one 16-unit grid, one stroke), so they keep
+ // the same weight next to each other. A local Foreground would outrank the rail's
+ // active/inactive styles, so RailIcon only sets one where no style paints it.
+ private static Glyph RailIcon(GlyphKind kind, double size, string? inkToken = null)
{
- var path = new Path
- {
- Data = Geometry.Parse(data),
- Width = 24, Height = 24,
- Stretch = Stretch.None,
- StrokeThickness = strokeWidth,
- StrokeJoin = PenLineJoin.Round,
- StrokeLineCap = PenLineCap.Round,
- };
- if (strokeToken is not null) path.BindResource(Shape.StrokeProperty, strokeToken);
- return new Viewbox
- {
- Width = size, Height = size,
- Stretch = Stretch.Uniform,
- Child = path,
- };
+ var g = new Glyph(kind, size);
+ if (inkToken is not null) g.BindResource(Glyph.ForegroundProperty, inkToken);
+ return g;
}
private const int TabCount = 8; // Instr / FX / MIDI / Files / Preset / Proj / Map / History
@@ -203,10 +157,6 @@ public sealed class BrowserView : UserControl
public event Action<bool>? CollapsedChanged;
public bool IsCollapsed => _collapsed;
- // Disclosure triangles for tree parent rows.
- private const string IconCollapsed = "M1 0 L6 4.5 L1 9 Z"; // ▸
- private const string IconExpanded = "M0 1 L9 1 L4.5 7 Z"; // ▾
-
private readonly TextBox _search;
private readonly TextBlock _matchCount;
private readonly Border _searchWrap;
@@ -246,6 +196,8 @@ public sealed class BrowserView : UserControl
// showing similar sounds). Unlike the tag strip it wraps rather than folding into "+N":
// it holds at most five fixed chips, and BPM and Key are the point of it.
private readonly Border _sampleChipsHost;
+ private readonly Border _categoryChipsHost; // device tabs: one chip per category (spec 013)
+ private readonly WrapPanel _categoryChips;
private readonly WrapPanel _sampleChips;
/// <summary>The project tempo / key, for the filter's "project" shortcuts.</summary>
@@ -271,14 +223,14 @@ public sealed class BrowserView : UserControl
_tabs = new[]
{
- RailTab(0, "Instruments", IconKeyboard),
- RailTab(1, "Audio effects", IconSliders),
- RailTab(2, "MIDI effects", IconMidi),
- RailTab(3, "Files", IconFolder),
- RailTab(4, "Presets", IconBookmark),
- RailTab(5, "Projects", IconDoc),
- RailTab(6, "MIDI map", IconMap),
- RailTab(7, "History", IconHistory),
+ RailTab(0, "Instruments", GlyphKind.Keyboard),
+ RailTab(1, "Audio effects", GlyphKind.Sliders),
+ RailTab(2, "MIDI effects", GlyphKind.Midi),
+ RailTab(3, "Files", GlyphKind.Folder),
+ RailTab(4, "Presets", GlyphKind.Bookmark),
+ RailTab(5, "Projects", GlyphKind.Doc),
+ RailTab(6, "MIDI map", GlyphKind.Map),
+ RailTab(7, "History", GlyphKind.History),
};
// A hairline above Files and above Map: devices · library · mappings.
foreach (int i in new[] { 3, 6 })
@@ -288,7 +240,7 @@ public sealed class BrowserView : UserControl
}
var tabStack = new StackPanel();
foreach (var t in _tabs) tabStack.Children.Add(t);
- _collapseBtn = RailButton(IconSidebar, "Collapse browser", () => SetCollapsed(!_collapsed, persist: true));
+ _collapseBtn = RailButton(GlyphKind.Sidebar, "Collapse browser", () => SetCollapsed(!_collapsed, persist: true));
_collapseBtn.BorderThickness = new Thickness(0, 1, 0, 0);
_collapseBtn.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");
var rail = new DockPanel { Width = 40 };
@@ -374,6 +326,10 @@ public sealed class BrowserView : UserControl
_sampleChips = new WrapPanel { ItemSpacing = 5, LineSpacing = 5 };
_sampleChipsHost = new Border { Margin = new Thickness(8, 0, 8, 7), Child = _sampleChips, IsVisible = false };
+ // Category chips wrap rather than overflow into "+N": they are the main way to narrow
+ // a device tab, so every one stays in sight.
+ _categoryChips = new WrapPanel { ItemSpacing = 5, LineSpacing = 5 };
+ _categoryChipsHost = new Border { Margin = new Thickness(8, 0, 8, 7), Child = _categoryChips, IsVisible = false };
_previewFooter = new PreviewPlayer { IsVisible = false };
_previewFooter.SetContext(files: _active == FilesTab);
@@ -413,7 +369,7 @@ public sealed class BrowserView : UserControl
contentHost.Children.Add(_emptyWrap);
var right = new DockPanel();
- var topStack = new StackPanel { Children = { headerRow, _chipsHost, _sampleChipsHost } };
+ var topStack = new StackPanel { Children = { headerRow, _categoryChipsHost, _chipsHost, _sampleChipsHost } };
DockPanel.SetDock(topStack, Dock.Top);
DockPanel.SetDock(_statusBar, Dock.Bottom);
DockPanel.SetDock(_previewFooter, Dock.Bottom);
@@ -433,15 +389,15 @@ public sealed class BrowserView : UserControl
grid.Children.Add(railDivider);
grid.Children.Add(right);
- // The island: a rounded card floating on the app ground. ClipToBounds keeps the
- // rail, the full-bleed rows and the status line inside the rounded corners.
+ // A docked panel: square, no frame of its own — it meets the canvas on the seam the
+ // shell grid draws. ClipToBounds keeps the full-bleed rows inside it.
var outer = new Border
{
- BorderThickness = new Thickness(1),
+ BorderThickness = new Thickness(0),
ClipToBounds = true,
Child = grid,
};
- outer.BindResource(Border.CornerRadiusProperty, "Radius.Panel");
+ outer.BindResource(Border.CornerRadiusProperty, "Radius.Docked");
outer.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");
outer.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");
Content = outer;
@@ -499,6 +455,7 @@ public sealed class BrowserView : UserControl
_vm.GroupBySource = settings.Current.BrowserGroupBySource;
_vm.FavoritesFirst = settings.Current.BrowserFavoritesFirst;
RefreshRows();
+ RebuildCategoryChips();
}
public void SetViewModel(BrowserViewModel vm)
@@ -536,6 +493,9 @@ public sealed class BrowserView : UserControl
// Rebuild the header chips whenever tags/favorites change (also refreshes active state).
vm.LibraryChanged += RebuildChips;
RebuildChips();
+ // A plug-in rescan can add or remove the Other chip.
+ vm.DevicesRebuilt += RebuildCategoryChips;
+ RebuildCategoryChips();
vm.SampleIndexChanged += () => { if (_active == FilesTab) RefreshCounts(); };
// A rescan (settings, a pack installed) can leave "similar" mode behind the view's back.
vm.Samples.CollectionChanged += (_, _) =>
@@ -615,7 +575,8 @@ public sealed class BrowserView : UserControl
private (string Line, string Detail) EmptyMessage(int tab)
{
bool searching = !string.IsNullOrEmpty(_search.Text?.Trim());
- bool filtering = tab is 0 or 1 or 2 && _vm is not null && _vm.FilterMode != BrowserFilter.None;
+ bool filtering = tab is 0 or 1 or 2 && _vm is not null
+ && (_vm.FilterMode != BrowserFilter.None || _vm.CategoryFilter(tab).Length > 0);
bool sampleFilter = tab == FilesTab && _vm is not null && (!_vm.SampleFilter.IsEmpty || _vm.SimilarAnchor is not null);
if (sampleFilter && _vm!.IndexProgress.Total > 0)
return ("No matches yet", "Nota is still analysing your samples — more matches appear as it goes.");
@@ -625,7 +586,7 @@ public sealed class BrowserView : UserControl
0 => ("No instruments yet", "Nota's built-in synths plus your VST/AU plug-ins. Scan your plug-ins in Settings → Plug-ins to add more."),
1 => ("No audio effects yet", "Nota's built-in effects plus your VST/AU plug-ins. Scan your plug-ins in Settings → Plug-ins to add more."),
2 => ("No MIDI effects yet", "Arpeggiator, chord, scale and more — they process notes before an instrument; drop one to the left of an instrument in a track."),
- 3 => ("No samples yet", "Add audio files to your Samples folder (Settings → Library) or install free packs from Settings → Downloads → Sample Packs, then browse them here as a folder tree. You can also drag files in from Finder."),
+ 3 => ("No samples yet", "Add audio files to your Samples folder (Settings → Library) or install free packs from Settings → Downloads → Sample packs, then browse them here as a folder tree. You can also drag files in from Finder."),
4 => ("No presets yet", "Right-click a device header and choose Save preset; it appears here grouped by category and device."),
_ => ("No projects yet", MenuKit.Keys("Save a project (⌘S) into your Projects folder (Settings → Library) and it shows up here.")),
};
@@ -693,17 +654,18 @@ public sealed class BrowserView : UserControl
if (auditions) SyncPreview(_pages[index]);
// Favorite/tag filter chips apply only to the device tabs.
_chipsHost.IsVisible = index is 0 or 1 or 2;
+ RebuildCategoryChips();
_sampleChipsHost.IsVisible = index == FilesTab && _vm?.HasSampleIndex == true;
_statusBar.IsVisible = !isMap;
if (isMap) { _matchCount.Text = ""; _emptyWrap.IsVisible = false; return; }
RefreshCounts();
}
- private Border RailTab(int index, string caption, string iconData)
+ private Border RailTab(int index, string caption, GlyphKind iconKind)
{
// Icon-only rail; the caption survives as a tooltip. 16px icon in a 36px tab, with
// a 2px brass edge on the left when active.
- var icon = GridIcon(iconData, 16);
+ var icon = RailIcon(iconKind, 16);
icon.HorizontalAlignment = HorizontalAlignment.Center;
icon.VerticalAlignment = VerticalAlignment.Center;
var bar = new Border { Classes = { "RailBar" }, VerticalAlignment = VerticalAlignment.Stretch };
@@ -721,9 +683,9 @@ public sealed class BrowserView : UserControl
}
// A rail-styled action (not a tab): same 36px cell and hover, never marked active.
- private static Border RailButton(string iconData, string caption, Action onClick)
+ private static Border RailButton(GlyphKind iconKind, string caption, Action onClick)
{
- var icon = GridIcon(iconData, 16);
+ var icon = RailIcon(iconKind, 16);
icon.HorizontalAlignment = HorizontalAlignment.Center;
icon.VerticalAlignment = VerticalAlignment.Center;
var btn = new Border { Classes = { "RailTab" }, Child = icon };
@@ -750,13 +712,13 @@ public sealed class BrowserView : UserControl
{
var label = new TextBlock
{
- Text = item.Name,
+ Text = NotaText.Label(item.Name),
Classes = { "GroupLabel" },
VerticalAlignment = VerticalAlignment.Center,
Margin = new Thickness(10, 0, 0, 0),
};
var rule = new Border { Height = 1, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(7, 0, 7, 0) };
- rule.BindResource(Border.BackgroundProperty, "Brush.BorderDefault");
+ rule.BindResource(Border.BackgroundProperty, "Brush.Rule");
var count = new TextBlock
{
Text = item.GroupCount.ToString(),
@@ -788,15 +750,7 @@ public sealed class BrowserView : UserControl
Control disclosure;
if (item.HasChildren)
{
- var tri = new Path
- {
- Data = Geometry.Parse(item.IsExpanded ? IconExpanded : IconCollapsed),
- Stretch = Stretch.Uniform,
- Width = 8, Height = 8,
- HorizontalAlignment = HorizontalAlignment.Center,
- VerticalAlignment = VerticalAlignment.Center,
- };
- tri.BindResource(Shape.FillProperty, "Brush.TextTertiary");
+ var tri = RailIcon(item.IsExpanded ? GlyphKind.CaretDown : GlyphKind.CaretRight, 12, "Brush.TextTertiary");
var hit = new Border
{
Width = 14, Background = Brushes.Transparent, Cursor = new Cursor(StandardCursorType.Hand),
@@ -814,15 +768,11 @@ public sealed class BrowserView : UserControl
Control? icon = null;
if (item.IsDownloads)
{
- var arrow = new Path { Data = Geometry.Parse(IconDownloads), StrokeThickness = 2.2, StrokeLineCap = PenLineCap.Round, StrokeJoin = PenLineJoin.Round };
- arrow.BindResource(Shape.StrokeProperty, "Brush.TextSecondary");
- icon = new Viewbox { Width = 13, Height = 13, Child = new Canvas { Width = 24, Height = 24, Children = { arrow } } };
+ icon = RailIcon(GlyphKind.Downloads, 13, "Brush.TextSecondary");
}
- // "Nota" drops to tertiary ink so the eye lands on the distinctive word.
- var prefix = item.Prefix.Length > 0
- ? new TextBlock { Text = item.Prefix, Classes = { "RowPrefix" } }
- : null;
+ // A built-in row shows its distinctive word only ("Aurora", not "Nota Aurora"): the
+ // family name would repeat down the whole list. Search still matches the full name.
var name = new TextBlock
{
Text = item.Prefix.Length > 0 ? item.ShortName : item.Name,
@@ -846,7 +796,6 @@ public sealed class BrowserView : UserControl
Edge = edge,
Disclosure = disclosure,
Icon = icon,
- Prefix = prefix,
Name2 = name,
Markers = BuildRowMarkers(item), // brass ★ + tag colour dots
Tag2 = tagText,
@@ -900,7 +849,6 @@ public sealed class BrowserView : UserControl
public Border Edge { get; init; } = null!;
public Control Disclosure { get; init; } = null!;
public Control? Icon { get; init; }
- public TextBlock? Prefix { get; init; }
public TextBlock Name2 { get; init; } = null!;
public Control? Markers { get; init; }
public TextBlock? Tag2 { get; init; }
@@ -920,7 +868,6 @@ public sealed class BrowserView : UserControl
Children.Add(Edge);
Children.Add(Disclosure);
if (Icon is not null) Children.Add(Icon);
- if (Prefix is not null) Children.Add(Prefix);
Children.Add(Name2);
if (Markers is not null) Children.Add(Markers);
if (Tag2 is not null) Children.Add(Tag2);
@@ -941,11 +888,6 @@ public sealed class BrowserView : UserControl
Place(Icon, left, Icon.DesiredSize.Width);
left += Icon.DesiredSize.Width + Gap;
}
- if (Prefix is not null)
- {
- Place(Prefix, left, Prefix.DesiredSize.Width);
- left += Prefix.DesiredSize.Width + Gap;
- }
double right = Math.Max(left, finalSize.Width - Gutter);
double markersW = Markers?.DesiredSize.Width ?? 0;
@@ -996,12 +938,7 @@ public sealed class BrowserView : UserControl
};
if (fav)
{
- var star = new Path
- {
- Data = Geometry.Parse(IconStar), Stretch = Stretch.Uniform, Width = 9, Height = 9,
- VerticalAlignment = VerticalAlignment.Center,
- };
- star.BindResource(Shape.FillProperty, "Brush.Accent");
+ var star = RailIcon(GlyphKind.StarFilled, 12, "Brush.Accent");
strip.Children.Add(star);
}
int shown = 0;
@@ -1029,7 +966,7 @@ public sealed class BrowserView : UserControl
private Border BuildOptionsButton()
{
- var icon = GridIcon(IconOptions, 14, "Brush.TextSecondary", strokeWidth: 1.6);
+ var icon = RailIcon(GlyphKind.Options, 14, "Brush.TextSecondary");
icon.HorizontalAlignment = HorizontalAlignment.Center;
icon.VerticalAlignment = VerticalAlignment.Center;
var btn = new Border
@@ -1058,6 +995,14 @@ public sealed class BrowserView : UserControl
_settings.Save();
RefreshRows();
}));
+ flyout.Items.Add(CheckItem("Category chips", CategoryChipsOn, v =>
+ {
+ if (_settings is not null) { _settings.Current.BrowserCategoryChips = v; _settings.Save(); }
+ // A hidden chip must not keep narrowing the list.
+ if (!v && _vm is not null) for (int t = 0; t < 3; t++) _vm.SetCategoryFilter(t, "");
+ RebuildCategoryChips();
+ RefreshCounts();
+ }));
flyout.Items.Add(CheckItem("Group by source", _vm?.GroupBySource ?? true, v =>
{
if (_vm is not null) _vm.GroupBySource = v;
@@ -1230,6 +1175,32 @@ public sealed class BrowserView : UserControl
_chipsPanel.InvalidateMeasure();
}
+ private bool CategoryChipsOn => _settings?.Current.BrowserCategoryChips ?? true;
+
+ // The active device tab's category chips (spec 013): one per category in the tab's order,
+ // Other last when something lands there. One pick at a time: a click picks, a click on
+ // the picked chip clears, a click on another switches. Each tab keeps its own pick.
+ private void RebuildCategoryChips()
+ {
+ _categoryChips.Children.Clear();
+ bool show = _vm is not null && _active is 0 or 1 or 2 && CategoryChipsOn;
+ _categoryChipsHost.IsVisible = show;
+ if (!show) return;
+ int tab = _active;
+ string picked = _vm!.CategoryFilter(tab);
+ foreach (var name in _vm.CategoriesOn(tab))
+ {
+ var category = name;
+ bool active = picked == category;
+ _categoryChips.Children.Add(MakeChip(category, null, active, () =>
+ {
+ _vm.SetCategoryFilter(tab, active ? "" : category);
+ RebuildCategoryChips();
+ RefreshCounts();
+ }));
+ }
+ }
+
// The chips that didn't fit on the line, offered as a menu off the "+N".
private void ShowOverflowChips()
{
@@ -1369,7 +1340,7 @@ public sealed class BrowserView : UserControl
if (colorHex is not null)
content.Children.Add(new Ellipse { Width = 6, Height = 6, VerticalAlignment = VerticalAlignment.Center, Fill = BrushFromHex(colorHex) });
var tb = new TextBlock { Text = text, FontSize = 11, VerticalAlignment = VerticalAlignment.Center };
- tb.BindResource(TextBlock.ForegroundProperty, active ? "Brush.AccentHover" : "Brush.TextStrong");
+ tb.BindResource(TextBlock.ForegroundProperty, active ? "Brush.TextOnAccent" : "Brush.TextPrimary");
content.Children.Add(tb);
var chip = new ChipBorder
@@ -1379,8 +1350,8 @@ public sealed class BrowserView : UserControl
BorderThickness = new Thickness(1),
Cursor = new Cursor(StandardCursorType.Hand), Child = content,
};
- chip.BindResource(Border.BackgroundProperty, active ? "Brush.AccentSubtle" : "Brush.SurfaceRaised");
- chip.BindResource(Border.BorderBrushProperty, active ? "Brush.BorderBrass" : "Brush.BorderDefault");
+ chip.BindResource(Border.BackgroundProperty, active ? "Brush.Accent" : "Brush.SurfaceRaised");
+ chip.BindResource(Border.BorderBrushProperty, active ? "Brush.Accent" : "Brush.Seam");
chip.PointerPressed += (_, e) =>
{
if (!e.GetCurrentPoint(chip).Properties.IsLeftButtonPressed) return;
@@ -1512,7 +1483,7 @@ public sealed class BrowserView : UserControl
if (item.LibraryKey.Length > 0 && _vm is not null)
{
bool fav = _vm.IsFavorite(item);
- var favItem = new MenuItem { Header = fav ? "Remove from Favorites" : "Add to Favorites" };
+ var favItem = new MenuItem { Header = fav ? "Remove from favorites" : "Add to favorites" };
favItem.Click += (_, _) => _vm.ToggleFavorite(item);
flyout.Items.Add(favItem);
diff --git a/src/managed/Nota.App/ClipEditorKit.cs b/src/managed/Nota.App/ClipEditorKit.cs
index ff1cef71..c662309c 100644
--- a/src/managed/Nota.App/ClipEditorKit.cs
+++ b/src/managed/Nota.App/ClipEditorKit.cs
@@ -35,7 +35,7 @@ internal static class ClipEditorKit
};
var badge = new TextBlock
{
- Text = kind, FontFamily = NotaFonts.MonoFamily, FontSize = 9, FontWeight = FontWeight.Medium, LetterSpacing = 0.9,
+ Text = NotaText.Label(kind), FontFamily = NotaFonts.MonoFamily, FontSize = 10,
Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center,
};
cell.Children.Add(nameText);
@@ -141,14 +141,13 @@ internal static class ClipEditorKit
public static Border Rule() => new() { Height = 1, Background = NotaPalette.GraphBorder };
- /// <summary>A caps section title, with an optional mono read-out on the right.</summary>
+ /// <summary>A section title (sentence case, muted), with an optional mono read-out on the right.</summary>
public static Grid SectionTitle(string title, TextBlock? right = null)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto") };
g.Children.Add(new TextBlock
{
- Text = title, FontSize = NotaType.SectionLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.SectionLabelTracking, Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center,
+ Text = NotaText.Label(title), FontSize = NotaType.SectionLabel, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextMuted, VerticalAlignment = VerticalAlignment.Center,
});
if (right is not null) { Grid.SetColumn(right, 1); g.Children.Add(right); }
return g;
@@ -234,7 +233,7 @@ internal static class ClipEditorKit
{
int idx = i;
var mi = new MenuItem { Header = items[i] };
- if (i == current) mi.Icon = new Glyph(GlyphKind.Dot, 6) { Foreground = NotaPalette.AccentBright };
+ if (i == current) mi.Icon = new Glyph(GlyphKind.Dot, 6) { Foreground = NotaPalette.TextPrimary };
mi.Click += (_, _) => pick(idx);
f.Items.Add(mi);
}
@@ -322,7 +321,7 @@ internal static class ClipEditorKit
CornerRadius = NotaRadius.Control, Padding = new Thickness(10, 0), Child = child,
};
- /// <summary>A shell slider row: caps label · 3px track · fixed-width mono value (double-click to type).</summary>
+ /// <summary>A shell slider row: label · 3px track · fixed-width mono value (double-click to type).</summary>
public static Grid SliderRow(string label, double labelW, Func<double> norm, Action<double> setNorm, Func<string> text,
out Action sync, Action? reset = null, double valueW = 36, Func<bool>? dim = null)
{
@@ -330,7 +329,7 @@ internal static class ClipEditorKit
var track = new SliderTrack { Reset = reset is null ? null : () => { reset(); repaint(); } };
var lbl = new TextBlock
{
- Text = label, Width = labelW, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 0.72,
+ Text = NotaText.Label(label), Width = labelW, FontSize = 9, FontWeight = FontWeight.Medium,
VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis,
};
var val = Mono("", 10);
diff --git a/src/managed/Nota.App/ClipEditorView.cs b/src/managed/Nota.App/ClipEditorView.cs
index 1fbfb3a3..3168d643 100644
--- a/src/managed/Nota.App/ClipEditorView.cs
+++ b/src/managed/Nota.App/ClipEditorView.cs
@@ -166,7 +166,7 @@ public sealed class ClipEditorView : UserControl
{
new TextBlock
{
- Text = "ENV", FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 1.08,
+ Text = "Env", FontSize = 9, FontWeight = FontWeight.Medium,
Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center,
},
_targetText,
@@ -224,7 +224,7 @@ public sealed class ClipEditorView : UserControl
// linear. A brass line; nodes in Ink 3 ringed with the well, the one in hand in brass.
private sealed class EnvCanvas : Control
{
- private static readonly IPen EnvPen = new Pen(NotaPalette.Accent, 1.8);
+ private static readonly IPen EnvPen = new Pen(NotaPalette.VizInk, 1.8); // the curve at rest: neutral
private static readonly IBrush NodeFill = NotaPalette.TextSecondary;
private static readonly IBrush NodeHot = NotaPalette.Accent;
private static readonly IPen NodeRing = new Pen(NotaPalette.BgSunken, 2);
diff --git a/src/managed/Nota.App/ClipPropsView.cs b/src/managed/Nota.App/ClipPropsView.cs
index cecd94bd..29541dfb 100644
--- a/src/managed/Nota.App/ClipPropsView.cs
+++ b/src/managed/Nota.App/ClipPropsView.cs
@@ -50,13 +50,13 @@ public sealed class ClipPropsView : UserControl
var loop = SwitchRow("Loop", () => true, () => { }, out _, _loopText);
loop.IsEnabled = false;
ToolTip.SetTip(loop, "Clips always loop");
- var clip = Section("CLIP",
+ var clip = Section("Clip",
Pair(Labeled("Start", Field(_startText)), Labeled("Length", Field(_lengthText))),
loop);
// QUANTIZE — its own step (not the snap grid, which follows the zoom), one-tap
// Quantize at the strength below.
- var grid = Section("QUANTIZE",
+ var grid = Section("Quantize",
Pair(Dropdown(_gridText, a => ShowMenu(a, Array.ConvertAll(QuantizeSteps, q => q.Label),
Array.IndexOf(QuantizeSteps, _roll.Grids.Quantize), i =>
{
@@ -64,7 +64,7 @@ public sealed class ClipPropsView : UserControl
_gridText.Text = QuantizeSteps[i].Label;
})),
ClipEditorKit.Button("Quantize", () => _roll.Quantize(_strength))),
- SliderRow("STRENGTH", 64, () => _strength, v => _strength = v,
+ SliderRow("Strength", 64, () => _strength, v => _strength = v,
() => string.Format(NotaNum.Culture, "{0:0}\u2009%", _strength * 100), out _, reset: () => _strength = 0.8, valueW: 34));
// TRANSPOSE — − value +; the value turns Brass Light while it is off zero.
@@ -75,7 +75,7 @@ public sealed class ClipPropsView : UserControl
Grid.SetColumn(tField, 1); tRow.Children.Add(tField);
var plus = GlyphButton(GlyphKind.Plus, () => Transpose(1));
Grid.SetColumn(plus, 2); tRow.Children.Add(plus);
- var transpose = Section("TRANSPOSE", tRow);
+ var transpose = Section("Transpose", tRow);
// SELECTION — a card of read-outs, or one empty-state line in the same frame.
_selCard = Card(_selRows);
@@ -89,7 +89,7 @@ public sealed class ClipPropsView : UserControl
HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Center, VerticalAlignment = Avalonia.Layout.VerticalAlignment.Center,
},
};
- var selection = Section(SectionTitle("SELECTION", _selCount), 8, _selCard, _selEmpty);
+ var selection = Section(SectionTitle("Selection", _selCount), 8, _selCard, _selEmpty);
Content = Inspector(Sections(clip, grid, transpose, selection),
Hint("Double-click — add or delete · edge — length · Shift — add to selection"));
@@ -121,7 +121,7 @@ public sealed class ClipPropsView : UserControl
private void PaintTranspose()
{
_transposeText.Text = Semis(_transpose);
- _transposeText.Foreground = _transpose != 0 ? NotaPalette.AccentBright : NotaPalette.TextPrimary;
+ _transposeText.Foreground = _transpose != 0 ? NotaPalette.TextPrimary : NotaPalette.TextSecondary;
}
private void PaintSelection()
diff --git a/src/managed/Nota.App/CommandPaletteView.cs b/src/managed/Nota.App/CommandPaletteView.cs
index 6499a4f5..ede94a62 100644
--- a/src/managed/Nota.App/CommandPaletteView.cs
+++ b/src/managed/Nota.App/CommandPaletteView.cs
@@ -29,16 +29,11 @@ internal sealed class CommandPaletteView : UserControl
{
public const double CardWidth = 640, ListMax = 404;
- private static readonly Dictionary<string, string> Icons = new()
+ private static readonly Dictionary<string, GlyphKind> Icons = new()
{
- ["action"] = "M5 7 L10 12 L5 17 M12 17 H19",
- ["track"] = "M4 7 H20 M4 12 H20 M4 17 H13",
- ["device"] = "M4 5 H20 V19 H4 Z M9 12 A3 3 0 1 0 15 12 A3 3 0 1 0 9 12",
- ["plugin"] = "M9 3 V7 M15 3 V7 M6 7 H18 V11 A6 6 0 0 1 6 11 Z M12 17 V21",
- ["preset"] = "M7 4 H17 V20 L12 16 L7 20 Z",
- ["modular"] = "M4 7 A2.5 2.5 0 1 0 9 7 A2.5 2.5 0 1 0 4 7 M15 17 A2.5 2.5 0 1 0 20 17 A2.5 2.5 0 1 0 15 17 M8.5 8.5 L15.5 15.5",
+ ["action"] = GlyphKind.Action, ["track"] = GlyphKind.Track, ["device"] = GlyphKind.Device,
+ ["plugin"] = GlyphKind.Plug, ["preset"] = GlyphKind.Preset, ["modular"] = GlyphKind.Patch,
};
- private const string SearchIcon = "M10.5 4 A6.5 6.5 0 1 0 10.5 17 A6.5 6.5 0 1 0 10.5 4 M15.5 15.5 L21 21";
private readonly PaletteSearch _search;
private readonly PaletteIndex _index;
@@ -90,13 +85,13 @@ internal sealed class CommandPaletteView : UserControl
VerticalAlignment = VerticalAlignment.Center, Child = _pillText, IsVisible = false,
};
var fieldGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), ColumnSpacing = 8 };
- fieldGrid.Children.Add(Icon(SearchIcon, 14, NotaPalette.TextSecondary, 2));
+ fieldGrid.Children.Add(Icon(GlyphKind.Search, 20, NotaPalette.TextSecondary));
Grid.SetColumn(_input, 1); fieldGrid.Children.Add(_input);
Grid.SetColumn(_pill, 2); fieldGrid.Children.Add(_pill);
var field = new Border
{
Height = 38, Padding = new Thickness(10, 0, 6, 0), Background = NotaPalette.BgSunken,
- BorderBrush = NotaPalette.Accent, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
+ BorderBrush = NotaPalette.Accent, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Control,
Child = fieldGrid, Margin = new Thickness(10, 10, 10, 8),
};
@@ -141,12 +136,19 @@ internal sealed class CommandPaletteView : UserControl
DockPanel.SetDock(footer, Dock.Bottom); body.Children.Add(footer);
body.Children.Add(listWrap);
+ // A floating layer, so it alone in the window casts a blurred shadow (Shadow.Modal):
+ // the outer border carries it, the inner one clips the content to the 4px corners.
+ var face = new Border
+ {
+ Background = NotaPalette.Panel, BorderBrush = NotaPalette.Seam, BorderThickness = new Thickness(1),
+ CornerRadius = NotaRadius.Modal, ClipToBounds = true, Child = body,
+ };
_card = new Border
{
Width = CardWidth, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Top,
- Background = NotaPalette.SurfaceRaised, BorderBrush = NotaPalette.BorderStrong, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Body, ClipToBounds = true, Child = body,
+ CornerRadius = NotaRadius.Modal, Child = face,
};
+ _card.BindResource(Border.BoxShadowProperty, "Shadow.Modal");
// Clicks outside the card close the palette; nothing dims the window (CP-17).
var catcher = new Border { Background = Brushes.Transparent };
catcher.PointerPressed += (_, e) => { e.Handled = true; Close(); };
@@ -285,7 +287,7 @@ internal sealed class CommandPaletteView : UserControl
private static Control Header(string label)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), ColumnSpacing = 6, Height = 24, Margin = new Thickness(12, 0) };
- var t = new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 0.9, Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Bottom, Margin = new Thickness(0, 0, 0, 4) };
+ var t = new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.Medium, Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Bottom, Margin = new Thickness(0, 0, 0, 4) };
var line = new Border { Height = 1, Background = NotaPalette.GraphBorder, VerticalAlignment = VerticalAlignment.Bottom, Margin = new Thickness(0, 0, 0, 7) };
g.Children.Add(t);
Grid.SetColumn(line, 1); g.Children.Add(line);
@@ -300,7 +302,7 @@ internal sealed class CommandPaletteView : UserControl
PaletteKind.Device => it.IsPlugin ? "plugin" : "device",
PaletteKind.Track => "track", PaletteKind.Preset => "preset", PaletteKind.Modular => "modular", _ => "action",
};
- var icon = Icon(Icons[iconKey], 15, NotaPalette.TextMuted, 1.6);
+ var icon = Icon(Icons[iconKey], 20, NotaPalette.TextMuted);
icon.Tag = "icon";
var name = new TextBlock { FontSize = 12.5, FontWeight = FontWeight.Medium, VerticalAlignment = VerticalAlignment.Center };
@@ -312,7 +314,7 @@ internal sealed class CommandPaletteView : UserControl
line1.Children.Add(name);
line1.Children.Add(sub);
var text = new StackPanel { Spacing = 2, VerticalAlignment = VerticalAlignment.Center, Children = { line1 } };
- if (reason.Length > 0) text.Children.Add(Mono(10, NotaPalette.AccentHover, reason));
+ if (reason.Length > 0) text.Children.Add(Mono(10, NotaPalette.TextSecondary, reason));
var right = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 3, VerticalAlignment = VerticalAlignment.Center };
if (hit.Disabled && hit.Why.Length > 0)
@@ -363,7 +365,7 @@ internal sealed class CommandPaletteView : UserControl
{
Foreground = kind switch
{
- 2 => disabled ? NotaPalette.AccentDim : NotaPalette.AccentHover,
+ 2 => disabled ? NotaPalette.TextFaint : NotaPalette.TextSecondary,
1 => NotaPalette.TextTertiary,
_ => disabled ? NotaPalette.TextMuted : NotaPalette.TextPrimary,
},
@@ -385,7 +387,7 @@ internal sealed class CommandPaletteView : UserControl
var panel = (Panel)row.Child!;
foreach (var c in panel.Children)
if (c is Border { Tag: "edge" } edge) edge.Background = on ? NotaPalette.Accent : Brushes.Transparent;
- if (((Grid)panel.Children[0]).Children[0] is Path icon) icon.Stroke = on ? NotaPalette.Accent : NotaPalette.TextMuted;
+ if (((Grid)panel.Children[0]).Children[0] is Glyph icon) icon.Foreground = on ? NotaPalette.Accent : NotaPalette.TextMuted;
}
if (_sel >= 0 && _sel < _rowControls.Count) _rowControls[_sel].BringIntoView();
}
@@ -532,11 +534,9 @@ internal sealed class CommandPaletteView : UserControl
Text = text, FontSize = size, FontFamily = NotaFonts.MonoFamily, Foreground = ink, VerticalAlignment = VerticalAlignment.Center,
};
- private static Path Icon(string data, double size, IBrush stroke, double thickness) => new()
- {
- Data = Geometry.Parse(data), Width = size, Height = size, Stretch = Stretch.Uniform, Stroke = stroke, StrokeThickness = thickness,
- StrokeLineCap = PenLineCap.Round, StrokeJoin = PenLineJoin.Round, VerticalAlignment = VerticalAlignment.Center,
- };
+ // A shared-set icon in a square box: the 16-unit grid scaled as a whole, so the kinds keep
+ // their optical balance (the icon body is about two thirds of the box).
+ private static Glyph Icon(GlyphKind kind, double size, IBrush ink) => new(kind, size) { Foreground = ink };
}
/// <summary>The line that confirms what the palette did, with Undo (design: bottom-centre, 4 s).</summary>
diff --git a/src/managed/Nota.App/ConfirmWindow.cs b/src/managed/Nota.App/ConfirmWindow.cs
index 1974c0af..175bd171 100644
--- a/src/managed/Nota.App/ConfirmWindow.cs
+++ b/src/managed/Nota.App/ConfirmWindow.cs
@@ -20,7 +20,7 @@ public sealed class ConfirmWindow : NotaWindow
SizeToContent = SizeToContent.Height;
CanResize = false;
WindowStartupLocation = WindowStartupLocation.CenterOwner;
- Background = NotaPalette.BgApp;
+ Background = NotaPalette.Panel;
var yes = new Button { Content = affirmative, Classes = { "primary" } };
yes.Click += (_, _) => Close(true);
diff --git a/src/managed/Nota.App/Controls/ArpGrid.cs b/src/managed/Nota.App/Controls/ArpGrid.cs
index a958d0c9..21a22bdd 100644
--- a/src/managed/Nota.App/Controls/ArpGrid.cs
+++ b/src/managed/Nota.App/Controls/ArpGrid.cs
@@ -5,11 +5,11 @@
// • Pattern: rows = the chord over every octave (root rows striped, note names in a left
// gutter), one cell per step = the note that step plays. Cell width = Gate × Length,
// odd steps pushed right by Swing, a ratchet splits the cell, a muted step is an empty
-// outline. Played steps are Brass Deep, the sounding one Brass Light, the rest Brass Edge.
+// outline. Steps rest in neutral ink, the ones already played this pass dimmer, the sounding one accent.
// • Groove: the selected lane's per-step bars (Velocity / Length / Chance / Ratchet as
// stacked quarters / Transpose bipolar from the centre); drag across the well to draw
// (⌥ draws a ramp); the step-number strip under it mutes a step.
-// A brass head band marks the sounding step; it moves with the engine's telemetry.
+// An accent head band marks the sounding step; it moves with the engine's telemetry.
// ArpPattern mirrors Arpeggiator.h so the picture is exactly what will play.
using System;
@@ -222,7 +222,7 @@ internal sealed class ArpGrid : Control
}
private IBrush Tone(int c, bool muted, IBrush future)
- => muted ? NotaPalette.TrackOff : c == _pos ? NotaPalette.AccentBright : _pos >= 0 && c < _pos ? NotaPalette.AccentDeep : future;
+ => muted ? NotaPalette.TrackOff : c == _pos ? NotaPalette.Accent : _pos >= 0 && c < _pos ? NotaPalette.Wash(NotaPalette.VizInk, 0x80) : future;
public override void Render(DrawingContext ctx)
{
@@ -304,7 +304,7 @@ internal sealed class ArpGrid : Control
double wFrac = Math.Clamp(gate * len, 0.12, 1.0);
double off = c % 2 == 1 ? swing * 0.5 * cw : 0;
double cellW = wFrac * cw;
- IBrush fill = muted ? Brushes.Transparent : c == _pos ? NotaPalette.AccentBright : _pos >= 0 && c < _pos ? NotaPalette.AccentDeep : NotaPalette.AccentEdge;
+ IBrush fill = muted ? Brushes.Transparent : c == _pos ? NotaPalette.Accent : _pos >= 0 && c < _pos ? NotaPalette.Wash(NotaPalette.VizInk, 0x80) : NotaPalette.VizInk;
IBrush border = muted ? NotaPalette.BorderStrong : fill;
foreach (int p in ArpPattern.NotesAt(seq, order, page + c, octs, octMode))
{
@@ -327,7 +327,7 @@ internal sealed class ArpGrid : Control
bool muted = G(LOn + c) < 0.5;
double d = Math.Clamp(lane.ToDisp(G(lane.Base + c)), lane.Min, lane.Max);
double f = (d - lane.Min) / (lane.Max - lane.Min);
- var fill = Tone(c, muted, NotaPalette.AccentDim);
+ var fill = Tone(c, muted, NotaPalette.TextSecondary);
double x = w.X + c * cw + 2, bw = Math.Max(1, cw - 4);
if (lane.Base == LRatchet)
{
diff --git a/src/managed/Nota.App/Controls/AuroraLfoStrip.cs b/src/managed/Nota.App/Controls/AuroraLfoStrip.cs
index 84538543..a2baf648 100644
--- a/src/managed/Nota.App/Controls/AuroraLfoStrip.cs
+++ b/src/managed/Nota.App/Controls/AuroraLfoStrip.cs
@@ -15,7 +15,7 @@ namespace Nota.App;
internal sealed class AuroraLfoStrip : Control
{
- private static readonly Pen Curve = new(NotaPalette.AccentBright, 1.6, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ private static readonly Pen Curve = new(NotaPalette.VizInk, 1.6, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
private static readonly Pen Zero = new(NotaGraph.Grid, 1);
private const int Samples = 180;
diff --git a/src/managed/Nota.App/Controls/AuroraStack.cs b/src/managed/Nota.App/Controls/AuroraStack.cs
index 69a98f5e..fece8818 100644
--- a/src/managed/Nota.App/Controls/AuroraStack.cs
+++ b/src/managed/Nota.App/Controls/AuroraStack.cs
@@ -2,7 +2,7 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Aurora's wavetable window: the 16 single-cycle frames drawn as a skewed 3-D stack,
-// the frame Position sits on lit brass and the rest fading back into the well — "position
+// the frame Position sits on in bright neutral ink and the rest fading back into the well — "position
// is a place in a stack, not a number". The shapes come from the same additive recipe as
// WavetableSynth::harmAmp (a low harmonic count → representative, not sample-exact).
//
@@ -24,14 +24,14 @@ internal sealed class AuroraStack : Control
{
private const int Banks = 4, Frames = 16, N = 96, HarmMax = 28;
- private static readonly IBrush Lit = NotaPalette.AccentBright;
+ private static readonly IBrush Lit = NotaPalette.VizInk;
private static readonly IBrush Dim = NotaPalette.TextDisabled;
// Four depth steps from the back of the stack to the front, so the stack reads as
// depth rather than as sixteen equal lines.
private static readonly IBrush[] Depth =
{
- NotaPalette.Wash(NotaPalette.Accent, 0x38), NotaPalette.Wash(NotaPalette.Accent, 0x58),
- NotaPalette.Wash(NotaPalette.Accent, 0x80), NotaPalette.Wash(NotaPalette.Accent, 0xB0),
+ NotaPalette.Wash(NotaPalette.VizInk, 0x28), NotaPalette.Wash(NotaPalette.VizInk, 0x40),
+ NotaPalette.Wash(NotaPalette.VizInk, 0x60), NotaPalette.Wash(NotaPalette.VizInk, 0x88),
};
private static readonly Pen[] DepthPens = MakePens(Depth);
diff --git a/src/managed/Nota.App/Controls/AutoFilterCurve.cs b/src/managed/Nota.App/Controls/AutoFilterCurve.cs
index c0e70395..b28f48bb 100644
--- a/src/managed/Nota.App/Controls/AutoFilterCurve.cs
+++ b/src/managed/Nota.App/Controls/AutoFilterCurve.cs
@@ -22,7 +22,7 @@ namespace Nota.App;
internal sealed class AutoFilterCurve : Control
{
- private static readonly IPen CurvePen = new Pen(NotaPalette.Accent, 1.8); // solid brass = current response
+ private static readonly IPen CurvePen = new Pen(NotaPalette.VizInk, 1.8); // solid neutral ink = current response
private static readonly IPen SpecPen = new Pen(NotaPalette.Wash(NotaPalette.Ink("#9CB4CC"), 0x44));
private static readonly IPen ModPen = new Pen(NotaPalette.Teal, 1.2) { DashStyle = new DashStyle(new double[] { 4, 3 }, 0) }; // dashed teal = at modulation
private static readonly IPen RangePen = new Pen(NotaPalette.Wash(NotaPalette.Teal, 0x8C), 1);
@@ -233,7 +233,7 @@ internal sealed class AutoFilterCurve : Control
var baseFc = HzOf(_fcNorm);
Stroke(CurvePen, Curve(baseFc, _res));
double cx = _fcNorm * w, cy = YForDb(MagDb(baseFc, baseFc, _res), h);
- NotaGraph.Node(ctx, new Point(cx, cy), active: true);
+ NotaGraph.Node(ctx, new Point(cx, cy), active: _drag);
// Labels: title, legend, the range corners and the cutoff under its handle.
NotaGraph.Title(ctx, frame, "Response");
@@ -242,7 +242,7 @@ internal sealed class AutoFilterCurve : Control
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "18k Hz");
var hz = baseFc;
string cut = hz >= 1000 ? NotaNum.Str(hz / 1000.0, "0.0") + "k" : NotaNum.Str(hz, "0");
- var cf = NotaGraph.AxisText(cut, NotaPalette.AccentBright);
+ var cf = NotaGraph.AxisText(cut, _drag ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
double lx = Math.Clamp(cx - cf.Width / 2, 24, Math.Max(24, w - 44 - cf.Width));
ctx.DrawText(cf, new Point(lx, h - cf.Height - 3));
}
diff --git a/src/managed/Nota.App/Controls/AutoFilterViews.cs b/src/managed/Nota.App/Controls/AutoFilterViews.cs
index 631c1fb0..c6e66324 100644
--- a/src/managed/Nota.App/Controls/AutoFilterViews.cs
+++ b/src/managed/Nota.App/Controls/AutoFilterViews.cs
@@ -2,13 +2,13 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Auto Filter card views (besides the response curve):
-// • AfFader — the SHAPE column's vertical faders (FRQ / RES): the set value as a filled
-// well with a handle, plus a thin marker where modulation has it now;
+// • AfFader — the Shape column's vertical faders (Frq / Res): the set value as a filled
+// well with a handle (accent while dragged), plus a thin marker where modulation has it now;
// • AfEnvView — the Envelope tab's window: the input envelope (teal) and the cutoff it
-// drives (brass) over the last few hundred ms, with the base cutoff dashed;
+// drives (neutral ink) over the last few hundred ms, with the base cutoff dashed;
// drag up / down for the amount;
// • AfLfoView — the LFO tab's window: the LFO's cutoff motion over two bars (or a few
-// cycles in free time), raw shape dashed teal, the smoothed motion in brass,
+// cycles in free time), raw shape dashed teal, the smoothed motion in neutral ink,
// a playhead dot at the live phase; drag up / down for the amount, sideways
// for the start phase.
@@ -25,7 +25,7 @@ internal sealed class AfFader : Control
private double _v, _live = double.NaN;
private bool _drag;
- public IBrush Ink { get; init; } = NotaPalette.Accent;
+ public IBrush Ink { get; init; } = NotaPalette.VizInk;
public double Default { get; set; } = double.NaN;
public bool Dragging => _drag;
@@ -87,7 +87,7 @@ internal sealed class AfFader : Control
}
ctx.DrawRectangle(null, new Pen(NotaPalette.BorderDefault, 1), rect, r, r);
double hy = Math.Clamp(y, 1.5, h - 2.5);
- ctx.DrawRectangle(Ink, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : Ink, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
}
}
@@ -193,7 +193,7 @@ internal sealed class AfEnvView : AfWindowBase
NotaGraph.Title(ctx, frame, "Cutoff over time");
string pk = NotaNum.Hz(_peakHz);
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, pk, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, pk, Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
NotaGraph.Legend(ctx, w - 5, 16, ("input", NotaPalette.TealBright, NotaGraph.Mark.Line));
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "0");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, _winText);
@@ -290,7 +290,7 @@ internal sealed class AfLfoView : AfWindowBase
}
NotaGraph.Title(ctx, frame, _title);
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _amt, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _amt, Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
if (_morphText.Length > 0)
{
var t = NotaGraph.AxisText(_morphText, NotaPalette.TealBright);
diff --git a/src/managed/Nota.App/Controls/AutoShiftViews.cs b/src/managed/Nota.App/Controls/AutoShiftViews.cs
index 5dcfd99f..71d7cf72 100644
--- a/src/managed/Nota.App/Controls/AutoShiftViews.cs
+++ b/src/managed/Nota.App/Controls/AutoShiftViews.cs
@@ -3,13 +3,13 @@
//
// Nota Auto Shift (device kind 10) card windows, all read from the engine's telemetry
// (AutoShift.h scopeRead), so the picture is what the corrector does:
-// · AsPill — the PITCH column: IN (where the voice sits in the detection range, brass,
-// rising from the bottom) or CORR (the correction now, teal, bipolar about the centre).
+// · AsPill — the Pitch column: In (where the voice sits in the detection range, neutral
+// ink, rising from the bottom) or Corr (the correction now, teal, bipolar about the centre).
// · AsTraceView — the Trace and MIDI tabs: the detected pitch (teal dots) and the output
-// (brass line) over the last ~2 s on note lanes of the active scale, the target lane lit;
+// (neutral line) over the last ~2 s on note lanes of the active scale, the target lane lit;
// in MIDI mode the source's notes are drawn as blocks on their lanes.
// · AsHistView — the Scale tab: how long each pitch class was sung (decaying over ~16
-// bars), in-scale columns brass, sung out-of-scale ones teal. Clicking a column toggles
+// bars), in-scale columns neutral ink, sung out-of-scale ones teal. Clicking a column toggles
// that note in the scale.
using System;
@@ -26,7 +26,7 @@ internal sealed class AsPill : Control
private double _v = double.NaN;
/// <summary>Bipolar: the fill hangs from the centre (the correction); else it rises from the bottom.</summary>
public bool Bipolar { get; init; }
- public IBrush Ink { get; init; } = NotaPalette.Accent;
+ public IBrush Ink { get; init; } = NotaPalette.VizInk;
public AsPill() { Width = 16; }
@@ -164,8 +164,8 @@ internal sealed class AsTraceView : Control
double y = Y(note), bh = Math.Max(4, laneH * 0.7);
bool now = k >= _n;
var r = new Rect(X(s), y - bh / 2, Math.Max(2, X(k - 1) - X(s)), bh);
- ctx.DrawRectangle(NotaPalette.Wash(NotaPalette.Accent, now ? (byte)0x4C : (byte)0x2E),
- new Pen(now ? NotaPalette.AccentBright : NotaPalette.Accent, now ? 1.2 : 1), new RoundedRect(r, 2));
+ ctx.DrawRectangle(now ? NotaPalette.Wash(NotaPalette.Accent, 0x4C) : NotaPalette.Wash(NotaPalette.VizInk, 0x2E),
+ new Pen(now ? NotaPalette.AccentBright : NotaPalette.VizInk, now ? 1.2 : 1), new RoundedRect(r, 2));
}
}
@@ -174,7 +174,7 @@ internal sealed class AsTraceView : Control
for (int k = 0; k < _n; k += 2)
if (_det[k] > 0) ctx.DrawEllipse(dot, null, new Point(X(k), Y(_det[k])), 0.9, 0.9);
- // Output: brass line, broken where unvoiced.
+ // Output: neutral line, broken where unvoiced.
StreamGeometry? geo = null; StreamGeometryContext? gc = null;
Point last = default; bool any = false;
void Flush() { if (gc != null) { gc.Dispose(); ctx.DrawGeometry(null, NotaGraph.PrimaryPen, geo!); gc = null; geo = null; } }
@@ -187,7 +187,7 @@ internal sealed class AsTraceView : Control
last = p; any = k == _n - 1;
}
Flush();
- if (any) ctx.DrawEllipse(NotaPalette.Accent, new Pen(NotaGraph.Ground, 1), last, 2.6, 2.6);
+ if (any) ctx.DrawEllipse(NotaPalette.VizInk, new Pen(NotaGraph.Ground, 1), last, 2.6, 2.6);
// Lane labels, the target lit.
for (int i = 0; i < nl; i++)
@@ -196,8 +196,8 @@ internal sealed class AsTraceView : Control
var ft = NotaGraph.AxisText(Names[((m % 12) + 12) % 12] + (m / 12 - 1), m == tgtNote ? NotaPalette.AccentBright : null, 6);
ctx.DrawText(ft, new Point(4, LaneY(i) - ft.Height / 2));
}
- if (_midiMode) NotaGraph.Legend(ctx, w - 5, 2, ("MIDI", NotaPalette.AccentBright, NotaGraph.Mark.Area), ("input", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
- else NotaGraph.Legend(ctx, w - 5, 2, ("input", NotaPalette.TealBright, NotaGraph.Mark.Dashed), ("corrected", NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ if (_midiMode) NotaGraph.Legend(ctx, w - 5, 2, ("MIDI", NotaPalette.VizInk, NotaGraph.Mark.Area), ("input", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
+ else NotaGraph.Legend(ctx, w - 5, 2, ("input", NotaPalette.TealBright, NotaGraph.Mark.Dashed), ("corrected", NotaPalette.VizInk, NotaGraph.Mark.Line));
var t0 = NotaGraph.AxisText("−" + _window, null, 6);
ctx.DrawText(t0, new Point(gx, h - t0.Height - 1));
var t1 = NotaGraph.AxisText("now", null, 6);
@@ -262,14 +262,14 @@ internal sealed class AsHistView : Control
bool inScale = (_mask >> i & 1) != 0;
double v = Math.Clamp(_h[i], 0, 1);
double bh = Math.Max(1.5, v * (bot - top));
- IBrush fill = inScale ? (i == _key ? NotaPalette.Accent : NotaPalette.Wash(NotaPalette.Accent, 0x8C))
+ IBrush fill = inScale ? (i == _key ? NotaPalette.VizInk : NotaPalette.Wash(NotaPalette.VizInk, 0x8C))
: v > 0.08 ? NotaPalette.Wash(NotaPalette.Teal, 0x99) : NotaPalette.BorderDefault;
var r = new Rect(6 + i * gw + gap / 2, bot - bh, gw - gap, bh);
if (i == _hover) ctx.FillRectangle(NotaPalette.Wash(NotaPalette.BorderStrong, 0x30), new Rect(6 + i * gw + 1, top - 2, gw - 2, bot - top + 2));
ctx.DrawRectangle(fill, null, new RoundedRect(r, 2, 2, 0, 0));
}
- var title = new FormattedText("SUNG NOTES", System.Globalization.CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansBold, 7, NotaGraph.TitleInk);
+ var title = new FormattedText("Sung notes", System.Globalization.CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansSemiBold, 7, NotaGraph.TitleInk);
ctx.DrawText(title, new Point(5, 3));
- NotaGraph.Legend(ctx, w - 5, 2, ("in scale", NotaPalette.AccentBright, NotaGraph.Mark.Area), ("out of scale" + _outName, NotaPalette.TealBright, NotaGraph.Mark.Area));
+ NotaGraph.Legend(ctx, w - 5, 2, ("in scale", NotaPalette.VizInk, NotaGraph.Mark.Area), ("out of scale" + _outName, NotaPalette.TealBright, NotaGraph.Mark.Area));
}
}
diff --git a/src/managed/Nota.App/Controls/BeatRepeatViews.cs b/src/managed/Nota.App/Controls/BeatRepeatViews.cs
index 674c4e0c..c3ea543d 100644
--- a/src/managed/Nota.App/Controls/BeatRepeatViews.cs
+++ b/src/managed/Nota.App/Controls/BeatRepeatViews.cs
@@ -4,13 +4,13 @@
// Nota Beat Repeat (device kind 11) card windows, read from the engine's telemetry
// (BeatRepeat.h scopeRead) so the picture is what the repeater does:
// · BrTimelineView — the Timeline tab: two intervals as grid steps, each a bar of the input
-// level — dry steps dim, the captured slice in full brass, every repeat a step dimmer as it
-// decays — with the trigger points, the bar numbers and the playhead.
+// level — dry steps dim, the captured slice in full neutral ink, every repeat a step dimmer as
+// it decays — with the trigger points, the bar numbers and the playhead (accent).
// · BrSlicesView — the Slices tab: the last interval's input (teal) on the grid, the gate
-// window from the offset shaded, the captured slice in brass. Drag the offset line or the
+// window from the offset shaded, the captured slice in neutral ink. Drag the offset line or the
// gate's end sideways (16ths of the interval); double-click resets.
// · BrFilterView — the Filter tab: the repeat filter (LP / BP / HP) for the first repeat in
-// brass and a later one (teal dashed) when the band narrows and follows the pitch. Drag
+// neutral ink and a later one (teal dashed) when the band narrows and follows the pitch. Drag
// the node for the frequency, a band edge for the width.
// Drag contract from ShDragView: left button only, a gesture per drag, double-click resets
// the handle, right-click bubbles to the MIDI-learn menu.
@@ -81,20 +81,20 @@ internal sealed class BrTimelineView : Control
var r = new Rect(x0 + s * sw + gap / 2, bot - bh, Math.Max(1, sw - gap), bh);
IBrush fill = kind switch
{
- 1 => NotaPalette.Accent,
- 2 => NotaPalette.Wash(NotaPalette.Accent, (byte)Math.Clamp(60 + 150 * g, 50, 210)),
+ 1 => NotaPalette.VizInk,
+ 2 => NotaPalette.Wash(NotaPalette.VizInk, (byte)Math.Clamp(60 + 150 * g, 50, 210)),
_ => NotaPalette.Wash(NotaPalette.TextTertiary, 0x38),
};
ctx.DrawRectangle(fill, null, r, 2, 2);
}
- // Interval boundaries (dashed) and the trigger points (brass ticks at the top).
+ // Interval boundaries (dashed) and the trigger points (ticks at the top).
var dash = new Pen(NotaPalette.BorderStrong, 1, new DashStyle(new double[] { 2, 3 }, 0));
for (double b = _intervalBeats; b < _winBeats - 1e-6; b += _intervalBeats) ctx.DrawLine(dash, new Point(X(b), top - 2), new Point(X(b), bot));
for (double b = _offset * _intervalBeats; b < _winBeats - 1e-6; b += _intervalBeats)
{
double x = X(b);
- ctx.DrawLine(new Pen(NotaPalette.Accent, 1.4), new Point(x, top - 3), new Point(x, top + 3));
+ ctx.DrawLine(new Pen(NotaPalette.VizInk, 1.4), new Point(x, top - 3), new Point(x, top + 3));
}
// Playhead.
@@ -105,8 +105,8 @@ internal sealed class BrTimelineView : Control
}
NotaGraph.Title(ctx, frame, _title);
- NotaGraph.Legend(ctx, w - 6, 3, ("capture", NotaPalette.AccentBright, NotaGraph.Mark.Area),
- ("repeat · decay", NotaPalette.AccentDim, NotaGraph.Mark.Area), ("dry", NotaPalette.TextTertiary, NotaGraph.Mark.Area));
+ NotaGraph.Legend(ctx, w - 6, 3, ("capture", NotaPalette.VizInk, NotaGraph.Mark.Area),
+ ("repeat · decay", NotaPalette.Wash(NotaPalette.VizInk, 0x80), NotaGraph.Mark.Area), ("dry", NotaPalette.TextTertiary, NotaGraph.Mark.Area));
// Bar numbers along the bottom (the window starts on a bar when the interval is ≥ a bar).
int bars = (int)Math.Ceiling(_winBeats / _barBeats - 1e-6);
@@ -171,7 +171,7 @@ internal sealed class BrSlicesView : ShDragView
double top = 16, bot = h - 13, mid = (top + bot) / 2, amp = (bot - top) / 2;
// Gate window shaded from the offset.
- ctx.FillRectangle(NotaPalette.AccentSubtle, new Rect(Xf(_offset), 0, Math.Max(1, Xf(GateEnd) - Xf(_offset)), h));
+ ctx.FillRectangle(NotaPalette.Wash(NotaPalette.VizInk, 0x20), new Rect(Xf(_offset), 0, Math.Max(1, Xf(GateEnd) - Xf(_offset)), h));
// Grid steps (dim) and the 16ths of the interval inside the gate (dashed).
int steps = (int)Math.Clamp(Math.Round(1 / _gridFrac), 1, 128);
@@ -182,11 +182,11 @@ internal sealed class BrSlicesView : ShDragView
}
ctx.DrawLine(NotaGraph.GridPen, new Point(0, mid), new Point(w, mid));
- // The interval's input (teal), the captured slice (brass).
+ // The interval's input (teal), the captured slice (neutral ink).
if (_n > 1)
{
var inPen = new Pen(NotaPalette.Wash(NotaPalette.Teal, 0xB0), Math.Max(1, Math.Min(2, W / _n * 0.6)));
- var slicePen = new Pen(NotaPalette.AccentBright, Math.Max(1.2, Math.Min(2.2, W / _n * 0.7)));
+ var slicePen = new Pen(NotaPalette.VizInk, Math.Max(1.2, Math.Min(2.2, W / _n * 0.7)));
double s0 = _offset, s1 = Math.Min(1, _offset + _slice);
for (int i = 0; i < _n; i++)
{
@@ -201,17 +201,17 @@ internal sealed class BrSlicesView : ShDragView
}
bool hotO = Active == HOffset, hotG = Active == HGate;
- ctx.DrawLine(new Pen(NotaPalette.Accent, hotO ? 1.6 : 1.1), new Point(Xf(_offset), 0), new Point(Xf(_offset), h));
- ctx.DrawLine(new Pen(hotG ? NotaPalette.Accent : NotaPalette.AccentDim, hotG ? 1.6 : 1.1, new DashStyle(new double[] { 3, 3 }, 0)),
+ ctx.DrawLine(new Pen(hotO ? NotaPalette.Accent : NotaPalette.VizInk, hotO ? 1.6 : 1.1), new Point(Xf(_offset), 0), new Point(Xf(_offset), h));
+ ctx.DrawLine(new Pen(hotG ? NotaPalette.Accent : NotaPalette.TextSecondary, hotG ? 1.6 : 1.1, new DashStyle(new double[] { 3, 3 }, 0)),
new Point(Xf(GateEnd), 0), new Point(Xf(GateEnd), h));
NotaGraph.Title(ctx, frame, _repeating ? "Captured sound · repeating" : "Captured sound");
- NotaGraph.Legend(ctx, w - 6, 3, ("slice", NotaPalette.AccentBright, NotaGraph.Mark.Line), ("input", NotaPalette.TealBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 6, 3, ("slice", NotaPalette.VizInk, NotaGraph.Mark.Line), ("input", NotaPalette.TealBright, NotaGraph.Mark.Line));
int off = (int)Math.Round(_offset * 16), gate = (int)Math.Round(_gate * 16);
double ox = Math.Clamp(Xf(_offset) + 3, 4, w - 110);
- Text(ctx, NotaNum.F($"offset {off}/16"), ox, h - 11, NotaPalette.AccentBright);
+ Text(ctx, NotaNum.F($"offset {off}/16"), ox, h - 11, hotO ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
double gx = Math.Clamp(Xf(GateEnd) + 3, ox + 62, w - 70);
- if (gx < w - 60) Text(ctx, NotaNum.F($"gate {gate}/16"), gx, h - 11, NotaPalette.AccentDim);
+ if (gx < w - 60) Text(ctx, NotaNum.F($"gate {gate}/16"), gx, h - 11, hotG ? NotaPalette.AccentBright : NotaPalette.TextTertiary);
TextR(ctx, "16/16", w - 4, h - 11);
}
}
@@ -304,20 +304,20 @@ internal sealed class BrFilterView : ShDragView
{
var (lo, hi) = Band(_hz, _oct);
double y = Yd(-3);
- var edgePen = new Pen(Active is HWidthLo or HWidthHi ? NotaPalette.Accent : NotaPalette.AccentDim, 1, new DashStyle(new double[] { 2, 3 }, 0));
+ var edgePen = new Pen(Active is HWidthLo or HWidthHi ? NotaPalette.Accent : NotaPalette.TextTertiary, 1, new DashStyle(new double[] { 2, 3 }, 0));
ctx.DrawLine(edgePen, new Point(X(lo), y), new Point(X(hi), y));
- Text(ctx, NotaNum.F($"{_oct:0.0}\u2009oct"), Math.Clamp(X(lo) + 2, 4, w - 50), y + 2, NotaPalette.AccentDim);
+ Text(ctx, NotaNum.F($"{_oct:0.0}\u2009oct"), Math.Clamp(X(lo) + 2, 4, w - 50), y + 2, NotaPalette.TextTertiary);
}
- NotaGraph.Node(ctx, node, Active == HFreq || Active < 0);
+ NotaGraph.Node(ctx, node, Active == HFreq);
}
NotaGraph.Title(ctx, frame, _on ? "Repeat filter" : "Repeat filter · off");
if (_on && _laterRepeat > 1)
- NotaGraph.Legend(ctx, w - 6, 3, ("repeat 1", NotaPalette.AccentBright, NotaGraph.Mark.Line),
+ NotaGraph.Legend(ctx, w - 6, 3, ("repeat 1", NotaPalette.VizInk, NotaGraph.Mark.Line),
(NotaNum.F($"repeat {_laterRepeat}"), NotaPalette.TealBright, NotaGraph.Mark.Dashed));
static string Hz(double f) => f >= 1000 ? NotaNum.F($"{f / 1000:0.0}\u2009k") : NotaNum.F($"{f:0}\u2009Hz");
Text(ctx, "50", 4, h - 11);
TextR(ctx, "18\u2009k", w - 4, h - 11);
- if (_on) Text(ctx, Hz(_hz), Math.Clamp(X(_hz) - 14, 22, w - 60), h - 11, NotaPalette.AccentBright);
+ if (_on) Text(ctx, Hz(_hz), Math.Clamp(X(_hz) - 14, 22, w - 60), h - 11, Active == HFreq ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
}
}
diff --git a/src/managed/Nota.App/Controls/CeilingViews.cs b/src/managed/Nota.App/Controls/CeilingViews.cs
index 936d4594..274d8bc4 100644
--- a/src/managed/Nota.App/Controls/CeilingViews.cs
+++ b/src/managed/Nota.App/Controls/CeilingViews.cs
@@ -4,13 +4,13 @@
// Nota Ceiling (device kind 14) card windows, read from the engine's telemetry
// (Ceiling.h scopeRead) so the picture is what the limiter does:
// · CeLevelView — the Level tab: the last 4 s as columns — the input behind (teal), the part
-// over the ceiling (red), the limited output (brass) — with the ceiling line, and the
+// over the ceiling (red), the limited output (neutral ink) — with the ceiling line, and the
// reduction hanging under it in a strip. Drag the ceiling line up or down.
// · CeReductionView — the Reduction tab: the reduction over 4 s hanging from 0 dB, teal where
// a transient got through to the clip, the window's mean dashed; the scale follows the
// deepest reduction (3 / 6 / 12 / 24 dB).
-// · CeLoudnessView — the Loudness tab: momentary (teal), short-term (brass) and integrated
-// (Ink) over the last 60 s around the Target, with the ±1 LU band. Drag the target line.
+// · CeLoudnessView — the Loudness tab: momentary (teal), short-term (neutral ink) and
+// integrated (rose) over the last 60 s around the Target, with the ±1 LU band. Drag the target line.
// Drag contract from ShDragView: left button only, a gesture per drag, double-click resets
// the handle, right-click bubbles to the MIDI-learn menu.
@@ -92,22 +92,22 @@ internal sealed class CeLevelView : ShDragView
if (_out[i] > Lo)
{
double oy = Y(_out[i]);
- ctx.DrawRectangle(NotaPalette.Accent, null, new Rect(x, oy, bw, bot - oy), 1, 1);
+ ctx.DrawRectangle(NotaPalette.VizInk, null, new Rect(x, oy, bw, bot - oy), 1, 1);
}
// Reduction strip under the plot (0 … −12 dB hanging).
double g = Math.Clamp(_gr[i] / 12.0, 0, 1);
if (g > 0.005)
- ctx.FillRectangle(NotaPalette.AccentBright, new Rect(x, h - StripH - 2, bw, g * (StripH - 3)));
+ ctx.FillRectangle(NotaPalette.VizInk, new Rect(x, h - StripH - 2, bw, g * (StripH - 3)));
}
}
ctx.DrawLine(NotaGraph.FramePen, new Point(x0, h - StripH - 4), new Point(x1, h - StripH - 4));
// Ceiling line (drag it).
- ctx.DrawLine(new Pen(NotaPalette.AccentBright, Dragging ? 1.6 : 1), new Point(x0, cy), new Point(x1, cy));
- TextR(ctx, NotaNum.F($"{_ceil:0.0}"), x1 - 2, cy - 10, NotaPalette.AccentBright);
+ ctx.DrawLine(new Pen(Dragging ? NotaPalette.Accent : NotaPalette.VizInk, Dragging ? 1.6 : 1), new Point(x0, cy), new Point(x1, cy));
+ TextR(ctx, NotaNum.F($"{_ceil:0.0}"), x1 - 2, cy - 10, Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
Text(ctx, "0", x0 + 2, Y(0) - 9);
NotaGraph.Title(ctx, frame, Title);
NotaGraph.Legend(ctx, w - 6, 3, ("in", NotaPalette.TealBright, NotaGraph.Mark.Area),
- ("out", NotaPalette.AccentBright, NotaGraph.Mark.Area), ("over", NotaPalette.DangerBright, NotaGraph.Mark.Area));
+ ("out", NotaPalette.VizInk, NotaGraph.Mark.Area), ("over", NotaPalette.DangerBright, NotaGraph.Mark.Area));
Text(ctx, "−4 s", x0 + 2, h - StripH - 15);
TextR(ctx, "now", x1 - 2, h - StripH - 15);
}
@@ -158,18 +158,18 @@ internal sealed class CeReductionView : Avalonia.Controls.Control
{
if (_gr[i] < 0.02) continue;
double x = x0 + i * cw;
- ctx.DrawRectangle(_clip[i] > 0.5f ? NotaPalette.Teal : NotaPalette.AccentBright, null,
+ ctx.DrawRectangle(_clip[i] > 0.5f ? NotaPalette.Teal : NotaPalette.VizInk, null,
new Rect(x, top, Math.Max(0.6, cw - gap), Y(_gr[i]) - top), 1, 1);
}
}
if (_avg > 0.05)
{
double ay = Y(_avg);
- ctx.DrawLine(new Pen(NotaPalette.AccentDim, 1, new DashStyle(new double[] { 3, 3 }, 0)), new Point(x0, ay), new Point(x1, ay));
+ ctx.DrawLine(new Pen(NotaPalette.TextSecondary, 1, new DashStyle(new double[] { 3, 3 }, 0)), new Point(x0, ay), new Point(x1, ay));
}
NotaGraph.Title(ctx, frame, "Reduction");
- NotaGraph.Legend(ctx, w - 6, 3, ("GR", NotaPalette.AccentBright, NotaGraph.Mark.Area),
- ("to the clip", NotaPalette.TealBright, NotaGraph.Mark.Area), ("mean", NotaPalette.AccentDim, NotaGraph.Mark.Dashed));
+ NotaGraph.Legend(ctx, w - 6, 3, ("GR", NotaPalette.VizInk, NotaGraph.Mark.Area),
+ ("to the clip", NotaPalette.TealBright, NotaGraph.Mark.Area), ("mean", NotaPalette.TextSecondary, NotaGraph.Mark.Dashed));
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "−4 s");
ctx.DrawText(NotaGraph.AxisText("now"), new Point(x1 - 16, h - 11));
}
@@ -219,8 +219,8 @@ internal sealed class CeLoudnessView : ShDragView
foreach (double d in new[] { -4.0, 4.0 }) ctx.DrawLine(NotaGraph.GridPen, new Point(x0, Y(_center + d)), new Point(x1, Y(_center + d)));
// Tolerance band ±1 LU and the target.
double ty = Y(_target);
- ctx.FillRectangle(NotaPalette.Wash(NotaPalette.Accent, 0x14), new Rect(x0, Y(_target + 1), x1 - x0, Y(_target - 1) - Y(_target + 1)));
- ctx.DrawLine(new Pen(Dragging ? NotaPalette.AccentBright : NotaPalette.AccentDim, 1, new DashStyle(new double[] { 3, 3 }, 0)), new Point(x0, ty), new Point(x1, ty));
+ ctx.FillRectangle(NotaPalette.Wash(NotaPalette.VizInk, 0x14), new Rect(x0, Y(_target + 1), x1 - x0, Y(_target - 1) - Y(_target + 1)));
+ ctx.DrawLine(new Pen(Dragging ? NotaPalette.Accent : NotaPalette.TextSecondary, 1, new DashStyle(new double[] { 3, 3 }, 0)), new Point(x0, ty), new Point(x1, ty));
void Curve(float[] v, IPen pen)
{
@@ -242,15 +242,15 @@ internal sealed class CeLoudnessView : ShDragView
}
Curve(_m, NotaGraph.SecondaryPen(NotaPalette.Teal, 1));
Curve(_s, NotaGraph.PrimaryPen);
- Curve(_i, NotaGraph.SecondaryPen(NotaPalette.TextPrimary, 1.2));
- if (_n > 0 && _s[_n - 1] > -69f) NotaGraph.Node(ctx, new Point(x1, Math.Clamp(Y(_s[_n - 1]), 14, h - 13)), true);
+ Curve(_i, NotaGraph.SecondaryPen(NotaPalette.Rose, 1.2));
+ if (_n > 0 && _s[_n - 1] > -69f) NotaGraph.Node(ctx, new Point(x1, Math.Clamp(Y(_s[_n - 1]), 14, h - 13)), false);
Text(ctx, NotaNum.F($"{_center + 4:0}"), x0 + 2, Y(_center + 4) - 9);
- Text(ctx, NotaNum.F($"{_target:0}"), x0 + 2, ty - 9, NotaPalette.AccentBright);
+ Text(ctx, NotaNum.F($"{_target:0}"), x0 + 2, ty - 9, Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
Text(ctx, NotaNum.F($"{_center - 4:0}"), x0 + 2, Y(_center - 4) - 9);
NotaGraph.Title(ctx, frame, "Loudness");
- NotaGraph.Legend(ctx, w - 6, 3, ("M", NotaPalette.TealBright, NotaGraph.Mark.Line), ("S", NotaPalette.AccentBright, NotaGraph.Mark.Line),
- ("I", NotaPalette.TextPrimary, NotaGraph.Mark.Line), ("target", NotaPalette.AccentDim, NotaGraph.Mark.Dashed));
+ NotaGraph.Legend(ctx, w - 6, 3, ("M", NotaPalette.TealBright, NotaGraph.Mark.Line), ("S", NotaPalette.VizInk, NotaGraph.Mark.Line),
+ ("I", NotaPalette.RoseBright, NotaGraph.Mark.Line), ("target", NotaPalette.TextSecondary, NotaGraph.Mark.Dashed));
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "−60 s");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "now");
}
diff --git a/src/managed/Nota.App/Controls/ChamberViews.cs b/src/managed/Nota.App/Controls/ChamberViews.cs
index 4a72bc6d..87730d93 100644
--- a/src/managed/Nota.App/Controls/ChamberViews.cs
+++ b/src/managed/Nota.App/Controls/ChamberViews.cs
@@ -27,10 +27,10 @@ internal static class ChamberInk
public static readonly IBrush Veil = NotaPalette.Wash(NotaPalette.SurfaceAbyss, 0xB8);
public static readonly IBrush GridLine = NotaPalette.SurfaceCard;
private static readonly Typeface Mono = NotaFonts.Mono;
- private static readonly Typeface Sans = NotaFonts.SansBold;
+ private static readonly Typeface Sans = NotaFonts.SansSemiBold;
public static FormattedText Text(string s, double size, IBrush b) => new(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, size, b);
- public static FormattedText Caps(string s, double size, IBrush b) => new(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Sans, size, b);
+ public static FormattedText Caps(string s, double size, IBrush b) => new(NotaText.Label(s), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Sans, size, b);
public static IBrush Alpha(Color c, byte a) => new SolidColorBrush(Color.FromArgb(a, c.R, c.G, c.B));
// A time axis that stays put while the content moves inside it (so turning a knob visibly
@@ -49,8 +49,9 @@ internal static class ChamberInk
public static double DbHeight(double v, double floorDb = 60) => Math.Clamp((20 * Math.Log10(Math.Max(v, 1e-9)) + floorDb) / floorDb, 0, 1);
}
-// A vertical fader. Split = the BLEND C/A fader: slate (convolution) above the handle, brass
-// (algorithm) below, value = the algorithm share. Otherwise a brass fill from the bottom.
+// A vertical fader. Split = the BLEND C/A fader: slate (convolution) above the handle, neutral
+// ink (algorithm) below, value = the algorithm share. Otherwise a neutral fill from the bottom;
+// the handle turns accent while dragged.
internal sealed class ChamberFader : Control
{
private double _v;
@@ -97,16 +98,16 @@ internal sealed class ChamberFader : Control
using (ctx.PushClip(new RoundedRect(rect, r)))
{
if (Split) ctx.FillRectangle(ChamberInk.Alpha(ChamberInk.SlateColor, 0x59), new Rect(0, 0, w, y));
- ctx.FillRectangle(ChamberInk.Alpha(NotaPalette.AccentColor, 0x48), new Rect(0, y, w, h - y));
+ ctx.FillRectangle(NotaPalette.Wash(NotaPalette.VizInk, 0x30), new Rect(0, y, w, h - y));
}
ctx.DrawRectangle(null, new Pen(NotaPalette.BorderDefault, 1), rect, r, r);
double hy = Math.Clamp(y, 1.5, h - 2.5);
- ctx.DrawRectangle(Split ? NotaPalette.AccentBright : NotaPalette.Accent, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : NotaPalette.VizInk, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
}
}
-// The IR: a peak envelope of the source (left / LL above the centre line in brass, right / RR
-// below in mauve), veiled outside the Start … Decay window. Drag a trim line to move it,
+// The IR: a peak envelope of the source (left / LL above the centre line in neutral ink, right / RR
+// below in teal), veiled outside the Start … Decay window. Drag a trim line to move it,
// double-click to reset both. Drop an audio file (Finder or the browser) to load it.
internal sealed class ChamberIrView : Control
{
@@ -220,7 +221,7 @@ internal sealed class ChamberIrView : Control
}
ctx.DrawGeometry(null, new Pen(ChamberInk.Alpha(c, (byte)(255 * alphaLine)), 1.1), line);
}
- Env(_l, true, NotaPalette.AccentColor, 1.0);
+ Env(_l, true, NotaPalette.VizInk.Color, 1.0);
// Left and right in the first two chromas; the second at 70% (almanac § oscillogram).
Env(_r.Length > 0 ? _r : _l, false, NotaPalette.TealColor, 0.7);
@@ -235,23 +236,24 @@ internal sealed class ChamberIrView : Control
c.BeginFigure(new Point(xs, h - 2), false);
for (int i = 1; i <= 16; i++) { double t = i / 16.0; c.LineTo(new Point(xs + (xa - xs) * t, h - 2 - (h - 4) * t * t)); }
}
- ctx.DrawGeometry(null, new Pen(ChamberInk.Alpha(NotaPalette.AccentBrightColor, 0x90), 1, new DashStyle(new double[] { 2, 2 }, 0)), g);
+ ctx.DrawGeometry(null, new Pen(ChamberInk.Alpha(NotaPalette.VizInk.Color, 0x90), 1, new DashStyle(new double[] { 2, 2 }, 0)), g);
}
ctx.FillRectangle(ChamberInk.Veil, new Rect(0, 0, xs, h));
ctx.FillRectangle(ChamberInk.Veil, new Rect(xe, 0, w - xe, h));
- var brass = new Pen(NotaPalette.Accent, 1);
- ctx.DrawLine(brass, new Point(xs + 0.5, 0), new Point(xs + 0.5, h));
- ctx.DrawLine(brass, new Point(xe - 0.5, 0), new Point(xe - 0.5, h));
- ctx.DrawRectangle(_drag == 1 ? NotaPalette.AccentBright : NotaPalette.Accent, null, new Rect(xs - 1.5, mid - 7, 3, 14), 1.5, 1.5);
- ctx.DrawRectangle(_drag == 2 ? NotaPalette.AccentBright : NotaPalette.Accent, null, new Rect(xe - 1.5, mid - 7, 3, 14), 1.5, 1.5);
-
- var st = ChamberInk.Text(NotaNum.F($"start {Sec(_start * _sec)}"), 7, NotaPalette.AccentBright);
+ // Trims rest in neutral ink; the one being dragged turns accent.
+ var trim = new Pen(NotaPalette.VizInk, 1);
+ ctx.DrawLine(_drag == 1 ? new Pen(NotaPalette.Accent, 1) : trim, new Point(xs + 0.5, 0), new Point(xs + 0.5, h));
+ ctx.DrawLine(_drag == 2 ? new Pen(NotaPalette.Accent, 1) : trim, new Point(xe - 0.5, 0), new Point(xe - 0.5, h));
+ ctx.DrawRectangle(_drag == 1 ? NotaPalette.Accent : NotaPalette.VizInk, null, new Rect(xs - 1.5, mid - 7, 3, 14), 1.5, 1.5);
+ ctx.DrawRectangle(_drag == 2 ? NotaPalette.Accent : NotaPalette.VizInk, null, new Rect(xe - 1.5, mid - 7, 3, 14), 1.5, 1.5);
+
+ var st = ChamberInk.Text(NotaNum.F($"start {Sec(_start * _sec)}"), 7, _drag == 1 ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
ctx.DrawText(st, new Point(Math.Min(xs + 4, w - st.Width - 2), 2));
- var en = ChamberInk.Text(NotaNum.F($"end {Sec(_end * _sec)}"), 7, NotaPalette.AccentBright);
+ var en = ChamberInk.Text(NotaNum.F($"end {Sec(_end * _sec)}"), 7, _drag == 2 ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
ctx.DrawText(en, new Point(Math.Max(2, xe - en.Width - 4), h - en.Height - 2));
if (_reverse)
{
- var rv = ChamberInk.Text("REVERSED", 7, ChamberInk.Mauve);
+ var rv = ChamberInk.Text("Reversed", 7, ChamberInk.Mauve);
double rx = (xs + xe - rv.Width - 9) / 2;
Glyph.Draw(ctx, GlyphKind.StepLeft, new Rect(rx, 2 + (rv.Height - 6) / 2, 6, 6), ChamberInk.Mauve);
ctx.DrawText(rv, new Point(rx + 9, 2));
@@ -297,7 +299,7 @@ internal sealed class ChamberIrView : Control
}
f.LineTo(new Point(Math.Min(w, X(_preSec + _resSec)), bot));
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, 1), line);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.VizInk, 1), line);
if (_preSec > 0.0005)
{
ctx.DrawLine(new Pen(NotaPalette.Teal, 1, new DashStyle(new double[] { 2, 2 }, 0)), new Point(x0, top + 2), new Point(x0, full));
@@ -306,7 +308,7 @@ internal sealed class ChamberIrView : Control
}
if (_preSec + _resSec > axis * 1.001)
{
- Glyph.Draw(ctx, GlyphKind.ChevronRight, new Rect(w - 9, peakY - 1, 7, 7), NotaPalette.AccentBright);
+ Glyph.Draw(ctx, GlyphKind.ChevronRight, new Rect(w - 9, peakY - 1, 7, 7), NotaPalette.TextSecondary);
}
}
var len = ChamberInk.Text(NotaNum.F($"as heard · {_resSec:0.00}\u2009s · axis {ChamberInk.AxisLabel(axis)}"), 7, NotaPalette.TextDisabled);
@@ -326,7 +328,7 @@ internal sealed class ChamberDecayGraph : Control
private float[] _echo = Array.Empty<float>();
private double _echoSec;
private string _info = "";
- private static readonly IBrush[] Ink = { ChamberInk.Mauve, NotaPalette.Accent, NotaPalette.Teal };
+ private static readonly IBrush[] Ink = { ChamberInk.Mauve, NotaPalette.VizInk, NotaPalette.Teal };
private static readonly string[] Names = { "low", "mid", "high" };
public event Action<int, double>? Changed; // band, RT60 seconds
@@ -408,14 +410,14 @@ internal sealed class ChamberDecayGraph : Control
}
f.LineTo(new Point(Math.Min(w, X(_pre + _echoSec)), bot));
}
- ctx.DrawGeometry(null, new Pen(ChamberInk.Alpha(NotaPalette.AccentColor, 0x60), 0.8), line);
+ ctx.DrawGeometry(null, new Pen(ChamberInk.Alpha(NotaPalette.VizInk.Color, 0x60), 0.8), line);
}
// legend (right-aligned): swatch + "low 6.1 s"
double lx = w - 5;
for (int b = 2; b >= 0; b--)
{
- var t = ChamberInk.Text(NotaNum.F($"{Names[b]} {(_freeze ? "∞" : S(_rt[b]))}"), 7, b == 1 ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
+ var t = ChamberInk.Text(NotaNum.F($"{Names[b]} {(_freeze ? "∞" : S(_rt[b]))}"), 7, b == 1 ? NotaPalette.TextPrimary : NotaPalette.TextSecondary);
lx -= t.Width; ctx.DrawText(t, new Point(lx, 3));
lx -= 11; ctx.FillRectangle(Ink[b], new Rect(lx, 7, 8, 2));
lx -= 8;
@@ -440,7 +442,7 @@ internal sealed class ChamberDecayGraph : Control
if (!_freeze)
{
double hx = Math.Clamp(X(_pre + _rt[b]), 4, w - 4);
- ctx.DrawEllipse(Ink[b], new Pen(NotaPalette.BgSunken, 2), new Point(hx, bot - 1), _drag == b ? 4.5 : 3.5, _drag == b ? 4.5 : 3.5);
+ ctx.DrawEllipse(_drag == b ? NotaPalette.Accent : Ink[b], new Pen(NotaPalette.BgSunken, 2), new Point(hx, bot - 1), _drag == b ? 4.5 : 3.5, _drag == b ? 4.5 : 3.5);
}
}
var tm = ChamberInk.Text(ChamberInk.AxisLabel(_tmax), 7, NotaPalette.TextDisabled);
@@ -449,7 +451,7 @@ internal sealed class ChamberDecayGraph : Control
}
// TAIL EQ response (log 30 Hz … 18 kHz, ±20 dB): low cut + low shelf, high shelf + high cut
-// (the same RBJ biquads the engine runs). Handle 0 (brass) = low cut (X) + low shelf gain (Y);
+// (the same RBJ biquads the engine runs). Handle 0 (neutral ink) = low cut (X) + low shelf gain (Y);
// handle 1 = high cut (X) + high shelf gain (Y).
internal sealed class ChamberEqCurve : Control
{
@@ -555,7 +557,7 @@ internal sealed class ChamberEqCurve : Control
}
fc.LineTo(new Point(w, h / 2));
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, NotaGraph.PrimaryWidth), line);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.VizInk, NotaGraph.PrimaryWidth), line);
var t0 = ChamberInk.Text("30", 7, NotaPalette.TextDisabled);
ctx.DrawText(t0, new Point(4, h - t0.Height - 2));
@@ -565,8 +567,8 @@ internal sealed class ChamberEqCurve : Control
var ring = new Pen(NotaPalette.BgSunken, 2);
double hx0 = Math.Clamp(X(LowCutHz(_lc)), 4, w - 4), hy0 = Math.Clamp(Y((_lg - 0.5) * 36), 4, h - 4);
double hx1 = Math.Clamp(X(HighCutHz(_hc)), 4, w - 4), hy1 = Math.Clamp(Y((_hs - 0.5) * 36), 4, h - 4);
- ctx.DrawEllipse(NotaPalette.AccentBright, ring, new Point(hx0, hy0), _drag == 0 ? 4.5 : 3.8, _drag == 0 ? 4.5 : 3.8);
- ctx.DrawEllipse(NotaPalette.TextSecondary, ring, new Point(hx1, hy1), _drag == 1 ? 4.5 : 3.8, _drag == 1 ? 4.5 : 3.8);
+ ctx.DrawEllipse(_drag == 0 ? NotaPalette.Accent : NotaPalette.VizInk, ring, new Point(hx0, hy0), _drag == 0 ? 4.5 : 3.8, _drag == 0 ? 4.5 : 3.8);
+ ctx.DrawEllipse(_drag == 1 ? NotaPalette.Accent : NotaPalette.TextSecondary, ring, new Point(hx1, hy1), _drag == 1 ? 4.5 : 3.8, _drag == 1 ? 4.5 : 3.8);
}
}
diff --git a/src/managed/Nota.App/Controls/ChordKeysViz.cs b/src/managed/Nota.App/Controls/ChordKeysViz.cs
index 95cc898b..20364b27 100644
--- a/src/managed/Nota.App/Controls/ChordKeysViz.cs
+++ b/src/managed/Nota.App/Controls/ChordKeysViz.cs
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Nota Chord RESULT keyboard (almanac mockups 1a / 1b): three octaves from the C at or below
+// Nota Chord result keyboard (almanac mockups 1a / 1b): three octaves from the C at or below
// the chord's lowest note — 21 white keys with the black keys over them. A sounding note is
-// lit: the played key Brass Light, an added note Brass Deep. With Keep root off the root is
-// only outlined in brass. The owner drives the strum animation by passing the notes lit so
+// lit (live state, so accent): the played key bright accent, an added note a deeper accent.
+// With Keep root off the root is only outlined in accent. The owner drives the strum animation by passing the notes lit so
// far each tick; Set() repaints only when something changed.
using System;
@@ -21,7 +21,7 @@ internal sealed class ChordKeysViz : Control
private static readonly IBrush WellEdge = NotaPalette.GraphBorder;
private static readonly IBrush WhiteKey = NotaPalette.MiniKeyWhite;
private static readonly IBrush BlackKey = NotaPalette.KeyBlack;
- internal static readonly IBrush Added = NotaPalette.Wash(NotaPalette.Accent, 0xC8); // Brass Deep in Graphite (≈ #B8862E), clearly lighter than Played in Paper
+ internal static readonly IBrush Added = NotaPalette.Wash(NotaPalette.Accent, 0xC8); // a deeper accent, clearly apart from Played in both appearances
private static readonly IBrush Played = NotaPalette.AccentBright;
private static readonly IBrush Label = NotaPalette.TextAxis;
private static readonly IPen RootRing = new Pen(NotaPalette.Accent, 1);
diff --git a/src/managed/Nota.App/Controls/ChordShiftTrack.cs b/src/managed/Nota.App/Controls/ChordShiftTrack.cs
index df951da6..5fdf5b23 100644
--- a/src/managed/Nota.App/Controls/ChordShiftTrack.cs
+++ b/src/managed/Nota.App/Controls/ChordShiftTrack.cs
@@ -2,8 +2,8 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// A Nota Chord shift (almanac mockups 1a / 1b): a bipolar −12..+12 semitone track centred
-// on zero. Horizontal (L): a 3px well groove with a centre tick, a brass fill from the
-// centre and a 6×9 handle. Vertical (S): a framed well with a centre rule and a bar
+// on zero. Horizontal (L): a 3px well groove with a centre tick, a neutral fill from the
+// centre and a 6×9 handle (accent while dragged). Vertical (S): a framed well with a centre rule and a bar
// growing up (positive) or down (negative). Unlike the generic SliderTrack the value is
// positional — press or drag anywhere sets the semitone under the pointer — because the
// track is a pitch ruler. A switched-off slot draws its fill in Border strong.
@@ -22,7 +22,7 @@ internal sealed class ChordShiftTrack : Control
{
private static readonly IBrush Groove = NotaPalette.BgSunken;
private static readonly IBrush Frame = NotaPalette.GraphBorder;
- private static readonly IBrush Fill = NotaPalette.Accent;
+ private static readonly IBrush Fill = NotaPalette.VizInk;
private static readonly IBrush FillOff = NotaPalette.BorderStrong;
private static readonly IBrush Handle = NotaPalette.TextSecondary;
private static readonly IBrush Centre = NotaPalette.BorderStrong;
@@ -99,7 +99,7 @@ internal sealed class ChordShiftTrack : Control
if (w <= 0 || h <= 0) return;
ctx.DrawRectangle(Brushes.Transparent, null, new Rect(0, 0, w, h)); // hit area
double f = (_value + Range) / (2.0 * Range);
- var fill = _on ? Fill : FillOff;
+ var fill = !_on ? FillOff : _drag ? NotaPalette.Accent : Fill;
if (Vertical)
{
ctx.DrawRectangle(Groove, new Pen(Frame, 1), new Rect(0.5, 0.5, w - 1, h - 1), 3, 3);
@@ -115,7 +115,7 @@ internal sealed class ChordShiftTrack : Control
ctx.DrawRectangle(Groove, null, new Rect(0, cy - 1.5, w, 3), 2, 2);
ctx.DrawRectangle(Centre, null, new Rect(Math.Round(c) - 0.5, cy - 4.5, 1, 9));
ctx.DrawRectangle(fill, null, new Rect(Math.Min(c, x), cy - 1.5, Math.Abs(x - c), 3), 2, 2);
- ctx.DrawRectangle(Handle, null, new Rect(Math.Clamp(x - 3, 0, w - 6), cy - 4.5, 6, 9), 2, 2);
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : Handle, null, new Rect(Math.Clamp(x - 3, 0, w - 6), cy - 4.5, 6, 9), 2, 2);
}
}
}
diff --git a/src/managed/Nota.App/Controls/ChorusViews.cs b/src/managed/Nota.App/Controls/ChorusViews.cs
index 493e6cb9..0fcfec34 100644
--- a/src/managed/Nota.App/Controls/ChorusViews.cs
+++ b/src/managed/Nota.App/Controls/ChorusViews.cs
@@ -55,7 +55,7 @@ internal static class ChorusMath
/// <summary>The cents axis' half-range: a bit beyond the sweep, never under 4 ct.</summary>
public static double CentsRange(double maxCents) => Math.Max(maxCents * 1.3, 4);
- public static IBrush VoiceInk(int i) => i switch { 0 => NotaPalette.Accent, 1 => NotaPalette.TealBright, _ => NotaPalette.RoseBright };
+ public static IBrush VoiceInk(int i) => i switch { 0 => NotaPalette.VizInk, 1 => NotaPalette.TealBright, _ => NotaPalette.RoseBright };
public static string Ms(double t) => t >= 10 ? NotaNum.F($"{t:0.0}") : NotaNum.F($"{t:0.00}");
public static string HzF(double f) => f >= 1000 ? NotaNum.F($"{f / 1000:0.00}k") : NotaNum.F($"{f:0}");
@@ -204,7 +204,7 @@ internal sealed class ChorusFieldView : Control
ctx.DrawText(l, new Point(5, h / 2 - l.Height / 2 + 5));
var r = NotaGraph.AxisText("R", size: 7);
ctx.DrawText(r, new Point(w - 5 - r.Width, h / 2 - r.Height / 2 + 5));
- ctx.DrawText(NotaGraph.AxisText("STEREO · DETUNE", size: 6), new Point(14, 2));
+ ctx.DrawText(NotaGraph.AxisText("Stereo · detune", size: 6), new Point(14, 2));
string wt = NotaNum.F($"width {_width:0} %") + (_width > 100.5 ? NotaNum.F($" · side +{20 * Math.Log10(_width / 100):0.0} dB") : "");
var wtt = NotaGraph.AxisText(wt, size: 6);
ctx.DrawText(wtt, new Point(w - 14 - wtt.Width, 2));
diff --git a/src/managed/Nota.App/Controls/CompViews.cs b/src/managed/Nota.App/Controls/CompViews.cs
index 8f8195d0..14b5d6ce 100644
--- a/src/managed/Nota.App/Controls/CompViews.cs
+++ b/src/managed/Nota.App/Controls/CompViews.cs
@@ -56,8 +56,8 @@ internal sealed class CompFader : Control
private double _v, _live = double.NaN, _startV, _startY;
private bool _drag;
- public IBrush Ink { get; set; } = NotaPalette.Accent;
- public IBrush Handle { get; set; } = NotaPalette.AccentBright;
+ public IBrush Ink { get; set; } = NotaPalette.VizInk; // resting fill: neutral ink
+ public IBrush Handle { get; set; } = NotaPalette.VizInk; // turns accent while dragged
public double Default { get; set; } = double.NaN;
public bool Dragging => _drag;
@@ -126,12 +126,12 @@ internal sealed class CompFader : Control
}
ctx.DrawRectangle(null, new Pen(NotaPalette.BorderDefault, 1), rect, r, r);
double hy = Math.Clamp(y, 1.5, h - 2.5);
- ctx.DrawRectangle(Handle, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : Handle, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
}
}
// The transfer curve: input dB (x, −60…0) against output dB (y), unity dashed, the knee drawn
-// as a curve, the threshold node brass. Drag anywhere: left / right moves the threshold,
+// as a curve, the threshold node (accent while dragged). Drag anywhere: left / right moves the threshold,
// up / down the ratio; double-click restores both. The live input level rides the curve as a small dot.
internal sealed class CompTransferView : Control
{
@@ -220,10 +220,10 @@ internal sealed class CompTransferView : Control
double li = Math.Min(Hi, _live);
ctx.DrawEllipse(NotaPalette.TextPrimary, null, new Point(X(li), Y(li - CompDraw.Reduction(li, _thr, _ratio, _knee, _range))), 2, 2);
}
- NotaGraph.Node(ctx, new Point(tx, Y(_thr - CompDraw.Reduction(_thr, _thr, _ratio, _knee, _range))), active: true);
+ NotaGraph.Node(ctx, new Point(tx, Y(_thr - CompDraw.Reduction(_thr, _thr, _ratio, _knee, _range))), active: _drag);
NotaGraph.Title(ctx, rect, "Transfer");
- NotaGraph.Axis(ctx, rect, NotaGraph.Corner.TopRight, NotaNum.F($"{_ratio:0.#}:1"), NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, rect, NotaGraph.Corner.TopRight, NotaNum.F($"{_ratio:0.#}:1"), _drag ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
NotaGraph.Axis(ctx, rect, NotaGraph.Corner.BottomLeft, "−60");
NotaGraph.Axis(ctx, rect, NotaGraph.Corner.BottomRight, "0 in");
}
@@ -293,13 +293,13 @@ internal sealed class CompGrHistoryView : Control
ctx.DrawText(ft, new Point(x1 - ft.Width - 2, Math.Clamp(py - ft.Height - 1, top, bot - ft.Height)));
}
NotaGraph.Title(ctx, rect, "Gain reduction");
- NotaGraph.Axis(ctx, rect, NotaGraph.Corner.TopRight, Current > 0.05 ? NotaNum.F($"−{Current:0.0} dB") : "0.0 dB", NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, rect, NotaGraph.Corner.TopRight, Current > 0.05 ? NotaNum.F($"−{Current:0.0} dB") : "0.0 dB", NotaPalette.TextSecondary);
NotaGraph.Axis(ctx, rect, NotaGraph.Corner.BottomLeft, "−4 s");
NotaGraph.Axis(ctx, rect, NotaGraph.Corner.BottomRight, "now");
}
}
-// Motion: the reduction envelope (brass, hanging from 0 dB at the top) over the input level
+// Motion: the reduction envelope (neutral ink, hanging from 0 dB at the top) over the input level
// (teal, −60…0 dB bottom→top) with the threshold dashed on the input scale — a window short
// enough that attack and release read as shapes. Fed from the device's 1 ms envelope ring.
internal sealed class CompMotionView : Control
@@ -358,7 +358,7 @@ internal sealed class CompMotionView : Control
ctx.DrawLine(new Pen(NotaPalette.BorderStrong, 1) { DashStyle = new DashStyle(new double[] { 2, 4 }, 0) }, new Point(x0, ty), new Point(x1, ty));
NotaGraph.Title(ctx, rect, "Reduction envelope");
- NotaGraph.Legend(ctx, x1 - 2, 3, ("reduction", NotaPalette.AccentBright, NotaGraph.Mark.Line), ("input", NotaPalette.TealBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, x1 - 2, 3, ("reduction", NotaPalette.VizInk, NotaGraph.Mark.Line), ("input", NotaPalette.TealBright, NotaGraph.Mark.Line));
NotaGraph.Axis(ctx, rect, NotaGraph.Corner.BottomLeft, "0");
NotaGraph.Axis(ctx, rect, NotaGraph.Corner.BottomRight, _windowMs >= 1000 ? NotaNum.F($"{_windowMs / 1000:0.#} s") : NotaNum.F($"{_windowMs:0} ms"));
var sc = CompDraw.Text(NotaNum.F($"−{_grScale:0} dB"), NotaPalette.TextAxis);
@@ -366,10 +366,10 @@ internal sealed class CompMotionView : Control
}
}
-// The sidechain key: the spectrum of the unfiltered key (brass) with the detector filters
+// The sidechain key: the spectrum of the unfiltered key (neutral ink) with the detector filters
// laid over it (teal dashed — the 2-pole HP × LP response with its Q). Drag a handle
// sideways to move its corner, up / down to change Q; double-click opens that filter.
-// Framed brass while Listen is on (the key is what you hear).
+// Framed in accent while Listen is on (the key is what you hear).
internal sealed class CompKeyView : Control
{
private const int FftN = 2048, Bins = FftN / 2;
@@ -530,15 +530,15 @@ internal sealed class CompKeyView : Control
double x = Math.Clamp(XOf(hz, w), 3, w - 3);
bool hot = _drag == idx || (_drag == 0 && _hover == idx);
ctx.DrawLine(new Pen(hot ? NotaPalette.AccentBright : NotaPalette.BorderStrong, 1), new Point(x, top), new Point(x, bot));
- NotaGraph.Node(ctx, new Point(x, Y(-6)), active: hot || on);
+ NotaGraph.Node(ctx, new Point(x, Y(-6)), active: hot);
string lbl = !on ? "off" : hz >= 1000 ? NotaNum.F($"{hz / 1000:0.#}k") : NotaNum.F($"{hz:0}");
- var ft = CompDraw.Text(lbl, on ? NotaPalette.AccentBright : NotaPalette.TextAxis);
+ var ft = CompDraw.Text(lbl, hot ? NotaPalette.AccentBright : on ? NotaPalette.TextSecondary : NotaPalette.TextAxis);
double lx = Math.Clamp(x - ft.Width / 2, 3, w - 3 - ft.Width);
ctx.DrawText(ft, new Point(lx, h - ft.Height - 2));
}
NotaGraph.Title(ctx, rect, "Sidechain key");
- NotaGraph.Legend(ctx, w - 6, 3, ("key", NotaPalette.AccentBright, NotaGraph.Mark.Line), ("key filter", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
+ NotaGraph.Legend(ctx, w - 6, 3, ("key", NotaPalette.VizInk, NotaGraph.Mark.Line), ("key filter", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
if (!_has)
{
var ft = CompDraw.Text("no key signal", NotaPalette.TextTertiary, 8);
diff --git a/src/managed/Nota.App/Controls/CompViz.cs b/src/managed/Nota.App/Controls/CompViz.cs
index 4e7d7941..85be4452 100644
--- a/src/managed/Nota.App/Controls/CompViz.cs
+++ b/src/managed/Nota.App/Controls/CompViz.cs
@@ -15,7 +15,7 @@ namespace Nota.App;
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static readonly IBrush AccentBright = NotaPalette.AccentBright;
+ private static readonly IBrush Ink = NotaPalette.VizInk;
private static readonly IBrush TextTertiary = NotaPalette.TextTertiary;
private static readonly IBrush Grid = NotaGraph.Grid;
private static readonly Typeface Face = NotaFonts.Mono;
@@ -45,7 +45,7 @@ namespace Nota.App;
ctx.DrawLine(new Pen(Grid, 1) { DashStyle = DashStyle.Dash }, new Point(X(lo), Y(lo)), new Point(X(hi), Y(hi))); // unity
double OutDb(double x) => (x <= _thr ? x : _thr + (x - _thr) / _ratio) + _makeup;
- var pen = new Pen(AccentBright, 1.6, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ var pen = new Pen(Ink, 1.6, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
var g = new StreamGeometry();
using (var gc = g.Open())
{
@@ -59,6 +59,6 @@ namespace Nota.App;
}
ctx.DrawGeometry(null, pen, g);
ctx.DrawLine(new Pen(TextTertiary, 1) { DashStyle = DashStyle.Dash }, new Point(X(_thr), top), new Point(X(_thr), bot)); // threshold
- ctx.DrawText(new FormattedText("COMP", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Face, 8, TextTertiary), new Point(x0, pad - 2));
+ ctx.DrawText(new FormattedText("Comp", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Face, 8, TextTertiary), new Point(x0, pad - 2));
}
}
diff --git a/src/managed/Nota.App/Controls/ConsortViews.cs b/src/managed/Nota.App/Controls/ConsortViews.cs
index 35e51244..7e6be909 100644
--- a/src/managed/Nota.App/Controls/ConsortViews.cs
+++ b/src/managed/Nota.App/Controls/ConsortViews.cs
@@ -82,8 +82,9 @@ internal static class ConsortJacks
public static readonly HashSet<int> Normalled = new() { 2, 3, 13, 15, 19 };
public static int Points => Sources.Length - 1 + Dests.Length - 1;
- public static IBrush ToneBrush(Tone t) => t switch { Tone.Env => NotaPalette.Teal, Tone.Audio => NotaPalette.Accent, _ => ChamberInk.Mauve };
- public static Color ToneColor(Tone t) => t switch { Tone.Env => NotaPalette.Teal.Color, Tone.Audio => NotaPalette.AccentColor, _ => ChamberInk.MauveColor };
+ // Audio cables are the primary source and draw in neutral ink; envelope and modulation keep their chromas.
+ public static IBrush ToneBrush(Tone t) => t switch { Tone.Env => NotaPalette.Teal, Tone.Audio => NotaPalette.VizInk, _ => ChamberInk.Mauve };
+ public static Color ToneColor(Tone t) => t switch { Tone.Env => NotaPalette.Teal.Color, Tone.Audio => NotaPalette.VizInk.Color, _ => ChamberInk.MauveColor };
public static Jack Src(int i) => i > 0 && i < Sources.Length ? Sources[i] : Sources[0];
public static Jack Dst(int i) => i > 0 && i < Dests.Length ? Dests[i] : Dests[0];
public static string ShortName(string n) => n.Replace(" out", "").Replace(" in", "").Replace("Osc ", "Osc").Replace("Filt ", "Filt").Replace(" cutoff", "").Replace("Delay ", "Dly ").Replace(" pitch", "").Replace("Env ", "Env");
@@ -163,7 +164,7 @@ internal sealed class ConsortJackDot : Control
}
}
-// ---- dual transistor-ladder response: L (slate) / R (brass) or the series HP→LP curve ----
+// ---- dual transistor-ladder response: L (slate) / R (neutral ink) or the series HP→LP curve ----
internal sealed class ConsortFilterCurve : Control
{
private static readonly Typeface Mono = NotaFonts.Mono;
@@ -225,25 +226,25 @@ internal sealed class ConsortFilterCurve : Control
return g;
}
double Wr(double xn, double cn) => Math.Pow(1000, xn - cn);
- var brass = NotaPalette.Accent;
+ var ink = NotaPalette.VizInk;
if (_mode == 0)
{
var faint = NotaPalette.Wash(NotaPalette.Ink("#6D8FB5"), 0x55);
ctx.DrawGeometry(null, new Pen(faint, 1), Curve(x => Db(Mag(Wr(x, _cut), true))));
- ctx.DrawGeometry(null, new Pen(brass, 1.5), Curve(x => Db(Mag(Wr(x, _cut), true) * Mag(Wr(x, cutB), false))));
+ ctx.DrawGeometry(null, new Pen(ink, 1.5), Curve(x => Db(Mag(Wr(x, _cut), true) * Mag(Wr(x, cutB), false))));
}
else
{
ctx.DrawGeometry(null, new Pen(ChamberInk.Slate, 1.5), Curve(x => Db(Mag(Wr(x, _cut), _mode == 2))));
- ctx.DrawGeometry(null, new Pen(brass, 1.5), Curve(x => Db(Mag(Wr(x, cutB), false))));
+ ctx.DrawGeometry(null, new Pen(ink, 1.5), Curve(x => Db(Mag(Wr(x, cutB), false))));
}
string Hz(double n) { double hz = 20 * Math.Pow(1000, n); return hz >= 1000 ? $"{hz / 1000:0.0}\u2009k" : $"{hz:0}\u2009Hz"; }
var lt = new FormattedText((_mode == 0 ? "HP " : "L ") + Hz(_cut), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, _mode == 0 ? NotaPalette.TextSecondary : ChamberInk.Slate);
- var rt = new FormattedText((_mode == 0 ? "LP " : "R ") + Hz(cutB), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, NotaPalette.AccentBright);
+ var rt = new FormattedText((_mode == 0 ? "LP " : "R ") + Hz(cutB), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, NotaPalette.TextPrimary);
ctx.DrawText(lt, new Point(4, 3));
ctx.DrawText(rt, new Point(w - rt.Width - 4, 3));
double hx = Math.Clamp(_cut * w, 4, w - 4), hy = Math.Clamp(Y(Db(Mag(1, _mode == 2 || _mode == 0))), 4, h - 4);
- ctx.DrawEllipse(_mode == 1 ? ChamberInk.Slate : NotaPalette.AccentBright, new Pen(NotaPalette.BgSunken, 2), new Point(hx, hy), 3.5, 3.5);
+ ctx.DrawEllipse(_drag ? NotaPalette.Accent : _mode == 1 ? ChamberInk.Slate : NotaPalette.VizInk, new Pen(NotaPalette.BgSunken, 2), new Point(hx, hy), 3.5, 3.5);
}
}
@@ -277,7 +278,7 @@ internal sealed class ConsortDelayView : Control
}
double span = Math.Max(_tl, _tr) * 4.2;
span = ChamberInk.Axis(0, span);
- var bl = ChamberInk.Slate; var br = NotaPalette.Accent;
+ var bl = ChamberInk.Slate; var br = NotaPalette.VizInk;
foreach (var (t, a, r) in taps)
{
if (t > span) continue;
@@ -340,7 +341,7 @@ internal sealed class ConsortStepGrid : Control
if (w < 16 || h < 4) return;
const double gap = 3;
double cw = (w - gap * 15) / 16;
- var ac = NotaPalette.AccentColor; var mv = ChamberInk.MauveColor; var tl = NotaPalette.Teal.Color;
+ var ac = NotaPalette.VizInk.Color; var mv = ChamberInk.MauveColor; var tl = NotaPalette.Teal.Color;
for (int i = 0; i < 16; i++)
{
var r = new Rect(i * (cw + gap) + 0.5, 0.5, cw - 1, h - 1);
@@ -360,7 +361,7 @@ internal sealed class ConsortStepGrid : Control
// ---- step pitch lane: one bar per step at its pitch (±24 st); drag up/down to set ----
internal sealed class ConsortPitchLane : Control
{
- private static readonly Typeface Sans = NotaFonts.SansBold;
+ private static readonly Typeface Sans = NotaFonts.SansSemiBold;
private static readonly Typeface Mono = NotaFonts.Mono;
private readonly int[] _p = new int[16], _t = new int[16];
private int _len = 16, _play = -1, _dragStep = -1;
@@ -402,13 +403,13 @@ internal sealed class ConsortPitchLane : Control
double w = Bounds.Width, h = Bounds.Height;
if (w < 16 || h < Top + 6) return;
ctx.FillRectangle(Brushes.Transparent, new Rect(0, 0, w, h));
- var cap = new FormattedText(_arp ? "PITCH · ARP (STEP TYPES SHAPE THE RHYTHM)" : "PITCH · STEP OFFSETS FROM THE KEY", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Sans, 7, NotaPalette.TextTertiary);
+ var cap = new FormattedText(_arp ? "Pitch · arp (step types shape the rhythm)" : "Pitch · step offsets from the key", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Sans, 7, NotaPalette.TextTertiary);
ctx.DrawText(cap, new Point(6, 3));
double hh = h - Top - 4, cw = w / 16;
double Y(int p) => Top + (1 - (p + 24) / 48.0) * hh;
var grid = new Pen(NotaPalette.SurfaceCard, 1);
foreach (int p in new[] { -12, 0, 12 }) ctx.DrawLine(grid, new Point(0, Y(p)), new Point(w, Y(p)));
- var ac = NotaPalette.AccentColor; var mv = ChamberInk.MauveColor; var tl = NotaPalette.Teal.Color;
+ var ac = NotaPalette.VizInk.Color; var mv = ChamberInk.MauveColor; var tl = NotaPalette.Teal.Color;
for (int i = 0; i < 16; i++)
{
if (_t[i] == 3) continue;
@@ -441,7 +442,8 @@ internal sealed class ConsortJackField : Control
{
private static readonly Typeface Mono = NotaFonts.Mono;
private static readonly Typeface Sans = NotaFonts.Sans;
- private static readonly Typeface SansBold = NotaFonts.SansBold;
+ private static readonly Typeface SansSemiBold = NotaFonts.SansSemiBold;
+ private static readonly Typeface SansMedium = NotaFonts.SansMedium;
public readonly record struct Group(string Title, ConsortJacks.Jack[] Jacks);
private readonly List<List<Group>> _rows; // strip mode: rows of groups; list mode: columns (one group each)
@@ -566,7 +568,7 @@ internal sealed class ConsortJackField : Control
double colW = w / _rows.Count;
for (int c = 0; c < _rows.Count; c++)
{
- var t = new FormattedText(_rows[c][0].Title, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansBold, 7.5, NotaPalette.TextTertiary);
+ var t = new FormattedText(NotaText.Label(_rows[c][0].Title), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansSemiBold, 7.5, NotaPalette.TextTertiary);
ctx.DrawText(t, new Point(c * colW + 4, 4));
}
}
@@ -577,7 +579,7 @@ internal sealed class ConsortJackField : Control
foreach (var g in _rows[r])
{
if (g.Jacks.Length == 0 || !_pos.TryGetValue((g.Jacks[0].Out, g.Jacks[0].Index), out var p0)) continue;
- var t = new FormattedText(g.Title, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansBold, 7, NotaPalette.TextTertiary);
+ var t = new FormattedText(NotaText.Label(g.Title), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansSemiBold, 7, NotaPalette.TextTertiary);
ctx.DrawText(t, new Point(p0.X - 5, r * rowH + rowH * 0.5 - 17));
}
}
@@ -637,7 +639,8 @@ internal sealed class ConsortPatchMatrix : Control
{
private static readonly Typeface Mono = NotaFonts.Mono;
private static readonly Typeface Sans = NotaFonts.Sans;
- private static readonly Typeface SansBold = NotaFonts.SansBold;
+ private static readonly Typeface SansSemiBold = NotaFonts.SansSemiBold;
+ private static readonly Typeface SansMedium = NotaFonts.SansMedium;
private int[] _rows = Array.Empty<int>(), _cols = Array.Empty<int>();
private IReadOnlyList<ConsortCable> _cables = Array.Empty<ConsortCable>();
private const double HeadH = 16, RowHdrW = 78;
@@ -698,12 +701,12 @@ internal sealed class ConsortPatchMatrix : Control
if (w < 40 || h < 30 || _rows.Length == 0 || _cols.Length == 0) return;
ctx.FillRectangle(Brushes.Transparent, new Rect(0, 0, w, h));
double rh = RowH, cw = ColW;
- var corner = new FormattedText("SRC → DST", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansBold, 7, NotaPalette.TextDisabled);
+ var corner = new FormattedText("Src → dst", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansMedium, 7, NotaPalette.TextDisabled);
ctx.DrawText(corner, new Point(4, (HeadH - corner.Height) / 2));
for (int c = 0; c < _cols.Length; c++)
{
var d = ConsortJacks.Dst(_cols[c]);
- var t = new FormattedText(d.Name, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansBold, 7.5, NotaPalette.TextSecondary) { MaxTextWidth = cw - 4, MaxLineCount = 1, Trimming = TextTrimming.CharacterEllipsis };
+ var t = new FormattedText(d.Name, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, SansMedium, 7.5, NotaPalette.TextSecondary) { MaxTextWidth = cw - 4, MaxLineCount = 1, Trimming = TextTrimming.CharacterEllipsis };
ctx.DrawText(t, new Point(RowHdrW + c * cw + (cw - t.Width) / 2, (HeadH - t.Height) / 2));
}
var line = new Pen(NotaPalette.BorderDefault, 1);
diff --git a/src/managed/Nota.App/Controls/CrushViews.cs b/src/managed/Nota.App/Controls/CrushViews.cs
index 7c9e82bf..46f15d29 100644
--- a/src/managed/Nota.App/Controls/CrushViews.cs
+++ b/src/managed/Nota.App/Controls/CrushViews.cs
@@ -3,11 +3,11 @@
//
// Nota Crush (device kind 12) card windows:
// · CrQuantView — the Quantiser tab: 10 ms of a 100 Hz sine through the crusher — the source
-// dashed, the held and quantised steps in brass over the level grid. The hold is drawn to
+// dashed, the held and quantised steps in neutral ink over the level grid. The hold is drawn to
// scale; above 4 bits the level step is enlarged (so it stays visible) and says so. Drag up /
// down for Bits, left / right for Rate; double-click resets both.
// · CrSpectrumView — the Spectrum tab, from the engine's FFT (Crush.h scopeRead): the crushed
-// output in 40 log bands, brass up to the (level-matched) input, teal where the crush added
+// output in 40 log bands, neutral ink up to the (level-matched) input, teal where the crush added
// content — bright above the reduced Nyquist (the images), dim below (harmonics, noise). A
// ghost outline shows input the post filter took away. Drag the Nyquist line (Rate) or the
// filter line (Post Filter).
@@ -164,14 +164,14 @@ internal sealed class CrQuantView : Control
}
if (!first) g.EndFigure(false);
}
- ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.Accent, 0x29), null, area);
+ ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.VizInk, 0x29), null, area);
ctx.DrawGeometry(null, new Pen(NotaPalette.TextTertiary, 1, new DashStyle(new double[] { 3, 3 }, 0)), src);
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, _drag ? 2.2 : NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), step);
+ ctx.DrawGeometry(null, new Pen(_drag ? NotaPalette.Accent : NotaPalette.VizInk, _drag ? 2.2 : NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), step);
NotaGraph.Title(ctx, frame, "Quantiser");
double rate = _sr / _hold;
NotaGraph.Legend(ctx, w - 6, 3, ("source", NotaPalette.TextSecondary, NotaGraph.Mark.Dashed),
- (NotaNum.F($"{_bits:0.0} bit @ {CrushMath.Hz(rate)}"), NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ (NotaNum.F($"{_bits:0.0} bit @ {CrushMath.Hz(rate)}"), NotaPalette.VizInk, NotaGraph.Mark.Line));
if (enlarged) NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "level step shown enlarged");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "10\u2009ms");
}
@@ -238,7 +238,7 @@ internal sealed class CrSpectrumView : ShDragView
double fc = FLo * Math.Pow(FHi / FLo, (b + 0.5) / _n);
double yi = Y(_in[b]), yo = Y(_out[b]);
double ys = Math.Max(yi, yo); // the signal part: up to the lower of in and out
- if (ys < bot - 0.5) ctx.DrawRectangle(NotaPalette.Accent, null, new Rect(x, ys, cw, bot - ys), 1, 1);
+ if (ys < bot - 0.5) ctx.DrawRectangle(NotaPalette.VizInk, null, new Rect(x, ys, cw, bot - ys), 1, 1);
if (_out[b] > _in[b] + 1 && yo < ys - 0.5)
ctx.DrawRectangle(fc > _nyq ? addHi : addLo, null, new Rect(x, yo, cw, ys - yo), 1, 1);
if (_in[b] > _out[b] + 3 && yi < bot - 1)
@@ -253,15 +253,15 @@ internal sealed class CrSpectrumView : ShDragView
// The post filter and the Nyquist of the reduced rate — both draggable.
double fx = X(_filt);
- ctx.DrawLine(new Pen(Active == HFilter ? NotaPalette.AccentBright : NotaPalette.AccentDim, Active == HFilter ? 1.6 : 1, new DashStyle(new double[] { 2, 3 }, 0)),
+ ctx.DrawLine(new Pen(Active == HFilter ? NotaPalette.Accent : NotaPalette.TextSecondary, Active == HFilter ? 1.6 : 1, new DashStyle(new double[] { 2, 3 }, 0)),
new Point(fx, top), new Point(fx, bot));
ctx.DrawLine(new Pen(Active == HNyquist ? NotaPalette.TealBright : NotaPalette.Teal, Active == HNyquist ? 1.6 : 1, new DashStyle(new double[] { 3, 2 }, 0)),
new Point(nx, top), new Point(nx, bot));
Label(ctx, "Nyquist " + CrushMath.Hz(_nyq), nx, top + 2, NotaPalette.TealBright);
- Label(ctx, "filter " + CrushMath.Hz(_filt), fx, top + 12, NotaPalette.AccentBright);
+ Label(ctx, "filter " + CrushMath.Hz(_filt), fx, top + 12, Active == HFilter ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
NotaGraph.Title(ctx, frame, "Spectrum");
- NotaGraph.Legend(ctx, w - 6, 3, ("signal", NotaPalette.AccentBright, NotaGraph.Mark.Area),
+ NotaGraph.Legend(ctx, w - 6, 3, ("signal", NotaPalette.VizInk, NotaGraph.Mark.Area),
("added", NotaPalette.Teal, NotaGraph.Mark.Area), ("images", NotaPalette.TealBright, NotaGraph.Mark.Area));
Text(ctx, "100", X(100) + 2, h - 11);
Text(ctx, "1\u2009k", X(1000) + 2, h - 11);
@@ -321,13 +321,13 @@ internal sealed class CrTransferView : ShDragView
}
gc.EndFigure(false);
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, Dragging ? 2.2 : NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), g);
+ ctx.DrawGeometry(null, new Pen(Dragging ? NotaPalette.Accent : NotaPalette.VizInk, Dragging ? 2.2 : NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), g);
// Where the signal peaks on the curve (the driven peak back in input units).
if (_peak > 1e-4 && _drive > 1e-6)
{
double xin = Math.Clamp(_peak / _drive, 0, 1);
double y = CrushMath.Quant(CrushMath.Shape(_mode, xin * _drive), _levels);
- NotaGraph.Node(ctx, new Point(cx + xin * r, cy - Math.Clamp(y, -1.1, 1.1) * r / 1.1), true);
+ NotaGraph.Node(ctx, new Point(cx + xin * r, cy - Math.Clamp(y, -1.1, 1.1) * r / 1.1), false);
}
NotaGraph.Title(ctx, frame, "Curve");
}
@@ -380,11 +380,11 @@ internal sealed class CrWaveView : Control
s.EndFigure(false); o.EndFigure(false);
}
ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.Teal, 0xB3), 1, new DashStyle(new double[] { 3, 3 }, 0)), src);
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, 1.6, lineJoin: PenLineJoin.Round), outG);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.VizInk, 1.6, lineJoin: PenLineJoin.Round), outG);
NotaGraph.Title(ctx, frame, "Form");
NotaGraph.Legend(ctx, w - 6, 3, (NotaNum.F($"in {_driveDb:+0;−0;0}\u2009dB"), NotaPalette.TealBright, NotaGraph.Mark.Dashed),
- ("out", NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ ("out", NotaPalette.VizInk, NotaGraph.Mark.Line));
string lv = _levels >= 1e6 ? NotaNum.F($"{_levels / 1e6:0.0}\u2009M levels") : _levels >= 1e4 ? NotaNum.F($"{_levels / 1e3:0}\u2009k levels") : NotaNum.F($"{_levels:0} levels");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, lv);
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "10\u2009ms");
diff --git a/src/managed/Nota.App/Controls/DelayViews.cs b/src/managed/Nota.App/Controls/DelayViews.cs
index e996aefa..aa9fb070 100644
--- a/src/managed/Nota.App/Controls/DelayViews.cs
+++ b/src/managed/Nota.App/Controls/DelayViews.cs
@@ -2,8 +2,8 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// The custom-drawn views of the Nota Delay card: the repeat window (the echo train per
-// channel, L in brass above the axis and R in rose below, the sounding repeat lit), the
-// LOOP column's vertical faders, and the feedback tone graph (low cut / high cut, dragged
+// channel, L in neutral ink above the axis and R in rose below, the sounding repeat lit in accent),
+// the Loop column's vertical faders, and the feedback tone graph (low cut / high cut, dragged
// by its handles). They draw what the card hands them and own no engine state.
using System;
@@ -17,7 +17,7 @@ namespace Nota.App;
// The repeat window: the echo train per channel — L above the centre axis, R below — with
// height = level (feedback decay) and spacing = actual timing. Ping-pong and dotted offsets
-// read at a glance. Frozen, every repeat stands at full height and the window is brass-lined.
+// read at a glance. Frozen, every repeat stands at full height and the window is accent-lined.
// The repeat that is sounding now is lit (colour only — nothing moves).
internal sealed class DelayTaps : Control
{
@@ -77,8 +77,8 @@ internal sealed class DelayTaps : Control
void Train(double frac, bool up, int lit)
{
- var ink = up ? NotaPalette.Accent : NotaPalette.Rose;
- var litInk = up ? NotaPalette.AccentBright : NotaPalette.RoseBright;
+ var ink = up ? NotaPalette.Wash(NotaPalette.VizInk, 0xA0) : NotaPalette.Rose;
+ var litInk = up ? NotaPalette.Accent : NotaPalette.RoseBright;
for (int n = 1; n <= MaxTaps; n++)
{
double x = x0 + n * frac * (x1 - x0);
@@ -91,7 +91,7 @@ internal sealed class DelayTaps : Control
// Ping-pong bounces the repeat across the channels, so every other one leads.
bool lead = _ping && ((n % 2 == 1) == up);
bool sounding = n - 1 == lit;
- var pen = sounding ? litInk : lead ? (up ? NotaPalette.AccentBright : NotaPalette.RoseBright) : ink;
+ var pen = sounding ? litInk : lead ? (up ? NotaPalette.VizInk : NotaPalette.RoseBright) : ink;
ctx.DrawLine(new Pen(pen, sounding ? 2.4 : 2), new Point(x, mid), head);
ctx.DrawEllipse(pen, null, head, sounding ? 3 : 2.4, sounding ? 3 : 2.4);
}
@@ -113,9 +113,10 @@ internal sealed class DelayFader : Control
private double _v;
private bool _drag;
- /// <summary>The fill chroma — brass for feedback, rose for spread.</summary>
- public IBrush Ink { get; init; } = NotaPalette.Accent;
- public IBrush Handle { get; init; } = NotaPalette.AccentBright;
+ /// <summary>The fill chroma — neutral ink for feedback, rose for spread. The handle turns
+ /// accent while dragged.</summary>
+ public IBrush Ink { get; init; } = NotaPalette.VizInk;
+ public IBrush Handle { get; init; } = NotaPalette.VizInk;
public double Default { get; set; } = double.NaN;
public bool Dragging => _drag;
@@ -170,7 +171,7 @@ internal sealed class DelayFader : Control
ctx.FillRectangle(NotaPalette.Wash((SolidColorBrush)Ink, 0x48), new Rect(0, y, w, h - y));
ctx.DrawRectangle(null, new Pen(NotaPalette.BorderDefault, 1), rect, r, r);
double hy = Math.Clamp(y, 1.5, h - 2.5);
- ctx.DrawRectangle(Handle, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : Handle, null, new Rect(1.5, hy - 1, w - 3, 2), 1, 1);
}
}
diff --git a/src/managed/Nota.App/Controls/DynamicEqCurve.cs b/src/managed/Nota.App/Controls/DynamicEqCurve.cs
index ebca1fd0..584f5b93 100644
--- a/src/managed/Nota.App/Controls/DynamicEqCurve.cs
+++ b/src/managed/Nota.App/Controls/DynamicEqCurve.cs
@@ -4,9 +4,9 @@
// Nota Dynamic EQ-8 (device kind 13) response graph, a build of the "Nota Dynamic EQ" mockup.
// A dynamic EQ has two answers at once — where a band sits and where it is right now — so the
// window draws the live response (static gain + each band's momentary dynamic gain) as the
-// brass primary curve and the static response as a teal dashed line, shown only while the two
+// neutral primary curve and the static response as a teal dashed line, shown only while the two
// differ. Under them: the output spectrum (the engine's FFT, a dim line) and the selected
-// band's own curve (a faint brass line). Every band is a numbered node — selected brass, the
+// band's own curve (a faint accent line). Every band is a numbered node — selected accent, the
// rest Ink 3, an off band Ink 6. A dynamic band grows a whisker from its node to where Range
// can take it (teal for a cut, rose for a boost), with a dot riding it at the gain it has now.
// A tooltip beside the selected node reads the band, and for a dynamic band its gain now with
@@ -356,7 +356,7 @@ public sealed class DynamicEqCurve : Control
// ---- render ----
private static FormattedText Text(string s, IBrush ink, double size, bool bold = false, bool mono = true)
=> new(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
- mono ? (bold ? NotaFonts.MonoBold : NotaFonts.Mono) : bold ? NotaFonts.SansBold : NotaFonts.Sans, size, ink);
+ mono ? (bold ? NotaFonts.MonoBold : NotaFonts.Mono) : bold ? NotaFonts.SansSemiBold : NotaFonts.Sans, size, ink);
public override void Render(DrawingContext ctx)
{
@@ -442,9 +442,9 @@ public sealed class DynamicEqCurve : Control
ctx.DrawText(m12, new Point(w - 5 - m12.Width, Y(-12) + 1));
// title + legend
- var title = solo >= 0 ? NotaNum.F($"SOLO · B{solo + 1}") : "RESPONSE";
+ var title = solo >= 0 ? NotaNum.F($"Solo · B{solo + 1}") : "Response";
ctx.DrawText(Text(title, solo >= 0 ? NotaPalette.AccentBright : NotaGraph.TitleInk, 7, bold: true, mono: false), new Point(5, 3));
- NotaGraph.Legend(ctx, w - 5, 2, ("static", NotaPalette.TealBright, NotaGraph.Mark.Dashed), ("live", NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 5, 2, ("static", NotaPalette.TealBright, NotaGraph.Mark.Dashed), ("live", NotaPalette.VizInk, NotaGraph.Mark.Line));
// whiskers (dynamic bands): node → where Range can take it, a dot at the gain it has now
for (int b = 0; b < DynEq.Bands; b++)
@@ -483,7 +483,7 @@ public sealed class DynamicEqCurve : Control
int b = _selected, ty = BandType(b);
bool bOn = BandOn(b), g = DynEq.HasGain(ty), dyn = IsDyn(b);
double r = P(b, DynEq.RangeF);
- var a = Text(NotaNum.F($"B{b + 1} {DynEq.TypeNames[ty]}") + (bOn ? "" : " · off"), NotaPalette.AccentBright, 8, bold: true, mono: false);
+ var a = Text(NotaNum.F($"B{b + 1} {DynEq.TypeNames[ty]}") + (bOn ? "" : " · off"), NotaPalette.TextPrimary, 8, bold: true, mono: false);
var l2 = Text(DynEq.Hz(P(b, DynEq.FreqF)) + (g ? " · " + DynEq.Db(P(b, DynEq.GainF)) + " dB" : "") + NotaNum.F($" · Q {P(b, DynEq.QF):0.00}"),
NotaPalette.TextPrimary, 7);
IBrush dynInk = r >= 0 ? NotaPalette.RoseBright : NotaPalette.TealBright;
diff --git a/src/managed/Nota.App/Controls/Eq3Views.cs b/src/managed/Nota.App/Controls/Eq3Views.cs
index 43dae3d5..dcd862ff 100644
--- a/src/managed/Nota.App/Controls/Eq3Views.cs
+++ b/src/managed/Nota.App/Controls/Eq3Views.cs
@@ -7,7 +7,7 @@
// jumps), 0.5 dB steps with a 0 dB detent; Shift / Ctrl / ⌘ for fine 0.1 dB steps;
// double-click resets (0 dB, and the kill off).
// · Eq3Graph — the response window: the output spectrum (engine FFT) behind, each band's own
-// curve thin in its hue, the sum in brass, the two crossovers as dashed lines with handles
+// curve thin in its hue, the sum in neutral ink, the two crossovers as dashed lines with handles
// along the top that drag left / right (the low/mid one held to at most half the mid/high
// one). A drag anywhere else in a band's zone rides that band's gain up / down; double-click
// a handle or a zone to reset it.
@@ -28,10 +28,10 @@ internal static class Eq3Math
public const double FMin = 20, FMax = 20000;
public static readonly string[] Names = { "LOW", "MID", "HIGH" };
- /// <summary>The band hues: rose, brass, teal — the strips, the graph labels and the band curves.</summary>
- public static SolidColorBrush Hue(int band) => band switch { 0 => NotaPalette.Rose, 1 => NotaPalette.Accent, _ => NotaPalette.Teal };
+ /// <summary>The band hues: rose, neutral ink, teal — the strips, the graph labels and the band curves.</summary>
+ public static SolidColorBrush Hue(int band) => band switch { 0 => NotaPalette.Rose, 1 => NotaPalette.VizInk, _ => NotaPalette.Teal };
- /// <summary>The band curve's ink on the graph: the mid curve stays neutral so the brass sum reads.</summary>
+ /// <summary>The band curve's ink on the graph: the mid curve stays dimmer so the neutral sum reads.</summary>
public static SolidColorBrush CurveInk(int band) => band switch { 0 => NotaPalette.Rose, 1 => NotaPalette.TextSecondary, _ => NotaPalette.Teal };
public static double X(double f) => Math.Log(Math.Clamp(f, FMin, FMax) / FMin) / Math.Log(FMax / FMin);
@@ -84,7 +84,7 @@ internal sealed class Eq3Fader : Control
private double _db, _top = 6, _bottom = -24;
private bool _killed, _drag, _hover;
private double _startY, _startDb;
- private IBrush _hue = NotaPalette.Accent;
+ private IBrush _hue = NotaPalette.VizInk;
public event Action? GestureBegin;
public event Action? GestureEnd;
@@ -217,7 +217,7 @@ internal sealed class Eq3Graph : Control
private Rect Handle(int which, out FormattedText text)
{
double f = which == 0 ? _f1 : _f2;
- text = new FormattedText(Eq3Math.Hz(f), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.Mono, 7, NotaPalette.AccentBright);
+ text = new FormattedText(Eq3Math.Hz(f), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.Mono, 7, NotaPalette.TextSecondary);
double w = text.Width + 10, x = Eq3Math.X(f) * Bounds.Width;
x = Math.Clamp(x - w / 2, 1, Math.Max(1, Bounds.Width - w - 1));
return new Rect(Math.Round(x), 16, Math.Round(w), 13);
@@ -380,7 +380,7 @@ internal sealed class Eq3Graph : Control
ctx.DrawGeometry(null, NotaGraph.PrimaryPen, sum);
// Crossovers: dashed lines and their handles.
- var dash = new Pen(NotaPalette.BorderBrass, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
+ var dash = new Pen(NotaPalette.BorderStrong, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
foreach (double f in new[] { _f1, _f2 })
{
double x = Math.Round(Eq3Math.X(f) * w) + 0.5;
@@ -396,7 +396,7 @@ internal sealed class Eq3Graph : Control
var lw = new double[3];
for (int b = 0; b < 3; b++)
{
- names[b] = new FormattedText(Eq3Math.Names[b], CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansBold, 7, Eq3Math.Hue(b));
+ names[b] = new FormattedText(NotaText.Label(Eq3Math.Names[b]), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansSemiBold, 7, Eq3Math.Hue(b));
vals[b] = new FormattedText(_kill[b] ? "kill" : Eq3Math.Db(_db[b]), CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
NotaFonts.Mono, 7, _kill[b] ? NotaPalette.TextTertiary : NotaPalette.TextPrimary);
lw[b] = names[b].Width + 4 + vals[b].Width;
@@ -416,7 +416,7 @@ internal sealed class Eq3Graph : Control
{
var rect = Handle(i, out var text);
bool hot = _drag == i || _hover == i;
- ctx.DrawRectangle(hot ? NotaPalette.Accent : NotaPalette.SurfaceCard, new Pen(NotaPalette.Accent, 1), rect.Deflate(0.5), 3, 3);
+ ctx.DrawRectangle(hot ? NotaPalette.Accent : NotaPalette.SurfaceCard, new Pen(hot ? NotaPalette.Accent : NotaPalette.BorderStrong, 1), rect.Deflate(0.5), 3, 3);
if (hot) text.SetForegroundBrush(NotaPalette.TextOnAccent);
ctx.DrawText(text, new Point(rect.X + 5, rect.Y + (rect.Height - text.Height) / 2));
}
diff --git a/src/managed/Nota.App/Controls/Eq8Views.cs b/src/managed/Nota.App/Controls/Eq8Views.cs
index c5e75118..1ca49a29 100644
--- a/src/managed/Nota.App/Controls/Eq8Views.cs
+++ b/src/managed/Nota.App/Controls/Eq8Views.cs
@@ -4,10 +4,10 @@
// Nota EQ-8 (device kind 0) response graph, a build of the "Nota EQ-8" mockup. The window
// draws the analyzer behind everything (the input spectrum dim, the output spectrum a step
// brighter — Pre shows the input alone, Post both, Off neither), the selected band's own curve
-// as a faint brass line, the Side path as a teal line when any band works on the Side, and
-// the main response (stereo — or the Mid when the Side has its own curve) as the brass primary
-// curve. Every band is a numbered node at its effective gain (Scale applied) — selected brass,
-// a Side band teal, the rest Ink 3, an off band Ink 6; a Mid band wears a brass ring and a
+// as a faint accent line, the Side path as a teal line when any band works on the Side, and
+// the main response (stereo — or the Mid when the Side has its own curve) as the neutral primary
+// curve. Every band is a numbered node at its effective gain (Scale applied) — selected accent,
+// a Side band teal, the rest Ink 3, an off band Ink 6; a Mid band wears a neutral ring and a
// left / right band a rose one. A tooltip beside the selected node reads the band.
//
// Drag a node — frequency and gain; the wheel over a node — Q (Shift for fine); double-click a
@@ -60,10 +60,10 @@ internal static class Eq8
public static string HzShort(double f) => DynEq.HzShort(f);
public static string Db(double g) => DynEq.Db(g);
- /// <summary>Ink of a band's channel: Mid brass, Side teal, L / R rose, stereo none.</summary>
+ /// <summary>Ink of a band's channel: Mid neutral ink, Side teal, L / R rose, stereo none.</summary>
public static IBrush? ChannelInk(int ch, bool bright = false) => ch switch
{
- Mid => bright ? NotaPalette.AccentBright : NotaPalette.Accent,
+ Mid => bright ? NotaPalette.VizInk : NotaPalette.TextSecondary,
Side => bright ? NotaPalette.TealBright : NotaPalette.Teal,
Left or Right => bright ? NotaPalette.RoseBright : NotaPalette.Rose,
_ => null,
@@ -347,7 +347,7 @@ public sealed class Eq8Curve : Control
// ---- render ----
private static FormattedText Text(string s, IBrush ink, double size, bool bold = false, bool mono = true)
=> new(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
- mono ? (bold ? NotaFonts.MonoBold : NotaFonts.Mono) : bold ? NotaFonts.SansBold : NotaFonts.Sans, size, ink);
+ mono ? (bold ? NotaFonts.MonoBold : NotaFonts.Mono) : bold ? NotaFonts.SansSemiBold : NotaFonts.Sans, size, ink);
private StreamGeometry SpecLine(float[] spec, double w, double h)
{
@@ -437,9 +437,9 @@ public sealed class Eq8Curve : Control
// legend (the ANALYZER selector sits over the top-left corner, placed by the card)
if (anySide)
- NotaGraph.Legend(ctx, w - 5, 2, ("mid", NotaPalette.AccentBright, NotaGraph.Mark.Line), ("side", NotaPalette.TealBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 5, 2, ("mid", NotaPalette.VizInk, NotaGraph.Mark.Line), ("side", NotaPalette.TealBright, NotaGraph.Mark.Line));
else
- NotaGraph.Legend(ctx, w - 5, 2, ("stereo", NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 5, 2, ("stereo", NotaPalette.VizInk, NotaGraph.Mark.Line));
// nodes (selected last, on top)
for (int k = 1; k <= Eq8.Bands; k++)
@@ -451,7 +451,7 @@ public sealed class Eq8Curve : Control
IBrush num = bOn ? NotaPalette.TextOnAccent : NotaPalette.TextTertiary;
double r = NodeD / 2;
ctx.DrawEllipse(fill, RingPen, c, r + 1, r + 1);
- if (bOn && ch[b] != Eq8.Side && Eq8.ChannelInk(ch[b]) is { } ring) // Mid brass, L / R rose
+ if (bOn && ch[b] != Eq8.Side && Eq8.ChannelInk(ch[b]) is { } ring) // Mid neutral, L / R rose
ctx.DrawEllipse(null, new Pen(ring, 1), c, r + 2.5, r + 2.5);
var t = Text(NotaNum.F($"{b + 1}"), num, 7, bold: true);
ctx.DrawText(t, new Point(c.X - t.Width / 2, c.Y - t.Height / 2));
@@ -466,7 +466,7 @@ public sealed class Eq8Curve : Control
int b = _selected, ty = BandType(b), chn = Chan(b);
bool bOn = BandOn(b), g = Eq8.HasGain(ty);
var a = Text(NotaNum.F($"B{b + 1} {Eq8.TypeNames[ty]}") + (chn != Eq8.St ? " · " + Eq8.ChannelShort[chn] : "") + (bOn ? "" : " · off"),
- NotaPalette.AccentBright, 8, bold: true, mono: false);
+ NotaPalette.TextPrimary, 8, bold: true, mono: false);
var l2 = Text(Eq8.Hz(P(b, Eq8.FreqF)) + (g ? " · " + Eq8.Db(P(b, Eq8.GainF)) + " dB" : "") + NotaNum.F($" · Q {P(b, Eq8.QF):0.00}")
+ (Eq8.IsCut(ty) ? NotaNum.F($" · {Eq8.SlopeDb(Slope(b))}\u2009dB/oct") : ""), NotaPalette.TextPrimary, 7);
double tw = Math.Max(a.Width, l2.Width) + 12, th = a.Height + l2.Height + 6;
diff --git a/src/managed/Nota.App/Controls/FlangerViews.cs b/src/managed/Nota.App/Controls/FlangerViews.cs
index e8cf1d68..c0b6df2c 100644
--- a/src/managed/Nota.App/Controls/FlangerViews.cs
+++ b/src/managed/Nota.App/Controls/FlangerViews.cs
@@ -2,7 +2,7 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Flanger views (device kind 23) — the pictures on the Flanger card:
-// FlangerCombView — the live comb response of both channels (L brass, R teal) over 20 Hz …
+// FlangerCombView — the live comb response of both channels (L neutral ink, R teal) over 20 Hz …
// 20 kHz, −36 … +12 dB, with the first notch marked. Where the teeth get
// denser than a pixel the curve draws each column's max…min, so the comb
// stays honest at high frequencies. Drag left / right moves the notch (Delay),
@@ -23,7 +23,7 @@ namespace Nota.App;
internal static class FlangerMath
{
public static readonly string[] Waves = { "Sine", "Tri", "Saw" };
- public static readonly string[] WaveNames = { "SINE", "TRIANGLE", "SAW" };
+ public static readonly string[] WaveNames = { "Sine", "Triangle", "Saw" };
// Sync divisions, slowest → fastest (Flanger::kDivBeats / kDivNames).
public static readonly double[] DivBeats = { 8, 4, 2, 1.5, 1, 2.0 / 3, 0.5, 1.0 / 3, 0.25 };
public static readonly string[] DivNames = { "2/1", "1/1", "1/2", "1/4D", "1/4", "1/4T", "1/8", "1/8T", "1/16" };
@@ -158,7 +158,7 @@ internal sealed class FlangerCombView : Control
// R first so L reads on top where they meet.
Curve(_tauR, _on ? NotaPalette.TealBright : NotaPalette.TextAxis, 1.2, 0.75);
- Curve(_tauL, _on ? NotaPalette.Accent : NotaPalette.TextAxis, 1.6, 1);
+ Curve(_tauL, _on ? NotaPalette.VizInk : NotaPalette.TextAxis, 1.6, 1);
void Label(string s, double x, double y)
{
@@ -236,7 +236,7 @@ internal sealed class FlangerSweepView : Control
ctx.DrawLine(new Pen(NotaPalette.GraphBorder, 1, new DashStyle(new double[] { 2, 3 }, 0)), new Point(X(1), 0), new Point(X(1), h));
Curve(_off, _on ? NotaPalette.TealBright : NotaPalette.TextAxis, 1.2, 0.75);
- Curve(0, _on ? NotaPalette.Accent : NotaPalette.TextAxis, 1.4, 1);
+ Curve(0, _on ? NotaPalette.VizInk : NotaPalette.TextAxis, 1.4, 1);
var tl = NotaGraph.AxisText("τ " + FlangerMath.Ms(top) + " ms", size: 6);
ctx.DrawText(tl, new Point(5, 1));
@@ -251,7 +251,7 @@ internal sealed class FlangerSweepView : Control
double hx = X(Math.Clamp(_head, 0, 2));
ctx.DrawLine(new Pen(NotaPalette.TextTertiary, 1), new Point(hx, 0), new Point(hx, h));
DrawDot(new Point(hx, Y(_tauR)), NotaPalette.TealBright);
- DrawDot(new Point(hx, Y(_tauL)), NotaPalette.AccentBright);
+ DrawDot(new Point(hx, Y(_tauL)), NotaPalette.VizInk);
}
void DrawDot(Point p, IBrush ink) => ctx.DrawEllipse(ink, new Pen(NotaGraph.Ground, 2), p, 3, 3);
diff --git a/src/managed/Nota.App/Controls/FluxReactScope.cs b/src/managed/Nota.App/Controls/FluxReactScope.cs
index 26d3fec5..5415235e 100644
--- a/src/managed/Nota.App/Controls/FluxReactScope.cs
+++ b/src/managed/Nota.App/Controls/FluxReactScope.cs
@@ -92,7 +92,7 @@ internal sealed class FluxReactScope : Control
}
}
- var lbl = new FormattedText("SIDECHAIN", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansBold,
+ var lbl = new FormattedText("Sidechain", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansSemiBold,
NotaType.KnobLabel, _live ? NotaPalette.TextTertiary : NotaPalette.TextDisabled);
ctx.DrawText(lbl, new Point(6, 4));
NotaGraph.Axis(ctx, plot, NotaGraph.Corner.TopRight, "env · transients · tilt", _live ? NotaPalette.TealBright : NotaPalette.TextAxis);
diff --git a/src/managed/Nota.App/Controls/FluxVectorPad.cs b/src/managed/Nota.App/Controls/FluxVectorPad.cs
index d5f2ec72..ec9948fa 100644
--- a/src/managed/Nota.App/Controls/FluxVectorPad.cs
+++ b/src/managed/Nota.App/Controls/FluxVectorPad.cs
@@ -2,10 +2,10 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Detail · Devices — the Nota Flux vector field: a draggable XY control whose four corners
-// are "timbre worlds" (WARM / GLASS / MOOG / GRAIN). It is a graph window (NotaGraph): well,
+// are "timbre worlds" (Warm / Glass / Moog / Grain). It is a graph window (NotaGraph): well,
// hairline, radius 4, a crosshair in the grid colour, and the corner names in the four role
-// chromas — brass, steel, rose, teal — the only place on the card they appear. The brass
-// dot is the vector the parameters hold; a dashed teal ring, reached by a dashed arc, is
+// chromas — neutral ink, steel, rose, teal — the only place on the card they appear. The
+// neutral dot is the vector the parameters hold (accent while dragged); a dashed teal ring, reached by a dashed arc, is
// where Motion and React pull it right now.
// X = 0..1 left→right, Y = 0..1 top→bottom. Reports drags via ValueChanged; Begin/End frame
// an automation-write gesture on both axes. Left button only; double-click resets.
@@ -98,10 +98,10 @@ internal sealed class FluxVectorPad : Control
ctx.DrawLine(NotaGraph.GridPen, new Point(1, Math.Round(r.Height / 2) + 0.5), new Point(r.Width - 1, Math.Round(r.Height / 2) + 0.5));
// corner worlds, in the graph chromas.
- Label(ctx, "WARM", NotaPalette.Accent, 6, 4, false);
- Label(ctx, "GLASS", NotaPalette.Steel, r.Width - 6, 4, true);
- Label(ctx, "MOOG", NotaPalette.Rose, 6, r.Height - 13, false);
- Label(ctx, "GRAIN", NotaPalette.Teal, r.Width - 6, r.Height - 13, true);
+ Label(ctx, "Warm", NotaPalette.VizInk, 6, 4, false);
+ Label(ctx, "Glass", NotaPalette.Steel, r.Width - 6, 4, true);
+ Label(ctx, "Moog", NotaPalette.Rose, 6, r.Height - 13, false);
+ Label(ctx, "Grain", NotaPalette.Teal, r.Width - 6, r.Height - 13, true);
var b = new Point(_x * r.Width, _y * r.Height);
if (_ghost)
@@ -122,13 +122,13 @@ internal sealed class FluxVectorPad : Control
ctx.DrawEllipse(null, new Pen(NotaPalette.Teal, 1.5, new DashStyle(new double[] { 2, 1.5 }, 0)), g, 6, 6);
}
- // the vector: Brass Light with a ground-coloured ring.
- ctx.DrawEllipse(NotaPalette.AccentBright, new Pen(NotaPalette.AccentSubtle, 2), b, 7, 7);
+ // the vector: neutral ink with a ground-coloured ring; accent while dragged.
+ ctx.DrawEllipse(_drag ? NotaPalette.Accent : NotaPalette.VizInk, new Pen(NotaPalette.BgSunken, 2), b, 7, 7);
}
private static void Label(DrawingContext ctx, string text, IBrush ink, double x, double y, bool rightAlign)
{
- var ft = new FormattedText(text, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansBold, NotaType.KnobLabel, ink);
+ var ft = new FormattedText(text, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansMedium, NotaType.KnobLabel, ink);
ctx.DrawText(ft, new Point(rightAlign ? x - ft.Width : x, y));
}
}
diff --git a/src/managed/Nota.App/Controls/ForgeViews.cs b/src/managed/Nota.App/Controls/ForgeViews.cs
index dd36d7ec..e01202da 100644
--- a/src/managed/Nota.App/Controls/ForgeViews.cs
+++ b/src/managed/Nota.App/Controls/ForgeViews.cs
@@ -2,12 +2,12 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Forge (device kind 17) views, the "Nota Forge" mockup:
-// · FgTransferView — the transfer curve over input −1 … +1: the whole device in brass (in
+// · FgTransferView — the transfer curve over input −1 … +1: the whole device in neutral ink (in
// Mid/Side and Multiband the selected stage, since each stage sees its own signal), every
// stage alone as a faint curve, the LFO-modulated curve as teal dashes and a node where the
// input sits on the curve now. Drag up / down for Amount; double-click resets it.
// · FgHarmonicsView — harmonics 2 … 9 of a −6 dB test sine through that curve: odd partials in
-// brass, even ones in ink, with THD and its flavour.
+// neutral ink, even ones dimmer, with THD and its flavour.
// The curves and the partials come from the engine (Forge.h scopeRead), computed by the same
// shapers the audio runs, so the picture is what is heard.
@@ -128,7 +128,7 @@ internal sealed class FgTransferView : ShDragView
}
if (_active && _hasMod)
ctx.DrawGeometry(null, new Pen(NotaPalette.TealBright, 1.2, new DashStyle(new double[] { 4, 3 }, 0)), Path(_mod));
- ctx.DrawGeometry(null, new Pen(_active ? NotaPalette.Accent : NotaPalette.TextDisabled, Dragging ? 2.2 : NotaGraph.PrimaryWidth,
+ ctx.DrawGeometry(null, new Pen(!_active ? NotaPalette.TextDisabled : Dragging ? NotaPalette.Accent : NotaPalette.VizInk, Dragging ? 2.2 : NotaGraph.PrimaryWidth,
lineJoin: PenLineJoin.Round), Path(_main));
// Where the input sits on the curve now.
@@ -137,16 +137,16 @@ internal sealed class FgTransferView : ShDragView
double fi = (_in + 1) / 2 * (ForgeMath.kPts - 1);
int i0 = Math.Clamp((int)Math.Floor(fi), 0, ForgeMath.kPts - 2);
double fr = fi - i0, y = _main[i0] + (_main[i0 + 1] - _main[i0]) * fr;
- NotaGraph.Node(ctx, new Point(X(_in), Y(y)), true, NotaPalette.AccentBright);
+ NotaGraph.Node(ctx, new Point(X(_in), Y(y)), false, NotaPalette.VizInk);
}
}
}
NotaGraph.Title(ctx, frame, "Transfer");
if (_active && _hasMod)
- NotaGraph.Legend(ctx, w - 6, 3, (_label, NotaPalette.AccentBright, NotaGraph.Mark.Line), ("modulated", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
+ NotaGraph.Legend(ctx, w - 6, 3, (_label, NotaPalette.VizInk, NotaGraph.Mark.Line), ("modulated", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
else
- NotaGraph.Legend(ctx, w - 6, 3, (_active ? _label : "bypass", _active ? NotaPalette.AccentBright : NotaPalette.TextTertiary, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 6, 3, (_active ? _label : "bypass", _active ? NotaPalette.VizInk : NotaPalette.TextTertiary, NotaGraph.Mark.Line));
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "in −1");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "+1");
var o = NotaGraph.AxisText("out +1");
@@ -189,7 +189,7 @@ internal sealed class FgHarmonicsView : Control
int k = i + 2;
double hh = Math.Clamp((_db[i] + 72) / 72, 0, 1);
double x = x0 + i * (bw + gap);
- IBrush ink = hh > 0.02 ? (k % 2 == 1 ? NotaPalette.Accent : NotaPalette.TextSecondary) : NotaPalette.SurfaceRaised;
+ IBrush ink = hh > 0.02 ? (k % 2 == 1 ? NotaPalette.VizInk : NotaPalette.TextTertiary) : NotaPalette.SurfaceRaised;
double bh = Math.Max(1, hh * (bot - top));
ctx.DrawRectangle(ink, null, new RoundedRect(new Rect(x, bot - bh, bw, bh), 1, 1, 0, 0));
var kt = NotaGraph.AxisText(k.ToString(), NotaPalette.TextDisabled);
diff --git a/src/managed/Nota.App/Controls/Glyph.cs b/src/managed/Nota.App/Controls/Glyph.cs
index a4a25260..e6d707af 100644
--- a/src/managed/Nota.App/Controls/Glyph.cs
+++ b/src/managed/Nota.App/Controls/Glyph.cs
@@ -8,8 +8,15 @@
//
// Transport shapes follow the almanac exactly: Stop a 10px square with radius 1, Record an
// 11px circle, Play an 11×14 triangle. Everything else is a 1.5px stroke on the same grid.
+//
+// This is the app's one icon set (spec 012): no icon is drawn outside this file. Kinds below
+// "Path kinds" are path data on a 16-unit grid, scaled as a whole to the requested size (never
+// stretched to their own bounds, so a wide and a tall icon keep their optical balance). Their
+// stroke parts take the shared pen — round caps and joins, max(1.2, size × 1.5/16) — and
+// their fill parts take the ink.
using System;
+using System.Collections.Generic;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Documents;
@@ -27,6 +34,8 @@ internal enum GlyphKind
// Context-menu icons
Copy, Cut, Paste, Trash, Duplicate, Split, Consolidate, Stems, Reverse, Folder, Ungroup,
Palette, Note, Input, Arrow, Grid, Select, Save, List, Compare, Flatten,
+ // Path kinds (16-unit grid, see Paths)
+ Arrangement, Session, Modular, Keyboard, Sliders, Downloads, Star, StarFilled, Bookmark, Doc, Midi, Map, History, Sidebar, Options, Search, CaretRight, CaretDown, Levels, Gamepad, Phone, Plug, Library, Appearance, Shortcuts, MidiPort, Action, Track, Device, Preset, Patch, Loop, Speaker, SpeakerMute, SpeakerLow, SpeakerHigh, Metronome, Follow, Snap, Automation, Apple, Windows, Linux, ChainLink,
}
internal sealed class Glyph : Control
@@ -35,7 +44,7 @@ internal sealed class Glyph : Control
TextElement.ForegroundProperty.AddOwner<Glyph>();
private GlyphKind _kind;
- private readonly double _size;
+ private double _size;
/// <summary>The shape. Setting it also sets the glyph's natural size (transport shapes
/// have fixed almanac sizes; the rest are square at the size given).</summary>
@@ -50,12 +59,21 @@ internal sealed class Glyph : Control
GlyphKind.Play => (11, 14),
GlyphKind.Stop => (10, 10),
GlyphKind.Record or GlyphKind.RecordRing => (11, 11),
+ _ when Paths.ContainsKey(value) => (16, 16),
_ => (10, 10),
};
InvalidateVisual();
}
}
+ /// <summary>A square box of this size (0 = the natural size) — the ctor's size, settable
+ /// from XAML. Set it after <see cref="Kind"/>.</summary>
+ public double Size
+ {
+ get => _size;
+ set { _size = value; Kind = _kind; }
+ }
+
/// <summary>The ink. Inherits the text foreground, so a glyph inside a button follows its state.</summary>
public IBrush? Foreground { get => GetValue(ForegroundProperty); set => SetValue(ForegroundProperty, value); }
@@ -81,7 +99,8 @@ internal sealed class Glyph : Control
{
double w = r.Width, h = r.Height, x = r.X, y = r.Y, s = Math.Min(w, h);
double cx = x + w / 2, cy = y + h / 2;
- var pen = new Pen(ink, Math.Max(1.2, s * 0.15), lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ var pen = new Pen(ink, Math.Max(1.2, s * 1.5 / 16), lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ if (Paths.ContainsKey(kind)) { DrawPath(ctx, kind, cx - s / 2, cy - s / 2, s, ink, pen.Thickness); return; }
switch (kind)
{
case GlyphKind.Play:
@@ -399,6 +418,119 @@ internal sealed class Glyph : Control
}
}
+// 16-unit path kinds: (stroke, fill). Stroke parts use the shared pen; fill parts the ink.
+ private static readonly Dictionary<GlyphKind, (string? Stroke, string? Fill)> Paths = new()
+ {
+ // Clip blocks on three lanes (the Arrangement view), solid.
+ [GlyphKind.Arrangement] = (null, "M1.5 2.5 H8 V5.5 H1.5 Z M10 2.5 H14.5 V5.5 H10 Z M4 7 H12 V10 H4 Z M1.5 11.5 H6 V14.5 H1.5 Z M8 11.5 H13 V14.5 H8 Z"),
+ // A grid of clip cells, three tracks by two scenes (the Session view), solid.
+ [GlyphKind.Session] = (null, "M1.5 2.5 H5 V7 H1.5 Z M6.25 2.5 H9.75 V7 H6.25 Z M11 2.5 H14.5 V7 H11 Z M1.5 9 H5 V13.5 H1.5 Z M6.25 9 H9.75 V13.5 H6.25 Z M11 9 H14.5 V13.5 H11 Z"),
+ // Three nodes joined by cables (the Modular view).
+ [GlyphKind.Modular] = ("M1.7 4 A1.8 1.8 0 1 0 5.3 4 A1.8 1.8 0 1 0 1.7 4 Z M1.7 12 A1.8 1.8 0 1 0 5.3 12 A1.8 1.8 0 1 0 1.7 12 Z M10.7 8 A1.8 1.8 0 1 0 14.3 8 A1.8 1.8 0 1 0 10.7 8 Z M5.2 4.8 L10.8 7.2 M5.2 11.2 L10.8 8.8", null),
+ // A piano keyboard: case, key dividers, three black keys.
+ [GlyphKind.Keyboard] = ("M2.333 4 h11.333 v8 h-11.333 zM6.133 4 v8 M9.867 4 v8 M4.2 4 v3.333 M8 4 v3.333 M11.8 4 v3.333", null),
+ // Three faders with offset handles (audio effects).
+ [GlyphKind.Sliders] = ("M4.667 3 v10 M8 3 v10 M11.333 3 v10 M3.333 6 h2.667 M6.667 9.667 h2.667 M10 5 h2.667", null),
+ // An arrow down onto a line.
+ [GlyphKind.Downloads] = ("M8 2.667 V10 M4.667 6.667 L8 10 L11.333 6.667 M3.333 12.667 H12.667", null),
+ // A five-point star, outlined.
+ [GlyphKind.Star] = ("M8 2 L9.667 6 L14 6.2 L10.667 9 L11.8 13.333 L8 10.8 L4.2 13.333 L5.333 9 L2 6.2 L6.333 6 Z", null),
+ // A five-point star, solid (a favourite).
+ [GlyphKind.StarFilled] = (null, "M8 2 L9.667 6 L14 6.2 L10.667 9 L11.8 13.333 L8 10.8 L4.2 13.333 L5.333 9 L2 6.2 L6.333 6 Z"),
+ // A bookmark (a saved preset).
+ [GlyphKind.Bookmark] = ("M4.333 2.667 h7.333 v10.667 l-3.667 -2.933 l-3.667 2.933 z", null),
+ // A document with a dog-ear and two lines (a project).
+ [GlyphKind.Doc] = ("M4 2.333 h5.067 l3.2 3.2 v8.133 h-8.267 zM9.067 2.333 v3.2 h3.2 M6.133 8.933 h4 M6.133 11.2 h4", null),
+ // An eighth note (MIDI effects).
+ [GlyphKind.Midi] = ("M4 11.467 a1.733 1.6 0 1 0 3.467 0 a1.733 1.6 0 1 0 -3.467 0 M7.467 11.467 V3.333 c2 0.6 3.733 1.6 3.733 3.733", null),
+ // Two nodes joined by a link (a MIDI-learn mapping).
+ [GlyphKind.Map] = ("M2.267 11.733 a1.733 1.733 0 1 0 3.467 0 a1.733 1.733 0 1 0 -3.467 0 M10.267 4.267 a1.733 1.733 0 1 0 3.467 0 a1.733 1.733 0 1 0 -3.467 0 M5.267 10.467 L10.733 5.533", null),
+ // A clock with a counter-clockwise tail (version history).
+ [GlyphKind.History] = ("M3.067 6.133 A5.333 5.333 0 1 1 2.667 8 M3.067 6.133 L2.4 3.867 M3.067 6.133 L5.333 5.733 M8 5.067 V8 L10 9.333", null),
+ // A window with its left sidebar ruled off.
+ [GlyphKind.Sidebar] = ("M2.333 3.667 h11.333 v8.667 h-11.333 zM6.333 3.667 v8.667", null),
+ // Three centred rules, shortening downward (view options).
+ [GlyphKind.Options] = ("M2.667 4.667 H13.333 M4.667 8 H11.333 M6.667 11.333 H9.333", null),
+ // A magnifier.
+ [GlyphKind.Search] = ("M7 2.667 A4.333 4.333 0 1 0 7 11.333 A4.333 4.333 0 1 0 7 2.667 M10.333 10.333 L14 14", null),
+ // A small solid triangle pointing right (a closed disclosure).
+ [GlyphKind.CaretRight] = (null, "M5.5 3 L11.5 8 L5.5 13 Z"),
+ // A small solid triangle pointing down (an open disclosure).
+ [GlyphKind.CaretDown] = (null, "M3 5.5 L13 5.5 L8 11.5 Z"),
+ // Level bars of different heights (audio).
+ [GlyphKind.Levels] = ("M2.667 6.667 V9.333 M5.333 4.667 V11.333 M8 2.667 V13.333 M10.667 5.333 V10.667 M13.333 7.333 V8.667", null),
+ // A game controller.
+ [GlyphKind.Gamepad] = ("M4.667 5.333 H11.333 A2.667 2.667 0 0 1 14 8 V8.667 A2.667 2.667 0 0 1 9.333 10.667 H6.667 A2.667 2.667 0 0 1 2 8.667 V8 A2.667 2.667 0 0 1 4.667 5.333 ZM4.667 7.333 V8.667 M4 8 H5.333 M10.667 7.667 H10.673 M12 8.333 H12.007", null),
+ // A phone (Remote).
+ [GlyphKind.Phone] = ("M5.333 2 H10.667 A1 1 0 0 1 11.667 3 V13 A1 1 0 0 1 10.667 14 H5.333 A1 1 0 0 1 4.333 13 V3 A1 1 0 0 1 5.333 2 ZM7.333 12 H8.667", null),
+ // A plug with two prongs (plug-ins).
+ [GlyphKind.Plug] = ("M6 2 V4.667 M10 2 V4.667 M4 4.667 H12 V7.333 A4 4 0 0 1 4 7.333 ZM8 11.333 V14", null),
+ // A folder with rounded corners (the content library).
+ [GlyphKind.Library] = ("M2 4.667 A0.667 0.667 0 0 1 2.667 4 H6 L7.333 5.333 H13.333 A0.667 0.667 0 0 1 14 6 V12 A0.667 0.667 0 0 1 13.333 12.667 H2.667 A0.667 0.667 0 0 1 2 12 Z", null),
+ // A half-filled circle (appearance).
+ [GlyphKind.Appearance] = ("M8 2.667 A5.333 5.333 0 1 0 8 13.333 ZM8 2.667 A5.333 5.333 0 0 1 8 13.333", null),
+ // A keycap row on a keyboard (shortcuts).
+ [GlyphKind.Shortcuts] = ("M2 4.667 H14 V11.333 H2 ZM4.667 7.333 H4.673 M7.333 7.333 H7.34 M10 7.333 H10.007 M5.333 9.333 H10.667", null),
+ // A controller with keys (MIDI devices).
+ [GlyphKind.MidiPort] = ("M2.667 3.333 H13.333 V12.667 H2.667 ZM5.333 3.333 V8.667 M8 3.333 V8.667 M10.667 3.333 V8.667", null),
+ // A prompt: chevron and cursor (a command).
+ [GlyphKind.Action] = ("M3.333 4.667 L6.667 8 L3.333 11.333 M8 11.333 H12.667", null),
+ // Three rules, the last short (a track).
+ [GlyphKind.Track] = ("M2.667 4.667 H13.333 M2.667 8 H13.333 M2.667 11.333 H8.667", null),
+ // A box with a knob (a device).
+ [GlyphKind.Device] = ("M2.667 3.333 H13.333 V12.667 H2.667 ZM6 8 A2 2 0 1 0 10 8 A2 2 0 1 0 6 8", null),
+ // A bookmark (a preset).
+ [GlyphKind.Preset] = ("M4.667 2.667 H11.333 V13.333 L8 10.667 L4.667 13.333 Z", null),
+ // Two nodes joined by a cable (a modular patch).
+ [GlyphKind.Patch] = ("M2.667 4.667 A1.667 1.667 0 1 0 6 4.667 A1.667 1.667 0 1 0 2.667 4.667 M10 11.333 A1.667 1.667 0 1 0 13.333 11.333 A1.667 1.667 0 1 0 10 11.333 M5.667 5.667 L10.333 10.333", null),
+ // Two arrows chasing each other (loop).
+ [GlyphKind.Loop] = ("M11.333 2 l2 2 l-2 2 M13.333 4 H5.333 a2.667 2.667 0 0 0 -2.667 2.667 v0.667 M4.667 14 l-2 -2 l2 -2 M2.667 12 h8 a2.667 2.667 0 0 0 2.667 -2.667 v-0.667", null),
+ // A speaker cone; layer a Speaker* wave kind over it.
+ [GlyphKind.Speaker] = ("M2.667 6 h2.667 l3.333 -2.667 v9.333 l-3.333 -2.667 h-2.667 z", null),
+ // A cross beside the speaker (muted).
+ [GlyphKind.SpeakerMute] = ("M10.667 6 l3.333 4 M14 6 l-3.333 4", null),
+ // One wave beside the speaker (quiet).
+ [GlyphKind.SpeakerLow] = ("M10.667 6.333 a2.333 2.333 0 0 1 0 3.333", null),
+ // Two waves beside the speaker (loud).
+ [GlyphKind.SpeakerHigh] = ("M10.667 6.333 a2.333 2.333 0 0 1 0 3.333 M12.333 4.667 a4.667 4.667 0 0 1 0 6.667", null),
+ // A metronome: body, rod and weight.
+ [GlyphKind.Metronome] = ("M6.533 3.667 H9.467 L12.667 13.333 H3.333 ZM8 12.667 L9.267 2.133", "M7.553 7.333 A1.067 1.067 0 1 0 9.687 7.333 A1.067 1.067 0 1 0 7.553 7.333 Z"),
+ // The playhead flag standing on its ruler (follow playhead).
+ [GlyphKind.Follow] = ("M2.333 11.867 H13.667 M6.333 8.333 V11.867", "M4.333 3.333 H8.333 V6 L6.333 8.333 L4.333 6 Z"),
+ // A horseshoe magnet with banded poles (snap to grid).
+ [GlyphKind.Snap] = (null, "M2.667 11.333 V8.333 A5.333 5.333 0 0 1 13.333 8.333 V11.333 H10.333 V8.333 A2.333 2.333 0 0 0 5.667 8.333 V11.333 ZM2.667 12.667 H5.667 V14.333 H2.667 ZM10.333 12.667 H13.333 V14.333 H10.333 Z"),
+ // A breakpoint envelope with two handles.
+ [GlyphKind.Automation] = ("M2 11.667 H6 L9.667 5 H14", "M4.733 11.667 A1.267 1.267 0 1 0 7.267 11.667 A1.267 1.267 0 1 0 4.733 11.667 ZM8.4 5 A1.267 1.267 0 1 0 10.933 5 A1.267 1.267 0 1 0 8.4 5 Z"),
+ // The Apple mark.
+ [GlyphKind.Apple] = (null, "F1 M8 4.8 C6.4 3.733 3 3.867 3 7.867 C3 11.067 4.933 14 6.2 14 C7.067 14 7.333 13.533 8 13.533 C8.667 13.533 8.933 14 9.8 14 C10.8 14 12.267 12.133 12.867 10.267 C11.733 9.8 11.067 8.8 11.067 7.667 C11.067 6.6 11.667 5.733 12.533 5.267 C11.467 4 9.333 3.933 8 4.8 ZM8.133 4.2 C8.133 2.867 9.067 1.867 10.4 1.8 C10.4 3.133 9.467 4.133 8.133 4.2 Z"),
+ // The Windows mark.
+ [GlyphKind.Windows] = (null, "M2.333 2.333 H7.333 V7.333 H2.333 ZM8.667 2.333 H13.667 V7.333 H8.667 ZM2.333 8.667 H7.333 V13.667 H2.333 ZM8.667 8.667 H13.667 V13.667 H8.667 Z"),
+ // The Linux penguin (even-odd, so the belly is a hole).
+ [GlyphKind.Linux] = (null, "F1 M8 1.333 C9.333 1.333 10.133 2.4 10.133 3.867 C10.133 4.933 9.667 5.467 10 6.267 C11.067 7.733 12.667 9.6 12.267 11.867 L13.2 14 H2.8 L3.733 11.867 C3.333 9.6 4.933 7.733 6 6.267 C6.333 5.467 5.867 4.933 5.867 3.867 C5.867 2.4 6.667 1.333 8 1.333 ZM8 6.8 C6.733 6.8 5.867 8.667 5.867 10.533 C5.867 12.2 6.8 13.2 8 13.2 C9.2 13.2 10.133 12.2 10.133 10.533 C10.133 8.667 9.267 6.8 8 6.8 Z"),
+ // Two interlocked chain links (a live-freeze link).
+ [GlyphKind.ChainLink] = ("M2.711 5.619 L6.266 9.175 A2.057 2.057 0 0 0 9.175 6.266 L5.619 2.711 A2.057 2.057 0 0 0 2.711 5.619 ZM6.825 9.734 L10.381 13.289 A2.057 2.057 0 0 0 13.289 10.381 L9.734 6.825 A2.057 2.057 0 0 0 6.825 9.734 Z", null),
+ };
+
+ private static readonly Dictionary<GlyphKind, (Geometry? Stroke, Geometry? Fill)> Parsed = new();
+
+ // A path kind in the s×s box at (x, y): the 16-unit grid scaled as a whole, the stroke
+ // kept at the shared on-screen weight.
+ private static void DrawPath(DrawingContext ctx, GlyphKind kind, double x, double y, double s, IBrush ink, double strokePx)
+ {
+ if (!Parsed.TryGetValue(kind, out var g))
+ {
+ var (st, fi) = Paths[kind];
+ Parsed[kind] = g = (st is null ? null : Geometry.Parse(st), fi is null ? null : Geometry.Parse(fi));
+ }
+ double k = s / 16;
+ using (ctx.PushTransform(Matrix.CreateScale(k, k) * Matrix.CreateTranslation(x, y)))
+ {
+ if (g.Fill is not null) ctx.DrawGeometry(ink, null, g.Fill);
+ if (g.Stroke is not null)
+ ctx.DrawGeometry(null, new Pen(ink, strokePx / k, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), g.Stroke);
+ }
+ }
+
private static void Fill(DrawingContext ctx, IBrush ink, params Point[] pts)
{
var g = new StreamGeometry();
diff --git a/src/managed/Nota.App/Controls/GrainWaveViz.cs b/src/managed/Nota.App/Controls/GrainWaveViz.cs
index d30d0902..be3be7cf 100644
--- a/src/managed/Nota.App/Controls/GrainWaveViz.cs
+++ b/src/managed/Nota.App/Controls/GrainWaveViz.cs
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Nota Grain sample view — a graph window (NotaGraph) with the sample drawn as brass bars
+// Nota Grain sample view — a graph window (NotaGraph) with the sample drawn as neutral bars
// (scaled so its loudest peak fills the height) around a centre line and a time grid
-// labelled along the bottom. The Spray region is a Brass Wash band around the read
-// Position (a dashed brass line); each held voice's read head is a Brass Light line with a
+// labelled along the bottom. The Spray region is a neutral wash band around the read
+// Position (a dashed line); each held voice's read head is an accent line with a
// notch on top, and the live grain cloud — every grain the engine is playing — is a teal
// dot at its read position, high for left and low for right, larger the louder its window
// is. Grains/sec sits in the top-left corner.
@@ -24,9 +24,10 @@ namespace Nota.App;
internal sealed class GrainWaveViz : Control
{
private static readonly IPen MidLine = new Pen(NotaPalette.GridBar, 1);
- private static readonly IPen PosPen = new Pen(NotaPalette.AccentDim, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
+ private static readonly IPen PosPen = new Pen(NotaPalette.TextSecondary, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
+ private static readonly IPen PosPenHot = new Pen(NotaPalette.Accent, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
private static readonly IPen HeadPen = new Pen(NotaPalette.AccentBright, 1.2);
- private static readonly IBrush SprayFill = NotaPalette.AccentSubtle;
+ private static readonly IBrush SprayFill = NotaPalette.Wash(NotaPalette.VizInk, 0x20);
private static readonly IBrush[] GrainInk =
{
NotaPalette.Wash(NotaPalette.TealBright, 0x55), NotaPalette.Wash(NotaPalette.TealBright, 0x99),
@@ -143,11 +144,11 @@ internal sealed class GrainWaveViz : Control
}
ctx.DrawLine(MidLine, new Point(1, cy), new Point(W - 1, cy));
- // Brass bars, one every 3 px, each the peak of its slice of the file.
+ // Neutral bars, one every 3 px, each the peak of its slice of the file.
int n = _peaks.Length / 2;
if (n > 0 && amp > 0)
{
- var bar = new Pen(NotaPalette.Accent, 1.4);
+ var bar = new Pen(NotaPalette.VizInk, 1.4);
int bars = Math.Max(1, (int)(w / 3));
for (int b = 0; b < bars; b++)
{
@@ -160,7 +161,7 @@ internal sealed class GrainWaveViz : Control
}
// The set read Position — where scanning centres and grains seed.
- if (_mode != 2) ctx.DrawLine(PosPen, new Point(px, 1), new Point(px, H - 1));
+ if (_mode != 2) ctx.DrawLine(_drag ? PosPenHot : PosPen, new Point(px, 1), new Point(px, H - 1));
// Each held voice's read head.
for (int i = 0; i < _headN && i < _heads.Length; i++)
diff --git a/src/managed/Nota.App/Controls/Inactive.cs b/src/managed/Nota.App/Controls/Inactive.cs
index 3368a9b9..6c1e5b4b 100644
--- a/src/managed/Nota.App/Controls/Inactive.cs
+++ b/src/managed/Nota.App/Controls/Inactive.cs
@@ -32,9 +32,12 @@ internal static class Inactive
foreach (var v in root.GetVisualDescendants().Prepend(root)) Visit(v, inactive);
}
+ // The accent and the neutral value ink both drop to the disabled tone: a bypassed card's
+ // resting values (VizInk since the Studio restyle) must not stay bright.
private static bool IsBrass(object? brush)
=> ReferenceEquals(brush, NotaPalette.Accent) || ReferenceEquals(brush, NotaPalette.AccentBright)
- || ReferenceEquals(brush, NotaPalette.AccentHover) || ReferenceEquals(brush, NotaPalette.BorderBrass);
+ || ReferenceEquals(brush, NotaPalette.AccentHover) || ReferenceEquals(brush, NotaPalette.BorderBrass)
+ || ReferenceEquals(brush, NotaPalette.VizInk);
private static void Visit(Visual v, bool inactive)
{
diff --git a/src/managed/Nota.App/Controls/KeyPicker.cs b/src/managed/Nota.App/Controls/KeyPicker.cs
index d2d9e8d2..10c9f621 100644
--- a/src/managed/Nota.App/Controls/KeyPicker.cs
+++ b/src/managed/Nota.App/Controls/KeyPicker.cs
@@ -35,7 +35,7 @@ internal static class KeyPicker
var panel = new StackPanel { Spacing = 6, Margin = new Thickness(2) };
foreach (var mode in new[] { KeyMode.Major, KeyMode.Minor })
{
- panel.Children.Add(new TextBlock { Text = mode == KeyMode.Major ? "MAJOR" : "MINOR", Classes = { "SectionLabel" } });
+ panel.Children.Add(new TextBlock { Text = mode == KeyMode.Major ? "Major" : "Minor", Classes = { "SectionLabel" } });
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 2 };
for (int t = 0; t < 12; t++)
{
diff --git a/src/managed/Nota.App/Controls/KeysViews.cs b/src/managed/Nota.App/Controls/KeysViews.cs
index 793bdb4b..5392ba88 100644
--- a/src/managed/Nota.App/Controls/KeysViews.cs
+++ b/src/managed/Nota.App/Controls/KeysViews.cs
@@ -3,14 +3,14 @@
//
// Detail · Devices — the Nota Keys graphs (instrument kind 16):
//
-// KeysPickupView the PICKUP transfer curve — the exact function the engine runs
+// KeysPickupView the Pickup transfer curve — the exact function the engine runs
// (KeysModel.PickupRaw) — with the tine's travel drawn over it, a dashed
// linear reference and the handle: drag X = Symmetry, Y = Distance. L adds
// the H1–H8 bars of what the curve does to a sine. For Clav it draws the
// string instead, with its two pickups lit by Pickup Position.
-// KeysTremView the tremolo: the left (brass) and right (teal) gains scrolling with the
+// KeysTremView the tremolo: the left (neutral ink) and right (teal) gains scrolling with the
// engine's LFO, a playhead and the pan dot it puts the sound at.
-// KeysVoiceGrid the voice pool: held notes in brass, pedal / release tails dim, free
+// KeysVoiceGrid the voice pool: sounding notes in accent, pedal / release tails dim, free
// slots dark, the cells past the voice limit darker still.
using System;
@@ -141,20 +141,20 @@ internal sealed class KeysPickupView : Control, IMidiLearnRegions
for (int i = 0; i <= 40; i++) { var p = Pt(-0.72 + 1.44 * i / 40.0); if (i == 0) g.BeginFigure(p, false); else g.LineTo(p); }
g.EndFigure(false);
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, NotaGraph.PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), curve);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.VizInk, NotaGraph.PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), curve);
ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.TealBright, 0x80), 4.5, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), travel);
// The handle: X = symmetry, Y = distance, with its crosshair.
double hx = cx + sym * sx, hy = r.Y + dist * r.Height;
- var dash = new Pen(NotaPalette.Wash(NotaPalette.Accent, 0xA0), 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
+ var dash = new Pen(_drag ? NotaPalette.Wash(NotaPalette.Accent, 0xA0) : NotaPalette.Wash(NotaPalette.VizInk, 0x60), 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
ctx.DrawLine(dash, new Point(hx, frame.Y + 1), new Point(hx, frame.Bottom - 1));
ctx.DrawLine(dash, new Point(frame.X + 1, hy), new Point(frame.Right - 1, hy));
- NotaGraph.Node(ctx, new Point(hx, hy), true);
+ NotaGraph.Node(ctx, new Point(hx, hy), _drag);
// Captions.
string read = $"sym {(sym >= 0 ? "+" : "−")}{Math.Round(Math.Abs(sym) * 100)}\u2009% · dist {Math.Round(dist * 100)}\u2009%";
- var title = Mono($"PICKUP · {KeysModel.ModelNames[model].ToUpperInvariant()}", NotaPalette.TextTertiary);
- var readout = Mono(read, NotaPalette.AccentBright);
+ var title = Mono($"Pickup · {KeysModel.ModelNames[model]}", NotaPalette.TextTertiary);
+ var readout = Mono(read, _drag ? NotaPalette.AccentBright : NotaPalette.TextPrimary);
if (Mini)
{
ctx.DrawText(title, new Point(6, 4));
@@ -164,7 +164,7 @@ internal sealed class KeysPickupView : Control, IMidiLearnRegions
ctx.DrawText(title, new Point(6, 4));
ctx.DrawText(readout, new Point(6, 15));
- // H1–H8 of the curve driven by a sine (brass even, teal odd, the fundamental neutral).
+ // H1–H8 of the curve driven by a sine (neutral ink even, teal odd, the fundamental dim).
var mags = KeysModel.Harmonics(sym, dist, model);
double bw = 6, gap = 3, ih = 34, iw = 8 * bw + 7 * gap + 10;
var inset = new Rect(frame.Right - iw - 8, frame.Bottom - ih - 6, iw, ih);
@@ -174,7 +174,7 @@ internal sealed class KeysPickupView : Control, IMidiLearnRegions
{
double db = 20 * Math.Log10(mags[k] / Math.Max(1e-9, mags[0]) + 1e-9);
double bh = Math.Max(1, (1 + db / 60) * (ih - 14));
- IBrush ink = k == 0 ? NotaPalette.TextSecondary : k % 2 == 1 ? NotaPalette.TealBright : NotaPalette.Accent;
+ IBrush ink = k == 0 ? NotaPalette.TextTertiary : k % 2 == 1 ? NotaPalette.TealBright : NotaPalette.VizInk;
double x = inset.X + 5 + k * (bw + gap);
ctx.DrawRectangle(ink, null, new Rect(x, inset.Bottom - 3 - bh, bw, bh));
}
@@ -199,7 +199,7 @@ internal sealed class KeysPickupView : Control, IMidiLearnRegions
g.EndFigure(false);
return geo;
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), Shape(1));
+ ctx.DrawGeometry(null, new Pen(NotaPalette.VizInk, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), Shape(1));
ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.TealBright, 0xB0), 1.2, lineJoin: PenLineJoin.Round), Shape(-1));
// Bridge / nut.
ctx.DrawRectangle(NotaPalette.TextSecondary, null, new Rect(x0 - 3, cy - 8, 3, 16));
@@ -213,10 +213,10 @@ internal sealed class KeysPickupView : Control, IMidiLearnRegions
var ft = Mono(label, lit ? NotaPalette.AccentBright : NotaPalette.TextAxis, 7);
ctx.DrawText(ft, new Point(X(t) - ft.Width / 2, rr.Bottom + 2));
}
- Pickup(0.2, "UP", pos != 2);
- Pickup(0.34, "LO", pos != 0);
- ctx.DrawText(Mono("STRING · 2 PICKUPS", NotaPalette.TextTertiary), new Point(6, 4));
- var read = Mono(KeysModel.PickupPositions[pos], NotaPalette.AccentBright);
+ Pickup(0.2, "Up", pos != 2);
+ Pickup(0.34, "Lo", pos != 0);
+ ctx.DrawText(Mono("String · 2 pickups", NotaPalette.TextTertiary), new Point(6, 4));
+ var read = Mono(KeysModel.PickupPositions[pos], NotaPalette.TextPrimary);
if (Mini) ctx.DrawText(read, new Point(frame.Right - 6 - read.Width, 4));
else ctx.DrawText(read, new Point(6, 15));
}
@@ -259,11 +259,11 @@ internal sealed class KeysTremView : Control
g.EndFigure(false);
return geo;
}
- var ink = on ? NotaPalette.Accent : NotaPalette.BorderStrong;
+ var ink = on ? NotaPalette.VizInk : NotaPalette.BorderStrong;
if (stereo) ctx.DrawGeometry(null, new Pen(on ? NotaPalette.Teal : NotaPalette.BorderStrong, NotaGraph.SecondaryWidth, lineJoin: PenLineJoin.Round), Line(-1));
ctx.DrawGeometry(null, new Pen(ink, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round), Line(1));
ctx.DrawLine(new Pen(NotaPalette.TextAxis, 1), new Point(w * 0.33, 2), new Point(w * 0.33, h - barH - 2));
- ctx.DrawText(NotaGraph.AxisText(stereo ? "L R" : "MONO"), new Point(6, 3));
+ ctx.DrawText(NotaGraph.AxisText(stereo ? "L R" : "mono"), new Point(6, 3));
// Where the sound sits: the pan dot (stereo) or the level (mono) at the playhead.
double s = Shape(2 * Math.PI * (0.33 * 2.25 + _phase)) * _get("tremdepth");
@@ -271,7 +271,7 @@ internal sealed class KeysTremView : Control
ctx.DrawRectangle(NotaPalette.BgSunken, NotaGraph.FramePen, new RoundedRect(bar, 3));
double pos = stereo && on ? 0.5 + s * 0.5 : 0.5;
double px = bar.X + pos * bar.Width;
- ctx.DrawEllipse(on ? NotaPalette.AccentBright : NotaPalette.TextAxis, null, new Point(px, bar.Y + bar.Height / 2), 3, 3);
+ ctx.DrawEllipse(on ? NotaPalette.VizInk : NotaPalette.TextAxis, null, new Point(px, bar.Y + bar.Height / 2), 3, 3);
}
}
}
@@ -299,7 +299,7 @@ internal sealed class KeysVoiceGrid : Control
int c = i % Cols, r = i / Cols;
IBrush ink = i >= _limit ? NotaPalette.BgSunken
: i < _held ? NotaPalette.Accent
- : i < _held + _tail ? NotaPalette.AccentDeep
+ : i < _held + _tail ? NotaPalette.TextTertiary
: NotaPalette.BorderDefault;
ctx.DrawRectangle(ink, null, new RoundedRect(new Rect(c * (cw + 1), r * 6, cw, 5), 1));
}
diff --git a/src/managed/Nota.App/Controls/Knob.cs b/src/managed/Nota.App/Controls/Knob.cs
index 2a292d0f..a8017928 100644
--- a/src/managed/Nota.App/Controls/Knob.cs
+++ b/src/managed/Nota.App/Controls/Knob.cs
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// A rotary knob for device / instrument parameters, drawn to the almanac: a 270° groove
-// in the well colour, the value arc over it, a raised cap and a Brass Light pointer —
+// A rotary knob for device / instrument parameters (the Studio dial): a 270° groove in the
+// well colour, the value arc over it — neutral ink at rest, the accent while live — a
+// raised cap on a seam and a primary-ink pointer —
// all laid out on a 52-unit grid (groove r 21 · stroke 5, cap r 14, pointer 2.4 wide
// reaching the cap's edge) and scaled to the knob's size. Drag vertically to change
// (up = increase; Ctrl/⌘/Shift = fine), double-click resets. Same public API as
@@ -24,20 +25,23 @@ namespace Nota.App;
public sealed class Knob : Control
{
- private static readonly IBrush Groove = NotaPalette.BgSunken; // Well
- private static readonly IBrush NeutralArc = NotaPalette.BorderStrong; // a knob off the audio path, or disabled
- private static readonly IBrush Brass = NotaPalette.Accent;
- private static readonly IBrush Cap = NotaPalette.Panel;
- private static readonly IBrush CapEdge = NotaPalette.BorderStrong;
- private static readonly IBrush CapEdgeOff = NotaPalette.BorderDefault;
- private static readonly IBrush PointerBrass = NotaPalette.AccentBright; // Brass Light
- private static readonly IBrush PointerNeutral = NotaPalette.TextStrong;
- private static readonly IBrush PointerOff = NotaPalette.TextTertiary;
+ // The dial: a raised face on a seam, a well-coloured track, the value arc in neutral
+ // ink at rest and in the accent only while the knob is live (under the pointer or in
+ // the hand) — a resting value is never orange.
+ private static readonly IBrush Groove = NotaPalette.BgSunken; // the track: well
+ private static readonly IBrush NeutralArc = NotaPalette.Rule; // a knob off the audio path, or disabled
+ private static readonly IBrush RestArc = NotaPalette.VizInk; // a value at rest
+ private static readonly IBrush LiveArc = NotaPalette.Accent; // the value while it is being set
+ private static readonly IBrush Cap = NotaPalette.SurfaceRaised;
+ private static readonly IBrush CapEdge = NotaPalette.Seam;
+ private static readonly IBrush CapEdgeOff = NotaPalette.Seam;
+ private static readonly IBrush PointerNeutral = NotaPalette.TextPrimary;
+ private static readonly IBrush PointerOff = NotaPalette.TextDisabled;
private const double StartDeg = 135.0; // down-left
private const double SweepDeg = 270.0; // clockwise to down-right
- // The almanac draws the knob in a 52-unit box; everything scales from it.
+ // The knob is drawn in a 52-unit box; everything scales from it.
private const double Grid = 52, GrooveR = 21, GrooveStroke = 5, CapR = 14, PointerW = 2.4, PointerLen = 12;
public const double SizeSecondary = NotaSize.KnobSecondary, SizeRegular = NotaSize.KnobRegular, SizeMain = NotaSize.KnobMain, SizeInline = NotaSize.KnobInline;
@@ -61,7 +65,8 @@ public sealed class Knob : Control
public bool Inline { get => _inline; init { _inline = value; CoerceValue(WidthProperty); CoerceValue(HeightProperty); } }
private readonly bool _inline;
- /// <summary>Brass value arc instead of neutral grey.</summary>
+ /// <summary>On the audio path: its value arc is drawn in neutral ink (and the accent while
+ /// live) rather than the quieter rule grey of an off-path knob.</summary>
public bool Accent { get; init; }
/// <summary>Overrides the value-arc colour (e.g. teal for modulation knobs); may change live
@@ -160,8 +165,15 @@ public sealed class Knob : Control
if (_drag) GestureEnd?.Invoke();
_drag = false;
e.Pointer.Capture(null);
+ InvalidateVisual();
}
+ // Under the pointer the knob is live: its arc takes the accent (120ms is the button
+ // fade; a dial repaints on the spot, which reads the same at this size).
+ private bool _hover;
+ protected override void OnPointerEntered(PointerEventArgs e) { base.OnPointerEntered(e); _hover = true; InvalidateVisual(); }
+ protected override void OnPointerExited(PointerEventArgs e) { base.OnPointerExited(e); _hover = false; InvalidateVisual(); }
+
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
{
base.OnPropertyChanged(change);
@@ -179,16 +191,17 @@ public sealed class Knob : Control
double frac = _max > 0 ? _value / _max : 0;
bool on = IsEffectivelyEnabled && !_dim;
- var arcBrush = !on ? NeutralArc : ArcColor ?? (Accent ? Brass : NeutralArc);
- var pointer = !on ? PointerOff : ArcColor is { } c ? PointerFor(c) : Accent ? PointerBrass : PointerNeutral;
+ bool live = on && (_drag || _hover);
+ var arcBrush = !on ? NeutralArc : ArcColor ?? (live ? LiveArc : Accent ? RestArc : NeutralArc);
+ var pointer = !on ? PointerOff : ArcColor is { } c ? PointerFor(c) : PointerNeutral;
- // Groove, then the value arc over it — round caps, as in the almanac.
+ // Groove, then the value arc over it — round caps.
double r = GrooveR * k, sw = GrooveStroke * k;
ctx.DrawGeometry(null, new Pen(Groove, sw, lineCap: PenLineCap.Round), Arc(cx, cy, r, 0, 1));
if (frac > 0.001)
ctx.DrawGeometry(null, new Pen(arcBrush, sw, lineCap: PenLineCap.Round), Arc(cx, cy, r, 0, frac));
- // Raised cap with a 1px edge.
+ // Raised face with a 1px seam edge.
ctx.DrawEllipse(Cap, new Pen(on ? CapEdge : CapEdgeOff, 1), new Point(cx, cy), CapR * k, CapR * k);
// Pointer from the centre to the cap's edge.
diff --git a/src/managed/Nota.App/Controls/LengthGateViz.cs b/src/managed/Nota.App/Controls/LengthGateViz.cs
index 71f5adc3..fee6f69b 100644
--- a/src/managed/Nota.App/Controls/LengthGateViz.cs
+++ b/src/managed/Nota.App/Controls/LengthGateViz.cs
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Nota Length GATE window (almanac mockups 1a / 1b): one bar of five demo notes of different
+// Nota Length gate window (almanac mockups 1a / 1b): one bar of five demo notes of different
// pitch and velocity, and what the device does to each. Per row: the input note as an
-// outline, the output note as a brass fill, and a dark band behind it — the range Random
+// outline, the output note as a neutral fill, and a dim band behind it — the range Random
// spreads that note's length over. The window runs 1¼ bars; the part after the bar line is
// shaded (Clip length limit cuts there). A playhead sweeps the bar; the note under it lights
-// Brass Light, and Random re-rolls each pass. The full view adds note labels, the output
+// in accent, and Random re-rolls each pass. The full view adds note labels, the output
// length tags and a ms ruler; the mini view is the window alone.
//
// The model mirrors MidiNoteLength::len/schedule so the picture is what the device plays.
@@ -27,8 +27,8 @@ internal sealed class LengthGateViz : Control
private static readonly IBrush BeatLine = NotaPalette.GraphBorder;
private static readonly IBrush HalfLine = NotaPalette.SurfaceCard;
private static readonly IBrush PastBar = NotaPalette.Wash(NotaPalette.SurfaceAbyss, 0xA0); // like the piano roll past the clip end
- private static readonly IBrush Band = NotaPalette.Ink("#2A2317");
- private static readonly IBrush Fill = NotaPalette.Ink("#B8862E");
+ private static readonly IBrush Band = NotaPalette.Wash(NotaPalette.VizInk, 0x20);
+ private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.VizInk, 0xB0);
private static readonly IBrush FillLit = NotaPalette.AccentBright;
private static readonly IBrush FillOff = NotaPalette.BorderStrong;
private static readonly IBrush Outline = NotaPalette.TextMuted;
diff --git a/src/managed/Nota.App/Controls/LensViews.cs b/src/managed/Nota.App/Controls/LensViews.cs
index 2013bc6a..468e76d1 100644
--- a/src/managed/Nota.App/Controls/LensViews.cs
+++ b/src/managed/Nota.App/Controls/LensViews.cs
@@ -111,9 +111,9 @@ internal static class LensInk
{
public static IBrush Ground => NotaPalette.BgSunken;
public static IPen Frame => NotaGraph.FramePen;
- public static IBrush Trace => NotaPalette.Accent;
- public static IBrush TraceLit => NotaPalette.AccentBright;
- public static IBrush Fill => NotaPalette.Wash(NotaPalette.Accent, 0x22);
+ public static IBrush Trace => NotaPalette.VizInk; // the signal at rest: neutral ink
+ public static IBrush TraceLit => NotaPalette.AccentBright; // live state only: the hover cursor, a locked trigger
+ public static IBrush Fill => NotaPalette.Wash(NotaPalette.VizInk, 0x22);
public static IBrush Hold => NotaPalette.Teal;
public static IBrush Axis => NotaPalette.TextAxis;
public static IBrush Label => NotaPalette.TextTertiary;
@@ -121,12 +121,12 @@ internal static class LensInk
public static IPen GridStrong => new Pen(NotaPalette.WellGrid, 1);
public static IPen Zero => new Pen(NotaPalette.GridBar, 1);
- /// <summary>The graph's own title: a caps eyebrow, then its value in mono so a unit
- /// keeps its case ("SCOPE · 2.00 ms/div", never "2.00 MS/DIV").</summary>
+ /// <summary>The graph's own title in sentence case, then its value in mono so a unit
+ /// keeps its case ("Scope · 2.00 ms/div").</summary>
public static void Title(DrawingContext ctx, string caps, string value, double x = 6, double y = 4)
{
- var head = new FormattedText(caps.ToUpperInvariant(), CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
- NotaFonts.SansBold, NotaGraph.TitleSize, Label);
+ var head = new FormattedText(NotaText.Label(caps), CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
+ NotaFonts.SansSemiBold, NotaGraph.TitleSize, Label);
ctx.DrawText(head, new Point(x, y));
if (value.Length > 0) Text(ctx, value, x + head.Width + 5, y, Axis, 8);
}
@@ -145,11 +145,11 @@ internal static class LensInk
public static void Text(DrawingContext ctx, string s, double x, double y, IBrush ink, double size = 7, bool mono = true)
=> ctx.DrawText(new FormattedText(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
- mono ? NotaFonts.Mono : NotaFonts.SansBold, size, ink), new Point(x, y));
+ mono ? NotaFonts.Mono : NotaFonts.SansMedium, size, ink), new Point(x, y));
public static double TextW(string s, double size = 7, bool mono = true)
=> new FormattedText(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
- mono ? NotaFonts.Mono : NotaFonts.SansBold, size, NotaPalette.TextPrimary).Width;
+ mono ? NotaFonts.Mono : NotaFonts.SansMedium, size, NotaPalette.TextPrimary).Width;
}
// ===========================================================================
@@ -385,7 +385,7 @@ internal sealed class LensScopeView : Control
{
double k = Math.Clamp(1 - age / Math.Max(0.05, _ghostLife), 0, 1);
if (k <= 0.02) continue;
- ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.Accent, (byte)(k * 90)), 1.2), Path(pts, w, h));
+ ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.VizInk, (byte)(k * 90)), 1.2), Path(pts, w, h));
}
ctx.DrawGeometry(null, new Pen(LensInk.Trace, 1.1 + 1.0 * _d.Bright), Path(_d.Trace, w, h));
@@ -394,7 +394,7 @@ internal sealed class LensScopeView : Control
ctx.DrawLine(new Pen(NotaPalette.Wash(NotaPalette.Teal, 0xC0), 1, new DashStyle(new double[] { 3, 4 }, 0)), new Point(0, ty), new Point(w, ty));
ctx.DrawRectangle(LensInk.Hold, null, new Rect(0, ty - 3.5, 5, 7));
double tx = w * 0.25;
- ctx.DrawLine(new Pen(NotaPalette.Wash(NotaPalette.Accent, 0x80), 1), new Point(tx, 0), new Point(tx, h));
+ ctx.DrawLine(new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0x80), 1), new Point(tx, 0), new Point(tx, h));
ctx.DrawRectangle(LensInk.Trace, null, new Rect(tx - 3.5, 0, 7, 5));
if (_d.CursorsOn)
@@ -411,7 +411,7 @@ internal sealed class LensScopeView : Control
}
LensInk.Title(ctx, "SCOPE", NotaNum.F($"{Ms(_d.TimeDivSec)}/div · {_d.VoltDiv:0.00}/div"));
- string trig = _d.Held ? "HELD" : NotaNum.F($"trig {(_d.TrigRising ? "↑" : "↓")} {_d.TrigLevel:0.00}{(_d.TrigOk ? "" : " ·free")}");
+ string trig = _d.Held ? "held" : NotaNum.F($"trig {(_d.TrigRising ? "↑" : "↓")} {_d.TrigLevel:0.00}{(_d.TrigOk ? "" : " ·free")}");
LensInk.Text(ctx, trig, w - LensInk.TextW(trig) - 4, 3, _d.TrigOk || _d.Held ? LensInk.TraceLit : LensInk.Axis);
LensInk.Text(ctx, "0", 4, h - 10, LensInk.Axis);
string right = Ms(_d.TimeDivSec * Cols);
@@ -474,14 +474,15 @@ internal sealed class LensWaterfallView : Control
}
protected override void OnPointerExited(PointerEventArgs e) { _cursorFrac = -1; CursorMoved?.Invoke(); InvalidateVisual(); }
- // Well → brass ramp: the same warmth as every other graph, never a rainbow.
+ // Well → neutral ink ramp: energy reads as brightness, like every other resting value —
+ // never a rainbow, and no accent (that is kept for live or chosen state).
private void BuildRamp()
{
- int seed = NotaPalette.Accent.Color.GetHashCode() ^ NotaPalette.BgSunken.Color.GetHashCode();
+ int seed = NotaPalette.VizInk.Color.GetHashCode() ^ NotaPalette.BgSunken.Color.GetHashCode();
if (seed == _rampSeed) return;
_rampSeed = seed;
- Color a = NotaPalette.BgSunken.Color, b = NotaPalette.AccentDeep.Color,
- c = NotaPalette.Accent.Color, e = NotaPalette.AccentPale.Color;
+ Color a = NotaPalette.BgSunken.Color, b = NotaPalette.TextTertiary.Color,
+ c = NotaPalette.VizInk.Color, e = NotaPalette.TextHeading.Color;
for (int i = 0; i < 256; i++)
{
double t = i / 255.0;
@@ -562,10 +563,10 @@ internal sealed class LensWaterfallView : Control
}
// ===========================================================================
-// SCALE rail slider
+// Scale rail slider
// ===========================================================================
-/// <summary>The thin vertical slider of the Lens SCALE rail: a sunken groove with a
-/// filled column and a bright cap. Drag or wheel; double-click resets.</summary>
+/// <summary>The thin vertical slider of the Lens Scale rail: a sunken groove with a
+/// filled column and a bright cap (accent while dragged). Drag or wheel; double-click resets.</summary>
internal sealed class LensVSlider : Control
{
private readonly SolidColorBrush _ink;
@@ -625,6 +626,6 @@ internal sealed class LensVSlider : Control
ctx.DrawRectangle(NotaPalette.Wash(_ink, 0x4C), null,
new RoundedRect(new Rect(1.5, h - 2 - fillH, w - 3, fillH), (w - 3) / 2));
double capY = Math.Clamp(h - 2 - fillH, 2, h - 4);
- ctx.DrawRectangle(_ink, null, new RoundedRect(new Rect(1, capY - 1, w - 2, 2.5), 1.5));
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : _ink, null, new RoundedRect(new Rect(1, capY - 1, w - 2, 2.5), 1.5));
}
}
diff --git a/src/managed/Nota.App/Controls/LevelViews.cs b/src/managed/Nota.App/Controls/LevelViews.cs
index 4fe2d18c..1434ec92 100644
--- a/src/managed/Nota.App/Controls/LevelViews.cs
+++ b/src/managed/Nota.App/Controls/LevelViews.cs
@@ -2,12 +2,12 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Level views (device kind 18) — the pictures on the Level card:
-// LvHistoryView — the last 8 s of loudness: the input (ink), the output (brass) and the target
+// LvHistoryView — the last 8 s of loudness: the input (dim ink), the output (neutral ink) and the target
// (dashed teal, with a ±1 LU band) that moves with a reference track. A dot
// marks the output now. Drag up / down for Target (not while a reference
// drives it); double-click resets it.
// LvGainFader — the correction as a vertical fader around 0 dB (±Max Gain): teal while Auto
-// rides it, a brass fill with a draggable cap in Manual.
+// rides it, a neutral fill with a draggable cap in Manual (accent while dragged).
// LvMeter — a 4px bar with an optional teal marker (the target, the ceiling, 0 dB).
// LvLegend — the graph legend drawn with NotaGraph's samples, for the panel bar.
// LevelMath holds the telemetry layout (AutoGain.h) and the unit mappings.
@@ -136,8 +136,8 @@ internal sealed class LvHistoryView : Control
// Target, dashed teal (steps with a reference).
var tp = new Pen(NotaPalette.TealBright, 1, new DashStyle(new double[] { 4, 3 }, 0));
Trace(ctx, _tar, Math.Max(0, first), tp, allowSilent: true);
- // Output, brass.
- Trace(ctx, _out, first, NotaGraph.SecondaryPen(_on ? NotaPalette.Accent : NotaPalette.TextTertiary, NotaGraph.PrimaryWidth));
+ // Output, neutral ink.
+ Trace(ctx, _out, first, NotaGraph.SecondaryPen(_on ? NotaPalette.VizInk : NotaPalette.TextTertiary, NotaGraph.PrimaryWidth));
NotaGraph.Title(ctx, frame, "Loudness");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _lock, _locked ? NotaPalette.TealBright : NotaPalette.TextTertiary);
@@ -158,7 +158,7 @@ internal sealed class LvHistoryView : Control
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "now");
float oNow = _out[(_w + N - 1) % N];
- if (_on && _count > 0 && oNow > -119) NotaGraph.Node(ctx, new Point(w - 4, Y(oNow)), true, NotaPalette.AccentBright);
+ if (_on && _count > 0 && oNow > -119) NotaGraph.Node(ctx, new Point(w - 4, Y(oNow)), false, NotaPalette.VizInk);
void Trace(DrawingContext dc, float[] src, int from, IPen pen, bool allowSilent = false)
{
@@ -236,7 +236,7 @@ internal sealed class LvGainFader : Control
double Y(double db) => top + (0.5 - Math.Clamp(db / _max, -1, 1) / 2) * (bot - top);
ctx.FillRectangle(NotaPalette.BgSunken, new Rect(cx - 2, 0, 4, h), 2);
ctx.FillRectangle(NotaPalette.BorderStrong, new Rect(0, Math.Round(Y(0)), w, 1));
- IBrush fill = !_on ? NotaPalette.BorderStrong : _manual ? NotaPalette.Accent : NotaPalette.Teal;
+ IBrush fill = !_on ? NotaPalette.BorderStrong : !_manual ? NotaPalette.Teal : _drag ? NotaPalette.Accent : NotaPalette.VizInk;
double y0 = Y(0), y1 = Y(_db);
ctx.FillRectangle(fill, new Rect(cx - 2, Math.Min(y0, y1), 4, Math.Abs(y1 - y0)), 1);
IBrush cap = !_on ? NotaPalette.TextDisabled : _manual ? NotaPalette.TextPrimary : NotaPalette.TealBright;
@@ -247,7 +247,7 @@ internal sealed class LvGainFader : Control
internal sealed class LvMeter : Control
{
private double _l, _r, _mark = double.NaN;
- private IBrush _ink = NotaPalette.Accent;
+ private IBrush _ink = NotaPalette.VizInk;
public LvMeter() { Height = 4; }
@@ -278,5 +278,5 @@ internal sealed class LvLegend : Control
public override void Render(DrawingContext ctx)
=> NotaGraph.Legend(ctx, Bounds.Width, 0, ("input", NotaPalette.TextTertiary, NotaGraph.Mark.Line),
- ("output", NotaPalette.AccentBright, NotaGraph.Mark.Line), ("target", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
+ ("output", NotaPalette.VizInk, NotaGraph.Mark.Line), ("target", NotaPalette.TealBright, NotaGraph.Mark.Dashed));
}
diff --git a/src/managed/Nota.App/Controls/MiniFader.cs b/src/managed/Nota.App/Controls/MiniFader.cs
index c1d009c8..45a766b0 100644
--- a/src/managed/Nota.App/Controls/MiniFader.cs
+++ b/src/managed/Nota.App/Controls/MiniFader.cs
@@ -16,12 +16,14 @@ namespace Nota.App;
public sealed class MiniFader : Control
{
private static readonly IBrush Track = NotaPalette.BgSunken; // Brush.BgSunken
- private static readonly IBrush Fill = NotaPalette.BorderStrong; // Brush.BorderStrong
- private static readonly IBrush Cap = NotaPalette.TextSecondary; // Brush.TextSecondary
- private static readonly IBrush FillAccent = NotaPalette.Accent; // Brush.Accent (brass)
- private static readonly IBrush CapAccent = NotaPalette.AccentBright; // Brush.AccentBright
-
- /// <summary>Brass fill + cap instead of the neutral grey (used by the synth editor).</summary>
+ private static readonly IBrush Fill = NotaPalette.Rule; // off the audio path
+ private static readonly IBrush Cap = NotaPalette.TextSecondary;
+ private static readonly IBrush FillAccent = NotaPalette.VizInk; // on the audio path, at rest
+ private static readonly IBrush CapAccent = NotaPalette.TextPrimary;
+ private static readonly IBrush FillLive = NotaPalette.Accent; // under the pointer or in the hand
+ private static readonly IBrush CapLive = NotaPalette.AccentBright;
+
+ /// <summary>On the audio path: neutral ink fill + cap instead of the quieter rule grey.</summary>
public bool Accent { get; init; }
/// <summary>Double-click target value, or negative to disable reset.</summary>
public double Default { get; init; } = -1;
@@ -83,6 +85,12 @@ public sealed class MiniFader : Control
SetValue(_value + dy / (fine ? 1400.0 : 140.0) * _max);
}
+ // Under the pointer (or in the hand) the control is live and takes the accent; at rest
+ // its value is neutral ink — the accent marks a knob or fader only while focused or dragged.
+ private bool _hover;
+ protected override void OnPointerEntered(PointerEventArgs e) { base.OnPointerEntered(e); _hover = true; InvalidateVisual(); }
+ protected override void OnPointerExited(PointerEventArgs e) { base.OnPointerExited(e); _hover = false; InvalidateVisual(); }
+
protected override void OnPointerReleased(PointerReleasedEventArgs e)
{
if (_drag) GestureEnd?.Invoke();
@@ -109,8 +117,9 @@ public sealed class MiniFader : Control
// Almanac slider: 3px well track, fill, 6×7 handle (SliderTrack draws the same).
ctx.DrawRectangle(Track, null, new Rect(0, cy - SliderTrack.TrackH / 2, w, SliderTrack.TrackH), NotaRadius.ClipValue, NotaRadius.ClipValue);
- if (fx > 0) ctx.DrawRectangle(Accent ? FillAccent : Fill, null, new Rect(0, cy - SliderTrack.TrackH / 2, fx, SliderTrack.TrackH), NotaRadius.ClipValue, NotaRadius.ClipValue);
+ bool live = _drag || _hover;
+ if (fx > 0) ctx.DrawRectangle(live ? FillLive : Accent ? FillAccent : Fill, null, new Rect(0, cy - SliderTrack.TrackH / 2, fx, SliderTrack.TrackH), NotaRadius.ClipValue, NotaRadius.ClipValue);
double hw = SliderTrack.HandleW, hh = SliderTrack.HandleH;
- ctx.DrawRectangle(Accent ? CapAccent : Cap, null, new Rect(Math.Clamp(fx - hw / 2, 0, w - hw), cy - hh / 2, hw, hh), NotaRadius.ClipValue, NotaRadius.ClipValue);
+ ctx.DrawRectangle(live ? CapLive : Accent ? CapAccent : Cap, null, new Rect(Math.Clamp(fx - hw / 2, 0, w - hw), cy - hh / 2, hw, hh), NotaRadius.ClipValue, NotaRadius.ClipValue);
}
}
diff --git a/src/managed/Nota.App/Controls/MixBar.cs b/src/managed/Nota.App/Controls/MixBar.cs
index b52ba184..27588b03 100644
--- a/src/managed/Nota.App/Controls/MixBar.cs
+++ b/src/managed/Nota.App/Controls/MixBar.cs
@@ -8,22 +8,22 @@ using Nota.Application;
namespace Nota.App;
- // The "MIX SUM" bar under Volt's NOISE panel: Osc1 / Osc2 / Noise levels as
- // proportional amber segments (bright → faint).
+ // The mix-sum bar under Volt's noise panel: Osc1 / Osc2 / Noise levels as
+ // proportional neutral segments (bright → faint) — a reading, not a live control.
internal sealed class MixBar : Control
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private readonly IAudioEngine _e; private readonly int _t; private readonly int[] _ix;
- private static readonly IBrush S0 = NotaPalette.Accent;
- private static readonly IBrush S1 = NotaPalette.Wash(NotaPalette.Accent, 0x8C);
- private static readonly IBrush S2 = NotaPalette.Wash(NotaPalette.Accent, 0x47);
+ private static readonly IBrush S0 = NotaPalette.VizInk;
+ private static readonly IBrush S1 = NotaPalette.Wash(NotaPalette.VizInk, 0x8C);
+ private static readonly IBrush S2 = NotaPalette.Wash(NotaPalette.VizInk, 0x47);
public MixBar(IAudioEngine e, int t, int[] ix) { _e = e; _t = t; _ix = ix; Height = 6; }
public void Refresh() => InvalidateVisual();
private float V(int k) => _ix[k] >= 0 ? _e.PluginParamGet(_t, -1, _ix[k]) : 0f;
public override void Render(DrawingContext ctx)
{
double w = Bounds.Width, h = Bounds.Height;
- ctx.DrawRectangle(Sunken, null, new Rect(0, 0, w, h), 3, 3);
+ ctx.DrawRectangle(Sunken, null, new Rect(0, 0, w, h), NotaRadius.ControlValue, NotaRadius.ControlValue);
float a = V(0), b = V(1), c = V(2), sum = a + b + c;
if (sum <= 1e-4f) return;
var cols = new[] { S0, S1, S2 }; var v = new[] { a, b, c };
diff --git a/src/managed/Nota.App/Controls/MonolithViews.cs b/src/managed/Nota.App/Controls/MonolithViews.cs
index df3d67cc..6d6da0b7 100644
--- a/src/managed/Nota.App/Controls/MonolithViews.cs
+++ b/src/managed/Nota.App/Controls/MonolithViews.cs
@@ -69,11 +69,10 @@ internal sealed class MonolithWaveIcon : Control
// roll-off. Draggable — X sets cutoff, Y sets emphasis (via the Changed callback).
internal sealed class MonolithFilterCurve : Control
{
- private static readonly IBrush Amber = NotaPalette.Accent;
- private static readonly IBrush AmberLit = NotaPalette.AccentBright;
+ private static readonly IBrush Ink = NotaPalette.VizInk; // the curve at rest: neutral ink
private static readonly IBrush Inset = NotaPalette.BgSunken;
private static readonly IBrush Grid = NotaGraph.Grid;
- private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.Accent, 0x1E);
+ private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.VizInk, 0x1E);
private static readonly Typeface Mono = NotaFonts.Mono;
private double _cut = 0.5, _reso;
private bool _drag;
@@ -132,17 +131,17 @@ internal sealed class MonolithFilterCurve : Control
for (double x = 0; x <= w; x += 2) { var p = new Point(x, Y(x, w, h)); lc.LineTo(p); fc.LineTo(p); }
fc.LineTo(new Point(w, h));
}
- ctx.DrawGeometry(null, new Pen(Amber, NotaGraph.PrimaryWidth), line);
+ ctx.DrawGeometry(null, new Pen(Ink, NotaGraph.PrimaryWidth), line);
// freq · Q readout (top-right)
double hz = 16 * Math.Pow(1250, _cut), q = _reso * 10;
string txt = (hz >= 1000 ? $"{hz / 1000:0.0}\u2009k" : $"{hz:0}\u2009Hz") + $" · Q {q:0.0}";
- var ft = new FormattedText(txt, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 8, AmberLit);
+ var ft = new FormattedText(txt, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 8, _drag ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
ctx.DrawText(ft, new Point(w - ft.Width - 4, 3));
// cutoff handle (filled, dark ring) at the resonance peak
double hx = Math.Clamp(_cut * w, 4, w - 4), hy = Math.Clamp(Y(_cut * w, w, h), 4, h - 4);
- ctx.DrawEllipse(AmberLit, new Pen(Inset, 2), new Point(hx, hy), 4, 4);
+ ctx.DrawEllipse(_drag ? NotaPalette.Accent : Ink, new Pen(Inset, 2), new Point(hx, hy), 4, 4);
}
}
@@ -150,7 +149,7 @@ internal sealed class MonolithFilterCurve : Control
internal sealed class MonolithEnvCurve : Control
{
private double _a, _d, _s = 0.8;
- public IBrush Accent { get; set; } = NotaPalette.Accent;
+ public IBrush Accent { get; set; } = NotaPalette.VizInk; // the curve's ink (neutral at rest)
public void Set(double a, double d, double s) { _a = a; _d = d; _s = s; }
diff --git a/src/managed/Nota.App/Controls/NotaGraph.cs b/src/managed/Nota.App/Controls/NotaGraph.cs
index 4b33fb70..7ebc8635 100644
--- a/src/managed/Nota.App/Controls/NotaGraph.cs
+++ b/src/managed/Nota.App/Controls/NotaGraph.cs
@@ -1,18 +1,18 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// The graph window every visualiser lives in (almanac § Visualisations). One window, one
-// set of rules, so forty devices read as one instrument:
+// The graph window every visualiser lives in (one recessed display per device).
+// One window, one set of rules, so forty devices read as one instrument:
//
-// ground Well · 1px Hairline frame · radius 4 · grid lines in the Grid colour
-// axis labels mono 7–8 in Ink 7, in the corners — never full axes with ticks
-// a title in caps 8 at the top-left, a legend inside the window with values
-// the primary curve 1.8px brass, secondary curves 1.2–1.6px in their chroma
-// nodes 7px with a 2px ground-coloured ring; the active one brass, the rest Ink 3
+// ground Well · 1px rule frame · radius 3 · grid lines in the viz-grid colour
+// axis labels mono 7.5 in the faint ink, in the corners — never full axes with ticks
+// a title (sentence case, 8) at the top-left, a legend inside the window with values
+// the primary curve 1.8px in neutral viz ink, secondary curves 1.2–1.6px in their chroma
+// nodes 7px with a 2px ground-coloured ring; the active one the accent, the rest secondary
// no fills under curves, no gradients
//
// Chromas are assigned in a fixed order when a graph carries several sources:
-// brass (primary) · teal · rose · steel. They never mean state.
+// viz ink (primary) · teal · rose · blue. They never mean state — the accent alone does.
using System.Globalization;
using Avalonia;
@@ -22,42 +22,42 @@ namespace Nota.App;
internal static class NotaGraph
{
- public const double Radius = NotaRadius.ControlValue; // 4
+ public const double Radius = NotaRadius.ControlValue; // 3
public const double PrimaryWidth = 1.8, SecondaryWidth = 1.4;
public const double NodeD = 7, NodeRing = 2;
- public const double AxisSize = 7, TitleSize = 8;
+ public const double AxisSize = 7.5, TitleSize = 8;
public static IBrush Ground => NotaPalette.BgSunken;
public static IBrush Frame => NotaPalette.GraphBorder;
- public static IBrush Grid => NotaPalette.GridBeat;
+ public static IBrush Grid => NotaPalette.VizGrid;
public static IBrush AxisInk => NotaPalette.TextAxis;
- public static IBrush TitleInk => NotaPalette.TextTertiary;
+ public static IBrush TitleInk => NotaPalette.TextMuted;
- /// <summary>The chroma for the n-th source in a graph: brass, teal, rose, steel.</summary>
+ /// <summary>The chroma for the n-th source in a graph: viz ink, teal, rose, blue.</summary>
public static IBrush Chroma(int n) => (n % 4) switch
{
- 0 => NotaPalette.Accent,
+ 0 => NotaPalette.VizInk,
1 => NotaPalette.Teal,
2 => NotaPalette.Rose,
_ => NotaPalette.Steel,
};
- public static readonly IPen GridPen = new Pen(NotaPalette.GridBeat, 1);
+ public static readonly IPen GridPen = new Pen(NotaPalette.VizGrid, 1);
public static readonly IPen FramePen = new Pen(NotaPalette.GraphBorder, 1);
- public static readonly IPen PrimaryPen = new Pen(NotaPalette.Accent, PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ public static readonly IPen PrimaryPen = new Pen(NotaPalette.VizInk, PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
/// <summary>A secondary curve in its chroma.</summary>
public static IPen SecondaryPen(IBrush chroma, double width = SecondaryWidth)
=> new Pen(chroma, width, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
- /// <summary>The window: well ground, hairline frame, radius 4.</summary>
+ /// <summary>The window: well ground, rule frame, radius 3.</summary>
public static void Window(DrawingContext ctx, Rect r)
{
var inner = r.Deflate(0.5);
ctx.DrawRectangle(Ground, FramePen, new RoundedRect(inner, Radius));
}
- /// <summary>An axis label in mono 7, Ink 7.</summary>
+ /// <summary>An axis label in mono 7.5, faint ink.</summary>
public static FormattedText AxisText(string text, IBrush? ink = null, double size = AxisSize)
=> new(text, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.Mono, size, ink ?? AxisInk);
@@ -73,11 +73,11 @@ internal static class NotaGraph
ctx.DrawText(ft, new Point(x, y));
}
- /// <summary>The graph title: caps 8, top-left, inside the window.</summary>
+ /// <summary>The graph title: sentence case 8, top-left, inside the window.</summary>
public static void Title(DrawingContext ctx, Rect r, string title)
{
- var ft = new FormattedText(title.ToUpperInvariant(), CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
- NotaFonts.SansBold, TitleSize, TitleInk) { };
+ var ft = new FormattedText(NotaText.Label(title), CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
+ NotaFonts.SansMedium, TitleSize, TitleInk) { };
ctx.DrawText(ft, new Point(r.X + 6, r.Y + 4));
}
@@ -114,11 +114,11 @@ internal static class NotaGraph
}
}
- /// <summary>A legend row drawn inside the window: a swatch, a caps name and its value.</summary>
+ /// <summary>A legend row drawn inside the window: a swatch, a name and its value.</summary>
public static double LegendRow(DrawingContext ctx, Point at, IBrush swatch, string name, string value)
{
ctx.DrawRectangle(swatch, null, new RoundedRect(new Rect(at.X, at.Y + 3, 8, 2), 1));
- var n = new FormattedText(name.ToUpperInvariant(), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansBold, 7, TitleInk);
+ var n = new FormattedText(NotaText.Label(name), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, NotaFonts.SansMedium, 7.5, TitleInk);
var v = AxisText(value, NotaPalette.TextPrimary, 8);
ctx.DrawText(n, new Point(at.X + 12, at.Y));
ctx.DrawText(v, new Point(at.X + 12 + n.Width + 5, at.Y - 0.5));
diff --git a/src/managed/Nota.App/Controls/OperatorAlgoViz.cs b/src/managed/Nota.App/Controls/OperatorAlgoViz.cs
index 8391c4c2..261d1b64 100644
--- a/src/managed/Nota.App/Controls/OperatorAlgoViz.cs
+++ b/src/managed/Nota.App/Controls/OperatorAlgoViz.cs
@@ -7,7 +7,8 @@
// • OperatorAlgoMini — a small clickable 4-box sketch of one algorithm (the picker cell).
// • OperatorRoutingViz — the full-width routing diagram with real connection lines and
// drag-an-operator-onto-another to re-route (snaps to a matching algo).
-// Carriers (reach the output) are brass; modulators are teal — Nota's audio/modulation code.
+// Carriers (reach the output) are neutral ink; modulators are teal — Nota's audio/modulation code.
+// Accent marks only the chosen algorithm and the operator being dragged.
using System;
using System.Globalization;
@@ -79,10 +80,12 @@ internal sealed class OperatorAlgoMini : Control
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static readonly IBrush Brass = NotaPalette.Accent;
+ private static readonly IBrush Accent = NotaPalette.Accent;
+ private static readonly IBrush Ink = NotaPalette.VizInk;
private static readonly IBrush Teal = NotaPalette.Teal;
private static readonly IBrush AccentBright = NotaPalette.AccentBright;
private static readonly IBrush AccentSubtle = NotaPalette.AccentSubtle;
+ private static readonly IBrush InkSubtle = NotaPalette.Wash(NotaPalette.VizInk, 0x30);
private static readonly IBrush TextTertiary = NotaPalette.TextTertiary;
private static readonly Typeface Mono = NotaFonts.Mono;
@@ -102,7 +105,7 @@ internal sealed class OperatorAlgoMini : Control
{
double w = Bounds.Width, h = Bounds.Height;
if (w <= 0 || h <= 0) return;
- ctx.DrawRectangle(_active ? AccentSubtle : Sunken, new Pen(_active ? Brass : BorderDef, 1), new Rect(0, 0, w, h), 4, 4);
+ ctx.DrawRectangle(_active ? AccentSubtle : Sunken, new Pen(_active ? Accent : BorderDef, 1), new Rect(0, 0, w, h), NotaRadius.ControlValue, NotaRadius.ControlValue);
var num = new FormattedText((_algo + 1).ToString(), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, _active ? AccentBright : TextTertiary);
ctx.DrawText(num, new Point(3, 2));
@@ -120,8 +123,8 @@ internal sealed class OperatorAlgoMini : Control
{
var p = Pt(o);
var rect = new Rect(p.X - bs / 2, p.Y - bs / 2, bs, bs);
- var pen = new Pen(carrier[o] ? Brass : Teal, _active ? 1.2 : 0.9);
- ctx.DrawRectangle(carrier[o] && _active ? AccentSubtle : Sunken, pen, rect, 1.5, 1.5);
+ var pen = new Pen(carrier[o] ? Ink : Teal, _active ? 1.2 : 0.9);
+ ctx.DrawRectangle(carrier[o] && _active ? InkSubtle : Sunken, pen, rect, 1.5, 1.5);
}
}
}
@@ -131,13 +134,14 @@ internal sealed class OperatorRoutingViz : Control
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static readonly IBrush Brass = NotaPalette.Accent;
+ private static readonly IBrush Accent = NotaPalette.Accent;
+ private static readonly IBrush Ink = NotaPalette.VizInk;
private static readonly IBrush Teal = NotaPalette.Teal;
- private static readonly IBrush AccentBright = NotaPalette.AccentBright;
- private static readonly IBrush AccentSubtle = NotaPalette.AccentSubtle;
+ private static readonly IBrush InkSubtle = NotaPalette.Wash(NotaPalette.VizInk, 0x30);
private static readonly IBrush TealSubtle = NotaPalette.Wash(NotaPalette.Teal, 0x2E);
private static readonly IBrush TextTertiary = NotaPalette.TextTertiary;
- private static readonly Typeface Bold = NotaFonts.SansBold;
+ private static readonly IBrush TextPrimary = NotaPalette.TextPrimary;
+ private static readonly Typeface Semi = NotaFonts.SansSemiBold;
private static readonly Typeface Mono = NotaFonts.Mono;
private int _algo;
@@ -216,7 +220,7 @@ internal sealed class OperatorRoutingViz : Control
}
// Header caption.
- ctx.DrawText(new FormattedText("ROUTING", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Bold, 8, TextTertiary), new Point(padX, 2));
+ ctx.DrawText(new FormattedText("Routing", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Semi, 8, TextTertiary), new Point(padX, 2));
var hint = new FormattedText("drag an operator onto another to re-route", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 8, TextTertiary);
ctx.DrawText(hint, new Point(gx1 - hint.Width, 2));
@@ -225,11 +229,11 @@ internal sealed class OperatorRoutingViz : Control
{
var a = Ctr(o);
if (tgt[o] < 4) { var b = Ctr(tgt[o]); ctx.DrawLine(new Pen(Teal, 1.4), a, b); }
- else ctx.DrawLine(new Pen(Brass, NotaGraph.PrimaryWidth), new Point(a.X, a.Y + bh / 2), new Point(a.X, outY));
+ else ctx.DrawLine(new Pen(Ink, NotaGraph.PrimaryWidth), new Point(a.X, a.Y + bh / 2), new Point(a.X, outY));
}
- // OUT bus.
- ctx.DrawLine(new Pen(Brass, NotaGraph.PrimaryWidth), new Point(gx0 + 4, outY), new Point(gx1 - 4, outY));
- ctx.DrawText(new FormattedText("OUT", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, TextTertiary), new Point(gx1 - 22, outY + 1));
+ // Out bus.
+ ctx.DrawLine(new Pen(Ink, NotaGraph.PrimaryWidth), new Point(gx0 + 4, outY), new Point(gx1 - 4, outY));
+ ctx.DrawText(new FormattedText("out", CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, TextTertiary), new Point(gx1 - 22, outY + 1));
// Boxes.
for (int o = 0; o < 4; o++)
@@ -241,8 +245,9 @@ internal sealed class OperatorRoutingViz : Control
// Opaque ground first: the washes are translucent and a connection line passing
// behind a box would otherwise strike through its letter.
ctx.DrawRectangle(Sunken, null, rect, 3, 3);
- ctx.DrawRectangle(carr ? AccentSubtle : TealSubtle, new Pen(carr ? Brass : Teal, 1.3), rect, 3, 3);
- var ft = new FormattedText(OperatorTopo.Names[o], CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Bold, 10, carr ? AccentBright : Teal);
+ bool dragged = o == _drag;
+ ctx.DrawRectangle(carr ? InkSubtle : TealSubtle, new Pen(dragged ? Accent : carr ? Ink : Teal, 1.3), rect, 3, 3);
+ var ft = new FormattedText(OperatorTopo.Names[o], CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Semi, 10, carr ? TextPrimary : Teal);
ctx.DrawText(ft, new Point(c.X - ft.Width / 2, c.Y - ft.Height / 2));
}
}
diff --git a/src/managed/Nota.App/Controls/OperatorSpectrumViz.cs b/src/managed/Nota.App/Controls/OperatorSpectrumViz.cs
index c32399e6..3629e371 100644
--- a/src/managed/Nota.App/Controls/OperatorSpectrumViz.cs
+++ b/src/managed/Nota.App/Controls/OperatorSpectrumViz.cs
@@ -4,7 +4,7 @@
// Nota Operator spectrum viz (mockup 3g, OPS tab): the harmonic magnitude spectrum of the
// current FM patch at the played note, read live from the engine (OperatorSynth::scopeRead
// → Goertzel at k·f0). FM is defined by its partials, so moving FM depth or a ratio shifts
-// the bars visibly. Brass bars over a sunken well with a fundamental-relative axis.
+// the bars visibly. Neutral bars over a sunken well with a fundamental-relative axis.
using System;
using System.Globalization;
@@ -18,10 +18,10 @@ internal sealed class OperatorSpectrumViz : Control
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static Color Brass => NotaPalette.Accent.Color;
- private static Color BrassLit => NotaPalette.AccentBright.Color;
+ private static Color Dim => NotaPalette.TextTertiary.Color;
+ private static Color Lit => NotaPalette.VizInk.Color;
private static readonly IBrush Axis = NotaPalette.TextAxis;
- private static readonly IBrush Amber = NotaPalette.AccentBright;
+ private static readonly IBrush NoteInk = NotaPalette.TextPrimary;
private static readonly Typeface Mono = NotaFonts.Mono;
private float[] _bins = Array.Empty<float>();
@@ -46,7 +46,7 @@ internal sealed class OperatorSpectrumViz : Control
double x0 = padX, x1 = w - padX, top = padTop, bot = h - padBot;
double bw = (x1 - x0) / Math.Max(1, _n);
- // Bars — brass, brighter toward the top of each partial.
+ // Bars — neutral ink, brighter the stronger the partial.
for (int k = 0; k < _n; k++)
{
double v = Math.Clamp(_bins[k], 0, 1);
@@ -55,9 +55,9 @@ internal sealed class OperatorSpectrumViz : Control
var rx = x0 + k * bw;
var rect = new Rect(rx + 0.5, bot - bh, Math.Max(1, bw - 1.2), bh);
var col = Color.FromArgb(255,
- (byte)(Brass.R + (BrassLit.R - Brass.R) * v),
- (byte)(Brass.G + (BrassLit.G - Brass.G) * v),
- (byte)(Brass.B + (BrassLit.B - Brass.B) * v));
+ (byte)(Dim.R + (Lit.R - Dim.R) * v),
+ (byte)(Dim.G + (Lit.G - Dim.G) * v),
+ (byte)(Dim.B + (Lit.B - Dim.B) * v));
ctx.DrawRectangle(new SolidColorBrush(col), null, rect, NotaRadius.BarValue, NotaRadius.BarValue);
}
@@ -72,7 +72,7 @@ internal sealed class OperatorSpectrumViz : Control
Tick(0, "f"); Tick(10, "10f"); Tick(20, "20f"); Tick(30, "30f");
// Played-note badge top-right.
- var note = new FormattedText(_note, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 9, Amber);
+ var note = new FormattedText(_note, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 9, NoteInk);
ctx.DrawText(note, new Point(x1 - note.Width - 1, top));
}
}
diff --git a/src/managed/Nota.App/Controls/OrbitViews.cs b/src/managed/Nota.App/Controls/OrbitViews.cs
index 08bf89e1..0e98db89 100644
--- a/src/managed/Nota.App/Controls/OrbitViews.cs
+++ b/src/managed/Nota.App/Controls/OrbitViews.cs
@@ -2,7 +2,7 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Orbit views (device kind 9) — the pictures on the Orbit card:
-// OrbitGainView — both channels' gain over two LFO cycles (L brass, R teal, R offset by Phase),
+// OrbitGainView — both channels' gain over two LFO cycles (L neutral ink, R teal, R offset by Phase),
// the floor the depth reaches, and a running head with the gain dots on it.
// Drag up / down for Amount, left / right for Phase; double-click resets both.
// OrbitPanBar — the stereo position now on an L—R line, over the swing the LFO covers.
@@ -21,7 +21,7 @@ namespace Nota.App;
internal static class OrbitMath
{
public static readonly string[] Waves = { "Sine", "Tri", "Saw", "Sqr", "S&H" };
- public static readonly string[] WaveNames = { "SINE", "TRIANGLE", "SAW", "SQUARE", "S&H" };
+ public static readonly string[] WaveNames = { "Sine", "Triangle", "Saw", "Square", "S&H" };
// Sync divisions, slowest → fastest (AutoPan::kDivBeats / kDivNames).
public static readonly double[] DivBeats = { 16, 8, 4, 3, 2, 4.0 / 3, 1.5, 1, 2.0 / 3, 0.75, 0.5, 1.0 / 3, 0.375, 0.25, 1.0 / 6, 0.125 };
public static readonly string[] DivNames = { "4/1", "2/1", "1/1", "1/2D", "1/2", "1/2T", "1/4D", "1/4", "1/4T", "1/8D", "1/8", "1/8T", "1/16D", "1/16", "1/16T", "1/32" };
@@ -146,7 +146,7 @@ internal sealed class OrbitGainView : Control
ctx.DrawLine(new Pen(NotaPalette.BorderStrong, 1, new DashStyle(new double[] { 4, 3 }, 0)), new Point(x0, fy), new Point(x1, fy));
// R first so L reads on top where they meet (tremolo).
- IBrush inkL = _on ? NotaPalette.Accent : NotaPalette.TextAxis;
+ IBrush inkL = _on ? NotaPalette.VizInk : NotaPalette.TextAxis;
IBrush inkR = _on ? NotaPalette.TealBright : NotaPalette.TextAxis;
Curve(ctx, _phase, inkR);
Curve(ctx, 0, inkL);
@@ -167,7 +167,7 @@ internal sealed class OrbitGainView : Control
double hx = X(Math.Clamp(_head, 0, 2));
ctx.DrawLine(new Pen(NotaPalette.TextTertiary, 1), new Point(hx, 0), new Point(hx, h));
NotaGraph.Node(ctx, new Point(hx, Y(_gr)), true, NotaPalette.TealBright);
- NotaGraph.Node(ctx, new Point(hx, Y(_gl)), true, NotaPalette.AccentBright);
+ NotaGraph.Node(ctx, new Point(hx, Y(_gl)), true, NotaPalette.VizInk);
}
void Curve(DrawingContext dc, double off, IBrush ink)
@@ -220,7 +220,7 @@ internal sealed class OrbitPanBar : Control
internal sealed class OrbitMeter : Control
{
private double _norm;
- public IBrush Ink { get; set; } = NotaPalette.Accent;
+ public IBrush Ink { get; set; } = NotaPalette.VizInk;
public OrbitMeter() { Height = 4; }
diff --git a/src/managed/Nota.App/Controls/PadWave.cs b/src/managed/Nota.App/Controls/PadWave.cs
index a8d6df68..3e85484f 100644
--- a/src/managed/Nota.App/Controls/PadWave.cs
+++ b/src/managed/Nota.App/Controls/PadWave.cs
@@ -3,7 +3,7 @@
//
// The Drum Rack's pad oscillogram: a pad's one-shot as mirrored peak bars in the pad's
// own hue, inside the almanac graph window (well, hairline, radius 4), with the live
-// playback position as a Brass Light line while the pad sounds. Read-only — trimming a
+// playback position as an accent line while the pad sounds. Read-only — trimming a
// sample is the Sampler's job.
using System;
@@ -23,7 +23,7 @@ internal sealed class PadWave : Control
private double _play = -1;
/// <summary>The bar colour — the pad's hue slot, so it re-tints with the theme.</summary>
- public IBrush Hue { get; set; } = NotaPalette.Accent;
+ public IBrush Hue { get; set; } = NotaPalette.VizInk;
/// <summary>Normalised peaks (0..1), one per bucket, drawn left to right.</summary>
public float[] Peaks { get => _peaks; set { _peaks = value ?? Array.Empty<float>(); InvalidateVisual(); } }
diff --git a/src/managed/Nota.App/Controls/PanBar.cs b/src/managed/Nota.App/Controls/PanBar.cs
index d700f0e7..78f1148a 100644
--- a/src/managed/Nota.App/Controls/PanBar.cs
+++ b/src/managed/Nota.App/Controls/PanBar.cs
@@ -19,8 +19,9 @@ namespace Nota.App;
public sealed class PanBar : Control
{
private static readonly IBrush Bg = NotaPalette.BgSunken;
- private static readonly IBrush Border = NotaPalette.BorderDefault;
- private static readonly IBrush Fill = NotaPalette.Accent; // brass
+ private static readonly IBrush Border = NotaPalette.Rule;
+ private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.VizInk, 0x40); // at rest: neutral
+ private static readonly IBrush FillLive = NotaPalette.Wash(NotaPalette.Accent, 0x8C); // live
private static readonly IBrush CentreTick = NotaPalette.BorderStrong;
private static readonly IBrush TextBrush = NotaPalette.TextSecondary;
private static readonly Typeface Mono = NotaFonts.Mono;
@@ -74,6 +75,12 @@ public sealed class PanBar : Control
Apply(_raw);
}
+ // Under the pointer (or in the hand) the control is live and takes the accent; at rest
+ // its value is neutral ink — the accent marks a knob or fader only while focused or dragged.
+ private bool _hover;
+ protected override void OnPointerEntered(PointerEventArgs e) { base.OnPointerEntered(e); _hover = true; InvalidateVisual(); }
+ protected override void OnPointerExited(PointerEventArgs e) { base.OnPointerExited(e); _hover = false; InvalidateVisual(); }
+
protected override void OnPointerReleased(PointerReleasedEventArgs e)
{
if (_drag) GestureEnd?.Invoke();
@@ -95,13 +102,14 @@ public sealed class PanBar : Control
{
double w = Bounds.Width, h = Bounds.Height;
if (w <= 0 || h <= 0) return;
- var rrect = new RoundedRect(new Rect(0, 0, w, h), 4);
+ var rrect = new RoundedRect(new Rect(0, 0, w, h), NotaRadius.ControlValue);
ctx.DrawRectangle(Bg, new Pen(Border, 1), rrect);
double cx = w / 2, px = cx + _pan * (w / 2);
+ var fill = _drag || _hover ? FillLive : Fill;
using (ctx.PushClip(rrect))
{
- if (px >= cx) ctx.FillRectangle(Fill, new Rect(cx, 0, px - cx, h));
- else ctx.FillRectangle(Fill, new Rect(px, 0, cx - px, h));
+ if (px >= cx) ctx.FillRectangle(fill, new Rect(cx, 0, px - cx, h));
+ else ctx.FillRectangle(fill, new Rect(px, 0, cx - px, h));
ctx.DrawLine(new Pen(CentreTick, 1), new Point(cx, 0), new Point(cx, h));
}
var text = new FormattedText(Label(_pan), CultureInfo.InvariantCulture,
diff --git a/src/managed/Nota.App/Controls/PendulumViews.cs b/src/managed/Nota.App/Controls/PendulumViews.cs
index fca25736..f8455810 100644
--- a/src/managed/Nota.App/Controls/PendulumViews.cs
+++ b/src/managed/Nota.App/Controls/PendulumViews.cs
@@ -5,12 +5,13 @@
//
// PendulumLanesView one lane per ball — x is pitch (low … high), the chord's degree
// boundaries as faint ticks, the ball with a short trail showing which
-// way it travels, the wall it came from (dim brass), the one it strikes
-// (brass), and in teal how long until it reaches the wall ahead. The
+// way it travels, the wall it came from (dim ink), the one it strikes
+// (accent), and in teal how long until it reaches the wall ahead. The
// space answers "why this note".
// PendulumBarView the bar as a 1/16 strip the generated notes fall into (height =
-// pitch within the chord), this bar in brass, the last bar's notes
-// ahead of the playhead in deep brass. It answers "when".
+// pitch within the chord), this bar in neutral ink with the note just
+// played in accent, the last bar's notes ahead of the playhead dimmer.
+// It answers "when".
// PendulumBallList the rail's ball rows — division · rate · phase · note — sized to fit.
// PendulumVoiceBars a tiny level bar per sounding voice.
@@ -76,7 +77,7 @@ internal sealed class PendulumLanesView : Control
double wallTop = cy - rowH * 0.36, wallBot = cy + rowH * 0.36;
// Division (or free cycle) left, the ball's note right.
- var divT = PendulumInk.Mono(_div, NotaPalette.AccentDim);
+ var divT = PendulumInk.Mono(_div, NotaPalette.TextTertiary);
ctx.DrawText(divT, new Point(padX, cy - divT.Height / 2));
bool fresh = ball.Pitch >= 0 && ball.Since < PendulumInk.Fresh;
var noteT = PendulumInk.Mono(PendulumModel.NoteName(ball.Pitch), fresh ? NotaPalette.AccentBright : ball.Pitch >= 0 ? NotaPalette.TextPrimary : NotaPalette.TextDisabled);
@@ -95,7 +96,7 @@ internal sealed class PendulumLanesView : Control
{
if (striking && strikeHigh == high) return accent;
bool cameFrom = ball.Dir > 0 ? !high : ball.Dir < 0 && high;
- return cameFrom ? NotaPalette.AccentDim : NotaPalette.BorderStrong;
+ return cameFrom ? NotaPalette.TextSecondary : NotaPalette.BorderStrong;
}
ctx.DrawRectangle(WallInk(false), null, new RoundedRect(new Rect(laneX0 - 1, wallTop, 2, wallBot - wallTop), 1));
ctx.DrawRectangle(WallInk(true), null, new RoundedRect(new Rect(laneX1 - 1, wallTop, 2, wallBot - wallTop), 1));
@@ -130,12 +131,12 @@ internal sealed class PendulumLanesView : Control
double tx = laneX0 + PendulumModel.Position(ph, _motion) * laneW;
double r = 2.5 + (3 - k) * 0.5;
byte a = k switch { 3 => 0x38, 2 => 0x66, _ => 0x9E };
- ctx.DrawEllipse(NotaPalette.Wash(NotaPalette.Accent, a), null, new Point(tx, cy), r, r);
+ ctx.DrawEllipse(NotaPalette.Wash(NotaPalette.VizInk, a), null, new Point(tx, cy), r, r);
}
}
double br = Math.Min(striking ? 5.5 : 4.5, rowH * 0.36);
if (striking) ctx.DrawEllipse(NotaPalette.AccentBright, new Pen(NotaPalette.AccentSubtle, 2), new Point(bx, cy), br, br);
- else ctx.DrawEllipse(NotaPalette.AccentBright, null, new Point(bx, cy), br, br);
+ else ctx.DrawEllipse(NotaPalette.VizInk, null, new Point(bx, cy), br, br);
}
// Axis: what x means.
@@ -175,7 +176,7 @@ internal sealed class PendulumBarView : Control
NotaGraph.Window(ctx, new Rect(0, 0, w, h));
const double padX = 6;
- var cap = new FormattedText("NOTES", NotaNum.Culture, FlowDirection.LeftToRight, NotaFonts.SansBold, 7, NotaPalette.TextTertiary);
+ var cap = new FormattedText("Notes", NotaNum.Culture, FlowDirection.LeftToRight, NotaFonts.SansSemiBold, 7, NotaPalette.TextTertiary);
ctx.DrawText(cap, new Point(padX, 3));
var sub = PendulumInk.Mono($"bar · quantize {_quant.ToLowerInvariant()}", NotaPalette.TextAxis);
ctx.DrawText(sub, new Point(padX + cap.Width + 6, 3));
@@ -207,13 +208,13 @@ internal sealed class PendulumBarView : Control
else
{
frac = hi > lo ? 0.5 + 0.5 * (st.Pitch - lo) / (double)(hi - lo) : 0.75;
- ink = i == latest ? NotaPalette.AccentBright : st.Age == 0 ? NotaPalette.Accent : NotaPalette.AccentDeep;
+ ink = i == latest ? NotaPalette.Accent : st.Age == 0 ? NotaPalette.VizInk : NotaPalette.Wash(NotaPalette.VizInk, 0x60);
}
double bh = Math.Max(2, fullH * frac);
ctx.DrawRectangle(ink, null, new RoundedRect(new Rect(x, gy1 - bh, Math.Max(1, cw - 1), bh), 1));
}
double px = gx0 + Math.Clamp(_s.BarPos, 0, 1) * (gx1 - gx0);
- ctx.DrawLine(new Pen(NotaPalette.AccentDim, 1), new Point(px, gy0 - 2), new Point(px, gy1 + 2));
+ ctx.DrawLine(new Pen(NotaPalette.Accent, 1), new Point(px, gy0 - 2), new Point(px, gy1 + 2));
}
}
@@ -251,7 +252,7 @@ internal sealed class PendulumBallList : Control
var rr = new RoundedRect(new Rect(0.5, y + 0.5, w - 1, rowH - 1), NotaRadius.BadgeValue);
ctx.DrawRectangle(sel ? NotaPalette.AccentSubtle : NotaPalette.BgSunken, new Pen(sel ? NotaPalette.BorderBrass : NotaPalette.GraphBorder, 1), rr);
double cy = y + rowH / 2, x = 6;
- ctx.DrawEllipse(sel ? NotaPalette.AccentBright : NotaPalette.Accent, null, new Point(x + 3, cy), 3, 3);
+ ctx.DrawEllipse(sel ? NotaPalette.Accent : NotaPalette.VizInk, null, new Point(x + 3, cy), 3, 3);
x += 11;
void Col(string t, IBrush ink, double width)
{
@@ -293,7 +294,7 @@ internal sealed class PendulumVoiceBars : Control
for (int i = 0; i < _n; i++)
{
double lh = Math.Max(1, h * Math.Clamp(Math.Sqrt(_lv[i]), 0, 1));
- IBrush ink = _lv[i] >= max - 1e-6 ? NotaPalette.AccentBright : _lv[i] > 0.3 ? NotaPalette.Accent : NotaPalette.AccentDeep;
+ IBrush ink = _lv[i] >= max - 1e-6 ? NotaPalette.Accent : _lv[i] > 0.3 ? NotaPalette.VizInk : NotaPalette.TextTertiary;
ctx.DrawRectangle(ink, null, new Rect(x + i * 3, h - lh, 2, lh));
}
}
diff --git a/src/managed/Nota.App/Controls/PentadViews.cs b/src/managed/Nota.App/Controls/PentadViews.cs
index 5772f4fa..9c095480 100644
--- a/src/managed/Nota.App/Controls/PentadViews.cs
+++ b/src/managed/Nota.App/Controls/PentadViews.cs
@@ -58,7 +58,7 @@ internal sealed class PentadWaveIcon : Control
internal sealed class PentadFilterCurve : Control
{
private static readonly IBrush Grid = NotaGraph.Grid;
- private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.Accent, 0x1E);
+ private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.VizInk, 0x1E);
private static readonly Typeface Mono = NotaFonts.Mono;
private double _cut = 0.5, _reso, _comp;
private bool _drag;
@@ -121,15 +121,15 @@ internal sealed class PentadFilterCurve : Control
for (double x = 1; x <= w; x += 1.5) { var p = new Point(x, Y(Db(x / w))); lc.LineTo(p); fc.LineTo(p); }
fc.LineTo(new Point(w, h));
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, NotaGraph.PrimaryWidth), line);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.VizInk, NotaGraph.PrimaryWidth), line);
double hz0 = 20 * Math.Pow(1000, _cut);
string txt = (hz0 >= 1000 ? $"{hz0 / 1000:0.0}\u2009k" : $"{hz0:0}\u2009Hz") + $" · Q {_reso * 10:0.0}";
- var ft = new FormattedText(txt, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, NotaPalette.AccentBright);
+ var ft = new FormattedText(txt, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, 7, _drag ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
ctx.DrawText(ft, new Point(w - ft.Width - 4, 3));
double hx = Math.Clamp(_cut * w, 4, w - 4), hy = Math.Clamp(Y(Db(_cut)), 4, h - 4);
- ctx.DrawEllipse(NotaPalette.AccentBright, new Pen(NotaPalette.BgSunken, 2), new Point(hx, hy), 3.5, 3.5);
+ ctx.DrawEllipse(_drag ? NotaPalette.Accent : NotaPalette.VizInk, new Pen(NotaPalette.BgSunken, 2), new Point(hx, hy), 3.5, 3.5);
}
}
@@ -137,7 +137,7 @@ internal sealed class PentadFilterCurve : Control
internal sealed class PentadEnvCurve : Control
{
private double _a, _d, _s = 0.8, _r = 0.4;
- public IBrush Accent { get; set; } = NotaPalette.Accent;
+ public IBrush Accent { get; set; } = NotaPalette.VizInk; // the curve's ink (neutral at rest)
public PentadEnvCurve() { ClipToBounds = true; }
public void Set(double a, double d, double s, double r) { _a = a; _d = d; _s = s; _r = r; }
@@ -169,7 +169,7 @@ internal sealed class PentadEnvCurve : Control
}
}
-// N voice cells, lit (brass) while a voice sounds, brightness following its level.
+// N voice cells, lit (accent) while a voice sounds, brightness following its level.
internal sealed class PentadVoiceStrip : Control
{
private static readonly Typeface Mono = NotaFonts.Mono;
diff --git a/src/managed/Nota.App/Controls/PerformWheel.cs b/src/managed/Nota.App/Controls/PerformWheel.cs
index c92c09a6..bdcf84ef 100644
--- a/src/managed/Nota.App/Controls/PerformWheel.cs
+++ b/src/managed/Nota.App/Controls/PerformWheel.cs
@@ -3,7 +3,7 @@
//
// A performance wheel — the pitch-bend / modulation pair every hardware synth puts left of
// the keys, drawn flat to the almanac: a sunken pill, a hairline border, tick marks and a
-// Brass Light bar at the value. Nota Operator's card keeps both on screen on every tab.
+// neutral bar at the value (accent while dragged). Nota Operator's card keeps both on screen on every tab.
//
// Interaction matches the knob contract: vertical drag (up increases) over the wheel's own
// height, Shift/Ctrl/⌘ for fine, a click never jumps the value, double-click restores the
@@ -25,7 +25,7 @@ internal sealed class PerformWheel : Control
private static readonly IBrush Face = NotaPalette.SurfaceRaised;
private static readonly IBrush Edge = NotaPalette.BorderDefault;
private static readonly IBrush Tick = NotaPalette.BorderStrong;
- private static readonly IBrush Bar = NotaPalette.AccentBright;
+ private static readonly IBrush Bar = NotaPalette.VizInk;
private static readonly IBrush BarOff = NotaPalette.TextTertiary;
private double _norm;
@@ -116,6 +116,6 @@ internal sealed class PerformWheel : Control
double pad = 3;
double y = pad + (1 - _norm) * (h - pad * 2);
bool live = Math.Abs(_norm - Default) > 1e-3;
- ctx.DrawRectangle(live ? Bar : BarOff, null, new Rect(1.5, y - 1, w - 3, 2), 1, 1);
+ ctx.DrawRectangle(_drag ? NotaPalette.Accent : live ? Bar : BarOff, null, new Rect(1.5, y - 1, w - 3, 2), 1, 1);
}
}
diff --git a/src/managed/Nota.App/Controls/PhaserViews.cs b/src/managed/Nota.App/Controls/PhaserViews.cs
index 56728ba7..37cf2ecd 100644
--- a/src/managed/Nota.App/Controls/PhaserViews.cs
+++ b/src/managed/Nota.App/Controls/PhaserViews.cs
@@ -2,7 +2,7 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Phaser views (device kind 24) — the pictures on the Phaser card:
-// PhaserResponseView — the live all-pass response of both channels (L brass, R teal) over 20 Hz …
+// PhaserResponseView — the live all-pass response of both channels (L neutral ink, R teal) over 20 Hz …
// 20 kHz, −36 … +12 dB, the left corner dashed and every notch ticked on
// the top edge. Drag left / right moves Center, up / down the Feedback;
// double-click resets both.
@@ -170,12 +170,12 @@ internal sealed class PhaserResponseView : Control
// R first so L reads on top where they meet.
Curve(_fcR, _on ? NotaPalette.TealBright : NotaPalette.TextAxis, 1.2, 0.75);
- Curve(_fcL, _on ? NotaPalette.Accent : NotaPalette.TextAxis, 1.6, 1);
+ Curve(_fcL, _on ? NotaPalette.VizInk : NotaPalette.TextAxis, 1.6, 1);
if (_on)
{
Ticks(_fcR, NotaPalette.TealBright);
- Ticks(_fcL, NotaPalette.AccentBright);
+ Ticks(_fcL, NotaPalette.VizInk);
}
void Label(string s, double x, double y)
@@ -243,7 +243,7 @@ internal sealed class PhaserSweepView : Control
ctx.DrawLine(new Pen(NotaPalette.GraphBorder, 1, new DashStyle(new double[] { 2, 3 }, 0)), new Point(X(1), 0), new Point(X(1), h));
Curve(_off, _on ? NotaPalette.TealBright : NotaPalette.TextAxis, 1.2, 0.75);
- Curve(0, _on ? NotaPalette.Accent : NotaPalette.TextAxis, 1.4, 1);
+ Curve(0, _on ? NotaPalette.VizInk : NotaPalette.TextAxis, 1.4, 1);
var tl = NotaGraph.AxisText("fc 20k", size: 6);
ctx.DrawText(tl, new Point(5, 1));
@@ -258,7 +258,7 @@ internal sealed class PhaserSweepView : Control
double hx = X(Math.Clamp(_head, 0, 2));
ctx.DrawLine(new Pen(NotaPalette.TextTertiary, 1), new Point(hx, 0), new Point(hx, h));
DrawDot(new Point(hx, Y(_fcR)), NotaPalette.TealBright);
- DrawDot(new Point(hx, Y(_fcL)), NotaPalette.AccentBright);
+ DrawDot(new Point(hx, Y(_fcL)), NotaPalette.VizInk);
}
void DrawDot(Point p, IBrush ink) => ctx.DrawEllipse(ink, new Pen(NotaGraph.Ground, 2), p, 3, 3);
diff --git a/src/managed/Nota.App/Controls/PhysicalViews.cs b/src/managed/Nota.App/Controls/PhysicalViews.cs
index 5bc7748e..64231d2e 100644
--- a/src/managed/Nota.App/Controls/PhysicalViews.cs
+++ b/src/managed/Nota.App/Controls/PhysicalViews.cs
@@ -19,7 +19,7 @@ internal sealed class PhysPartialsView : VtWindowBase
{
private (double Ratio, double Amp, double Tau)[] _modes = Array.Empty<(double, double, double)>();
private (double Ratio, double Amp, double Tau)[] _ghost = Array.Empty<(double, double, double)>();
- private string _title = "PARTIALS", _footer = "";
+ private string _title = "Partials", _footer = "";
private double _maxRatio = double.PositiveInfinity;
private bool _dim;
@@ -81,7 +81,7 @@ internal sealed class PhysPartialsView : VtWindowBase
ctx.DrawLine(ghostPen, new Point(x, bot), new Point(x, bot - m.Amp / ghostMax * (bot - top)));
}
- var ink = _dim ? NotaPalette.TextDisabled : NotaPalette.Accent;
+ var ink = _dim ? NotaPalette.TextDisabled : NotaPalette.VizInk;
double tau0 = _modes.Length > 0 ? Math.Max(1e-3, _modes[0].Tau) : 1;
for (int i = 0; i < _modes.Length; i++)
{
@@ -93,11 +93,11 @@ internal sealed class PhysPartialsView : VtWindowBase
byte a = (byte)Math.Clamp(90 + 165 * Math.Min(1, m.Tau / tau0), 60, 255);
var c = ((ISolidColorBrush)ink).Color;
ctx.DrawRectangle(new SolidColorBrush(Color.FromArgb(a, c.R, c.G, c.B)), null, new Rect(x - 1.5, bot - bh, 3, bh), 1, 1);
- if (i == 0) ctx.DrawEllipse(_dim ? NotaPalette.TextDisabled : NotaPalette.AccentBright, null, new Point(x, bot - bh - 3), 1.8, 1.8);
+ if (i == 0) ctx.DrawEllipse(_dim ? NotaPalette.TextDisabled : NotaPalette.VizInk, null, new Point(x, bot - bh - 3), 1.8, 1.8);
}
}
- ctx.DrawText(NotaGraph.AxisText(_title, NotaGraph.TitleInk), new Point(6, 3));
+ ctx.DrawText(NotaGraph.AxisText(NotaText.Label(_title), NotaGraph.TitleInk), new Point(6, 3));
if (_footer.Length > 0)
{
var ft = NotaGraph.AxisText(_footer, NotaGraph.AxisInk);
diff --git a/src/managed/Nota.App/Controls/PrismViews.cs b/src/managed/Nota.App/Controls/PrismViews.cs
index ff47d50c..1c59f673 100644
--- a/src/managed/Nota.App/Controls/PrismViews.cs
+++ b/src/managed/Nota.App/Controls/PrismViews.cs
@@ -10,7 +10,8 @@
// PrismEnvTrace — the band's input peaks and its detector envelope against the threshold.
// PrismGrMeter — a gain-reduction bar that grows down from the top (boost grows up), with
// an optional peak-hold line.
-// Band colours follow the mockup: Low = mauve, Mid = brass, High = teal.
+// Band colours follow the mockup: Low = mauve, Mid = neutral ink, High = teal (accent is kept
+// for live or chosen state — a dragged handle, solo).
using System;
using System.Diagnostics;
@@ -26,19 +27,19 @@ namespace Nota.App;
internal static class PrismInk
{
// Read per use: the colours follow the theme, so they must not be captured in a static array.
- public static Color[] BandColor => new[] { NotaPalette.TrackColors[7], NotaPalette.AccentColor, NotaPalette.TrackColors[4] };
- public static readonly IBrush[] Band = { NotaPalette.TrackBrushes[7], NotaPalette.Accent, NotaPalette.Teal };
- // Text / handle tint for the selected band (the brass band lights up to AccentBright).
- public static readonly IBrush[] BandLit = { Band[0], NotaPalette.AccentBright, Band[2] };
+ public static Color[] BandColor => new[] { NotaPalette.TrackColors[7], NotaPalette.VizInk.Color, NotaPalette.TrackColors[4] };
+ public static readonly IBrush[] Band = { NotaPalette.TrackBrushes[7], NotaPalette.VizInk, NotaPalette.Teal };
+ // Text / handle tint for the selected band.
+ public static readonly IBrush[] BandLit = { Band[0], NotaPalette.TextPrimary, Band[2] };
public static readonly string[] Names = { "Low", "Mid", "High" };
public static readonly IBrush InnerBorder = NotaPalette.GraphBorder;
public static readonly IPen InnerPen = new Pen(InnerBorder, 1);
private static readonly Typeface Mono = NotaFonts.Mono;
- private static readonly Typeface Sans = NotaFonts.SansBold;
+ private static readonly Typeface Sans = NotaFonts.SansSemiBold;
public static IBrush Alpha(Color c, byte a) => new SolidColorBrush(Color.FromArgb(a, c.R, c.G, c.B));
public static FormattedText Text(string s, double size, IBrush b) => new(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Mono, size, b);
- public static FormattedText Caps(string s, double size, IBrush b) => new(s, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Sans, size, b);
+ public static FormattedText Caps(string s, double size, IBrush b) => new(NotaText.Label(s), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Sans, size, b);
public static double Db(double lin) => lin > 1e-6 ? 20 * Math.Log10(lin) : -120;
public static string HzShort(double hz) => hz >= 1000 ? (hz >= 10000 ? NotaNum.F($"{hz / 1000:0}k") : NotaNum.F($"{hz / 1000:0.0}k")) : NotaNum.F($"{hz:0}");
}
@@ -214,8 +215,8 @@ internal sealed class PrismSpectrum : Control
double x = Math.Round(X(v)) + 0.5;
var col = PrismInk.Band[upper];
bool hot = _hover == idx || _drag == idx;
- ctx.DrawLine(new Pen(col, hot ? 2 : 1), new Point(x, 0), new Point(x, h));
- var t = PrismInk.Text(PrismInk.HzShort(20 * Math.Pow(1000, v)), 7, upper == 1 ? NotaPalette.AccentBright : col);
+ ctx.DrawLine(new Pen(_drag == idx ? NotaPalette.Accent : col, hot ? 2 : 1), new Point(x, 0), new Point(x, h));
+ var t = PrismInk.Text(PrismInk.HzShort(20 * Math.Pow(1000, v)), 7, _drag == idx ? NotaPalette.AccentBright : upper == 1 ? NotaPalette.TextPrimary : col);
double tw = t.Width + 8, tx = Math.Clamp(x - tw / 2, 0, w - tw);
var tag = new Rect(tx, 0, tw, 12);
ctx.DrawRectangle(hot ? NotaPalette.SurfaceRaised : NotaPalette.SurfaceCard, new Pen(col, 1), tag, 3, 3);
@@ -360,8 +361,8 @@ internal sealed class PrismTransfer : Control
if (_level > Lo) ctx.DrawEllipse(NotaPalette.TextPrimary, null, Pt(_level, Out(_level)), 2.2, 2.2);
// Threshold handles.
var below = Pt(_thrB, Out(_thrB));
- if (_below || _hover == 2) ctx.DrawEllipse(_below ? NotaPalette.TextSecondary : NotaPalette.TextDisabled, _hover == 2 ? new Pen(NotaPalette.TextPrimary, 1) : null, below, 3, 3);
- ctx.DrawEllipse(PrismInk.BandLit[_band], _hover == 1 ? new Pen(NotaPalette.TextPrimary, 1) : null, Pt(_thrA, Out(_thrA)), 3.5, 3.5);
+ if (_below || _hover == 2) ctx.DrawEllipse(_drag == 2 ? NotaPalette.Accent : _below ? NotaPalette.TextSecondary : NotaPalette.TextDisabled, _hover == 2 ? new Pen(NotaPalette.TextPrimary, 1) : null, below, 3, 3);
+ ctx.DrawEllipse(_drag == 1 ? NotaPalette.Accent : PrismInk.BandLit[_band], _hover == 1 ? new Pen(NotaPalette.TextPrimary, 1) : null, Pt(_thrA, Out(_thrA)), 3.5, 3.5);
var ta = PrismInk.Text(NotaNum.F($"above {_thrA:0}"), 7, PrismInk.BandLit[_band]);
ctx.DrawText(ta, new Point(4, 3));
@@ -421,7 +422,7 @@ internal sealed class PrismEnvTrace : Control
Trace(_in, new Pen(NotaPalette.BorderStrong, 1.2));
Trace(_det, new Pen(col, 1.7));
- var title = PrismInk.Caps("DETECTOR ENVELOPE · " + PrismInk.Names[_band].ToUpperInvariant(), 7, NotaPalette.TextTertiary);
+ var title = PrismInk.Caps("Detector envelope · " + PrismInk.Names[_band].ToLowerInvariant(), 7, NotaPalette.TextTertiary);
ctx.DrawText(title, new Point(5, 3));
var l2 = PrismInk.Text("detector", 7, PrismInk.BandLit[_band]);
var l1 = PrismInk.Text("input", 7, NotaPalette.TextTertiary);
diff --git a/src/managed/Nota.App/Controls/RandomOutputViz.cs b/src/managed/Nota.App/Controls/RandomOutputViz.cs
index fadc8731..35548767 100644
--- a/src/managed/Nota.App/Controls/RandomOutputViz.cs
+++ b/src/managed/Nota.App/Controls/RandomOutputViz.cs
@@ -5,11 +5,11 @@
// • RandomModel — the device's roll, ported exactly from MidiRandom.h (hash, draw, the per-bar
// key), applied to a one-bar demo phrase of eight eighth notes. So the picture is what the
// device plays: with the seed Locked it is the very roll you hear, every bar.
-// • RandomOutputViz — the OUTPUT window: each input note as a dashed outline, the output as a
-// brass fill (brightness = velocity, the Timing delay as a shift right), a thin link when the
+// • RandomOutputViz — the Output window: each input note as a dashed outline, the output as a
+// neutral fill (brightness = velocity, the Timing delay as a shift right), a thin link when the
// pitch moved, × on a skipped note, octave lines (C) and a playhead; the note under the
-// playhead lights Brass Light. The full view adds the C labels in a left gutter.
-// • RandomHistViz — the DICE histogram: 1500 draws from the same generator for the current
+// playhead lights in accent. The full view adds the C labels in a left gutter.
+// • RandomHistViz — the Dice histogram: 1500 draws from the same generator for the current
// distribution and seed, in 17 bins across −max … centre … +max.
using System;
@@ -146,8 +146,8 @@ internal sealed class RandomOutputViz : Control
private static readonly IBrush Quarter = NotaPalette.GraphBorder;
private static readonly IBrush Eighth = NotaPalette.SurfaceCard;
private static readonly IBrush Link = NotaPalette.BorderStrong;
- private static readonly IBrush Fill = NotaPalette.Accent;
- private static readonly IBrush FillLit = NotaPalette.AccentBright;
+ private static readonly IBrush Fill = NotaPalette.VizInk;
+ private static readonly IBrush FillLit = NotaPalette.AccentBright; // the note under the playhead
private static readonly IBrush OutlineHit = NotaPalette.TextMuted;
private static readonly IBrush OutlineMiss = NotaPalette.TextDisabled;
private static readonly IBrush Mark = NotaPalette.TextMuted;
@@ -238,8 +238,8 @@ internal sealed class RandomHistViz : Control
{
private static readonly IBrush Well = NotaPalette.BgSunken;
private static readonly IBrush Edge = NotaPalette.GraphBorder;
- private static readonly IBrush Bar = NotaPalette.Ink("#B8862E");
- private static readonly IBrush Centre = NotaPalette.AccentBright;
+ private static readonly IBrush Bar = NotaPalette.Wash(NotaPalette.VizInk, 0xA0);
+ private static readonly IBrush Centre = NotaPalette.VizInk;
private double[] _bins = Array.Empty<double>();
private int _dist = -1, _seed = -1;
diff --git a/src/managed/Nota.App/Controls/RangeSliderTrack.cs b/src/managed/Nota.App/Controls/RangeSliderTrack.cs
index 26983b56..06af2436 100644
--- a/src/managed/Nota.App/Controls/RangeSliderTrack.cs
+++ b/src/managed/Nota.App/Controls/RangeSliderTrack.cs
@@ -19,7 +19,8 @@ namespace Nota.App;
internal sealed class RangeSliderTrack : Control
{
private static readonly IBrush Groove = NotaPalette.BgSunken;
- private static readonly IBrush Fill = NotaPalette.Accent;
+ private static readonly IBrush Fill = NotaPalette.VizInk; // at rest: neutral
+ private static readonly IBrush FillLive = NotaPalette.Accent; // a handle under the pointer or in the hand
private static readonly IBrush Handle = NotaPalette.AccentBright;
private static readonly IBrush HandleIdle = NotaPalette.TextSecondary;
@@ -121,7 +122,7 @@ internal sealed class RangeSliderTrack : Control
double cy = h / 2, ty = cy - TrackH / 2;
ctx.DrawRectangle(Groove, null, new RoundedRect(new Rect(0, ty, w, TrackH), NotaRadius.ClipValue));
double a = _lo * w, b = _hi * w;
- if (b - a > 0.5) ctx.DrawRectangle(Fill, null, new RoundedRect(new Rect(a, ty, b - a, TrackH), NotaRadius.ClipValue));
+ if (b - a > 0.5) ctx.DrawRectangle(_drag >= 0 || _hover >= 0 ? FillLive : Fill, null, new RoundedRect(new Rect(a, ty, b - a, TrackH), NotaRadius.ClipValue));
for (int k = 0; k < 2; k++)
{
double x = k == 0 ? a : b;
diff --git a/src/managed/Nota.App/Controls/ReverbViews.cs b/src/managed/Nota.App/Controls/ReverbViews.cs
index 0642b8cb..424508e9 100644
--- a/src/managed/Nota.App/Controls/ReverbViews.cs
+++ b/src/managed/Nota.App/Controls/ReverbViews.cs
@@ -4,7 +4,7 @@
// The custom-drawn view of the Nota Reverb card: the decay-tail window. The impulse flashes
// at the pre-delay (teal), the early reflections light one after another, then the RT60
// curve draws itself and fades — a loop while the reverb is sounding, a still picture when
-// it is not. Frozen, the tail is a held line under a brass frame. It is also a control:
+// it is not. Frozen, the tail is a held line under an accent frame. It is also a control:
// drag the pre-delay marker to set the pre-delay, drag anywhere else to lengthen or shorten
// the decay; double-click either to reset. It draws what the card hands it and owns no
// engine state.
@@ -151,8 +151,8 @@ internal sealed class ReverbTailView : Control
f.LineTo(new Point(x1, bot));
f.EndFigure(true);
}
- ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.Accent, 0x12), null, fill);
- ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.Accent, 0x55), 1.4, lineJoin: PenLineJoin.Round), full);
+ ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.VizInk, 0x12), null, fill);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0x55), 1.4, lineJoin: PenLineJoin.Round), full);
// The bright stroke draws itself over the first half of the loop, then fades a little.
double reach = _freeze || !live ? 1 : Math.Clamp(ph / 0.52, 0, 1);
@@ -168,14 +168,14 @@ internal sealed class ReverbTailView : Control
for (double x = preX; x <= xEnd + 0.1; x += 2) g.LineTo(new Point(Math.Min(x, xEnd), YAt(Math.Min(x, xEnd))));
}
using (ctx.PushOpacity(tailOp))
- ctx.DrawGeometry(null, new Pen(NotaPalette.Accent, 1.8, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), bright);
+ ctx.DrawGeometry(null, new Pen(live ? NotaPalette.Accent : NotaPalette.VizInk, 1.8, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), bright);
}
// Where the tail has fallen 60 dB — the decay the knob names.
if (!_freeze)
{
double rx = preX + _rt60 / AxisSec * (x1 - preX);
- if (rx <= x1) ctx.DrawEllipse(NotaPalette.AccentBright, null, new Point(rx, bot), 2.2, 2.2);
+ if (rx <= x1) ctx.DrawEllipse(NotaPalette.VizInk, null, new Point(rx, bot), 2.2, 2.2);
}
// ---- the impulse at the pre-delay and the early reflections ----------------
@@ -202,9 +202,9 @@ internal sealed class ReverbTailView : Control
}
// ---- labels ------------------------------------------------------------------
- var title = _freeze ? Text("TAIL HELD · no decay", NotaPalette.AccentBright) : Text("DECAY TAIL", NotaGraph.TitleInk);
+ var title = _freeze ? Text("Tail held · no decay", NotaPalette.AccentBright) : Text("Decay tail", NotaGraph.TitleInk);
ctx.DrawText(title, new Point(x0 - 3, 3));
- var rt = Text(_freeze ? "RT60 ∞" : NotaNum.F($"RT60 {_rt60:0.00} s"), NotaPalette.AccentBright);
+ var rt = Text(_freeze ? "RT60 ∞" : NotaNum.F($"RT60 {_rt60:0.00} s"), _freeze ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
ctx.DrawText(rt, new Point(x1 + 3 - rt.Width, 3));
var pre = Text(NotaNum.F($"pre {_preMs:0} ms"), NotaPalette.TealBright);
ctx.DrawText(pre, new Point(Math.Min(preX + 3, x1 - pre.Width - 24), h - pre.Height - 2));
diff --git a/src/managed/Nota.App/Controls/RhythmViews.cs b/src/managed/Nota.App/Controls/RhythmViews.cs
index dd6daa91..64ba4256 100644
--- a/src/managed/Nota.App/Controls/RhythmViews.cs
+++ b/src/managed/Nota.App/Controls/RhythmViews.cs
@@ -3,13 +3,13 @@
//
// Nota Rhythm's windows (the almanac's Rhythm card):
//
-// RhythmHitView the selected synth voice's hit: the amp contour (brass) over the pitch
-// drop (deep brass) or the attack click, the trigger as a teal tick; the
+// RhythmHitView the selected synth voice's hit: the amp contour (neutral ink) over the
+// pitch drop (dim) or the attack click, the trigger as a teal tick; the
// corner reads the pitch time · the decay. Drag it: across = Decay,
-// up / down = Tune. Lights when the voice fires.
+// up / down = Tune. Lights (accent) when the voice fires.
// RhythmSampleView the selected sample voice: the file as bars in the voice's hue, the
-// played region between a brass Start line and a dashed brass End line
-// (drag either), the part outside dimmed, the play position in teal.
+// played region between a Start line and a dashed End line (drag
+// either; the dragged one turns accent), the part outside dimmed, the play position in teal.
// RhythmStepStrip the sixteen steps of the selected voice and, under them, the velocity
// lane. Click toggles, shift-click accents, alt-click makes a quiet step;
// drag across paints, drag up / down (or the wheel) sets the velocity;
@@ -124,12 +124,12 @@ internal sealed class RhythmHitView : Control
g.LineTo(new Point(x, baseY - (baseY - top - 6) * (0.18 + 0.82 * e)));
}
}
- ctx.DrawGeometry(null, NotaGraph.SecondaryPen(NotaPalette.AccentDim, 1.2), pg);
+ ctx.DrawGeometry(null, NotaGraph.SecondaryPen(NotaPalette.TextTertiary, 1.2), pg);
}
else if (_punch > 0.02)
{
double ch = (baseY - top) * (0.25 + 0.6 * _punch);
- ctx.DrawLine(NotaGraph.SecondaryPen(NotaPalette.AccentDim, 1.2), new Point(x0 + 4, baseY), new Point(x0 + 4, baseY - ch));
+ ctx.DrawLine(NotaGraph.SecondaryPen(NotaPalette.TextTertiary, 1.2), new Point(x0 + 4, baseY), new Point(x0 + 4, baseY - ch));
}
// The amp contour: a fast rise, then the decay (−20 dB at the Decay time, so the tail reads).
@@ -147,11 +147,11 @@ internal sealed class RhythmHitView : Control
if (x > end) { g.LineTo(new Point(x1, baseY)); break; }
}
}
- var ampInk = _flash > 0.3 ? NotaPalette.AccentBright : NotaPalette.Accent;
+ var ampInk = _flash > 0.3 ? NotaPalette.Accent : NotaPalette.VizInk;
ctx.DrawGeometry(null, new Pen(ampInk, NotaGraph.PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round), ag);
- NotaGraph.Title(ctx, new Rect(0, 0, w, h), "HIT");
- RhythmInk.TopRight(ctx, w, _name, NotaPalette.AccentBright);
+ NotaGraph.Title(ctx, new Rect(0, 0, w, h), "Hit");
+ RhythmInk.TopRight(ctx, w, _name, NotaPalette.TextPrimary);
RhythmInk.BottomRight(ctx, w, h, _caption);
}
}
@@ -239,7 +239,7 @@ internal sealed class RhythmSampleView : Control
NotaGraph.Window(ctx, new Rect(0, 0, w, h));
double mid = (14 + h - 12) / 2, amp = (h - 26) / 2;
ctx.DrawLine(NotaGraph.GridPen, new Point(1, mid), new Point(w - 1, mid));
- NotaGraph.Title(ctx, new Rect(0, 0, w, h), "SAMPLE");
+ NotaGraph.Title(ctx, new Rect(0, 0, w, h), "Sample");
if (!_has)
{
var t = RhythmInk.Mono("double-click or drop a file", NotaPalette.TextTertiary);
@@ -258,18 +258,19 @@ internal sealed class RhythmSampleView : Control
ctx.DrawLine(inside ? inPen : outPen, new Point(x, mid - a), new Point(x, mid + a));
}
- var brass = new Pen(NotaPalette.Accent, 1);
- var dashed = new Pen(NotaPalette.Accent, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
+ IBrush Ink(int handle) => _drag == handle ? NotaPalette.Accent : NotaPalette.VizInk;
+ Pen Solid(int handle) => new(Ink(handle), 1);
+ Pen Dashed(int handle) => new(Ink(handle), 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) };
double xs = X(_start), xe = X(_end);
- ctx.DrawLine(_reverse ? dashed : brass, new Point(xs, 1), new Point(xs, h - 1));
- ctx.DrawLine(_reverse ? brass : dashed, new Point(xe, 1), new Point(xe, h - 1));
+ ctx.DrawLine(_reverse ? Dashed(0) : Solid(0), new Point(xs, 1), new Point(xs, h - 1));
+ ctx.DrawLine(_reverse ? Solid(1) : Dashed(1), new Point(xe, 1), new Point(xe, h - 1));
if (_pos >= 0)
{
double xp = X(_pos);
ctx.DrawLine(new Pen(NotaPalette.TealBright, 1), new Point(xp, 12), new Point(xp, h - 12));
}
- RhythmInk.TopRight(ctx, w, _name, NotaPalette.AccentBright);
+ RhythmInk.TopRight(ctx, w, _name, NotaPalette.TextPrimary);
RhythmInk.BottomRight(ctx, w, h, _caption);
}
}
diff --git a/src/managed/Nota.App/Controls/RuleSection.cs b/src/managed/Nota.App/Controls/RuleSection.cs
new file mode 100644
index 00000000..cd07fb1b
--- /dev/null
+++ b/src/managed/Nota.App/Controls/RuleSection.cs
@@ -0,0 +1,97 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// A device-card section (spec 012): no fill and no frame — it sits on the card surface —
+// and a 1px Rule only on an edge it shares with a neighbouring section, so a card reads as
+// one surface divided by rules instead of a stack of boxes. It keeps the 1px inset the old
+// framed box's border gave its content (inside any Padding), so nothing moves.
+// Graph windows and wells keep their own frame; this is only for sections.
+
+using System;
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Media;
+using Avalonia.VisualTree;
+
+namespace Nota.App;
+
+/// <summary>Which edges of a section carry the dividing rule.</summary>
+[Flags]
+internal enum SectionEdge
+{
+ None = 0,
+ Top = 1,
+ Left = 2,
+ /// <summary>Find them: a rule on the top or left edge that faces a neighbouring section.</summary>
+ Auto = 4,
+}
+
+internal sealed class RuleSection : Decorator
+{
+ // How far apart two sections may be and still count as neighbours (the card gutters are
+ // 4–10), and how much they must overlap along the shared edge.
+ private const double MaxGap = 16, MinOverlap = 4;
+ // How far up the tree to look for neighbours: sections sit in a grid or stack, sometimes
+ // inside a column of their own.
+ private const int SearchDepth = 4;
+
+ // Where the old box's 1px border was.
+ private static readonly Thickness Inset = new(1);
+
+ public SectionEdge Edges { get; init; } = SectionEdge.Auto;
+
+ public RuleSection() => ClipToBounds = true;
+
+ protected override Size MeasureOverride(Size availableSize)
+ {
+ var pad = Padding + Inset;
+ if (Child is not { } c) return new Size(pad.Left + pad.Right, pad.Top + pad.Bottom);
+ c.Measure(availableSize.Deflate(pad));
+ return c.DesiredSize.Inflate(pad);
+ }
+
+ protected override Size ArrangeOverride(Size finalSize)
+ {
+ Child?.Arrange(new Rect(finalSize).Deflate(Padding + Inset));
+ return finalSize;
+ }
+
+ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
+ {
+ base.OnPropertyChanged(change);
+ if (change.Property == BoundsProperty) InvalidateVisual(); // neighbours are found from the layout
+ }
+
+ public override void Render(DrawingContext context)
+ {
+ base.Render(context);
+ var edges = Edges.HasFlag(SectionEdge.Auto) ? FindEdges() : Edges;
+ if (edges == SectionEdge.None) return;
+ var r = new Rect(Bounds.Size);
+ if (edges.HasFlag(SectionEdge.Top)) context.FillRectangle(NotaPalette.Rule, new Rect(0, 0, r.Width, 1));
+ if (edges.HasFlag(SectionEdge.Left)) context.FillRectangle(NotaPalette.Rule, new Rect(0, 0, 1, r.Height));
+ }
+
+ private SectionEdge FindEdges()
+ {
+ Visual? root = this;
+ for (int i = 0; i < SearchDepth && root?.GetVisualParent() is { } p; i++) root = p;
+ if (root is null || ReferenceEquals(root, this)) return SectionEdge.None;
+
+ var edges = SectionEdge.None;
+ double w = Bounds.Width, h = Bounds.Height;
+ foreach (var v in root.GetVisualDescendants())
+ {
+ if (v is not RuleSection other || ReferenceEquals(other, this) || !other.IsVisible) continue;
+ if (other.IsVisualAncestorOf(this) || this.IsVisualAncestorOf(other)) continue;
+ if (other.TranslatePoint(default, this) is not { } o) continue;
+ double ow = other.Bounds.Width, oh = other.Bounds.Height;
+ double gapLeft = -(o.X + ow), gapTop = -(o.Y + oh);
+ double vOverlap = Math.Min(o.Y + oh, h) - Math.Max(o.Y, 0);
+ double hOverlap = Math.Min(o.X + ow, w) - Math.Max(o.X, 0);
+ if (gapLeft >= -0.5 && gapLeft <= MaxGap && vOverlap >= MinOverlap) edges |= SectionEdge.Left;
+ if (gapTop >= -0.5 && gapTop <= MaxGap && hOverlap >= MinOverlap) edges |= SectionEdge.Top;
+ }
+ return edges;
+ }
+}
diff --git a/src/managed/Nota.App/Controls/ScaleNoteMap.cs b/src/managed/Nota.App/Controls/ScaleNoteMap.cs
index 0eec4757..a4f8ea2d 100644
--- a/src/managed/Nota.App/Controls/ScaleNoteMap.cs
+++ b/src/managed/Nota.App/Controls/ScaleNoteMap.cs
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Nota Scale NOTE MAP (almanac mockups 1a / 1b): the twelve pitch classes C → B as a row of
+// Nota Scale note map (almanac mockups 1a / 1b): the twelve pitch classes C → B as a row of
// key-shaped cells — the black keys shorter and hung from the top, the white ones standing on
-// the bottom. Scale notes are filled Brass Deep with a brass edge, the root gets a Brass Light
-// edge and "root", every other note names where Fold sends it ("→ D"). Clicking a cell toggles
+// the bottom. Scale notes (chosen — the cells are toggles) are filled with an accent wash and an accent
+// edge, the root gets a bright accent edge and "root", every other note names where Fold sends it ("→ D"). Clicking a cell toggles
// it (the owner switches the scale to Custom). The note sounding now lights up: its input cell
-// brightens under a Brass Light ring, the cell it folded onto gets a fainter ring — and both
+// brightens under a bright accent ring, the cell it folded onto gets a fainter ring — and both
// fade out over a few frames after the key is released (the owner feeds Hit / Held each tick).
using System;
@@ -147,7 +147,7 @@ internal sealed class ScaleNoteMap : Control
var card = NotaPalette.SurfaceCard.Color;
var brass = NotaPalette.Accent.Color;
var lit = NotaPalette.AccentBright.Color;
- var deep = Over(brass, 0x1A, card); // Brass Deep fill (#2A2317 in Graphite)
+ var deep = Over(brass, 0x1A, card); // accent wash: a chosen scale note
var deepLive = Over(brass, 0x44, card); // …while it sounds (#4A3A1C)
Color offWhite = NotaPalette.GridRow.Color, offBlack = NotaPalette.BgSunken.Color, offLive = NotaPalette.TrackOff.Color;
double r = Mini ? 2 : 3;
diff --git a/src/managed/Nota.App/Controls/ShutterViews.cs b/src/managed/Nota.App/Controls/ShutterViews.cs
index 7ff228b2..ebac9d8e 100644
--- a/src/managed/Nota.App/Controls/ShutterViews.cs
+++ b/src/managed/Nota.App/Controls/ShutterViews.cs
@@ -3,19 +3,19 @@
//
// Nota Shutter (device kind 19) card windows, all read from the engine's telemetry
// (Shutter.h scopeRead) so the picture is what the gate does:
-// · ShPill — a STATE column pill meter: a level rising from the bottom (input / key, with
+// · ShPill — a State column pill meter: a level rising from the bottom (input / key, with
// the threshold tick) or a reduction hanging from the top.
// · ShSignalView — the Signal tab: the input over the window as teal columns, the gated
-// output in brass, the threshold (brass dashed) and the close level (Ink dashed) where
+// output in neutral ink, the threshold and the close level (dashed) where
// they act. Drag a line up or down to set the threshold / the return.
// · ShEnvelopeView — the Envelope tab: one opening drawn from the attack / hold / release /
// shape / floor (inverted for Duck). Drag the nodes sideways for the times, the floor up
// or down.
// · ShKeyView — the Sidechain tab: the detector band-pass (teal, 12 dB/oct) with its HP /
-// LP nodes to drag, under the reduction over the window (brass).
+// LP nodes to drag, under the reduction over the window (neutral ink).
// · ShPatternView — the Pattern tab: the step grid (a column per step, quantised to the
// levels) with the gain it makes on top — smooth and swing bend the curve — the current
-// step lit and the playhead. Draw / Line / Erase / Flip edit the steps with the mouse.
+// step lit (accent) and the playhead. Draw / Line / Erase / Flip edit the steps with the mouse.
// Shared drag contract (ShDragView): left button only, a gesture per drag, double-click
// resets the handle, right-click bubbles to the MIDI-learn menu.
@@ -32,7 +32,7 @@ internal sealed class ShPill : Control
{
private double _v, _tick = double.NaN;
public bool FromTop { get; init; }
- public IBrush Ink { get; init; } = NotaPalette.Accent;
+ public IBrush Ink { get; init; } = NotaPalette.VizInk;
public ShPill() { Width = 16; }
@@ -195,7 +195,7 @@ internal sealed class ShSignalView : ShDragView
for (int i = 0; i < _n; i++)
if (_in[i] > DbBot + 0.5) ctx.DrawLine(inPen, new Point(X(i), floorY), new Point(X(i), Y(_in[i])));
- // Output: the input times the gate, in brass.
+ // Output: the input times the gate, in neutral ink.
var g = new StreamGeometry();
using (var c = g.Open())
for (int i = 0; i < _n; i++)
@@ -209,15 +209,15 @@ internal sealed class ShSignalView : ShDragView
}
bool hotT = Active == HThreshold, hotR = Active == HReturn;
- ctx.DrawLine(new Pen(NotaPalette.Accent, hotT ? 1.4 : 1, new DashStyle(new double[] { 4, 4 }, 0)), new Point(0, Y(_thr)), new Point(w, Y(_thr)));
- ctx.DrawLine(new Pen(hotR ? NotaPalette.AccentDim : NotaPalette.BorderStrong, 1, new DashStyle(new double[] { 2, 4 }, 0)), new Point(0, Y(_ret)), new Point(w, Y(_ret)));
+ ctx.DrawLine(new Pen(hotT ? NotaPalette.Accent : NotaPalette.VizInk, hotT ? 1.4 : 1, new DashStyle(new double[] { 4, 4 }, 0)), new Point(0, Y(_thr)), new Point(w, Y(_thr)));
+ ctx.DrawLine(new Pen(hotR ? NotaPalette.Accent : NotaPalette.BorderStrong, 1, new DashStyle(new double[] { 2, 4 }, 0)), new Point(0, Y(_ret)), new Point(w, Y(_ret)));
NotaGraph.Title(ctx, frame, _duck ? "Signal and duck" : "Signal and gate");
- NotaGraph.Legend(ctx, w - 6, 3, ("input", NotaPalette.TealBright, NotaGraph.Mark.Area), ("output", NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 6, 3, ("input", NotaPalette.TealBright, NotaGraph.Mark.Area), ("output", NotaPalette.VizInk, NotaGraph.Mark.Line));
var thrTxt = NotaNum.F($"threshold {_thr:0.0}");
double ty = Y(_thr) - 11;
if (ty < 14) ty = Y(_thr) + 2;
- Text(ctx, thrTxt, 6, ty, NotaPalette.AccentBright);
+ Text(ctx, thrTxt, 6, ty, hotT ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
Text(ctx, "−" + _window, 6, h - 11);
TextR(ctx, "now", w - 6, h - 11);
if (_closing > _n * 0.12 && _closing < _n * 0.85)
@@ -340,11 +340,11 @@ internal sealed class ShEnvelopeView : ShDragView
c.EndFigure(false);
}
ctx.DrawGeometry(null, NotaGraph.PrimaryPen, g);
- for (int k = 0; k < 3; k++) { var n = Node(k); if (n.X < w - 2) NotaGraph.Node(ctx, n, Active == k || Active < 0 && k == 0); }
+ for (int k = 0; k < 3; k++) { var n = Node(k); if (n.X < w - 2) NotaGraph.Node(ctx, n, Active == k); }
NotaGraph.Node(ctx, Node(HFloor), Active == HFloor, NotaPalette.Teal);
NotaGraph.Title(ctx, frame, _duck ? "Duck envelope" : _retrig ? "Gate envelope · trigger" : "Gate envelope");
- TextR(ctx, "open 0\u2009dB", w - 6, 3, NotaPalette.AccentBright);
+ TextR(ctx, "open 0\u2009dB", w - 6, 3, NotaPalette.TextSecondary);
double fy = _duck ? yf + 2 : yf - 11;
if (fy > h - 24) fy = yf - 11;
TextR(ctx, (_duck ? "duck " : "floor ") + _floorText, w - 22, fy, NotaPalette.TealBright);
@@ -419,7 +419,7 @@ internal sealed class ShKeyView : ShDragView
var pt = new Point((i + 0.5) / _n * w, Bot - red * (Bot - Top) * 0.85);
if (i == 0) c.BeginFigure(pt, false); else c.LineTo(pt);
}
- ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.Accent, 0xB0), 1.3, lineJoin: PenLineJoin.Round), g);
+ ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0xB0), 1.3, lineJoin: PenLineJoin.Round), g);
}
// The key band-pass.
@@ -440,7 +440,7 @@ internal sealed class ShKeyView : ShDragView
}
NotaGraph.Title(ctx, frame, _on ? "Detector filter" : "Detector · full band");
- NotaGraph.Legend(ctx, w - 6, 3, ("key", NotaPalette.TealBright, NotaGraph.Mark.Line), (_legend, NotaPalette.AccentBright, NotaGraph.Mark.Line));
+ NotaGraph.Legend(ctx, w - 6, 3, ("key", NotaPalette.TealBright, NotaGraph.Mark.Line), (_legend, NotaPalette.VizInk, NotaGraph.Mark.Line));
static string Hz(double f) => f >= 1000 ? NotaNum.F($"{f / 1000:0.0}\u2009k") : NotaNum.F($"{f:0}");
Text(ctx, "20", 4, h - 11);
TextR(ctx, "20\u2009k", w - 4, h - 11);
@@ -551,8 +551,8 @@ internal sealed class ShPatternView : Control
NotaGraph.Window(ctx, frame);
int n = _steps.Length;
double cw = w / n;
- var ink = _map ? NotaPalette.Teal : NotaPalette.Accent;
- var inkBright = _map ? NotaPalette.TealBright : NotaPalette.AccentBright;
+ var ink = _map ? NotaPalette.Teal : NotaPalette.VizInk;
+ var inkBright = _map ? NotaPalette.TealBright : NotaPalette.VizInk;
double dim = _active ? 1 : 0.45;
// Level lines, then the step columns: the playing one lit, a stronger line every 4.
diff --git a/src/managed/Nota.App/Controls/SliderTrack.cs b/src/managed/Nota.App/Controls/SliderTrack.cs
index 00d5b738..078ef1e2 100644
--- a/src/managed/Nota.App/Controls/SliderTrack.cs
+++ b/src/managed/Nota.App/Controls/SliderTrack.cs
@@ -27,9 +27,11 @@ namespace Nota.App;
internal sealed class SliderTrack : Control
{
private static readonly IBrush Groove = NotaPalette.BgSunken;
- private static readonly IBrush Fill = NotaPalette.Accent;
- private static readonly IBrush FillDim = NotaPalette.BorderStrong;
- private static readonly IBrush Handle = NotaPalette.AccentBright;
+ private static readonly IBrush Fill = NotaPalette.VizInk; // at rest: neutral
+ private static readonly IBrush FillLive = NotaPalette.Accent; // under the pointer or in the hand
+ private static readonly IBrush FillDim = NotaPalette.Rule;
+ private static readonly IBrush Handle = NotaPalette.TextPrimary;
+ private static readonly IBrush HandleLive = NotaPalette.AccentBright;
private static readonly IBrush ModFill = NotaPalette.Teal;
private static readonly IBrush ModHandle = NotaPalette.TealBright;
private static readonly IBrush HandleDim = NotaPalette.TextTertiary;
@@ -102,6 +104,12 @@ internal sealed class SliderTrack : Control
Nudge(dy / (fine ? 1400.0 : 140.0));
}
+ // Under the pointer (or in the hand) the control is live and takes the accent; at rest
+ // its value is neutral ink — the accent marks a knob or fader only while focused or dragged.
+ private bool _hover;
+ protected override void OnPointerEntered(PointerEventArgs e) { base.OnPointerEntered(e); _hover = true; InvalidateVisual(); }
+ protected override void OnPointerExited(PointerEventArgs e) { base.OnPointerExited(e); _hover = false; InvalidateVisual(); }
+
protected override void OnPointerReleased(PointerReleasedEventArgs e)
{
if (!_drag) return;
@@ -137,7 +145,7 @@ internal sealed class SliderTrack : Control
double x = _norm * w;
double a = Bipolar ? Math.Min(w / 2, x) : 0, b = Bipolar ? Math.Max(w / 2, x) : x;
if (b - a > 0.5)
- ctx.DrawRectangle(_dim ? FillDim : _ink ?? (Modulation ? ModFill : Fill), null, new RoundedRect(new Rect(a, ty, b - a, TrackH), NotaRadius.ClipValue));
+ ctx.DrawRectangle(_dim ? FillDim : _ink ?? (Modulation ? ModFill : _drag || _hover ? FillLive : Fill), null, new RoundedRect(new Rect(a, ty, b - a, TrackH), NotaRadius.ClipValue));
if (Bipolar)
ctx.FillRectangle(Centre, new Rect(Math.Round(w / 2) - 0.5, cy - 3, 1, 6));
@@ -146,7 +154,7 @@ internal sealed class SliderTrack : Control
double hx = Math.Clamp(x, HandleW / 2, w - HandleW / 2) - HandleW / 2;
IBrush inkHandle = ReferenceEquals(_ink, NotaPalette.Rose) ? NotaPalette.RoseBright
- : ReferenceEquals(_ink, NotaPalette.Teal) ? ModHandle : _ink ?? (Modulation ? ModHandle : Handle);
+ : ReferenceEquals(_ink, NotaPalette.Teal) ? ModHandle : _ink ?? (Modulation ? ModHandle : _drag || _hover ? HandleLive : Handle);
ctx.DrawRectangle(_dim ? HandleDim : inkHandle, null,
new RoundedRect(new Rect(hx, cy - HandleH / 2, HandleW, HandleH), NotaRadius.ClipValue));
}
diff --git a/src/managed/Nota.App/Controls/SwitchTrack.cs b/src/managed/Nota.App/Controls/SwitchTrack.cs
index 74b28c3f..e7d55acf 100644
--- a/src/managed/Nota.App/Controls/SwitchTrack.cs
+++ b/src/managed/Nota.App/Controls/SwitchTrack.cs
@@ -5,8 +5,10 @@
// every side. On — a brass track, the knob in the panel colour, sitting right. Off — the
// Track off colour, an Ink 5 knob, sitting left. State reads from colour *and* position,
// never colour alone. It is always paired with a word to its right (DeviceCardKit.Switch);
-// never with an icon. Brass only: role chromas do not go on controls.
+// never with an icon. On is the accent (chosen); role chromas do not go on controls.
+// Square-cornered like every key: a 2px track and a 1.5px knob.
+using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Media;
@@ -16,7 +18,7 @@ namespace Nota.App;
internal sealed class SwitchTrack : Control
{
private static readonly IBrush TrackOn = NotaPalette.Accent;
- private static readonly IBrush TrackDim = NotaPalette.BorderStrong; // on, but its section is inactive
+ private static readonly IBrush TrackDim = NotaPalette.Rule; // on, but its section is inactive
private static readonly IBrush TrackOff = NotaPalette.TrackOff;
private static readonly IBrush KnobOn = NotaPalette.Panel;
private static readonly IBrush KnobOff = NotaPalette.TextTertiary;
@@ -44,8 +46,9 @@ internal sealed class SwitchTrack : Control
public override void Render(DrawingContext ctx)
{
var track = _on ? (_dim || !IsEffectivelyEnabled ? TrackDim : TrackOn) : TrackOff;
- ctx.DrawRectangle(track, null, new RoundedRect(new Rect(0, 0, _w, _h), _h / 2));
+ ctx.DrawRectangle(track, null, new RoundedRect(new Rect(0, 0, _w, _h), NotaRadius.ClipValue));
double x = _on ? _w - _inset - _knob : _inset;
- ctx.DrawEllipse(_on ? KnobOn : KnobOff, null, new Point(x + _knob / 2, _h / 2), _knob / 2, _knob / 2);
+ ctx.DrawRectangle(_on ? KnobOn : KnobOff, null,
+ new RoundedRect(new Rect(x, (_h - _knob) / 2, _knob, _knob), Math.Min(1.5, _knob / 4)));
}
}
diff --git a/src/managed/Nota.App/Controls/SynthViz.cs b/src/managed/Nota.App/Controls/SynthViz.cs
index ebd346e1..03581451 100644
--- a/src/managed/Nota.App/Controls/SynthViz.cs
+++ b/src/managed/Nota.App/Controls/SynthViz.cs
@@ -9,8 +9,8 @@
// Filter the response curve for the chosen type, a drag pad for cutoff (X) / reso (Y),
// with the envelope's reach on the cutoff drawn as a teal ghost
//
-// Filter also draws the mini (S) card's one graph (Mini = true): no Hz axis, a soft brass
-// wash under the curve, and the captions cut to "LP · Saw" and the cutoff in brass.
+// Filter also draws the mini (S) card's one graph (Mini = true): no Hz axis, a soft neutral
+// wash under the curve, and the captions cut to "LP · Saw" and the cutoff.
//
// All three read the engine's normalized params straight and denormalise them with the
// exact maps Synth.h uses, so the scales are real. Drawn through NotaGraph — well ground,
@@ -33,9 +33,9 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
private static readonly IBrush TextTertiary = NotaPalette.TextTertiary;
private static readonly IBrush Teal = NotaPalette.Teal;
- private static readonly IBrush Brass = NotaPalette.Accent;
+ private static readonly IBrush Ink = NotaPalette.VizInk; // curves at rest: neutral ink
private static readonly IBrush Axis = NotaPalette.TextAxis;
- private static readonly IBrush Ghost = NotaPalette.Wash(NotaPalette.Accent, 0x40);
+ private static readonly IBrush Ghost = NotaPalette.Wash(NotaPalette.VizInk, 0x40);
private static readonly Typeface Mono = NotaFonts.Mono;
private const double Pad = 6;
@@ -198,7 +198,7 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
private static readonly string[] WaveWords = { "saw", "square", "triangle", "sine" };
private static readonly string[] WaveNames = { "Saw", "Square", "Triangle", "Sine" };
- private static readonly IBrush Wash = NotaPalette.Wash(NotaPalette.Accent, 0x18);
+ private static readonly IBrush Wash = NotaPalette.Wash(NotaPalette.VizInk, 0x18);
private void RenderOsc(DrawingContext ctx, double x0, double x1, double top, double bot)
{
@@ -240,7 +240,7 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
Curve(Math.Pow(2.0, cents * t / 1200.0), ghostPen);
}
}
- Curve(1.0, new Pen(Brass, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round));
+ Curve(1.0, new Pen(Ink, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round));
string left = $"{WaveWords[wave]} · {cycles} cycles · unison {uni}";
if (wave == 1) left += $" · pw {(pw * 100).ToString("0", NotaNum.Culture)} %";
@@ -256,7 +256,7 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
for (int i = 1; i <= 3; i++) { double gy = top + (bot - top) * i / 4.0; ctx.DrawLine(gridPen, new Point(x0, gy), new Point(x1, gy)); }
var (xa, xd, sy, xh, xr) = EnvNodes();
- var pen = new Pen(Brass, NotaGraph.PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ var pen = new Pen(Ink, NotaGraph.PrimaryWidth, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
ctx.DrawLine(pen, new Point(x0, bot), new Point(xa, top));
ctx.DrawLine(pen, new Point(xa, top), new Point(xd, sy));
ctx.DrawLine(pen, new Point(xd, sy), new Point(xh, sy));
@@ -265,9 +265,9 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
// Note-off: where the key is released and the release stage begins.
ctx.DrawLine(new Pen(Ghost, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) }, new Point(xh, top - 5), new Point(xh, bot));
- NotaGraph.Node(ctx, new Point(xa, top), active: true);
- NotaGraph.Node(ctx, new Point(xd, sy), active: true);
- NotaGraph.Node(ctx, new Point(xr, bot), active: true);
+ NotaGraph.Node(ctx, new Point(xa, top), active: _drag == 0);
+ NotaGraph.Node(ctx, new Point(xd, sy), active: _drag == 1);
+ NotaGraph.Node(ctx, new Point(xr, bot), active: _drag == 2);
double a = ExpMap(G("attack"), 0.001, 2.0), d = ExpMap(G("decay"), 0.002, 2.0), r = ExpMap(G("release"), 0.002, 3.0);
string left = $"{NotaNum.Time(a)} · {NotaNum.Time(d)} · {NotaNum.Db(AudioMath.LinToDb(G("sustain")))} · {NotaNum.Time(r)}";
@@ -306,11 +306,11 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
DrawCurve(ctx, x0, x1, top, bot, modCut, res, type, NotaGraph.SecondaryPen(Teal, NotaGraph.SecondaryWidth));
}
if (Mini) DrawCurve(ctx, x0, x1, top, bot, cut, res, type, null, Wash);
- DrawCurve(ctx, x0, x1, top, bot, cut, res, type, new Pen(Brass, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round));
+ DrawCurve(ctx, x0, x1, top, bot, cut, res, type, new Pen(Ink, NotaGraph.PrimaryWidth, lineJoin: PenLineJoin.Round));
double cx = x0 + cut * span;
ctx.DrawLine(new Pen(Ghost, 1) { DashStyle = new DashStyle(new double[] { 3, 3 }, 0) }, new Point(cx, top - 5), new Point(cx, bot));
- NotaGraph.Node(ctx, new Point(cx, CurveTop(top, bot, res)), active: true);
+ NotaGraph.Node(ctx, new Point(cx, CurveTop(top, bot, res)), active: _drag == 0);
double hz = ExpMap(cut, 20, 18000);
string[] names = { "Off", "LP", "HP", "BP" };
@@ -318,7 +318,7 @@ internal sealed class SynthViz : Control, IMidiLearnRegions
{
Text(ctx, $"{names[type]} · {WaveNames[Wave()]}", x0 + 1, Pad - 3, TextTertiary);
string hzs = NotaNum.Hz(hz);
- Text(ctx, hzs, x1 - 1 - MeasureW(hzs), Pad - 3, NotaPalette.AccentBright);
+ Text(ctx, hzs, x1 - 1 - MeasureW(hzs), Pad - 3, _drag == 0 ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
return;
}
Text(ctx, $"{names[type]} 12 dB/oct · {NotaNum.Hz(hz)} · Q {res.ToString("0.00", NotaNum.Culture)}", x0 + 1, Pad - 3, TextTertiary);
diff --git a/src/managed/Nota.App/Controls/UtilityViews.cs b/src/managed/Nota.App/Controls/UtilityViews.cs
index 61b45907..5bbae4c9 100644
--- a/src/managed/Nota.App/Controls/UtilityViews.cs
+++ b/src/managed/Nota.App/Controls/UtilityViews.cs
@@ -4,13 +4,13 @@
// Nota Utility card windows (the centre panel's three tabs), all read from the engine
// (Utility.h scopeRead), so the picture is what the device measures and runs:
// • UtFieldView — Field: the stereo field by frequency — lows at the bottom, highs at the
-// top; where each band's energy sits (brass trace), how wide it is (teal
+// top; where each band's energy sits (neutral trace), how wide it is (teal
// dots either side) and, dashed, how wide the width setting makes an
// uncorrelated signal. Drag sideways for the balance, up / down for the width;
-// • UtWidthView — Mono: the configured width over frequency (brass) — the mono region
+// • UtWidthView — Mono: the configured width over frequency (neutral ink) — the mono region
// shaded — against the output's measured width (teal, dashed). Drag
// sideways for the mono cutoff, up / down for the width;
-// • UtLevelView — Levels: input (teal) and output (brass) over the last 8 s in the
+// • UtLevelView — Levels: input (teal) and output (neutral ink) over the last 8 s in the
// meter's unit, the target dashed. Drag up / down for the target.
// UtCorrBar is the −1 … +1 correlation bar of the Routing panel.
@@ -89,7 +89,7 @@ internal sealed class UtFieldView : VtWindowBase
ctx.DrawEllipse(dot, null, new Point(Math.Clamp(x0 - s, 2, w - 2), y), 1.7, 1.7);
ctx.DrawEllipse(dot, null, new Point(Math.Clamp(x0 + s, 2, w - 2), y), 1.7, 1.7);
}
- // Brass trace: where each band's energy sits.
+ // Neutral trace: where each band's energy sits.
var g = new StreamGeometry();
using (var c = g.Open())
{
@@ -116,7 +116,7 @@ internal sealed class UtFieldView : VtWindowBase
}
NotaGraph.Title(ctx, frame, "Stereo field");
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _legend, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _legend, NotaPalette.VizInk);
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "L");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "R");
var c0 = NotaGraph.AxisText("C");
@@ -236,11 +236,11 @@ internal sealed class UtWidthView : VtWindowBase
c.EndFigure(false);
}
ctx.DrawGeometry(null, NotaGraph.PrimaryPen, g);
- if (!double.IsNaN(_monoHz)) NotaGraph.Node(ctx, new Point(X(_monoHz), Y(At(_resp, _nr, _rLo, _rHi, _monoHz))), true);
+ if (!double.IsNaN(_monoHz)) NotaGraph.Node(ctx, new Point(X(_monoHz), Y(At(_resp, _nr, _rLo, _rHi, _monoHz))), Dragging);
}
NotaGraph.Title(ctx, frame, "Width by frequency");
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _legend, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _legend, NotaPalette.VizInk);
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "20");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "18 k");
foreach (double t in new double[] { 2000 })
@@ -250,7 +250,7 @@ internal sealed class UtWidthView : VtWindowBase
}
if (!double.IsNaN(_monoHz))
{
- var ft = NotaGraph.AxisText(_monoHz >= 1000 ? NotaNum.F($"{_monoHz / 1000:0.#} k") : NotaNum.F($"{_monoHz:0}"), NotaPalette.AccentBright);
+ var ft = NotaGraph.AxisText(_monoHz >= 1000 ? NotaNum.F($"{_monoHz / 1000:0.#} k") : NotaNum.F($"{_monoHz:0}"), Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
ctx.DrawText(ft, new Point(Math.Clamp(X(_monoHz) - ft.Width / 2, 22, Math.Max(22, w - ft.Width - 30)), h - ft.Height - 2));
}
var scale = NotaGraph.AxisText("100 %");
@@ -315,7 +315,7 @@ internal sealed class UtLevelView : VtWindowBase
}
NotaGraph.Title(ctx, frame, "Input and output");
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _legend, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _legend, NotaPalette.VizInk);
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, NotaNum.F($"−{_sec:0} s"));
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, "now");
var tt = NotaGraph.AxisText(_targetText);
@@ -342,7 +342,7 @@ internal sealed class UtCorrBar : Control
ctx.DrawRectangle(NotaPalette.BgSunken, new Pen(NotaPalette.GraphBorder, 1), rr);
using (ctx.PushClip(rr)) ctx.FillRectangle(NotaPalette.Wash(NotaPalette.Danger, 0x55), new Rect(0, 0, w / 2, h));
double x = (_c + 1) / 2 * w;
- var ink = _c < 0 ? NotaPalette.Danger : _c < 0.3 ? NotaPalette.Accent : NotaPalette.Success;
+ var ink = _c < 0 ? NotaPalette.Danger : _c < 0.3 ? NotaPalette.Warning : NotaPalette.Success;
ctx.FillRectangle(ink, new Rect(Math.Clamp(x - 1.5, 0, w - 3), -1, 3, h + 2));
}
}
diff --git a/src/managed/Nota.App/Controls/ValueBar.cs b/src/managed/Nota.App/Controls/ValueBar.cs
index 6451fdda..27d5138f 100644
--- a/src/managed/Nota.App/Controls/ValueBar.cs
+++ b/src/managed/Nota.App/Controls/ValueBar.cs
@@ -17,9 +17,10 @@ namespace Nota.App;
public sealed class ValueBar : Control
{
private static readonly IBrush Bg = NotaPalette.BgSunken;
- private static readonly IBrush Border = NotaPalette.BorderDefault;
- private static readonly IBrush FillAccent = NotaPalette.Teal;
- private static readonly IBrush FillBrass = NotaPalette.Accent;
+ private static readonly IBrush Border = NotaPalette.Rule;
+ private static readonly IBrush FillAccent = NotaPalette.Teal; // modulation
+ private static readonly IBrush FillBrass = NotaPalette.Wash(NotaPalette.VizInk, 0x40); // at rest: neutral
+ private static readonly IBrush FillLive = NotaPalette.Wash(NotaPalette.Accent, 0x8C); // live
private static readonly IBrush TextBrush = NotaPalette.TextPrimary;
private static readonly Typeface Mono = NotaFonts.Mono;
@@ -76,6 +77,12 @@ public sealed class ValueBar : Control
if (dv != 0) Apply(_value + dv);
}
+ // Under the pointer (or in the hand) the control is live and takes the accent; at rest
+ // its value is neutral ink — the accent marks a knob or fader only while focused or dragged.
+ private bool _hover;
+ protected override void OnPointerEntered(PointerEventArgs e) { base.OnPointerEntered(e); _hover = true; InvalidateVisual(); }
+ protected override void OnPointerExited(PointerEventArgs e) { base.OnPointerExited(e); _hover = false; InvalidateVisual(); }
+
protected override void OnPointerReleased(PointerReleasedEventArgs e)
{
if (_drag) GestureEnd?.Invoke();
@@ -96,13 +103,13 @@ public sealed class ValueBar : Control
{
double w = Bounds.Width, h = Bounds.Height;
if (w <= 0 || h <= 0) return;
- var rrect = new RoundedRect(new Rect(0, 0, w, h), 4);
+ var rrect = new RoundedRect(new Rect(0, 0, w, h), NotaRadius.ControlValue);
ctx.DrawRectangle(Bg, new Pen(Border, 1), rrect);
double fw = _value * w;
if (fw > 1)
{
- using (ctx.PushClip(new RoundedRect(new Rect(0, 0, fw, h), 4)))
- ctx.DrawRectangle(Accent ? FillAccent : FillBrass, null, new Rect(0, 0, w, h), 4, 4);
+ using (ctx.PushClip(new RoundedRect(new Rect(0, 0, fw, h), NotaRadius.ControlValue)))
+ ctx.DrawRectangle(Accent ? FillAccent : _drag || _hover ? FillLive : FillBrass, null, new Rect(0, 0, w, h), NotaRadius.ControlValue, NotaRadius.ControlValue);
}
var text = new FormattedText(_fmt(_value), System.Globalization.CultureInfo.InvariantCulture,
FlowDirection.LeftToRight, Mono, 9.5, TextBrush);
diff --git a/src/managed/Nota.App/Controls/ValveViews.cs b/src/managed/Nota.App/Controls/ValveViews.cs
index 67c4496e..b5881636 100644
--- a/src/managed/Nota.App/Controls/ValveViews.cs
+++ b/src/managed/Nota.App/Controls/ValveViews.cs
@@ -2,7 +2,7 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Nota Valve card windows: VlResponseView — a magnitude response on a log-frequency grid,
-// read from the engine (so the picture is the filters the amp runs): the curve now in brass,
+// read from the engine (so the picture is the filters the amp runs): the curve now in neutral ink,
// a reference dashed in teal (the tone stack flat, or the cabinet on axis) and an optional
// node. The Amp tab uses it for the tone stack (drag: sideways = the middle frequency, up /
// down = the middle), the Cab tab for the cabinet (sideways = off-axis, up / down = the mic
@@ -80,7 +80,7 @@ internal sealed class VlResponseView : VtWindowBase
}
ctx.DrawGeometry(null, new Pen(NotaPalette.Wash(NotaPalette.Teal, 0x90), 1.1, new DashStyle(new double[] { 4, 4 }, 0)), Line(_ref));
ctx.DrawGeometry(null, NotaGraph.PrimaryPen, Line(_now));
- if (!double.IsNaN(_nodeHz)) NotaGraph.Node(ctx, new Point(X(_nodeHz), Y(At(_now, _nodeHz))), true);
+ if (!double.IsNaN(_nodeHz)) NotaGraph.Node(ctx, new Point(X(_nodeHz), Y(At(_now, _nodeHz))), Dragging);
}
NotaGraph.Title(ctx, frame, _title);
@@ -89,7 +89,7 @@ internal sealed class VlResponseView : VtWindowBase
{
double t = Ticks[i];
bool near = !double.IsNaN(_nodeHz) && Math.Abs(Math.Log(t / _nodeHz)) < 0.25;
- var ft = NotaGraph.AxisText(t >= 1000 ? NotaNum.F($"{t / 1000:0.#} k") : NotaNum.F($"{t:0}"), near ? NotaPalette.AccentBright : null);
+ var ft = NotaGraph.AxisText(t >= 1000 ? NotaNum.F($"{t / 1000:0.#} k") : NotaNum.F($"{t:0}"), near ? (Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary) : null);
double x = Math.Clamp(X(t) - ft.Width / 2, 4, Math.Max(4, w - ft.Width - 4));
ctx.DrawText(ft, new Point(x, h - ft.Height - 2));
}
diff --git a/src/managed/Nota.App/Controls/VelocityHistoryViz.cs b/src/managed/Nota.App/Controls/VelocityHistoryViz.cs
index a686cd2c..c56362ff 100644
--- a/src/managed/Nota.App/Controls/VelocityHistoryViz.cs
+++ b/src/managed/Nota.App/Controls/VelocityHistoryViz.cs
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Nota Velocity LAST 12 NOTES (almanac mockup 1a): one column per note, oldest left. The
+// Nota Velocity last-12-notes view (almanac mockup 1a): one column per note, oldest left. The
// outline is the velocity that came in, the fill the velocity that went out — the newest in
-// Brass Light, the rest in Brass Dim. Columns ease to their new heights as notes shift left,
+// full neutral ink, the rest dimmer. Columns ease to their new heights as notes shift left,
// so a stream of notes scrolls rather than flickers. A bypassed device greys the fills.
using System;
@@ -17,8 +17,8 @@ namespace Nota.App;
internal sealed class VelocityHistoryViz : Control
{
private static readonly IBrush Outline = NotaPalette.BorderStrong;
- private static readonly IBrush Fill = NotaPalette.AccentDim;
- private static readonly IBrush FillNew = NotaPalette.AccentBright;
+ private static readonly IBrush Fill = NotaPalette.Wash(NotaPalette.VizInk, 0x80);
+ private static readonly IBrush FillNew = NotaPalette.VizInk;
private static readonly IBrush FillOff = NotaPalette.BorderStrong;
public const int Slots = 12;
diff --git a/src/managed/Nota.App/Controls/VelocityTransferViz.cs b/src/managed/Nota.App/Controls/VelocityTransferViz.cs
index 4833ac05..df9f484c 100644
--- a/src/managed/Nota.App/Controls/VelocityTransferViz.cs
+++ b/src/managed/Nota.App/Controls/VelocityTransferViz.cs
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Nota Velocity TRANSFER plot (almanac mockups 1a / 1b): input velocity across, output up.
+// Nota Velocity transfer plot (almanac mockups 1a / 1b): input velocity across, output up.
// In a sunken well: the Out range as two dashed lines, the band Random can spread a note over
-// (a brass wash around the curve, clipped to the range), the transfer curve in brass and the
-// last 12 notes as dots — older ones fainter, the newest a Brass Light dot with a halo. The
+// (a neutral wash around the curve, clipped to the range), the transfer curve in neutral ink and
+// the last 12 notes as dots — older ones fainter, the newest a full dot with a halo, and an accent ring that pops as a note plays. The
// full view adds the centre cross and the dashed identity diagonal.
//
// Motion: the curve and band glide to a new setting (a mode switch or a preset morphs rather
@@ -28,11 +28,11 @@ internal sealed class VelocityTransferViz : Control
private static readonly IBrush Cross = NotaPalette.GridBeat;
private static readonly IBrush Limit = NotaPalette.BorderStrong;
private static readonly IBrush Diag = NotaPalette.BorderDefault;
- private static readonly IBrush Band = NotaPalette.Wash(NotaPalette.Accent, 0x1F);
- private static readonly IBrush Curve = NotaPalette.Accent;
+ private static readonly IBrush Band = NotaPalette.Wash(NotaPalette.VizInk, 0x1F);
+ private static readonly IBrush Curve = NotaPalette.VizInk;
private static readonly IBrush CurveOff = NotaPalette.BorderStrong;
- private static readonly IBrush Latest = NotaPalette.AccentBright;
- private static readonly IBrush Halo = NotaPalette.Wash(NotaPalette.AccentBright, 0x40);
+ private static readonly IBrush Latest = NotaPalette.VizInk;
+ private static readonly IBrush Halo = NotaPalette.Wash(NotaPalette.VizInk, 0x40);
private const int N = 41; // curve samples across the input
private const double PopMs = 220, RingMs = 650;
@@ -152,7 +152,7 @@ internal sealed class VelocityTransferViz : Control
if (!latest)
{
double a = 0.25 + 0.5 * (i + 12 - n) / 12.0;
- var ink = _bypassed ? CurveOff : NotaPalette.Wash(NotaPalette.Accent, (byte)Math.Round(a * 255));
+ var ink = _bypassed ? CurveOff : NotaPalette.Wash(NotaPalette.VizInk, (byte)Math.Round(a * 255));
double r = Full ? 2.5 : 2;
ctx.DrawEllipse(ink, null, p, r, r);
continue;
diff --git a/src/managed/Nota.App/Controls/VintageViews.cs b/src/managed/Nota.App/Controls/VintageViews.cs
index 78d88e0b..dafdf475 100644
--- a/src/managed/Nota.App/Controls/VintageViews.cs
+++ b/src/managed/Nota.App/Controls/VintageViews.cs
@@ -3,10 +3,10 @@
//
// Nota Vintage card windows (the centre panel's three tabs):
// • VtCurveView — Curve: the static transfer curve the engine runs (input level → output,
-// brass), what reaches the output with Mix and Output (teal), the dry
+// neutral ink), what reaches the output with Mix and Output (teal), the dry
// line dashed, a dot where the input peak sits on the curve and the dust
// of Crackle; drag up / down for the drive;
-// • VtWearView — Wear: the pitch drift over the last ~4 s in cents — wow in brass,
+// • VtWearView — Wear: the pitch drift over the last ~4 s in cents — wow in neutral ink,
// flutter in teal — from the engine's history; drag up / down for the
// depth of the selected source, sideways for its rate;
// • VtHarmView — Output: the harmonics the curve adds at the input level (f … 7f,
@@ -126,14 +126,14 @@ internal sealed class VtCurveView : VtWindowBase
double t = Math.Clamp(_in, 0, 1), f = t * (_n - 1);
int a = (int)Math.Floor(f), b = Math.Min(_n - 1, a + 1);
double yv = _curve[a] + (_curve[b] - _curve[a]) * (f - a);
- NotaGraph.Node(ctx, new Point(X(t), Y(yv)), true);
+ NotaGraph.Node(ctx, new Point(X(t), Y(yv)), Dragging);
}
if (differs) NotaGraph.Legend(ctx, w - 5, 14, ("heard", NotaPalette.TealBright, NotaGraph.Mark.Line));
}
// dust: re-sprinkled every frame, as many specks as the crackle asks for
int dots = (int)(_crackle * 26);
- var dust = NotaPalette.Wash(NotaPalette.Accent, 0x70);
+ var dust = NotaPalette.Wash(NotaPalette.VizInk, 0x70);
for (int i = 0; i < dots; i++)
{
double rr = 0.6 + Rand() * 0.8;
@@ -209,7 +209,7 @@ internal sealed class VtWearView : VtWindowBase
void Labels()
{
NotaGraph.Title(ctx, frame, "Pitch drift");
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _peak, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _peak, Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
if (_show != 0) NotaGraph.Legend(ctx, w - 5, h - 26, ("flutter", NotaPalette.TealBright, NotaGraph.Mark.Line));
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomLeft, "0");
NotaGraph.Axis(ctx, frame, NotaGraph.Corner.BottomRight, _end);
@@ -261,8 +261,8 @@ internal sealed class VtHarmView : VtWindowBase
var ft = NotaGraph.AxisText(_floorText, NotaPalette.TealBright);
ctx.DrawText(ft, new Point(w - ft.Width - 5, Math.Max(top, fy - ft.Height - 2)));
}
- var bar = new Pen(NotaPalette.Accent, 3, lineCap: PenLineCap.Round);
- var dim = new Pen(NotaPalette.Wash(NotaPalette.Accent, 0x50), 3, lineCap: PenLineCap.Round);
+ var bar = new Pen(NotaPalette.VizInk, 3, lineCap: PenLineCap.Round);
+ var dim = new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0x50), 3, lineCap: PenLineCap.Round);
for (int k = 0; k < 7; k++)
{
double x = Xk(k);
@@ -272,7 +272,7 @@ internal sealed class VtHarmView : VtWindowBase
}
NotaGraph.Title(ctx, frame, "Harmonics");
- NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _thd, NotaPalette.AccentBright);
+ NotaGraph.Axis(ctx, frame, NotaGraph.Corner.TopRight, _thd, Dragging ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
string[] names = { "f", "2f", "3f", "4f", "5f", "6f", "7f" };
for (int k = 0; k < 7; k++)
{
diff --git a/src/managed/Nota.App/Controls/VoltEnv.cs b/src/managed/Nota.App/Controls/VoltEnv.cs
index a24d7c40..382f237c 100644
--- a/src/managed/Nota.App/Controls/VoltEnv.cs
+++ b/src/managed/Nota.App/Controls/VoltEnv.cs
@@ -19,7 +19,7 @@ namespace Nota.App;
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static readonly IBrush AccentBright = NotaPalette.AccentBright;
+ private static readonly IBrush Ink = NotaPalette.VizInk;
private static readonly IBrush TextTertiary = NotaPalette.TextTertiary;
private static readonly IBrush GridB = NotaGraph.Grid;
private static readonly Typeface Face = NotaFonts.Mono;
@@ -29,8 +29,9 @@ namespace Nota.App;
private string _title = "AMP ENV";
private int _drag = -1; // 0 attack · 1 decay/sustain · 2 release
- // Curve accent (Nota Operator tints modulator envelopes teal); defaults to brass.
- public IBrush Accent { get; set; } = AccentBright;
+ // Curve ink (Nota Operator tints modulator envelopes teal); defaults to neutral ink.
+ // The node being dragged turns accent.
+ public IBrush Accent { get; set; } = Ink;
// Draw the title in the plot's corner. Off when the card already names the graph
// in a header above it (Nota Bass).
@@ -111,9 +112,10 @@ namespace Nota.App;
ctx.DrawLine(pen, new Point(xa, top), new Point(xd, sy));
ctx.DrawLine(pen, new Point(xd, sy), new Point(xh, sy));
ctx.DrawLine(pen, new Point(xh, sy), new Point(xr, bot));
- foreach (var pt in new[] { new Point(xa, top), new Point(xd, sy), new Point(xr, bot) })
- ctx.DrawEllipse(Accent, null, pt, 3.2, 3.2);
+ var nodes = new[] { new Point(xa, top), new Point(xd, sy), new Point(xr, bot) };
+ for (int k = 0; k < nodes.Length; k++)
+ ctx.DrawEllipse(_drag == k ? NotaPalette.Accent : Accent, null, nodes[k], 3.2, 3.2);
if (ShowTitle)
- ctx.DrawText(new FormattedText(_title, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Face, 8, TextTertiary), new Point(x0, 5));
+ ctx.DrawText(new FormattedText(NotaText.Label(_title), CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Face, 8, TextTertiary), new Point(x0, 5));
}
}
diff --git a/src/managed/Nota.App/Controls/VoltFilter.cs b/src/managed/Nota.App/Controls/VoltFilter.cs
index 5e5834f5..4fef483b 100644
--- a/src/managed/Nota.App/Controls/VoltFilter.cs
+++ b/src/managed/Nota.App/Controls/VoltFilter.cs
@@ -19,7 +19,7 @@ namespace Nota.App;
{
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static readonly IBrush AccentBright = NotaPalette.AccentBright;
+ private static readonly IBrush Ink = NotaPalette.VizInk; // the curve at rest: neutral ink
private static readonly IBrush GridB = NotaGraph.Grid;
private static readonly Typeface Face = NotaFonts.Mono;
private readonly IAudioEngine _e;
@@ -62,9 +62,9 @@ namespace Nota.App;
void G1((int i, string id) p) { if (p.i < 0) return; if (begin) _e.BeginAutomationWrite(_t, AutomationTarget.PluginParam, -1, -1, p.id); else _e.EndAutomationWrite(_t, AutomationTarget.PluginParam, -1, -1, p.id); }
G1(_freq); G1(_reso);
}
- private static readonly IBrush FillB = NotaPalette.Wash(NotaPalette.Accent, 0x18);
+ private static readonly IBrush FillB = NotaPalette.Wash(NotaPalette.VizInk, 0x18);
private static readonly IBrush AxisB = NotaPalette.TextAxis;
- private static readonly IBrush HandleB = NotaPalette.AccentBright;
+ private static readonly IBrush HandleB = NotaPalette.Accent;
private (double x0, double x1, double top, double bot) Geo()
{ return (8, Bounds.Width - 8, 15, Bounds.Height - 14); }
@@ -127,13 +127,13 @@ namespace Nota.App;
gc.LineTo(new Point(pts[^1].X, bot));
gc.EndFigure(true);
}
- var pen = new Pen(AccentBright, 1.8, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ var pen = new Pen(Ink, 1.8, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
for (int i = 1; i < pts.Count; i++) ctx.DrawLine(pen, pts[i - 1], pts[i]);
// Cutoff marker line + draggable handle at the curve's cutoff point.
- ctx.DrawLine(new Pen(NotaPalette.Wash(NotaPalette.AccentBright, 0x40), 1), new Point(cx, top), new Point(cx, bot));
+ ctx.DrawLine(new Pen(NotaPalette.Wash(_drag ? NotaPalette.Accent : NotaPalette.VizInk, 0x40), 1), new Point(cx, top), new Point(cx, bot));
double hy = _type == 3 ? bot : Math.Max(top + 2, top + (bot - top) * 0.34 - res * ((bot - top) * 0.34) * 0.92);
- NotaGraph.Node(ctx, new Point(cx, hy), active: true);
+ NotaGraph.Node(ctx, new Point(cx, hy), active: _drag);
// Axis labels: dB left, frequency scale along the bottom.
void Lbl(string t, double x, double y, IBrush b) => ctx.DrawText(new FormattedText(t, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, Face, 8, b), new Point(x, y));
@@ -143,7 +143,7 @@ namespace Nota.App;
for (int i = 0; i < 5; i++)
{ double lx = x0 + (x1 - x0) * i / 4.0; Lbl(NotaNum.Hz(HzAt(i / 4.0)), Math.Clamp(lx - 6, x0, x1 - 22), bot + 2, AxisB); }
double hz = HzAt(cut);
- Glyph.Draw(ctx, GlyphKind.Record, new Rect(x1 - 52, top + 2, 5, 5), AccentBright);
- Lbl(NotaNum.Hz(hz), x1 - 45, top - 1, AccentBright);
+ Glyph.Draw(ctx, GlyphKind.Record, new Rect(x1 - 52, top + 2, 5, 5), _drag ? HandleB : NotaPalette.TextSecondary);
+ Lbl(NotaNum.Hz(hz), x1 - 45, top - 1, _drag ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
}
}
diff --git a/src/managed/Nota.App/Controls/VoltMatrix.cs b/src/managed/Nota.App/Controls/VoltMatrix.cs
index 62a899c4..0c99e86d 100644
--- a/src/managed/Nota.App/Controls/VoltMatrix.cs
+++ b/src/managed/Nota.App/Controls/VoltMatrix.cs
@@ -3,7 +3,7 @@
//
// Nota Volt modulation matrix: a source×destination grid of bipolar cells. Drag a cell
// vertically to set its amount (up = positive, down = negative); right-click or
-// double-click clears it. A route reads as a brass-washed cell carrying its signed
+// double-click clears it. A route reads as a neutral-washed cell carrying its signed
// amount — the deeper the wash, the more of it — and an empty one stays a dark well, so
// the routes a patch actually uses are the only thing on screen. Modulator rows are
// named in teal, performance sources in plain ink. Reads/writes the mtx{s}_{d} plugin
@@ -25,8 +25,8 @@ internal sealed class VoltMatrix : Control
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
private static readonly IBrush GridB = NotaGraph.Grid;
private static readonly IBrush Teal = NotaPalette.Teal;
- private static readonly IBrush Lit = NotaPalette.AccentBright;
- private static readonly IBrush LitEdge = NotaPalette.BorderBrass;
+ private static readonly IBrush Lit = NotaPalette.TextPrimary;
+ private static readonly IBrush LitEdge = NotaPalette.BorderStrong;
private static readonly IBrush TxtC = NotaPalette.TextPrimary;
private static readonly IBrush MutedC = NotaPalette.TextTertiary;
private static readonly IBrush CellBg = NotaPalette.BgSunken;
@@ -122,9 +122,9 @@ internal sealed class VoltMatrix : Control
double amt = (_e.PluginParamGet(_t, -1, i) - 0.5) * 2.0;
bool on = Math.Abs(amt) > 0.01;
if (!on) { ctx.DrawRectangle(CellBg, new Pen(GridB, 1), r, 2, 2); continue; }
- // A route lights the whole cell: a brass wash that deepens with the amount,
- // a brass hairline, and the signed number in Brass Light.
- var wash = NotaPalette.Wash(NotaPalette.Accent, (byte)(0x18 + 0x40 * Math.Min(1.0, Math.Abs(amt))));
+ // A route lights the whole cell: a neutral wash that deepens with the amount,
+ // a hairline, and the signed number in primary ink.
+ var wash = NotaPalette.Wash(NotaPalette.VizInk, (byte)(0x18 + 0x40 * Math.Min(1.0, Math.Abs(amt))));
ctx.DrawRectangle(wash, new Pen(LitEdge, 1), r, 2, 2);
if (r.Width >= 18)
Txt(ctx, (amt > 0 ? "+" : "−") + (int)Math.Round(Math.Abs(amt) * 100), r.X + r.Width / 2, r.Y + r.Height / 2 - 5, Lit, 8, true);
diff --git a/src/managed/Nota.App/Controls/WaveIcon.cs b/src/managed/Nota.App/Controls/WaveIcon.cs
index 2e1b3cf6..50746b53 100644
--- a/src/managed/Nota.App/Controls/WaveIcon.cs
+++ b/src/managed/Nota.App/Controls/WaveIcon.cs
@@ -11,10 +11,10 @@ namespace Nota.App;
// A tiny waveform glyph (saw/square/triangle/sine) for the oscillator combo-boxes.
internal sealed class WaveIcon : Control
{
- private static readonly IBrush AccentBright = NotaPalette.AccentBright;
+ private static readonly IBrush Ink = NotaPalette.VizInk;
private readonly int _w;
// Stroke colour (settable so selected/unselected chips can retint the glyph).
- public IBrush Stroke { get; set; } = AccentBright;
+ public IBrush Stroke { get; set; } = Ink;
public WaveIcon(int wave) { _w = wave; Width = 22; Height = 12; }
public override void Render(DrawingContext ctx)
{
diff --git a/src/managed/Nota.App/DeviceCardKit.cs b/src/managed/Nota.App/DeviceCardKit.cs
index 77c81be0..fc5a4996 100644
--- a/src/managed/Nota.App/DeviceCardKit.cs
+++ b/src/managed/Nota.App/DeviceCardKit.cs
@@ -20,14 +20,15 @@ namespace Nota.App;
internal static class DeviceCardKit
{
internal const double CardH = 260;
- internal const double HeaderH = 22; // almanac device header: 20–22
+ internal const double HeaderH = 22; // device header: a raised, bevelled 22px strip
internal static readonly IBrush Raised = NotaPalette.SurfaceRaised;
internal static readonly IBrush Card2 = NotaPalette.SurfaceCard;
internal static readonly IBrush Sunken = NotaPalette.BgSunken;
internal static readonly IBrush BorderDef = NotaPalette.BorderDefault;
internal static readonly IBrush BorderStrong = NotaPalette.BorderStrong;
- internal static readonly IBrush Brass = NotaPalette.Accent;
+ internal static readonly IBrush Brass = NotaPalette.Accent; // the accent: live or chosen only
+ internal static readonly IBrush VizInk = NotaPalette.VizInk; // a value at rest
internal static readonly IBrush Success = NotaPalette.Success;
internal static readonly IBrush Danger = NotaPalette.Danger;
internal static readonly IBrush TextPrimary = NotaPalette.TextPrimary;
@@ -48,11 +49,11 @@ internal static class DeviceCardKit
// readout and the Drum Rack pad labels.
internal static string NoteName(int note) => $"{NoteNames[((note % 12) + 12) % 12]}{note / 12 - 1}";
- // A parameter cell, as the almanac draws it: knob, then a caps label 7/700 over a mono
- // value 7, centred, no gap — line heights 9 and 10, so under a 34 knob the cell is
- // exactly 53px tall. Label and value turn Brass Light when the parameter is changed
- // from its default (or is what the current tab is about — pass `emphasised`). Under
- // modulation the arc takes its source's chroma and the label stays neutral.
+ // A parameter cell: knob, then its name (sentence case, 8/500) over a mono value 8,
+ // centred, no gap — line heights 9 and 10, so under a 34 knob the cell is exactly 53px
+ // tall. A parameter changed from its default (or what the current tab is about — pass
+ // `emphasised`) lifts its name to primary ink; the accent is kept for a knob in the
+ // hand. Under modulation the arc takes its source's chroma and the label stays neutral.
internal static Control KnobCell(string name, Knob knob, TextBlock value, double cellW = 58, bool emphasised = false, IBrush? labelInk = null)
{
knob.HorizontalAlignment = HorizontalAlignment.Center;
@@ -63,8 +64,8 @@ internal static class DeviceCardKit
value.FontFamily = NotaFonts.MonoFamily;
var lbl = new TextBlock
{
- Text = name.ToUpperInvariant(), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, LineHeight = 9, Foreground = labelInk ?? TextTertiary,
+ Text = NotaText.Label(name), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ LineHeight = 9, Foreground = labelInk ?? TextSecondary,
HorizontalAlignment = HorizontalAlignment.Center, TextAlignment = TextAlignment.Center,
TextTrimming = TextTrimming.CharacterEllipsis, MaxWidth = cellW - 2,
};
@@ -72,24 +73,24 @@ internal static class DeviceCardKit
void Paint()
{
bool hot = knob.ArcColor is null && (emphasised || knob.IsModified);
- lbl.Foreground = hot ? NotaPalette.AccentBright : labelInk ?? TextTertiary;
- value.Foreground = hot ? NotaPalette.AccentBright : valueInk;
+ lbl.Foreground = hot ? TextPrimary : labelInk ?? TextSecondary;
+ value.Foreground = valueInk;
}
knob.ValueSet += Paint;
Paint();
return new StackPanel { Width = cellW, Spacing = 0, Children = { knob, lbl, value } };
}
- // An on/off switch with its word to the right (almanac: always a word, never an icon;
- // 7px caps inside a device). Left button toggles; right-click bubbles to the CV menu.
+ // An on/off switch with its word to the right (always a word, never an icon; 8px
+ // sentence case inside a device). Left button toggles; right-click bubbles to the CV menu.
// `sync` repaints from `get` — register it with the card's live-follow refreshers.
internal static Border Switch(string label, Func<bool> get, Action toggle, out Action sync, Func<bool>? dim = null, Func<string>? liveLabel = null)
{
var track = new SwitchTrack();
var txt = new TextBlock
{
- Text = label.ToUpperInvariant(), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, VerticalAlignment = VerticalAlignment.Center,
+ Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ VerticalAlignment = VerticalAlignment.Center,
};
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 5, VerticalAlignment = VerticalAlignment.Center, Children = { track } };
if (label.Length > 0 || liveLabel is not null) row.Children.Add(txt);
@@ -98,8 +99,8 @@ internal static class DeviceCardKit
{
bool on = get(), d = dim?.Invoke() ?? false;
track.IsOn = on; track.IsDim = d;
- txt.Foreground = on && !d ? TextPrimary : TextTertiary;
- if (liveLabel is not null) txt.Text = liveLabel().ToUpperInvariant();
+ txt.Foreground = on && !d ? TextPrimary : d ? TextDisabled : TextSecondary;
+ if (liveLabel is not null) txt.Text = NotaText.Label(liveLabel());
}
host.PointerPressed += (_, e) =>
{
@@ -111,15 +112,15 @@ internal static class DeviceCardKit
return host;
}
- // Segments, as the almanac draws them: a recessed container, and the chosen segment in
- // solid brass with dark text — a fill, not an outline. 9px inside a device. Two to four
+ // Segments: a recessed strip with a rule edge, and the chosen segment a solid accent fill
+ // with derived ink — chosen is what the accent is for. 9px inside a device. Two to four
// choices; more than four is a dropdown. `current` returns the lit index, or −1 when
// the value sits between choices. `fill` spreads the segments over the full width;
// `padX` narrows each segment's side padding where a strip must fit a tight column, and
// `fontSize` drops to 8 (never below 7) where a dense control strip needs it.
// Left button picks; right-click bubbles. `sync` repaints — register it with the card.
internal static Border Segments(string[] names, Func<int> current, Action<int> pick, out Action sync,
- bool fill = false, double minSegWidth = 0, Func<bool>? dim = null, double padX = 6, double fontSize = NotaType.DeviceSection)
+ bool fill = false, double minSegWidth = 0, Func<bool>? dim = null, double padX = 6, double fontSize = NotaType.RowLabel)
{
int n = names.Length;
var cells = new Border[n];
@@ -130,7 +131,7 @@ internal static class DeviceCardKit
int iv = i;
var tb = new TextBlock
{
- Text = names[i], FontSize = Math.Max(7, fontSize), HorizontalAlignment = HorizontalAlignment.Center,
+ Text = NotaText.Label(names[i]), FontSize = Math.Max(7, fontSize), HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis,
};
var c = new Border
@@ -158,20 +159,19 @@ internal static class DeviceCardKit
{
bool on = i == cur;
cells[i].Background = on ? (d ? NotaPalette.BorderStrong : Brass) : Brushes.Transparent;
- texts[i].Foreground = on ? OnAccent : d ? TextDisabled : TextTertiary;
- texts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
+ texts[i].Foreground = on ? (d ? TextPrimary : OnAccent) : d ? TextDisabled : TextSecondary;
+ texts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Medium;
}
}
sync = Paint;
Paint();
var host = new Border
{
- Background = NotaPalette.BgSunken, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
+ Background = NotaPalette.BgSunken, BorderBrush = NotaPalette.Rule, BorderThickness = new Thickness(1),
CornerRadius = NotaRadius.Control, Padding = new Thickness(1),
VerticalAlignment = VerticalAlignment.Center, Child = row,
};
if (!fill) host.HorizontalAlignment = HorizontalAlignment.Left;
- host.BindResource(Border.BoxShadowProperty, "Shadow.Sunken");
return host;
}
@@ -183,10 +183,10 @@ internal static class DeviceCardKit
return Math.Abs(values[best] - v) < 0.02f ? best : -1;
}
- // A slider row, as the almanac draws it: caps label 8/700 · a 3px track with a 6×7
- // Brass Light handle · a mono 9 value in a fixed-width right-aligned column, so values
- // stacked in a column line up on the right. An inactive row (`dim`) loses its brass
- // and its label and value drop to Ink 6 — but the number stays readable.
+ // A slider row: its name (sentence case, 9/500) · a 3px track with a 6×7 handle, neutral
+ // at rest and accent while in the hand · a mono 9 value in a fixed-width right-aligned
+ // column, so values stacked in a column line up on the right. An inactive row (`dim`)
+ // drops its label and value to the faint ink — but the number stays readable.
//
// Works in normalised 0..1: `norm` reads, `setNorm` writes (the caller maps to the
// parameter and does its own follow-up); `text` formats the value for display.
@@ -211,8 +211,8 @@ internal static class DeviceCardKit
{
lbl = new TextBlock
{
- Text = label.ToUpperInvariant(), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.RowLabelTracking, VerticalAlignment = VerticalAlignment.Center,
+ Text = NotaText.Label(label), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium,
+ VerticalAlignment = VerticalAlignment.Center,
TextTrimming = TextTrimming.CharacterEllipsis,
};
if (labelWidth > 0) lbl.Width = labelWidth;
@@ -224,7 +224,7 @@ internal static class DeviceCardKit
track.IsDim = d;
val.Text = text();
val.Foreground = d ? TextDisabled : TextPrimary;
- if (lbl is not null) lbl.Foreground = d ? TextDisabled : TextTertiary;
+ if (lbl is not null) lbl.Foreground = d ? TextDisabled : TextSecondary;
}
repaint = Paint;
track.Changed += v => { setNorm(v); val.Text = text(); };
@@ -250,24 +250,12 @@ internal static class DeviceCardKit
return g;
}
- internal static Border SimpleCard(string title, double width, Control body)
- {
- var headerBar = new Border
- {
- Height = HeaderH, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(8, 0),
- Child = new TextBlock { Text = title, FontSize = NotaType.DeviceName, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center },
- };
- var stack = new Grid { RowDefinitions = new RowDefinitions("Auto,*") };
- stack.Children.Add(headerBar);
- var bodyHost = new Border { Padding = new Thickness(10), Child = body };
- Grid.SetRow(bodyHost, 1);
- stack.Children.Add(bodyHost);
- return new Border
- {
- Width = width, Height = CardH, Background = Raised, BorderBrush = BorderDef,
- BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Body, ClipToBounds = true, Child = stack,
- };
- }
+ /// <summary>A card section: no fill, no frame, a 1px Rule on the edges it shares with a
+ /// neighbouring section (found from the layout unless <paramref name="edges"/> names
+ /// them). Content keeps the 1px inset of the framed box it replaces. Graph windows and
+ /// wells keep their own frame — they are not sections.</summary>
+ internal static Decorator Section(Control body, SectionEdge edges = SectionEdge.Auto)
+ => new RuleSection { Edges = edges, Child = body };
internal static Control Hint(string text) => new TextBlock
{
@@ -296,8 +284,8 @@ internal static class DeviceCardKit
{
var b = new Border
{
- Background = Card2, BorderBrush = BorderStrong, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, Padding = new Thickness(10, 4), HorizontalAlignment = HorizontalAlignment.Center,
+ Background = Raised, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
+ CornerRadius = NotaRadius.Control, Padding = new Thickness(10, 4), HorizontalAlignment = HorizontalAlignment.Center,
Cursor = new Cursor(StandardCursorType.Hand),
Child = new TextBlock { Text = text, FontSize = 9, Foreground = TextPrimary },
};
@@ -306,15 +294,15 @@ internal static class DeviceCardKit
internal static Control BypassTag() => new Border
{
- BorderBrush = BorderStrong, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
+ BorderBrush = NotaPalette.Rule, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
Padding = new Thickness(4, 0), VerticalAlignment = VerticalAlignment.Center,
- Child = new TextBlock { Text = "BYPASSED", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking, Foreground = TextSecondary },
+ Child = new TextBlock { Text = "Bypassed", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium, Foreground = TextSecondary },
};
- // A caption above a control (centered, uppercase tertiary label).
+ // A caption above a control (centered, sentence case, secondary ink).
internal static Control Labeled(string label, Control c)
{
- var lbl = new TextBlock { Text = label.ToUpperInvariant(), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking, Foreground = TextTertiary, HorizontalAlignment = HorizontalAlignment.Center };
+ var lbl = new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium, Foreground = TextSecondary, HorizontalAlignment = HorizontalAlignment.Center };
return new StackPanel { Spacing = 2, Children = { lbl, c } };
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/AutoFilterDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/AutoFilterDeviceBody.cs
index b1aec90f..7e04da9a 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/AutoFilterDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/AutoFilterDeviceBody.cs
@@ -46,7 +46,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "FILTER";
+ public string? Subtitle => "Filter";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -123,8 +123,8 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
}
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -166,7 +166,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
return seg;
}
- // Outlined chips (the mockup's TYPE / WAVE / target row): lit = brass edge + wash.
+ // Outlined chips (the mockup's Type / Wave / target row): the chosen one = accent edge + wash.
Control Chips(string[] names, Func<int, bool> lit, Action<int> pick, int learnParam, double h = 16, double padX = 7)
{
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 3, VerticalAlignment = VerticalAlignment.Center };
@@ -270,7 +270,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
return new DockPanel { Children = { Docked(lb, Dock.Bottom), new Border { Margin = new Thickness(0, 0, 0, 3), Child = f } } };
}
var shapeTitle = Caps("SHAPE"); shapeTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var shapeFreq = Mono("", 7, AccentBright); shapeFreq.HorizontalAlignment = HorizontalAlignment.Center;
+ var shapeFreq = Mono("", 7, TextPrimary); shapeFreq.HorizontalAlignment = HorizontalAlignment.Center;
var shapeRes = Mono("", 7, TextPrimary); shapeRes.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
@@ -279,11 +279,11 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
shapeTitle.Foreground = Assigned() && scN > 0 && Math.Abs(Sc(S_Cut) - P(Freq)) > 0.01 ? AccentBright : TextTertiary;
});
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
- faders.Children.Add(ShapeFader(Freq, "FRQ", Brass, S_Cut, "Cutoff — the base the modulation moves from; the dashed mark is where it is now. Double-click resets."));
+ faders.Children.Add(ShapeFader(Freq, "FRQ", NotaPalette.VizInk, S_Cut, "Cutoff — the base the modulation moves from; the dashed mark is where it is now. Double-click resets."));
faders.Children.Add(Col(ShapeFader(Res, "RES", Teal, S_Res, "Resonance — the peak at the cutoff; the dashed mark is where it is now. Double-click resets."), 1));
- var shapeCol = new Border
+ var shapeCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(shapeTitle, Dock.Top), Docked(shapeRes, Dock.Bottom), Docked(shapeFreq, Dock.Bottom), faders } },
};
DockPanel.SetDock(shapeCol, Dock.Left);
@@ -339,7 +339,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
envView.DragV += v => Raw(EnvAmt, (float)v);
envView.GestureBegin += () => Begin(EnvAmt);
envView.GestureEnd += () => End(EnvAmt);
- ToolTip.SetTip(envView, "The input's envelope (teal) and the cutoff it drives (brass), the base cutoff dashed. Drag up or down for the amount.");
+ ToolTip.SetTip(envView, "The input's envelope (teal) and the cutoff it drives (neutral ink), the base cutoff dashed. Drag up or down for the amount.");
Learn(envView, EnvAmt);
// → Freq / → Reso: the shared Mod Target, as two switches that can both be lit.
@@ -362,8 +362,8 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
readouts.Add(dirSync);
Learn(dir, EnvAmt);
var hold = Latch(EnvHold, () => NotaNum.F($"Hold {HoldF(P(EnvHoldTime))}"), "Hold — keep the envelope at its peak for the HOLD time before it releases (∞ freezes it)");
- var amt = Mono("", 7, AccentBright);
- readouts.Add(() => { amt.Text = NotaNum.F($"amount {Bip(P(EnvAmt))}"); amt.Foreground = EnvAssigned() ? AccentBright : TextTertiary; });
+ var amt = Mono("", 7, TextPrimary);
+ readouts.Add(() => { amt.Text = NotaNum.F($"amount {Bip(P(EnvAmt))}"); amt.Foreground = EnvAssigned() ? TextPrimary : TextTertiary; });
var envSw = Toggle(EnvOn, "ENV");
ToolTip.SetTip(envSw, "Envelope follower on / off");
var head = HeadRow(Row(6, envSw, target, dir, hold), amt);
@@ -416,11 +416,11 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
lfoView.DragH += v => Raw(LfoOffset, (float)v);
lfoView.GestureBegin += () => { Begin(LfoAmt); Begin(LfoOffset); };
lfoView.GestureEnd += () => { End(LfoAmt); End(LfoOffset); };
- ToolTip.SetTip(lfoView, "The LFO's movement over the window — raw shape dashed, what the filter follows (after Smooth) in brass, the right channel in rose when stereo is on. Drag up or down for the amount, sideways for the start phase.");
+ ToolTip.SetTip(lfoView, "The LFO's movement over the window — raw shape dashed, what the filter follows (after Smooth) in neutral ink, the right channel in rose when stereo is on. Drag up or down for the amount, sideways for the start phase.");
Learn(lfoView, LfoAmt);
var waves = Chips(WaveNames, i => Sel(LfoWave, 5) == i, i => SetP(LfoWave, i / 4f), LfoWave, padX: 6);
- var rate = Mono("", 7, AccentBright);
+ var rate = Mono("", 7, TextSecondary);
readouts.Add(() => rate.Text = LfoHzF(LfoHz()));
var lfoSw = Toggle(LfoOn, "LFO");
ToolTip.SetTip(lfoSw, "LFO on / off");
@@ -522,7 +522,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
// The cutoff, live: Hz · note · cents, and where the movement comes from.
var boxTitle = Caps("CUTOFF");
- var boxHz = Mono("", 9, AccentBright);
+ var boxHz = Mono("", 9, TextPrimary);
var boxSub = Mono("", 8, TextSecondary);
var box = new Border
{
@@ -589,7 +589,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
Caps("OUTPUT"),
Line("in", () => DbF(Sc(S_InPk))),
Line("out", () => DbF(Sc(S_OutPk))),
- Line("cutoff", () => HzLong(LiveHz()), AccentBright) } },
+ Line("cutoff", () => HzLong(LiveHz()), TextPrimary) } },
};
var sliders = new StackPanel { Spacing = 6, Children = {
SliderRow("DRIVE", Drive, v => v <= 0.001 ? "off" : Pct(v)),
@@ -643,9 +643,9 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Filter", "Envelope", "LFO" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Mod", "Output" }, rightHost, RightBody, true, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -691,7 +691,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { shapeCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -725,7 +725,7 @@ internal sealed class AutoFilterDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/AutoGainDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/AutoGainDeviceBody.cs
index ad7b789f..3f2665dc 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/AutoGainDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/AutoGainDeviceBody.cs
@@ -40,7 +40,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "LEVELER";
+ public string? Subtitle => "Leveler";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -79,23 +79,22 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
static string MaxF(double v) => NotaNum.F($"{MaxGainDb(v):0}\u2009dB");
// ---- small builders ------------------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
static T Col<T>(T c, int col) where T : Control { Grid.SetColumn(c, col); return c; }
static T GRow<T>(T c, int row) where T : Control { Grid.SetRow(c, row); return c; }
- static Border Island(Control child, double width = double.NaN) => new()
+ static RuleSection Island(Control child, double width = double.NaN) => new()
{
- Width = width, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = child,
+ Width = width, Child = child,
};
static Border Bar(Control child, Thickness pad) => new()
{ Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = pad, Child = child };
static Control Rule(Control c) => new Border { BorderBrush = NotaPalette.GraphBorder, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(0, 5, 0, 0), Child = c };
- // Slider row: caps 7 label · 3px track · mono 8 value (brass-light once off its default).
+ // Slider row: label · 3px track · mono 8 value (primary ink once off its default).
// `valueHost` replaces the plain value (the Target's menu); `dim` greys the track.
Control Slider(string label, int p, Func<double, string> fmt, string tip, double labelW, double valueW,
bool bipolar = false, Func<bool>? dim = null, Func<(string Text, IBrush? Ink)>? valueOverride = null, Action<Control>? valueClick = null)
@@ -137,7 +136,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
else
{
val.Text = fmt(P(p));
- val.Foreground = d ? TextTertiary : Math.Abs(P(p) - Def(p)) > 0.003 ? AccentBright : TextPrimary;
+ val.Foreground = d ? TextTertiary : Math.Abs(P(p) - Def(p)) > 0.003 ? TextPrimary : TextSecondary;
}
});
Learn(g, p);
@@ -222,13 +221,13 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
var maxTop = Mono("", 7, TextDisabled);
var modeTag = Mono("", 7, TextDisabled);
var maxBot = Mono("", 7, TextDisabled);
- var big = Mono("", 26, AccentBright); big.FontWeight = FontWeight.Bold; big.LineHeight = 28; big.LetterSpacing = -0.5;
+ var big = Mono("", 26, TextPrimary); big.FontWeight = FontWeight.Bold; big.LineHeight = 28; big.LetterSpacing = -0.5;
var bigSub = new TextBlock { Text = "dB applied", FontSize = 8, Foreground = TextSecondary };
var reason = Mono("", 7, TextTertiary); reason.Margin = new Thickness(0, 2, 0, 0);
- var matchTxt = new TextBlock { FontSize = 8, FontWeight = FontWeight.Bold, LetterSpacing = 0.5, Foreground = OnAccent };
+ var matchTxt = new TextBlock { FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary };
var match = new Border
{
- Background = Brass, CornerRadius = NotaRadius.Badge, Padding = new Thickness(8, 2), Cursor = new Cursor(StandardCursorType.Hand),
+ Background = Raised, CornerRadius = NotaRadius.Badge, Padding = new Thickness(8, 2), Cursor = new Cursor(StandardCursorType.Hand),
VerticalAlignment = VerticalAlignment.Bottom, Child = matchTxt,
};
match.PointerPressed += (_, e) =>
@@ -246,7 +245,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
};
readouts.Add(() =>
{
- matchTxt.Text = Manual() ? "MATCH" : "RESET";
+ matchTxt.Text = Manual() ? "Match" : "Reset";
ToolTip.SetTip(match, Manual()
? "Match — set the manual gain to the distance between the measured input and the target"
: "Reset — restart the measurement from the loudness now, so the ride catches up at once");
@@ -295,7 +294,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
ToolTip.SetTip(hist, "The last 8\u2009s: input, output and the target with its ±1\u2009LU band (momentary loudness). Drag up / down to move the target; double-click resets it");
IBrush Dim() => TextDisabled;
- var rIn = Mono("", 8, TextSecondary); var rOut = Mono("", 8, AccentBright); var rDelta = Mono("", 8, TextSecondary); var rTp = Mono("", 8, TextSecondary);
+ var rIn = Mono("", 8, TextSecondary); var rOut = Mono("", 8, TextPrimary); var rDelta = Mono("", 8, TextSecondary); var rTp = Mono("", 8, TextSecondary);
var readRow = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 8, Height = 14, HorizontalAlignment = HorizontalAlignment.Center,
@@ -319,7 +318,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
var m = new LvMeter { VerticalAlignment = VerticalAlignment.Center };
var v = Mono("", 8, TextPrimary); v.TextAlignment = TextAlignment.Right; v.HorizontalAlignment = HorizontalAlignment.Right;
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("24,*,34"), ColumnSpacing = 6, Background = Brushes.Transparent };
- var l = Caps(label); l.LetterSpacing = 0.4;
+ var l = Caps(label); if (label == "TP") l.Text = label; // true peak: an acronym Label would lowercase
g.Children.Add(l); g.Children.Add(Col(m, 1)); g.Children.Add(Col(v, 2));
ToolTip.SetTip(g, tip);
return (g, m, v);
@@ -367,7 +366,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
readouts.Add(() =>
{
ceilTxt.Text = NotaNum.F($"{CeilingDb(P(Ceiling)):0.0;−0.0;0.0}\u2009dBTP");
- ceilTxt.Foreground = !On(Safe) ? TextDisabled : Math.Abs(P(Ceiling) - Def(Ceiling)) > 0.003 ? AccentBright : TextPrimary;
+ ceilTxt.Foreground = !On(Safe) ? TextDisabled : Math.Abs(P(Ceiling) - Def(Ceiling)) > 0.003 ? TextPrimary : TextSecondary;
});
var safeRow = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto") };
safeRow.Children.Add(safeSw); safeRow.Children.Add(Col(ceilBox, 1));
@@ -417,20 +416,20 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
maxBot.Text = NotaNum.F($"−{maxG:0}");
modeTag.Text = manual ? "fader" : "auto";
big.Text = on ? Sgn(g) : "off";
- big.Foreground = on ? AccentBright : TextDisabled;
+ big.Foreground = on ? TextPrimary : TextDisabled;
string why = !on ? "" : !primed ? "waiting for signal" : silent ? "silence · holding"
: tpClamp ? "limited by true-peak" : clamp == 1 && !manual ? "limited by max gain" : clamp == 2 && !manual ? "limited by max cut"
: manual ? "manual" : "auto · " + (On(Response) ? "slow" : "fast");
reason.Text = why;
- reason.Foreground = on && (tpClamp || (clamp > 0 && !manual)) ? AccentBright : TextTertiary;
+ reason.Foreground = on && (tpClamp || (clamp > 0 && !manual)) ? NotaPalette.Warning : TextTertiary;
// Graph.
- string tl = HasRef() ? "REF " + Lufs(target) : Lufs(target) + "\u2009LUFS";
+ string tl = HasRef() ? "Ref " + Lufs(target) : Lufs(target) + "\u2009LUFS";
hist.SetState(on, locked, !on ? "bypass" : !primed ? "waiting" : silent ? "holding" : locked ? "locked ±1\u2009LU" : "tracking", tl, !HasRef());
- rIn.Text = "IN " + Lufs(measured);
- rOut.Text = "OUT " + Lufs(outMeas);
+ rIn.Text = "In " + Lufs(measured);
+ rOut.Text = "Out " + Lufs(outMeas);
rDelta.Text = "Δ " + (primed ? Sgn(delta) : "—") + "\u2009LU";
- rDelta.Foreground = locked || !primed ? TextSecondary : AccentBright;
+ rDelta.Foreground = locked || !primed ? TextSecondary : TextPrimary;
rTp.Text = "TP " + Lufs(tp) + "\u2009dB";
rTp.Foreground = tpOver ? Danger : TextSecondary;
@@ -439,8 +438,8 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
scaleName.Text = ScaleLong[si];
double tx = MeterX(target);
mIn.M.Set(0, MeterX(measured), TextTertiary, tx); mIn.V.Text = Lufs(measured);
- mOut.M.Set(0, MeterX(outMeas), on ? Brass : TextTertiary, tx); mOut.V.Text = Lufs(outMeas);
- mOut.V.Foreground = locked || !primed ? TextPrimary : AccentBright;
+ mOut.M.Set(0, MeterX(outMeas), on ? NotaPalette.VizInk : TextTertiary, tx); mOut.V.Text = Lufs(outMeas);
+ mOut.V.Foreground = TextPrimary;
mTp.M.Set(0, MeterX(tp), tpOver ? Danger : TextSecondary, On(Safe) ? MeterX(CeilingDb(P(Ceiling))) : double.NaN);
mTp.V.Text = Lufs(tp); mTp.V.Foreground = tpOver ? Danger : TextPrimary;
double cf = Math.Clamp(g / Math.Max(0.01, maxG), -1, 1) / 2;
@@ -452,9 +451,9 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
if (!on) foot = "Leveler bypassed: the output equals the input";
else if (!primed) foot = "Waiting for signal — the gain holds until the input has been measured";
else if (silent) foot = "Input silent: the measurement and the gain hold";
- else if (manual && Math.Abs(delta) >= 1) { foot = $"Output {Sgn(delta)}\u2009LU from the target · Match sets {Sgn(matchG)}\u2009dB"; footInk = AccentBright; }
- else if (tpClamp) { foot = $"True-peak limits the gain to the {NotaNum.F($"{CeilingDb(P(Ceiling)):0.0;−0.0;0.0}")}\u2009dBTP ceiling"; footInk = AccentBright; }
- else if (clamp > 0 && !manual) { foot = NotaNum.F($"Needs more than {maxG:0} dB: raise Max gain or Trim"); footInk = AccentBright; }
+ else if (manual && Math.Abs(delta) >= 1) { foot = $"Output {Sgn(delta)}\u2009LU from the target · Match sets {Sgn(matchG)}\u2009dB"; footInk = NotaPalette.Warning; }
+ else if (tpClamp) { foot = $"True-peak limits the gain to the {NotaNum.F($"{CeilingDb(P(Ceiling)):0.0;−0.0;0.0}")}\u2009dBTP ceiling"; footInk = NotaPalette.Warning; }
+ else if (clamp > 0 && !manual) { foot = NotaNum.F($"Needs more than {maxG:0} dB: raise Max gain or Trim"); footInk = NotaPalette.Warning; }
else
{
foot = (locked ? "On target" : "Catching up") + " · " + ScaleLong[si] + " · window " + WindowF(P(WindowP));
@@ -469,7 +468,7 @@ internal sealed class AutoGainDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { left, right, centre } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
// One history sample per UI tick (the graph spans N ticks ≈ 8 s); edits only repaint.
void Tick()
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/AutoPanDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/AutoPanDeviceBody.cs
index 52ce063f..1a4de2ae 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/AutoPanDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/AutoPanDeviceBody.cs
@@ -35,7 +35,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "PANNER"; // the processing type, shown as the header badge
+ public string? Subtitle => "Panner"; // the processing type, shown as the header badge
public Control Build(DeviceCardContext ctx, int index)
{
@@ -80,7 +80,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
// ---- small builders ---------------------------------------------------------
static TextBlock Caps(string t, IBrush? c = null) => new()
- { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.7, VerticalAlignment = VerticalAlignment.Center };
+ { Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -103,16 +103,15 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
return g;
}
- Border Island(Control head, Control body, double width = double.NaN)
+ RuleSection Island(Control head, Control body, double width = double.NaN)
{
var headBar = new Border
{
Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(8, 0, 3, 0), Child = head,
};
- return new Border
+ return new RuleSection
{
- Width = width, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
+ Width = width, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
};
}
static Grid HeadRow(Control left, Control right)
@@ -142,7 +141,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
Learn(waveSeg, Waveform);
ToolTip.SetTip(waveSeg, "The LFO shape. S&H draws a random step every cycle; the right channel plays the same steps Phase later");
- var big = Mono("", 26, AccentBright); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
+ var big = Mono("", 26, TextPrimary); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
var bigSub = new TextBlock { FontSize = 8, Foreground = TextSecondary };
var period = Mono("", 7, TextTertiary); period.Margin = new Thickness(0, 2, 0, 0);
readouts.Add(() =>
@@ -160,7 +159,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
bigSub.Text = "Hz · free";
period.Text = "period " + Ms(PeriodMs());
}
- big.Foreground = On() ? AccentBright : NotaPalette.TextAxis;
+ big.Foreground = On() ? TextPrimary : NotaPalette.TextAxis;
});
var bigBlock = new StackPanel { Spacing = 1, VerticalAlignment = VerticalAlignment.Center, Children = { big, bigSub, period } };
ToolTip.SetTip(bigBlock, "The LFO rate: in Hz, or the note value it takes from the tempo");
@@ -171,7 +170,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
snap: v => OrbitMath.DivNorm(OrbitMath.DivIndex(v)));
readouts.Add(() => { rateRow.IsVisible = !Synced(); divRow.IsVisible = Synced(); });
var shapeRow = Slider("SHAPE", Shape, v => PctF(v), "Shape — sharpens Sine, Tri and Saw toward a square; on S&H it is Glide, the slide from one step to the next", out var shapeLbl, 38, 46);
- readouts.Add(() => shapeLbl.Text = WaveI() == 4 ? "GLIDE" : "SHAPE");
+ readouts.Add(() => shapeLbl.Text = WaveI() == 4 ? "Glide" : "Shape");
var leftBody = new Grid { RowDefinitions = new RowDefinitions("Auto,*,Auto,Auto"), RowSpacing = 6, Margin = new Thickness(8, 6) };
leftBody.Children.Add(waveSeg);
@@ -189,7 +188,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
var legend = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 8, Margin = new Thickness(0, 0, 5, 0),
- Children = { LegendItem("L", AccentBright), LegendItem("R", NotaPalette.TealBright), waveWord },
+ Children = { LegendItem("L", NotaPalette.VizInk), LegendItem("R", NotaPalette.TealBright), waveWord },
};
var graph = new OrbitGainView { Value = () => (P(Amount), P(Phase)) };
graph.GestureBegin += () => { Begin(Amount); Begin(Phase); };
@@ -197,12 +196,12 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
graph.Changed += (a, ph) => { Raw(Amount, a); Raw(Phase, ph); RefreshAll(); };
graph.ResetRequested += () => { Reset(Amount); Reset(Phase); RefreshAll(); };
Learn(graph, Amount);
- ToolTip.SetTip(graph, "Both channels' gain over two LFO cycles — L brass, R teal, Phase later — with the floor the depth reaches. Drag up / down for Amount, left / right for Phase; double-click resets both.");
+ ToolTip.SetTip(graph, "Both channels' gain over two LFO cycles — L neutral, R teal, Phase later — with the floor the depth reaches. Drag up / down for Amount, left / right for Phase; double-click resets both.");
var panBar = new OrbitPanBar { VerticalAlignment = VerticalAlignment.Center };
var panTxt = Mono("", 8, TextPrimary); panTxt.TextAlignment = TextAlignment.Right; panTxt.Width = 28;
- var lTag = Mono("L", 7, AccentBright); lTag.FontWeight = FontWeight.Bold;
- var rTag = Mono("R", 7, NotaPalette.TealBright); rTag.FontWeight = FontWeight.Bold;
+ var lTag = Mono("L", 7, NotaPalette.VizInk); lTag.FontWeight = FontWeight.Medium;
+ var rTag = Mono("R", 7, NotaPalette.TealBright); rTag.FontWeight = FontWeight.Medium;
var panRow = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto,Auto"), ColumnSpacing = 6, Height = 14, Margin = new Thickness(0, 4, 0, 0) };
panRow.Children.Add(lTag);
panRow.Children.Add(Col(panBar, 1));
@@ -222,7 +221,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
{
string m = Mode();
modeWord.Text = m;
- modeWord.Foreground = m == "auto-pan" ? AccentBright : m == "tremolo" ? NotaPalette.TealBright : TextSecondary;
+ modeWord.Foreground = m == "auto-pan" ? TextPrimary : m == "tremolo" ? NotaPalette.TealBright : TextSecondary;
});
ToolTip.SetTip(modeWord, "What the phase makes: tremolo near 0°, auto-pan near 180°, an offset pan between");
@@ -283,7 +282,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
{
Spacing = 5, Children =
{
- MeterRow("OUT L", AccentBright, Brass, S_OutPeakL, S_GainL),
+ MeterRow("OUT L", NotaPalette.VizInk, NotaPalette.VizInk, S_OutPeakL, S_GainL),
MeterRow("OUT R", NotaPalette.TealBright, NotaPalette.TealBright, S_OutPeakR, S_GainR),
},
},
@@ -320,7 +319,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
}
else foot = NotaNum.F($"Phase {Deg():0}°: the channels are offset, the pan moves unevenly");
statusLeft.Text = foot;
- statusLeft.Foreground = warn ? AccentBright : TextSecondary;
+ statusLeft.Foreground = warn ? NotaPalette.Warning : TextSecondary;
double sr = Sc(S_SampleRate);
statusRight.Text = (sr > 0 ? NotaNum.F($"{sr / 1000:0.#}\u2009kHz · ") : "") + NotaNum.F($"{Bpm():0.##}\u2009BPM · ") + (Synced() ? "retrig bar" : "free run");
});
@@ -332,7 +331,7 @@ internal sealed class AutoPanDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { left, right, centre } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/AutoShiftDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/AutoShiftDeviceBody.cs
index f2055b03..feb51c28 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/AutoShiftDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/AutoShiftDeviceBody.cs
@@ -59,7 +59,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "PITCH";
+ public string? Subtitle => "Pitch";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -201,8 +201,8 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
}
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -299,10 +299,10 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
{
bool on = lit();
name.Text = text();
- name.Foreground = on ? AccentBright : TextPrimary;
+ name.Foreground = TextPrimary; // emphasis, not state: a stronger frame and weight
name.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
- box.BorderBrush = on ? Brass : BorderDef;
- chev.Foreground = on ? NotaPalette.AccentDim : TextTertiary;
+ box.BorderBrush = on ? NotaPalette.BorderStrong : BorderDef;
+ chev.Foreground = on ? TextSecondary : TextTertiary;
});
ToolTip.SetTip(box, tip);
if (learnP >= 0) LearnBind(box, learnP);
@@ -388,7 +388,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
}
TextBlock RightInfo(Func<string> text)
{
- var t = Mono("", 7, AccentBright);
+ var t = Mono("", 7, TextSecondary);
readouts.Add(() => t.Text = text());
return t;
}
@@ -421,7 +421,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
// LEFT — PITCH column (where the voice sits · the correction now)
// ======================================================================
var pitchTitle = Caps("PITCH"); pitchTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var inPill = new AsPill { Ink = Brass, VerticalAlignment = VerticalAlignment.Stretch };
+ var inPill = new AsPill { Ink = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Stretch };
var corrPill = new AsPill { Ink = Teal, Bipolar = true, VerticalAlignment = VerticalAlignment.Stretch };
var inLbl = Caps("IN"); inLbl.HorizontalAlignment = HorizontalAlignment.Center;
var corrLbl = Caps("CORR"); corrLbl.HorizontalAlignment = HorizontalAlignment.Center;
@@ -444,9 +444,9 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
var pills = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
pills.Children.Add(PillCol(inPill, inLbl));
pills.Children.Add(Col(PillCol(corrPill, corrLbl), 1));
- var pitchCol = new Border
+ var pitchCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(pitchTitle, Dock.Top), Docked(pitchCents, Dock.Bottom), Docked(pitchNote, Dock.Bottom), pills } },
};
DockPanel.SetDock(pitchCol, Dock.Left);
@@ -458,7 +458,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
Control TraceTab()
{
trace = new AsTraceView();
- ToolTip.SetTip(trace, "The detected pitch (teal dots) and the corrected output (brass) over the last two seconds, on the scale's note lanes; the target lane is lit");
+ ToolTip.SetTip(trace, "The detected pitch (teal dots) and the corrected output (neutral ink) over the last two seconds, on the scale's note lanes; the target lane is lit");
var head = HeadRow(Row(6, Caps("KEY"), KeyDrop(false), ScaleDrop(), SourceSeg(), LearnLatch()), RightInfo(() => TargetNote() >= 0 ? "target " + TargetText() : ""));
var knobs = KnobRow(new[]
{
@@ -481,7 +481,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
{
histView = new AsHistView();
histView.NoteClicked += ToggleNote;
- ToolTip.SetTip(histView, "How long each note was sung (the last ~16 bars) over the scale's notes — brass in the scale, teal outside it. Click a column to add or remove its note");
+ ToolTip.SetTip(histView, "How long each note was sung (the last ~16 bars) over the scale's notes — neutral in the scale, teal outside it. Click a column to add or remove its note");
LearnBind(histView, Custom);
var scaleSeg = Seg(Scale, new[] { "Chrom", "Major", "Minor", "Pent", "Custom" },
"Scale — Chromatic, Major, Minor, Pentatonic (major or minor — click again to swap) or Custom (the notes below)",
@@ -547,7 +547,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
Control MidiTab()
{
midiView = new AsTraceView();
- ToolTip.SetTip(midiView, "The source track's notes (brass blocks) and the voice (teal) over the last two seconds — with Key Source MIDI the voice is pulled to the notes");
+ ToolTip.SetTip(midiView, "The source track's notes (neutral blocks, accent while sounding) and the voice (teal) over the last two seconds — with Key Source MIDI the voice is pulled to the notes");
var head = HeadRow(Row(6, Caps("FROM"), FromDrop(),
Seg(MidiMode, new[] { "Note", "Scale" }, "Note — the voice goes to the last held note; Scale — the held notes form the scale"),
ToggleLatch(MidiLatch, "Latch", "Latch — keep the last target between notes (off = no correction while no note is held)"),
@@ -573,7 +573,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
static Control LabelRow(string label, Control c, double labW = 44)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(NotaNum.F($"{labW},*")) };
- g.Children.Add(new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center });
+ g.Children.Add(new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
g.Children.Add(Col(c, 1));
return g;
}
@@ -601,7 +601,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
readouts.Add(() =>
{
var r = read();
- t.Text = r.title; l1.Text = r.l1; l2.Text = r.l2;
+ t.Text = NotaText.Label(r.title); l1.Text = r.l1; l2.Text = r.l2;
t.Foreground = r.hot ? AccentBright : TextTertiary;
l1.Foreground = r.hot ? AccentBright : TextPrimary;
b.BorderBrush = r.hot ? NotaPalette.BorderBrass : NotaPalette.GraphBorder;
@@ -691,9 +691,9 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Trace", "Scale", "MIDI" }, centreHost, CentreBody, false, centreTab, t => { centreTab = t; Refresh(); }, extrasHost);
var rightFrame = TabFrame(new[] { "Shift", "Detect" }, rightHost, RightBody, true, 0, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -753,7 +753,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { pitchCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -783,7 +783,7 @@ internal sealed class AutoShiftDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/BeatRepeatDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/BeatRepeatDeviceBody.cs
index 5279cf62..dd9153d2 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/BeatRepeatDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/BeatRepeatDeviceBody.cs
@@ -50,7 +50,7 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "REPEAT";
+ public string? Subtitle => "Repeat";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -106,8 +106,8 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
int RepeatNo() => State() == 2 ? Math.Max(1, (int)Sc(S_Pass) - 1) : 0;
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -118,7 +118,7 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
void Learn(Control c, int p) => MidiLearn.Bind(c, MidiTarget.DeviceParam(track, di, p), engine.DeviceParamName(track, di, p));
// Gauge knob bound to a device param (automation gesture + MIDI learn + live follow).
- // `steps` > 1 snaps a discrete param; `lit` lights the label and value (the knob that matters now).
+ // `steps` > 1 snaps a discrete param; `lit` brightens the label and value (the knob that matters now).
Control K(int p, string name, Func<double, string> fmt, IBrush? arc = null, int steps = 0, string? tip = null, Func<bool>? lit = null)
{
var val = Mono(fmt(P(p)), 7, TextPrimary);
@@ -142,8 +142,8 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
if (lit is not null)
{
bool on = lit();
- val.Foreground = on ? AccentBright : TextPrimary;
- if (label is not null) label.Foreground = on ? AccentBright : TextTertiary;
+ val.Foreground = on ? TextPrimary : TextSecondary;
+ if (label is not null) label.Foreground = on ? TextSecondary : TextTertiary;
}
});
return cell;
@@ -213,10 +213,10 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
bool held = false;
void Hi()
{
- bool on = On(RepeatP);
- b.Background = on ? Brass : NotaPalette.AccentSubtle;
- b.BorderBrush = Brass;
- tb.Foreground = on ? OnAccent : AccentBright;
+ bool on = On(RepeatP); // accent only while it repeats
+ b.Background = on ? Brass : Raised;
+ b.BorderBrush = on ? Brass : NotaPalette.BorderStrong;
+ tb.Foreground = on ? OnAccent : TextPrimary;
tb.FontWeight = FontWeight.SemiBold;
}
b.PointerPressed += (_, e) =>
@@ -254,7 +254,7 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
readouts.Add(() =>
{
bool on = lit();
- foreach (var c in bar.Children) if (c is TextBlock tb && tb.TextAlignment == TextAlignment.Right) tb.Foreground = on ? AccentBright : TextPrimary;
+ foreach (var c in bar.Children) if (c is TextBlock tb && tb.TextAlignment == TextAlignment.Right) tb.Foreground = on ? TextPrimary : TextSecondary;
});
return g;
}
@@ -342,13 +342,13 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
// LEFT — REPEAT column (input · repeats)
// ======================================================================
var colTitle = Caps("REPEAT"); colTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var inPill = new ShPill { Ink = Brass, VerticalAlignment = VerticalAlignment.Stretch };
+ var inPill = new ShPill { Ink = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Stretch };
var repPill = new ShPill { Ink = Teal, VerticalAlignment = VerticalAlignment.Stretch };
var inLbl = Caps("IN"); inLbl.HorizontalAlignment = HorizontalAlignment.Center;
var repLbl = Caps("REP"); repLbl.HorizontalAlignment = HorizontalAlignment.Center;
ToolTip.SetTip(inPill, "The input level");
ToolTip.SetTip(repPill, "The repeats' level — after pitch, filter, decay and volume");
- var colIn = Mono("", 7, AccentBright); colIn.HorizontalAlignment = HorizontalAlignment.Center;
+ var colIn = Mono("", 7, TextPrimary); colIn.HorizontalAlignment = HorizontalAlignment.Center;
var colRep = Mono("", 7, TextPrimary); colRep.HorizontalAlignment = HorizontalAlignment.Center;
static double Norm60(double db) => Math.Clamp((db + 60) / 60, 0, 1);
readouts.Add(() =>
@@ -363,9 +363,9 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
var pills = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
pills.Children.Add(PillCol(inPill, inLbl));
pills.Children.Add(Col(PillCol(repPill, repLbl), 1));
- var leftCol = new Border
+ var leftCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(colTitle, Dock.Top), Docked(colRep, Dock.Bottom), Docked(colIn, Dock.Bottom), pills } },
};
DockPanel.SetDock(leftCol, Dock.Left);
@@ -377,8 +377,8 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
Control TimelineTab()
{
timeline = new BrTimelineView();
- ToolTip.SetTip(timeline, "Two intervals on the grid: each step is the input's level — dim when dry, full brass where the slice is captured, dimmer with every repeat as it decays. Brass ticks mark where the interval fires.");
- var slice = Mono("", 7, AccentBright);
+ ToolTip.SetTip(timeline, "Two intervals on the grid: each step is the input's level — dim when dry, full where the slice is captured, dimmer with every repeat as it decays. Ticks at the top mark where the interval fires.");
+ var slice = Mono("", 7, TextSecondary);
readouts.Add(() => slice.Text = "slice " + MsF(SliceMs(GridBeats())));
var head = HeadRow(Row(6, ModeSeg(), new Border { Width = 2 }, Caps("INTERVAL"),
Drop(Interval, IntervalName, () => Sel(Interval, 6), i => SetP(Interval, i / 5f), "Interval — how often it rolls Chance"),
@@ -429,14 +429,14 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
{
filter = new BrFilterView();
WireDrag(filter, h => h == BrFilterView.HFreq ? FilterFreq : FilterWidth);
- ToolTip.SetTip(filter, "The repeat filter — only the repeats go through it. Brass: the first repeat; teal dashed: a later one when the band narrows and follows the pitch. Drag the node for the frequency, a band edge for the width; double-click resets.");
+ ToolTip.SetTip(filter, "The repeat filter — only the repeats go through it. Solid: the first repeat; teal dashed: a later one when the band narrows and follows the pitch. Drag the node for the frequency, a band edge for the width; double-click resets.");
Learn(filter, FilterFreq);
var type = Seg(FilterNames, () => On(FilterOn) ? FType() + 1 : 0,
i => { if (i == 0) SetP(FilterOn, 0f); else { SetP(FilterType, (i - 1) / 2f); if (!On(FilterOn)) SetP(FilterOn, 1f); } },
FilterType, "Filter — Off, or a low-pass, band-pass or high-pass on the repeats");
var narrow = Latch(FilterNarrow, () => On(FilterNarrow), () => SetP(FilterNarrow, On(FilterNarrow) ? 0f : 1f), () => "Narrow with repeats",
"Narrow with repeats — each repeat narrows the band and moves it with the pitch");
- var drop = Mono("", 7, AccentBright);
+ var drop = Mono("", 7, TextSecondary);
readouts.Add(() => drop.Text = PDecaySt() > 0.01 ? NotaNum.F($"{StF(PitchSt())} → {StF(LaterPitch())} by repeat {LaterRepeat()}") : "pitch " + StF(PitchSt()));
var head = HeadRow(Row(6, Caps("FILTER"), type, narrow), drop);
var knobs = KnobRow(new[]
@@ -540,7 +540,7 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
Caps("MEASUREMENTS"),
Line("in", () => DbF(Sc(S_InDb))),
Line("repeat", () => DbF(Sc(S_RepDb))),
- Line("out", () => DbF(Sc(S_OutDb)), AccentBright) } },
+ Line("out", () => DbF(Sc(S_OutDb)), TextPrimary) } },
};
var sliders = new StackPanel { Spacing = 6, Children = {
SliderRow("VOLUME", Volume, VolF, bipolar: true, modulation: true),
@@ -580,9 +580,9 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Timeline", "Slices", "Filter" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Character", "Output" }, rightHost, RightBody, true, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -634,7 +634,7 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { leftCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -675,7 +675,7 @@ internal sealed class BeatRepeatDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/CeilingDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/CeilingDeviceBody.cs
index e80b35f3..88a14533 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/CeilingDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/CeilingDeviceBody.cs
@@ -51,7 +51,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "LIMITER";
+ public string? Subtitle => "Limiter";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -121,8 +121,8 @@ internal sealed class CeilingDeviceBody : IDeviceBody
}
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -133,7 +133,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
void Learn(Control c, int p) => MidiLearn.Bind(c, MidiTarget.DeviceParam(track, di, p), engine.DeviceParamName(track, di, p));
// Gauge knob bound to a device param (automation gesture + MIDI learn + live follow).
- // `lit` lights the label and value (the knob that matters now); `arc` recolours the arc.
+ // `lit` brightens the label and value (the knob that matters now); `arc` recolours the arc.
Control K(int p, string name, Func<double, string> fmt, string tip, Func<bool>? lit = null, Func<bool>? teal = null)
{
var val = Mono(fmt(P(p)), 7, TextPrimary);
@@ -152,8 +152,8 @@ internal sealed class CeilingDeviceBody : IDeviceBody
if (!knob.Dragging) { double c = N(p); if (Math.Abs(c - knob.Value) > 1e-4) knob.Value = c; }
val.Text = fmt(P(p));
bool on = lit?.Invoke() ?? false;
- val.Foreground = on ? AccentBright : TextPrimary;
- if (label is not null) label.Foreground = on ? AccentBright : TextTertiary;
+ val.Foreground = on ? TextPrimary : TextSecondary;
+ if (label is not null) label.Foreground = on ? TextSecondary : TextTertiary;
});
return cell;
}
@@ -204,7 +204,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
readouts.Add(() =>
{
bool on = lit();
- foreach (var c in bar.Children) if (c is TextBlock tb && tb.TextAlignment == TextAlignment.Right) tb.Foreground = on ? AccentBright : TextPrimary;
+ foreach (var c in bar.Children) if (c is TextBlock tb && tb.TextAlignment == TextAlignment.Right) tb.Foreground = on ? TextPrimary : TextSecondary;
});
return g;
}
@@ -226,9 +226,9 @@ internal sealed class CeilingDeviceBody : IDeviceBody
{
bool h = hot();
name.Text = text();
- name.Foreground = h ? AccentBright : TextPrimary;
- box.BorderBrush = h ? Brass : BorderDef;
- chev.Foreground = h ? NotaPalette.AccentDim : TextTertiary;
+ name.Foreground = TextPrimary; // emphasis, not state: a stronger frame
+ box.BorderBrush = h ? NotaPalette.BorderStrong : BorderDef;
+ chev.Foreground = h ? TextSecondary : TextTertiary;
});
ToolTip.SetTip(box, tip);
if (learnParam >= 0) Learn(box, learnParam);
@@ -295,7 +295,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
}
Control Info(Func<string> text, IBrush? ink = null)
{
- var t = Mono("", 7, ink ?? AccentBright);
+ var t = Mono("", 7, ink ?? TextSecondary);
readouts.Add(() => t.Text = text());
return t;
}
@@ -359,12 +359,12 @@ internal sealed class CeilingDeviceBody : IDeviceBody
// ======================================================================
var colTitle = Caps("LIMIT"); colTitle.HorizontalAlignment = HorizontalAlignment.Center;
var inPill = new ShPill { Ink = Teal, VerticalAlignment = VerticalAlignment.Stretch, Width = 12 };
- var grPill = new ShPill { Ink = AccentBright, FromTop = true, VerticalAlignment = VerticalAlignment.Stretch, Width = 12 };
- var outPill = new ShPill { Ink = Brass, VerticalAlignment = VerticalAlignment.Stretch, Width = 12 };
+ var grPill = new ShPill { Ink = NotaPalette.VizInk, FromTop = true, VerticalAlignment = VerticalAlignment.Stretch, Width = 12 };
+ var outPill = new ShPill { Ink = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Stretch, Width = 12 };
ToolTip.SetTip(inPill, "The input after Gain, with the ceiling marked");
ToolTip.SetTip(grPill, "Gain reduction, 0 … 24\u2009dB");
ToolTip.SetTip(outPill, "The output");
- var colGr = Mono("", 7, AccentBright); colGr.HorizontalAlignment = HorizontalAlignment.Center;
+ var colGr = Mono("", 7, TextPrimary); colGr.HorizontalAlignment = HorizontalAlignment.Center;
var colOut = Mono("", 7, TextPrimary); colOut.HorizontalAlignment = HorizontalAlignment.Center;
static double NormLvl(double db) => Math.Clamp((db + 48) / 60, 0, 1); // −48 … +12 dBFS
readouts.Add(() =>
@@ -385,9 +385,9 @@ internal sealed class CeilingDeviceBody : IDeviceBody
pills.Children.Add(PillCol(inPill, "IN"));
pills.Children.Add(Col(PillCol(grPill, "GR"), 1));
pills.Children.Add(Col(PillCol(outPill, "OUT"), 2));
- var leftCol = new Border
+ var leftCol = new RuleSection
{
- Width = 64, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 64, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(colTitle, Dock.Top), Docked(colOut, Dock.Bottom), Docked(colGr, Dock.Bottom), pills } },
};
DockPanel.SetDock(leftCol, Dock.Left);
@@ -400,7 +400,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
{
level = new CeLevelView { CeilToNorm = db => ToN(Ceil, db) };
WireDrag(level, Ceil);
- ToolTip.SetTip(level, "The last 4 s: the input (teal), the part over the ceiling (red) and the output (brass), with the reduction under it. Drag the ceiling line; double-click resets.");
+ ToolTip.SetTip(level, "The last 4 s: the input (teal), the part over the ceiling (red) and the output (neutral ink), with the reduction under it. Drag the ceiling line; double-click resets.");
var head = HeadRow(CharSeg(), Info(() => "ceiling " + CeilF(P(Ceil))));
var knobs = KnobRow(
() => ScDb(S_WinInPeak) <= -119 ? "no signal" : NotaNum.F($"in {Lvl(ScDb(S_WinInPeak))} → out {Lvl(ScDb(S_WinOutPeak))}"),
@@ -423,7 +423,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
{
loudness = new CeLoudnessView { TargetToNorm = t => ToN(Target, t) };
WireDrag(loudness, Target);
- ToolTip.SetTip(loudness, "Momentary (teal), short-term (brass) and integrated (Ink) loudness over the last 60 s around the target, ±1 LU shaded. Drag the target line; double-click resets.");
+ ToolTip.SetTip(loudness, "Momentary (teal), short-term (neutral ink) and integrated (rose) loudness over the last 60 s around the target, ±1 LU shaded. Drag the target line; double-click resets.");
var head = HeadRow(Row(6, CharSeg(false), Caps("TARGET"), TargetDrop()),
Info(() => HaveI() ? NotaNum.F($"{FromTarget():+0.0;−0.0;0.0}\u2009LU from target") : "measuring…"));
var knobs = KnobRow(
@@ -478,7 +478,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
MeterGrid(
("peak in", () => Lvl(ScDb(S_PeakInHold)), () => OverInk(ScDb(S_PeakInHold), 0)),
("peak out", () => Lvl(ScDb(S_PeakOutHold)), () => TextPrimary),
- ("max GR", () => GrF(Sc(S_MaxGrHold)), () => AccentBright),
+ ("max GR", () => GrF(Sc(S_MaxGrHold)), () => TextPrimary),
("LUFS-S", () => Lufs(ScDb(S_LufsS)), () => TextPrimary),
("LUFS-I", () => Lufs(ScDb(S_LufsI)), () => TextPrimary),
("true pk", () => Lvl(ScDb(S_TpHold)), () => OverInk(ScDb(S_TpHold), P(Ceil)))),
@@ -486,7 +486,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
Control LoudMetersTab()
{
- var big = Mono("", 16, AccentBright);
+ var big = Mono("", 16, TextPrimary);
var unit = new TextBlock { Text = "LUFS", FontSize = 8, Foreground = TextSecondary, VerticalAlignment = VerticalAlignment.Bottom, Margin = new Thickness(0, 0, 0, 2) };
var verdict = Mono("", 8, Success); verdict.HorizontalAlignment = HorizontalAlignment.Right; verdict.VerticalAlignment = VerticalAlignment.Bottom;
readouts.Add(() =>
@@ -508,7 +508,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
("LUFS-S", () => Lufs(ScDb(S_LufsS)), () => TextPrimary),
("LUFS-M", () => Lufs(ScDb(S_LufsM)), () => TextPrimary),
("true pk", () => Lvl(ScDb(S_TpHold)), () => OverInk(ScDb(S_TpHold), P(Ceil))),
- ("max GR", () => GrF(Sc(S_MaxGrHold)), () => AccentBright)),
+ ("max GR", () => GrF(Sc(S_MaxGrHold)), () => TextPrimary)),
LookRow(), ResetRow(true));
}
@@ -527,7 +527,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
readouts.Add(() =>
{
bool d = On(DeltaP);
- t.Text = d ? "DELTA" : "DETECTOR";
+ t.Text = d ? "Delta" : "Detector";
t.Foreground = d ? AccentBright : TextTertiary;
l1.Text = d ? "hearing what it removes" : (Tp() ? "true peak · 4×" : "sample peak") + (ExtOn() ? " · key" : "");
l2.Text = d ? "the difference in − out" : NotaNum.F($"{KeyName()} · HP {HpF(P(ScHp))} · latency {Sc(S_Latency):0} smp");
@@ -575,9 +575,9 @@ internal sealed class CeilingDeviceBody : IDeviceBody
Refresh();
}, extras);
var rightFrame = TabFrame(new[] { "Meters", "Detector" }, rightHost, RightBody, true, t => { rightTab = t; RefreshAll(); }, null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -612,7 +612,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { leftCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -643,7 +643,7 @@ internal sealed class CeilingDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/ChamberDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/ChamberDeviceBody.cs
index d6ce077d..41e8681f 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/ChamberDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/ChamberDeviceBody.cs
@@ -52,7 +52,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
};
private static readonly IBrush RailBg = NotaPalette.SurfaceInset;
- private static readonly IBrush Panel = NotaPalette.TextOnAccent; // dark ink over an engaged fill
+ private static readonly IBrush Panel = NotaPalette.SurfaceCard; // a section box on the panel tone
private static readonly IBrush Border2 = NotaPalette.BorderDefault;
private static readonly IBrush BorderIn = NotaPalette.GraphBorder;
private static readonly IBrush Inset = NotaPalette.BgSunken;
@@ -69,7 +69,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "HYBRID";
+ public string? Subtitle => "Hybrid";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -126,7 +126,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
string Interval() => Sel(ShimmerPitch, 3) switch { 0 => "−12\u2009st", 1 => "+7\u2009st", _ => "+12\u2009st" };
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new() { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? MutedC, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new() { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? MutedC, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -182,7 +182,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
return row;
}
Control Bar(int p, Func<double, string> fmt, Func<bool>? dim = null, double valW = 26)
- => HBar(p, () => P(p), v => Raw(p, (float)v), fmt, Amber, dim, valW);
+ => HBar(p, () => P(p), v => Raw(p, (float)v), fmt, NotaPalette.VizInk, dim, valW);
Control SliderRow(string label, int p, Func<double, string> fmt, double labW = 48, Func<bool>? dim = null, double valW = 26)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(NotaNum.F($"{labW},*")), VerticalAlignment = VerticalAlignment.Center };
@@ -270,25 +270,25 @@ internal sealed class ChamberDeviceBody : IDeviceBody
f.DragEnded += () => End(p);
readouts.Add(() => f.Set(P(p)));
MidiLearn.Bind(f, MidiTarget.DeviceParam(track, di, p), engine.DeviceParamName(track, di, p));
- ToolTip.SetTip(f, split ? "Blend — convolution (slate, top) ⇄ algorithm (brass, bottom). Double-click: 50 / 50" : "Dry/Wet — double-click resets");
+ ToolTip.SetTip(f, split ? "Blend — convolution (slate, top) ⇄ algorithm (neutral, bottom). Double-click: 50 / 50" : "Dry/Wet — double-click resets");
var lb = Caps(label); lb.HorizontalAlignment = HorizontalAlignment.Center;
- if (!split) readouts.Add(() => lb.Foreground = P(DryWet) > 0.995f || On(WetOnly) ? AmberLit : MutedC);
+ if (!split) readouts.Add(() => lb.Foreground = P(DryWet) > 0.995f || On(WetOnly) ? TxtC : MutedC);
return new DockPanel { Children = { Docked(lb, Dock.Bottom), f } };
}
- var blendTxt = Mono("", 7, AmberLit); blendTxt.HorizontalAlignment = HorizontalAlignment.Center;
+ var blendTxt = Mono("", 7, TxtC); blendTxt.HorizontalAlignment = HorizontalAlignment.Center;
var wetTxt = Mono("", 7, TxtC); wetTxt.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
float b = P(Blend);
blendTxt.Text = NotaNum.F($"{(1 - b) * 100:0} / {b * 100:0}");
bool wo = On(WetOnly);
- wetTxt.Text = wo ? "SEND" : NotaNum.F($"{P(DryWet) * 100:0}\u2009%");
- wetTxt.Foreground = wo || P(DryWet) > 0.995f ? AmberLit : TxtC;
+ wetTxt.Text = wo ? "Send" : NotaNum.F($"{P(DryWet) * 100:0}\u2009%");
+ wetTxt.Foreground = wo || P(DryWet) > 0.995f ? NotaPalette.TextPrimary : TxtC;
});
var blendTitle = Caps("BLEND"); blendTitle.HorizontalAlignment = HorizontalAlignment.Center;
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 3) };
faders.Children.Add(Fader(Blend, true, "C/A")); faders.Children.Add(Col(Fader(DryWet, false, "WET"), 1));
- var blendCol = new Border { Width = 56, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ var blendCol = new RuleSection { Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(blendTitle, Dock.Top), Docked(wetTxt, Dock.Bottom), Docked(blendTxt, Dock.Bottom), faders } } };
DockPanel.SetDock(blendCol, Dock.Left);
@@ -324,7 +324,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
if (irList[i].Cat != lastCat)
{
if (lastCat.Length > 0) fly.Items.Add(new Separator());
- fly.Items.Add(new MenuItem { Header = irList[i].Cat, IsEnabled = false, FontSize = 9 });
+ fly.Items.Add(new MenuItem { Header = NotaText.Label(irList[i].Cat), IsEnabled = false, FontSize = 9 });
lastCat = irList[i].Cat;
}
int iv = i;
@@ -356,7 +356,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
irView.TrimChanged += (s, e) => { Raw(IrStart, (float)s); Raw(IrDecay, (float)e); };
irView.DragStarted += h => Begin(h == 1 ? IrStart : IrDecay);
irView.DragEnded += h => End(h == 1 ? IrStart : IrDecay);
- ToolTip.SetTip(irView, "Drag the brass lines to trim the IR (Start · Decay); double-click resets. Drop an audio file here to load it.");
+ ToolTip.SetTip(irView, "Drag the trim lines to trim the IR (Start · Decay); double-click resets. Drop an audio file here to load it.");
readouts.Add(() =>
{
string sig = NotaNum.F($"{Sel(IrSelect, IrCount)}|{Sc(S_IrSeconds):0.000}|{Sc(S_IrChannels)}|{Sc(S_UserIr)}");
@@ -449,7 +449,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
};
eq.DragStarted += h => { if (h == 0) { Begin(EqLowCut); Begin(EqLowGain); } else { Begin(EqHighCut); Begin(EqHighShelf); } };
eq.DragEnded += h => { if (h == 0) { End(EqLowCut); End(EqLowGain); } else { End(EqHighCut); End(EqHighShelf); } };
- ToolTip.SetTip(eq, "Brass handle: low cut (X) + low shelf (Y) · grey handle: high cut (X) + high shelf (Y)");
+ ToolTip.SetTip(eq, "Left handle: low cut (X) + low shelf (Y) · right handle: high cut (X) + high shelf (Y)");
readouts.Add(() => eq.Set(P(EqLowCut), P(EqLowGain), P(EqHighShelf), P(EqHighCut)));
var eqKnobs = new Grid { ColumnDefinitions = new ColumnDefinitions("*,*,*,*"), Height = 50 };
eqKnobs.Children.Add(K(EqLowCut, "LOW-CUT", LowCutF, 30, 48));
@@ -472,7 +472,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
// Shimmer
bool ShimDim() => Sel(AlgoMode, 4) != 3;
var shimCap = Caps("SHIMMER · PITCH SHIFT");
- readouts.Add(() => { shimCap.Text = ShimDim() ? "SHIMMER · SHIMMER MODE ONLY" : "SHIMMER · PITCH SHIFT"; shimCap.Foreground = ShimDim() ? DimC : MutedC; });
+ readouts.Add(() => { shimCap.Text = ShimDim() ? "Shimmer · shimmer mode only" : "Shimmer · pitch shift"; shimCap.Foreground = ShimDim() ? DimC : MutedC; });
var interval = Row(5, Caps("INTERVAL"), Seg(ShimmerPitch, new[] { "−12", "+7", "+12" }));
var shimGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), ColumnSpacing = 6 };
shimGrid.Children.Add(K(ShimmerAmount, "AMOUNT", v => Pct(v), 28, 44, ChamberInk.Mauve));
@@ -504,7 +504,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
g.Children.Add(Toggle(onP, ""));
g.Children.Add(Col(Caps(name), 1));
var bar = HBar(Blend, () => conv ? 1 - P(Blend) : P(Blend), v => Raw(Blend, (float)(conv ? 1 - v : v)),
- v => ShortDb(ShareDb(v)), conv ? ChamberInk.Slate : Amber, () => !On(onP), 26);
+ v => ShortDb(ShareDb(v)), conv ? ChamberInk.Slate : NotaPalette.VizInk, () => !On(onP), 26);
ToolTip.SetTip(bar, conv ? "Convolution share of the blend (drags Blend)" : "Algorithm share of the blend (drags Blend)");
g.Children.Add(Col(bar, 2));
return g;
@@ -562,7 +562,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
qual.Children.Add(Col(qseg, 1));
var mid = new StackPanel { Spacing = 6, Children = {
SliderRow("WIDTH", WidthP, v => NotaNum.F($"{v * 200:0}"), 48),
- SliderRow("MONO f", BassMono, v => v <= 0.001 ? "off" : NotaNum.F($"{Exp(v, 30, 500):0}"), 48),
+ SliderRow("Mono f", BassMono, v => v <= 0.001 ? "off" : NotaNum.F($"{Exp(v, 30, 500):0}"), 48),
qual } };
var wetOnly = Toggle(WetOnly, "Wet only (send)");
ToolTip.SetTip(wetOnly, "Wet only — 100\u2009% wet, no dry: for a return / send track");
@@ -594,7 +594,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
extras.Text = Sc(S_KernelSeconds) > 0 ? NotaNum.F($"{ts} · {Sc(S_KernelSeconds):0.0}\u2009s IR") : ts;
extras.Foreground = MutedC; break;
case 1:
- extras.Text = On(Freeze) ? "FREEZE active" : On(Routing) && On(ConvOn) ? "fed by convolution" : "";
+ extras.Text = On(Freeze) ? "Freeze active" : On(Routing) && On(ConvOn) ? "fed by convolution" : "";
extras.Foreground = On(Freeze) ? AmberLit : MutedC; break;
default:
extras.Text = Sel(EqPosition, 3) switch { 0 => "at the input, before both engines", 2 => "at the output, dry + wet", _ => "on the tail, before Dry/Wet" };
@@ -605,9 +605,9 @@ internal sealed class ChamberDeviceBody : IDeviceBody
Control RightBody(int t) => rightBodies[t] ??= t == 1 ? OutputTab() : LevelsTab();
var centre = TabFrame(new[] { "Convolution", "Algorithm", "EQ · Mod" }, centreHost, CentreBody, false, t => { centreTab = t; foreach (var a in readouts) a(); }, extras);
var rightFrame = TabFrame(new[] { "Levels", "Output" }, rightHost, RightBody, true, _ => { foreach (var a in readouts) a(); }, null);
- var right = new Border { Width = 186, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -649,7 +649,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { blendCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = RailBg, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -670,7 +670,7 @@ internal sealed class ChamberDeviceBody : IDeviceBody
{
bool on = i == sel;
btns[i].Background = on ? TabBg : Brushes.Transparent; btns[i].BorderBrush = on ? Amber : Brushes.Transparent;
- var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? AmberLit : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
+ var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? NotaPalette.TextPrimary : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
var bar = centered ? (Avalonia.Controls.Panel)new UniformGrid { Rows = 1 } : new StackPanel { Orientation = Orientation.Horizontal };
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/ChorusDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/ChorusDeviceBody.cs
index 020e1187..b1c30387 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/ChorusDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/ChorusDeviceBody.cs
@@ -35,7 +35,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "MODULATION"; // the processing type, shown as the header badge
+ public string? Subtitle => "Modulation"; // the processing type, shown as the header badge
public Control Build(DeviceCardContext ctx, int index)
{
@@ -87,7 +87,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
// ---- small builders ---------------------------------------------------------
static TextBlock Caps(string t, IBrush? c = null) => new()
- { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.7, VerticalAlignment = VerticalAlignment.Center };
+ { Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -115,16 +115,15 @@ internal sealed class ChorusDeviceBody : IDeviceBody
return g;
}
- Border Island(Control head, Control body, double width = double.NaN)
+ RuleSection Island(Control head, Control body, double width = double.NaN)
{
var headBar = new Border
{
Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(8, 0, 3, 0), Child = head,
};
- return new Border
+ return new RuleSection
{
- Width = width, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
+ Width = width, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
};
}
static Grid HeadRow(Control left, Control right)
@@ -154,7 +153,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
Learn(modeSeg, Mode);
ToolTip.SetTip(modeSeg, "Classic — two voices, left and right; Ensemble — three voices 120° apart, a string-machine shimmer; Vibrato — the pitch wobble alone, no dry signal");
- var big = Mono("", 26, AccentBright); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
+ var big = Mono("", 26, TextPrimary); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
var bigSub = new TextBlock { FontSize = 8, Foreground = TextSecondary };
var period = Mono("", 7, TextTertiary); period.Margin = new Thickness(0, 2, 0, 0);
readouts.Add(() =>
@@ -172,7 +171,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
bigSub.Text = "Hz · free";
period.Text = "period " + PeriodF(PeriodMs());
}
- big.Foreground = On() ? AccentBright : NotaPalette.TextAxis;
+ big.Foreground = On() ? TextPrimary : NotaPalette.TextAxis;
});
var bigBlock = new StackPanel { Spacing = 1, VerticalAlignment = VerticalAlignment.Center, Children = { big, bigSub, period } };
ToolTip.SetTip(bigBlock, "The LFO rate: in Hz, or the note value it takes from the tempo");
@@ -263,7 +262,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
{
string s = State();
stateWord.Text = s;
- stateWord.Foreground = s == "resonant" ? AccentBright : s == "bypass" ? NotaPalette.TextAxis : TextSecondary;
+ stateWord.Foreground = s == "resonant" ? TextPrimary : s == "bypass" ? NotaPalette.TextAxis : TextSecondary;
});
ToolTip.SetTip(stateWord, "How many voices sing, or that the feedback makes it ring (past 60 %), or that Vibrato plays wet only");
@@ -292,7 +291,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
ToolTip.SetTip(g, tip);
return g;
}
- var detuneBar = new FlangerBar { Ink = NotaPalette.Accent, VerticalAlignment = VerticalAlignment.Center };
+ var detuneBar = new FlangerBar { Ink = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Center };
var detuneVal = Mono("", 8, TextPrimary);
var delayBar = new FlangerBar { Ink = NotaPalette.BorderStrong, VerticalAlignment = VerticalAlignment.Center };
var delayVal = Mono("", 8, TextPrimary);
@@ -339,7 +338,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
foot = "Detune up to ±" + ChorusMath.Ct(MaxCt()) + " ct · τ " + ChorusMath.Ms(TauMin()) + "–" + ChorusMath.Ms(TauMax())
+ " ms · " + (Ens() ? "3" : "2") + " voices";
statusLeft.Text = foot;
- statusLeft.Foreground = warn ? AccentBright : TextSecondary;
+ statusLeft.Foreground = warn ? NotaPalette.Warning : TextSecondary;
double sr = Sc(S_SampleRate);
statusRight.Text = (sr > 0 ? NotaNum.F($"{sr / 1000:0.#} kHz · ") : "") + NotaNum.F($"{Bpm():0.##} BPM · ")
+ (P(Warmth) > 0.01f ? NotaNum.F($"warm {P(Warmth) * 100:0} %") : "clean");
@@ -352,7 +351,7 @@ internal sealed class ChorusDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { left, right, centre } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
var centsNow = new double[3];
void Refresh()
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/CompressorDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/CompressorDeviceBody.cs
index 03c4b32b..1b781fe3 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/CompressorDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/CompressorDeviceBody.cs
@@ -43,7 +43,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "DYNAMICS";
+ public string? Subtitle => "Dynamics";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -96,8 +96,8 @@ internal sealed class CompressorDeviceBody : IDeviceBody
string LpF(double v) => v >= 19999 ? "off" : Hz(v);
// ---- small builders ---------------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -223,7 +223,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
// LEFT — LEVEL column (threshold · make-up / key gain)
// ======================================================================
int centreTab = 0;
- var thrFader = new CompFader { Ink = NotaPalette.Accent, Handle = NotaPalette.AccentBright, VerticalAlignment = VerticalAlignment.Stretch };
+ var thrFader = new CompFader { Ink = NotaPalette.VizInk, Handle = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Stretch };
var thrMap = Lin(Threshold);
thrFader.Default = thrMap.N(Def(Threshold));
thrFader.Changed += v => Raw(Threshold, thrMap.V(v));
@@ -242,7 +242,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
var thrLbl = Caps("THR"); thrLbl.HorizontalAlignment = HorizontalAlignment.Center;
var f2Lbl = Caps("MKP"); f2Lbl.HorizontalAlignment = HorizontalAlignment.Center;
- var thrVal = Mono("", 7, AccentBright); thrVal.HorizontalAlignment = HorizontalAlignment.Center;
+ var thrVal = Mono("", 7, TextPrimary); thrVal.HorizontalAlignment = HorizontalAlignment.Center;
var f2Val = Mono("", 7, TextPrimary); f2Val.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
@@ -253,16 +253,16 @@ internal sealed class CompressorDeviceBody : IDeviceBody
f2.Set(Lin(p2).N(P(p2)));
thrVal.Text = Db(P(Threshold));
f2Val.Text = SDb(P(p2));
- f2Lbl.Text = p2 == ScGain ? "SC IN" : "MKP";
+ f2Lbl.Text = NotaText.Label(p2 == ScGain ? "SC IN" : "MKP");
ToolTip.SetTip(f2, p2 == ScGain ? "Key gain — drives the detector harder or softer. Double-click resets." : "Make-up gain. Double-click resets.");
});
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 3) };
faders.Children.Add(new DockPanel { Children = { Docked(thrLbl, Dock.Bottom), thrFader } });
faders.Children.Add(Col(new DockPanel { Children = { Docked(f2Lbl, Dock.Bottom), f2 } }, 1));
var levelTitle = Caps("LEVEL"); levelTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var levelCol = new Border
+ var levelCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(levelTitle, Dock.Top), Docked(f2Val, Dock.Bottom), Docked(thrVal, Dock.Bottom), faders } },
};
DockPanel.SetDock(levelCol, Dock.Left);
@@ -332,7 +332,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
Control MotionTab()
{
var motion = new CompMotionView();
- ToolTip.SetTip(motion, "The reduction (brass, hanging from 0 dB) against the input level (teal) — attack is the fall, release the climb back. The dashed line is the threshold.");
+ ToolTip.SetTip(motion, "The reduction (neutral ink, hanging from 0 dB) against the input level (teal) — attack is the fall, release the climb back. The dashed line is the threshold.");
readouts.Add(() => motion.Set(envIn, envGr, scN >= kScope + 2 * EnvN ? EnvN : 0, P(Threshold), WindowMs()));
string Measured()
{
@@ -341,7 +341,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
return NotaNum.F($"transient {Ms(tr)} · recovery {(double.IsNaN(rec) ? "–" : Ms(rec))}");
}
return new DockPanel { LastChildFill = true, Margin = new Thickness(8, 5, 8, 4), Children = {
- Docked(CharRow(() => NotaNum.F($"attack {Ms(Sc(S_AtkMs))} · release {Ms(Sc(S_RelMs))}"), () => AccentBright), Dock.Top),
+ Docked(CharRow(() => NotaNum.F($"attack {Ms(Sc(S_AtkMs))} · release {Ms(Sc(S_RelMs))}"), () => TextSecondary), Dock.Top),
Docked(TimingRow(true,
() => NotaNum.F($"GR peak {Gr(grHist.Peak)} dB · {Hits((int)WindowMs())} hits / window"),
Measured), Dock.Bottom),
@@ -454,20 +454,20 @@ internal sealed class CompressorDeviceBody : IDeviceBody
}
stack.Children.Add(Line("in", () => NotaNum.F($"{Lvl(LinDb(Sc(S_InRms)))} dB"), () => TextPrimary));
stack.Children.Add(Line("out", () => NotaNum.F($"{Lvl(LinDb(Sc(S_OutRms)))} dB"), () => Sc(S_OutPk) > 0.5 ? NotaPalette.Warning : TextPrimary));
- stack.Children.Add(Line("GR", () => NotaNum.F($"{Gr(Sc(S_Gr))} dB"), () => AccentBright));
+ stack.Children.Add(Line("GR", () => NotaNum.F($"{Gr(Sc(S_Gr))} dB"), () => TextPrimary));
}
else
{
- var now = Mono("", 9, AccentBright);
+ var now = Mono("", 9, TextPrimary);
var set = Mono("", 8, TextSecondary);
stack.Children.Add(now); stack.Children.Add(set);
readouts.Add(() =>
{
now.Text = NotaNum.F($"{Gr(Sc(S_Gr))} dB · peak {Gr(grHist.Peak)}");
set.Text = NotaNum.F($"thresh {P(Threshold):0.0} · {RatioF(P(Ratio))} · knee {P(Knee):0.#}");
- bool hot = grHist.Peak >= 10;
- box.BorderBrush = hot ? NotaPalette.BorderBrass : NotaPalette.GraphBorder;
- title.Foreground = hot ? AccentBright : TextTertiary;
+ bool hot = grHist.Peak >= 10; // heavy reduction: a caution, not the accent
+ box.BorderBrush = hot ? NotaPalette.Warning : NotaPalette.GraphBorder;
+ title.Foreground = hot ? NotaPalette.Warning : TextTertiary;
});
}
return box;
@@ -548,9 +548,9 @@ internal sealed class CompressorDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Curve", "Motion", "Sidechain" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Dynamics", "Output" }, rightHost, RightBody, true, _ => Refresh(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -580,7 +580,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { levelCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -613,7 +613,7 @@ internal sealed class CompressorDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/CrushDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/CrushDeviceBody.cs
index 4aa10f9b..19132627 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/CrushDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/CrushDeviceBody.cs
@@ -41,7 +41,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "BITCRUSHER";
+ public string? Subtitle => "Bitcrusher";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -90,8 +90,8 @@ internal sealed class CrushDeviceBody : IDeviceBody
static string FiltF(double v) => Hz(FiltHz(v));
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -102,7 +102,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
void Learn(Control c, int p) => MidiLearn.Bind(c, MidiTarget.DeviceParam(track, di, p), engine.DeviceParamName(track, di, p));
// Gauge knob bound to a device param (automation gesture + MIDI learn + live follow).
- // `lit` lights the label and value (the knob the current tab is about).
+ // `lit` brightens the label and value (the knob the current tab is about).
Control K(int p, string name, Func<double, string> fmt, string tip, Func<bool>? lit = null, bool teal = false)
{
var val = Mono(fmt(P(p)), 7, TextPrimary);
@@ -121,8 +121,8 @@ internal sealed class CrushDeviceBody : IDeviceBody
if (!knob.Dragging) { double c = P(p); if (Math.Abs(c - knob.Value) > 1e-4) knob.Value = c; }
val.Text = fmt(P(p));
bool on = lit?.Invoke() ?? false;
- val.Foreground = on ? AccentBright : TextPrimary;
- if (label is not null) label.Foreground = on ? AccentBright : TextTertiary;
+ val.Foreground = on ? TextPrimary : TextSecondary;
+ if (label is not null) label.Foreground = on ? TextSecondary : TextTertiary;
});
return cell;
}
@@ -218,11 +218,11 @@ internal sealed class CrushDeviceBody : IDeviceBody
// ======================================================================
var colTitle = Caps("CRUSH"); colTitle.HorizontalAlignment = HorizontalAlignment.Center;
var inPill = new ShPill { Ink = Teal, VerticalAlignment = VerticalAlignment.Stretch, Width = 14 };
- var outPill = new ShPill { Ink = Brass, VerticalAlignment = VerticalAlignment.Stretch, Width = 14 };
+ var outPill = new ShPill { Ink = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Stretch, Width = 14 };
ToolTip.SetTip(inPill, "The input peak, −60 … 0\u2009dBFS");
ToolTip.SetTip(outPill, "The output peak, −60 … 0\u2009dBFS");
var colIn = Mono("", 7, TextPrimary); colIn.HorizontalAlignment = HorizontalAlignment.Center;
- var colOut = Mono("", 7, AccentBright); colOut.HorizontalAlignment = HorizontalAlignment.Center;
+ var colOut = Mono("", 7, TextPrimary); colOut.HorizontalAlignment = HorizontalAlignment.Center;
static double NormLvl(double db) => Math.Clamp((db + 60) / 60, 0, 1);
bool Crushing() => Sc(S_Signal) > 0.5 && P(DryWet) > 0.01f;
readouts.Add(() =>
@@ -241,9 +241,9 @@ internal sealed class CrushDeviceBody : IDeviceBody
var pills = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 8, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
pills.Children.Add(PillCol(inPill, "IN"));
pills.Children.Add(Col(PillCol(outPill, "OUT"), 1));
- var leftCol = new Border
+ var leftCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(colTitle, Dock.Top), Docked(colOut, Dock.Bottom), Docked(colIn, Dock.Bottom), pills } },
};
DockPanel.SetDock(leftCol, Dock.Left);
@@ -260,7 +260,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
quant.Changed += (b, r) => { Raw(Bits, b); Raw(Rate, r); RefreshAll(); };
quant.ResetRequested += () => { Reset(Bits); Reset(Rate); RefreshAll(); };
Learn(quant, Bits);
- ToolTip.SetTip(quant, "10\u2009ms of a sine through the crusher: the source dashed, the held and quantised steps in brass. Drag up / down for Bits, left / right for Rate; double-click resets both.");
+ ToolTip.SetTip(quant, "10\u2009ms of a sine through the crusher: the source dashed, the held and quantised steps in neutral ink. Drag up / down for Bits, left / right for Rate; double-click resets both.");
var knobs = KnobRow(
() => NotaNum.F($"{KHz(Sr())} → {KHz(RateHz(P(Rate)))} · 1 of {Hold():0.#}"),
() => NotaNum.F($"quant. noise {-(6.02 * BitsOf(P(Bits)) + 1.76):0}\u2009dB"));
@@ -278,7 +278,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
spectrum.GestureEnd += h => End(map[h]);
spectrum.ResetRequested += h => { Reset(map[h]); RefreshAll(); };
Learn(spectrum, Rate);
- ToolTip.SetTip(spectrum, "The output spectrum: brass is the signal, teal what the crush added — bright above the reduced Nyquist (the images). Drag the Nyquist line for Rate, the filter line for the post filter; double-click resets.");
+ ToolTip.SetTip(spectrum, "The output spectrum: neutral ink is the signal, teal what the crush added — bright above the reduced Nyquist (the images). Drag the Nyquist line for Rate, the filter line for the post filter; double-click resets.");
var knobs = KnobRow(
() => Sc(S_Analysed) < 0.5 ? "no signal" : ScDb(S_Images) <= -119 ? NotaNum.F($"no images above {KHz(Sc(S_Nyquist))}")
: NotaNum.F($"images above {KHz(Sc(S_Nyquist))} {ScDb(S_Images):0}\u2009dB"),
@@ -380,7 +380,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
{
Caps("MEASUREMENTS"),
MRow("in", () => Lvl(ScDb(S_InPeak)) + " dB", () => TextPrimary),
- MRow("out", () => Lvl(ScDb(S_OutPeak)) + " dB", () => ScDb(S_OutPeak) > 0 ? NotaPalette.DangerBright : AccentBright),
+ MRow("out", () => Lvl(ScDb(S_OutPeak)) + " dB", () => ScDb(S_OutPeak) > 0 ? NotaPalette.DangerBright : TextPrimary),
MRow("crest", () => ScDb(S_OutRms) <= -119 ? "—" : NotaNum.F($"{Sc(S_Crest):0.0} dB"), () => TextPrimary),
},
},
@@ -420,9 +420,9 @@ internal sealed class CrushDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Quantiser", "Spectrum", "Transfer" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Grit", "Output" }, rightHost, RightBody, true, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -462,7 +462,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { leftCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -497,7 +497,7 @@ internal sealed class CrushDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/DelayDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/DelayDeviceBody.cs
index 2f999af1..7d8b446f 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/DelayDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/DelayDeviceBody.cs
@@ -42,7 +42,7 @@ internal sealed class DelayDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "DELAY";
+ public string? Subtitle => "Delay";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -94,8 +94,8 @@ internal sealed class DelayDeviceBody : IDeviceBody
double SpreadMs() => P(Spread) * 50;
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -244,7 +244,7 @@ internal sealed class DelayDeviceBody : IDeviceBody
readouts.Add(SyncTaps);
// ======================================================================
- // LEFT — LOOP column (Feedback · Spread)
+ // LEFT — Loop column (Feedback · Spread)
// ======================================================================
Control LoopFader(int p, string label, IBrush ink, IBrush handle, Func<string> value, string tip)
{
@@ -261,22 +261,22 @@ internal sealed class DelayDeviceBody : IDeviceBody
f.Set(P(p));
val.Text = value();
bool hot = On(Freeze) && p == Feedback;
- val.Foreground = hot || P(p) > 0.9f ? AccentBright : TextPrimary;
+ val.Foreground = hot ? AccentBright : P(p) > 0.9f ? NotaPalette.Warning : TextPrimary; // Freeze is live; > 90 % runs away
lb.Foreground = hot ? AccentBright : TextTertiary;
});
return new DockPanel { Width = 44, Children = { Docked(val, Dock.Bottom), Docked(lb, Dock.Bottom), f } };
}
var loopTitle = Caps("LOOP"); loopTitle.HorizontalAlignment = HorizontalAlignment.Center;
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 4, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 2) };
- faders.Children.Add(LoopFader(Feedback, "FEEDBACK", NotaPalette.Accent, NotaPalette.AccentBright,
- () => On(Freeze) ? "HOLD" : Pct(P(Feedback)),
+ faders.Children.Add(LoopFader(Feedback, "FEEDBACK", NotaPalette.VizInk, NotaPalette.VizInk,
+ () => On(Freeze) ? "Hold" : Pct(P(Feedback)),
"Feedback — how much of each repeat goes round again; Freeze pins it at 100 %. Double-click resets."));
faders.Children.Add(Col(LoopFader(Spread, "SPREAD", NotaPalette.Rose, NotaPalette.RoseBright,
() => NotaNum.F($"{P(Spread) * 50:0} ms"),
"Spread — pushes the right channel later, up to 50 ms. Double-click resets."), 1));
- var loopCol = new Border
+ var loopCol = new RuleSection
{
- Width = 96, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 96, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(loopTitle, Dock.Top), faders } },
};
DockPanel.SetDock(loopCol, Dock.Left);
@@ -295,7 +295,7 @@ internal sealed class DelayDeviceBody : IDeviceBody
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("12,*"), ColumnSpacing = 5, Height = 20 };
var lbl = Caps(ch); g.Children.Add(lbl);
// Eight divisions: past the almanac's four-choice limit for segments — an
- // accepted exception, see DESIGN.md § Accepted departures.
+ // accepted exception, see DESIGN.md § Accepted exceptions.
g.Children.Add(Col(Seg(p, DivNames, fill: true, onPick: SyncTaps), 1));
if (dim is not null) readouts.Add(() => lbl.Foreground = dim() ? TextDisabled : TextTertiary);
return g;
@@ -455,7 +455,7 @@ internal sealed class DelayDeviceBody : IDeviceBody
var mid = new StackPanel { Spacing = 6, Children = {
SliderRow("MIX", DryWet, Pct, 52, () => On(WetOnly)),
SliderRow("WIDTH", WidthP, v => NotaNum.F($"{v * 200:0}"), 52),
- SliderRow("MONO f", BassMono, v => v <= 0.001 ? "off" : NotaNum.F($"{Exp(v, 30, 500):0}"), 52) } };
+ SliderRow("Mono f", BassMono, v => v <= 0.001 ? "off" : NotaNum.F($"{Exp(v, 30, 500):0}"), 52) } };
var wetOnly = Toggle(WetOnly, "Wet only (send)");
ToolTip.SetTip(wetOnly, "Wet only — repeats with no dry, for a return / send track");
@@ -500,9 +500,9 @@ internal sealed class DelayDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Time", "Loop · Wow" }, centreHost, CentreBody, false, t => { centreTab = t; foreach (var a in readouts) a(); }, extras);
var rightFrame = TabFrame(new[] { "Levels", "Output" }, rightHost, RightBody, true, _ => { foreach (var a in readouts) a(); }, null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -541,7 +541,7 @@ internal sealed class DelayDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { loopCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -565,7 +565,7 @@ internal sealed class DelayDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/DynamicEqDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/DynamicEqDeviceBody.cs
index 16679022..b4b0d222 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/DynamicEqDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/DynamicEqDeviceBody.cs
@@ -29,7 +29,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
{
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "DYNAMIC EQ";
+ public string? Subtitle => "Dynamic EQ";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -77,8 +77,8 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
IBrush DirInk(int b, bool bright = false) => B(b, DynEq.RangeF) >= 0 ? (bright ? NotaPalette.RoseBright : NotaPalette.Rose) : (bright ? NotaPalette.TealBright : Teal);
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -112,7 +112,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
for (int b = 0; b < DynEq.Bands; b++)
{
int bb = b;
- var num = new TextBlock { FontSize = 8, FontWeight = FontWeight.Bold, Text = (b + 1).ToString(), VerticalAlignment = VerticalAlignment.Center };
+ var num = new TextBlock { FontSize = 8, FontWeight = FontWeight.SemiBold, Text = (b + 1).ToString(), VerticalAlignment = VerticalAlignment.Center };
num.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var type = new TextBlock { FontSize = 7, FontWeight = FontWeight.SemiBold, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(3, 0, 0, 0) };
var hz = Mono("", 7, TextPrimary); hz.HorizontalAlignment = HorizontalAlignment.Right;
@@ -134,7 +134,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
readouts.Add(() =>
{
bool on = BandOn(bb), sel = bb == Sel(), dimmed = Solo() >= 0 && !sel;
- num.Foreground = !on || dimmed ? TextDisabled : sel ? AccentBright : Brass;
+ num.Foreground = !on || dimmed ? TextDisabled : sel ? AccentBright : TextSecondary;
type.Text = DynEq.TypeShort[TypeOf(bb)];
type.Foreground = on && !dimmed ? TextSecondary : TextDisabled;
hz.Text = DynEq.HzShort(B(bb, DynEq.FreqF));
@@ -152,10 +152,9 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
DockPanel.SetDock(chipStrip, Dock.Top);
ToolTip.SetTip(curve, "Drag a node — frequency and gain · wheel over a node — Q · double-click a node — band on / off · "
+ "double-click empty space — a new bell there · right-click a node — type, mode, solo");
- var graphPanel = new Border
+ var graphPanel = new RuleSection
{
- Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Margin = new Thickness(0, 0, 5, 0),
+ Margin = new Thickness(0, 0, 5, 0),
Child = new DockPanel { LastChildFill = true, Children = { chipStrip, new Border { Padding = new Thickness(5), Child = curve } } },
};
@@ -193,8 +192,8 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
bool on = BandOn(b);
badge.Background = on ? AccentBright : NotaPalette.TextAxis;
badgeTxt.Foreground = on ? OnAccent : TextTertiary;
- name.Text = DynEq.TypeNames[TypeOf(b)].ToUpperInvariant();
- name.Foreground = on ? AccentBright : TextTertiary;
+ name.Text = DynEq.TypeNames[TypeOf(b)];
+ name.Foreground = on ? TextPrimary : TextTertiary;
});
var head = new DockPanel { Height = 20, Margin = new Thickness(8, 0), Children = { Docked(onSw, Dock.Right), badge, name } };
var headBorder = new Border { BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Child = head };
@@ -240,7 +239,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
Col(K(pG, "GAIN", () => Capable(b) ? DynEq.Db(B(b, DynEq.GainF)) + " dB" : "—", "Gain — the static gain; or drag the node up / down",
inactive: () => !Capable(b)), 1),
Col(K(pQ, "Q", () => NotaNum.F($"{B(b, DynEq.QF):0.00}"), "Q — the width (the resonance on the cuts); or the wheel over the node",
- liveLabel: () => TypeOf(b) is DynEq.LowCut or DynEq.HighCut ? "RESO" : "Q"), 2),
+ liveLabel: () => TypeOf(b) is DynEq.LowCut or DynEq.HighCut ? "Reso" : "Q"), 2),
} };
// ---- dynamics mode ----
@@ -255,7 +254,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
+ "Lift — acts as it falls below it (a boost by default)");
bandReadouts.Add(modeSync);
var dynLabel = Caps("DYNAMICS");
- bandReadouts.Add(() => dynLabel.Foreground = IsDyn(b) ? AccentBright : TextTertiary);
+ bandReadouts.Add(() => dynLabel.Foreground = IsDyn(b) ? TextSecondary : TextTertiary);
var modeRow = new Border
{
BorderBrush = NotaPalette.GraphBorder, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(0, 5, 0, 0),
@@ -398,11 +397,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
return panel;
}
- var right = new Border
- {
- Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = bandHost,
- };
+ var right = new RuleSection { Width = 186, Child = bandHost };
DockPanel.SetDock(right, Dock.Right);
bandHost.Content = BandPanel(Sel());
curve.SelectionChanged += () => { bandHost.Content = BandPanel(Sel()); RefreshAll(); };
@@ -439,7 +434,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
}
else
{
- nowRead.Text = Solo() >= 0 ? NotaNum.F($"SOLO B{Solo() + 1}") : NotaNum.F($"B{s + 1} static");
+ nowRead.Text = Solo() >= 0 ? NotaNum.F($"Solo B{Solo() + 1}") : NotaNum.F($"B{s + 1} static");
nowRead.Foreground = Solo() >= 0 ? AccentBright : TextTertiary;
}
});
@@ -474,8 +469,8 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
readouts.Add(() =>
{
float o = P(DynEq.OutputP);
- outTb.Text = "OUT " + DynEq.Db(o) + " dB";
- outTb.Foreground = Math.Abs(o) > 0.05f ? AccentBright : TextSecondary;
+ outTb.Text = "Out " + DynEq.Db(o) + " dB";
+ outTb.Foreground = Math.Abs(o) > 0.05f ? TextPrimary : TextSecondary;
});
var engineRead = Mono("", 8, TextTertiary);
readouts.Add(() =>
@@ -493,7 +488,7 @@ internal sealed class DynamicEqDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { right, graphPanel } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/Eq3DeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/Eq3DeviceBody.cs
index 54e8fdf3..5616e79a 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/Eq3DeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/Eq3DeviceBody.cs
@@ -64,8 +64,8 @@ internal sealed class Eq3DeviceBody : IDeviceBody
double Sc(int i) => scN > i ? scope[i] : 0;
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -94,7 +94,7 @@ internal sealed class Eq3DeviceBody : IDeviceBody
Control KillButton(int b)
{
var hue = Eq3Math.Hue(b);
- var tb = new TextBlock { Text = "KILL", FontSize = 8, FontWeight = FontWeight.SemiBold, LetterSpacing = 0.5, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
+ var tb = new TextBlock { Text = "Kill", FontSize = 8, FontWeight = FontWeight.SemiBold, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
var btn = new Border
{
Width = 48, Height = 15, CornerRadius = NotaRadius.Badge, BorderThickness = new Thickness(1), HorizontalAlignment = HorizontalAlignment.Center,
@@ -105,7 +105,7 @@ internal sealed class Eq3DeviceBody : IDeviceBody
bool on = Killed(b);
btn.Background = on ? hue : Brushes.Transparent;
btn.BorderBrush = on ? hue : NotaPalette.BorderStrong;
- tb.Foreground = on ? NotaPalette.TextOnAccent : TextSecondary;
+ tb.Foreground = on ? NotaPalette.InkOn(hue) : TextSecondary;
}
btn.PointerPressed += (_, e) =>
{
@@ -121,7 +121,7 @@ internal sealed class Eq3DeviceBody : IDeviceBody
Control Strip(int b)
{
var hue = Eq3Math.Hue(b);
- var name = Caps(Eq3Math.Names[b], hue, 8); name.HorizontalAlignment = HorizontalAlignment.Center; name.LetterSpacing = 1;
+ var name = Caps(Eq3Math.Names[b], hue, 8); name.HorizontalAlignment = HorizontalAlignment.Center;
var span = Mono("", 7, TextTertiary); span.HorizontalAlignment = HorizontalAlignment.Center;
var val = Mono("", 9, TextPrimary); val.HorizontalAlignment = HorizontalAlignment.Center;
var fader = new Eq3Fader { Margin = new Thickness(0, 3, 0, 0) };
@@ -138,7 +138,7 @@ internal sealed class Eq3DeviceBody : IDeviceBody
if (!fader.Dragging) fader.Set(db, k, Eq3Math.TopDb(iso), Eq3Math.BottomDb(iso), hue);
span.Text = Span(b);
val.Text = k ? "−∞" : Eq3Math.Db(db);
- val.Foreground = k ? TextTertiary : Math.Abs(db) > 0.05 ? AccentBright : TextPrimary;
+ val.Foreground = k ? TextTertiary : Math.Abs(db) > 0.05 ? TextPrimary : TextSecondary;
});
var col = new DockPanel
{
@@ -151,11 +151,10 @@ internal sealed class Eq3DeviceBody : IDeviceBody
fader,
},
};
- var bar = new Border { Height = 2, Background = hue, CornerRadius = NotaRadius.Top(NotaRadius.TileValue) };
- return new Border
+ var bar = new Border { Height = 2, Background = hue }; // square: the section under it has no corners
+ return new RuleSection
{
- Width = 62, Margin = new Thickness(0, 0, 5, 0), Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true,
+ Width = 62, Margin = new Thickness(0, 0, 5, 0),
Child = new DockPanel { Children = { Docked(bar, Dock.Top), col } },
};
}
@@ -216,7 +215,7 @@ internal sealed class Eq3DeviceBody : IDeviceBody
{
double db = OutDb(P(Gain));
v.Text = Eq3Math.Db(db) + "\u2009dB";
- v.Foreground = Math.Abs(db) > 0.05 ? AccentBright : TextPrimary;
+ v.Foreground = Math.Abs(db) > 0.05 ? TextPrimary : TextSecondary;
});
ToolTip.SetTip(box, "Output gain, ±24\u2009dB — drag up / down (Shift for fine), double-click resets");
Learn(box, Gain);
@@ -258,9 +257,8 @@ internal sealed class Eq3DeviceBody : IDeviceBody
var headRight = Row(8, OutControl(), RangeSeg(), SlopeSeg());
Grid.SetColumn(headRight, 1); head.Children.Add(headRight);
var headBar = new Border { Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Child = head };
- var graphBox = new Border
+ var graphBox = new RuleSection
{
- Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
Child = new DockPanel { Children = { Docked(headBar, Dock.Top), new Border { Padding = new Thickness(5), Child = graph } } },
};
@@ -291,7 +289,7 @@ internal sealed class Eq3DeviceBody : IDeviceBody
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5) };
for (int b = 0; b < 3; b++) bodyRow.Children.Add(Docked(Strip(b), Dock.Left));
bodyRow.Children.Add(graphBox);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { Docked(status, Dock.Bottom), bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { Docked(status, Dock.Bottom), bodyRow } };
void Refresh()
{
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/EqDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/EqDeviceBody.cs
index 7a5134a7..0aa73a8b 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/EqDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/EqDeviceBody.cs
@@ -29,7 +29,7 @@ internal sealed class EqDeviceBody : IDeviceBody
{
public double Width => 700; // the almanac device format: 700 × 260
public bool FullBleed => true;
- public string? Subtitle => "EQUALIZER"; // the processing type, shown as the header badge
+ public string? Subtitle => "Equalizer"; // the processing type, shown as the header badge
public Control Build(DeviceCardContext ctx, int index)
{
@@ -77,8 +77,8 @@ internal sealed class EqDeviceBody : IDeviceBody
bool AutoOn() => P(Eq8.AutoGainP) >= 0.5f;
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -91,9 +91,9 @@ internal sealed class EqDeviceBody : IDeviceBody
for (int b = 0; b < Eq8.Bands; b++)
{
int bb = b;
- var num = Mono((b + 1).ToString(), 8, Brass); num.FontWeight = FontWeight.Bold;
+ var num = Mono((b + 1).ToString(), 8, TextSecondary); num.FontWeight = FontWeight.Bold;
var type = new TextBlock { FontSize = 7, FontWeight = FontWeight.SemiBold, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(3, 0, 0, 0) };
- var chn = new TextBlock { FontSize = 7, FontWeight = FontWeight.Bold, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(3, 0, 0, 0) };
+ var chn = new TextBlock { FontSize = 7, FontWeight = FontWeight.Medium, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(3, 0, 0, 0) };
var hz = Mono("", 7, TextPrimary); hz.HorizontalAlignment = HorizontalAlignment.Right;
var inner = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto,Auto,*"), Margin = new Thickness(4, 0) };
inner.Children.Add(num); inner.Children.Add(Col(type, 1)); inner.Children.Add(Col(chn, 2)); inner.Children.Add(Col(hz, 3));
@@ -114,7 +114,7 @@ internal sealed class EqDeviceBody : IDeviceBody
{
bool on = BandOn(bb), sel = bb == Sel();
int c = ChanOf(bb);
- num.Foreground = !on ? TextDisabled : sel ? AccentBright : Brass;
+ num.Foreground = !on ? TextDisabled : sel ? AccentBright : TextSecondary;
type.Text = Eq8.TypeShort[TypeOf(bb)];
type.Foreground = on ? TextSecondary : TextDisabled;
chn.Text = c == Eq8.St ? "" : Eq8.ChannelShort[c];
@@ -145,10 +145,9 @@ internal sealed class EqDeviceBody : IDeviceBody
};
anaBar.RenderTransform = new ScaleTransform(0.85, 0.85);
anaBar.RenderTransformOrigin = new RelativePoint(0, 0, RelativeUnit.Relative);
- var graphPanel = new Border
+ var graphPanel = new RuleSection
{
- Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Margin = new Thickness(0, 0, 5, 0),
+ Margin = new Thickness(0, 0, 5, 0),
Child = new DockPanel { LastChildFill = true, Children = { chipStrip, new Border { Padding = new Thickness(5), Child = new Panel { Children = { curve, anaBar } } } } },
};
@@ -185,8 +184,8 @@ internal sealed class EqDeviceBody : IDeviceBody
bool on = BandOn(b);
badge.Background = on ? AccentBright : NotaPalette.TextAxis;
badgeTxt.Foreground = on ? OnAccent : TextTertiary;
- name.Text = Eq8.TypeNames[TypeOf(b)].ToUpperInvariant();
- name.Foreground = on ? AccentBright : TextTertiary;
+ name.Text = Eq8.TypeNames[TypeOf(b)];
+ name.Foreground = on ? TextPrimary : TextTertiary;
});
var head = new DockPanel { Height = 20, Margin = new Thickness(8, 0), Children = { Docked(onSw, Dock.Right), badge, name } };
var headBorder = new Border { BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Child = head };
@@ -227,7 +226,7 @@ internal sealed class EqDeviceBody : IDeviceBody
Col(K(pG, "GAIN", () => Capable(b) ? Eq8.Db(B(b, Eq8.GainF)) + " dB" : "—", "Gain — or drag the node up / down (Scale multiplies it)",
inactive: () => !Capable(b)), 1),
Col(K(pQ, "Q", () => NotaNum.F($"{B(b, Eq8.QF):0.00}"), "Q — the width (the resonance on the cuts); or the wheel over the node",
- liveLabel: () => Cut(b) ? "RESO" : "Q"), 2),
+ liveLabel: () => Cut(b) ? "Reso" : "Q"), 2),
} };
// ---- slope + channel ----
@@ -279,7 +278,7 @@ internal sealed class EqDeviceBody : IDeviceBody
{
if (!trk.Dragging) trk.Norm = (P(p) - mn[p]) / (mx[p] - mn[p]);
val.Text = fmt();
- val.Foreground = Math.Abs(P(p) - def) > 0.05 ? AccentBright : TextPrimary;
+ val.Foreground = Math.Abs(P(p) - def) > 0.05 ? TextPrimary : TextSecondary;
});
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("40,*,40"), ColumnSpacing = 6, Height = 11 };
g.Children.Add(Caps(label));
@@ -311,11 +310,7 @@ internal sealed class EqDeviceBody : IDeviceBody
return panel;
}
- var right = new Border
- {
- Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = bandHost,
- };
+ var right = new RuleSection { Width = 186, Child = bandHost };
DockPanel.SetDock(right, Dock.Right);
bandHost.Content = BandPanel(Sel());
curve.SelectionChanged += () => { bandHost.Content = BandPanel(Sel()); RefreshAll(); };
@@ -373,8 +368,8 @@ internal sealed class EqDeviceBody : IDeviceBody
{
float o = P(Eq8.OutputP);
double total = o + (AutoOn() ? Sc(Eq8.S_AutoGain) : 0);
- outTb.Text = "OUT " + Eq8.Db(total) + " dB" + (AutoOn() ? " auto" : "");
- outTb.Foreground = Math.Abs(total) > 0.05 ? AccentBright : TextSecondary;
+ outTb.Text = "Out " + Eq8.Db(total) + " dB" + (AutoOn() ? " auto" : "");
+ outTb.Foreground = Math.Abs(total) > 0.05 ? TextPrimary : TextSecondary;
});
var engineRead = Mono("", 8, TextTertiary);
readouts.Add(() =>
@@ -392,7 +387,7 @@ internal sealed class EqDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { right, graphPanel } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/FlangerDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/FlangerDeviceBody.cs
index 20925588..5f9a04bb 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/FlangerDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/FlangerDeviceBody.cs
@@ -34,7 +34,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "MODULATION"; // the processing type, shown as the header badge
+ public string? Subtitle => "Modulation"; // the processing type, shown as the header badge
public Control Build(DeviceCardContext ctx, int index)
{
@@ -84,7 +84,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
// ---- small builders ---------------------------------------------------------
static TextBlock Caps(string t, IBrush? c = null) => new()
- { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.7, VerticalAlignment = VerticalAlignment.Center };
+ { Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -106,16 +106,15 @@ internal sealed class FlangerDeviceBody : IDeviceBody
return g;
}
- Border Island(Control head, Control body, double width = double.NaN)
+ RuleSection Island(Control head, Control body, double width = double.NaN)
{
var headBar = new Border
{
Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(8, 0, 3, 0), Child = head,
};
- return new Border
+ return new RuleSection
{
- Width = width, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
+ Width = width, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
};
}
static Grid HeadRow(Control left, Control right)
@@ -145,7 +144,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
Learn(waveSeg, Waveform);
ToolTip.SetTip(waveSeg, "The LFO shape that sweeps the delay: Sine glides, Tri sweeps evenly, Saw rises and drops back");
- var big = Mono("", 26, AccentBright); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
+ var big = Mono("", 26, TextPrimary); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
var bigSub = new TextBlock { FontSize = 8, Foreground = TextSecondary };
var period = Mono("", 7, TextTertiary); period.Margin = new Thickness(0, 2, 0, 0);
readouts.Add(() =>
@@ -163,7 +162,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
bigSub.Text = "Hz · free";
period.Text = "period " + PeriodF(PeriodMs());
}
- big.Foreground = On() ? AccentBright : NotaPalette.TextAxis;
+ big.Foreground = On() ? TextPrimary : NotaPalette.TextAxis;
});
var bigBlock = new StackPanel { Spacing = 1, VerticalAlignment = VerticalAlignment.Center, Children = { big, bigSub, period } };
ToolTip.SetTip(bigBlock, "The LFO rate: in Hz, or the note value it takes from the tempo");
@@ -192,7 +191,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
var legend = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 8, Margin = new Thickness(0, 0, 5, 0),
- Children = { LegendItem("L", AccentBright), LegendItem("R", NotaPalette.TealBright), tauWord },
+ Children = { LegendItem("L", NotaPalette.VizInk), LegendItem("R", NotaPalette.TealBright), tauWord },
};
var comb = new FlangerCombView { Value = () => (P(Delay), P(Feedback)) };
comb.GestureBegin += () => { Begin(Delay); Begin(Feedback); };
@@ -200,7 +199,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
comb.Changed += (d, f) => { Raw(Delay, d); Raw(Feedback, f); RefreshAll(); };
comb.ResetRequested += () => { Reset(Delay); Reset(Feedback); RefreshAll(); };
Learn(comb, Delay);
- ToolTip.SetTip(comb, "The comb the delay carves into the spectrum, L brass and R teal, with the first notch dashed. Drag left / right to move the notch (Delay), up / down for Feedback; double-click resets both.");
+ ToolTip.SetTip(comb, "The comb the delay carves into the spectrum, L neutral and R teal, with the first notch dashed. Drag left / right to move the notch (Delay), up / down for Feedback; double-click resets both.");
var sweep = new FlangerSweepView { Margin = new Thickness(0, 4, 0, 0) };
ToolTip.SetTip(sweep, "The delay τ of both channels over two LFO cycles, and where each is now");
@@ -217,7 +216,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
{
string m = Mode();
modeWord.Text = m;
- modeWord.Foreground = m == "resonant" ? AccentBright : m == "negative" ? NotaPalette.TealBright : TextSecondary;
+ modeWord.Foreground = m == "resonant" ? TextPrimary : m == "negative" ? NotaPalette.TealBright : TextSecondary;
});
ToolTip.SetTip(modeWord, "What the feedback makes: positive sharpens the peaks, negative hollows the tone, past 85\u2009% the comb rings");
@@ -320,7 +319,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
+ FlangerMath.Ms(TauMin()) + "–" + FlangerMath.Ms(TauMax()) + " ms";
}
statusLeft.Text = foot;
- statusLeft.Foreground = warn ? AccentBright : TextSecondary;
+ statusLeft.Foreground = warn ? NotaPalette.Warning : TextSecondary;
double sr = Sc(S_SampleRate);
statusRight.Text = (sr > 0 ? NotaNum.F($"{sr / 1000:0.#} kHz · ") : "") + NotaNum.F($"{Bpm():0.##} BPM · ") + (Synced() ? "retrig bar" : "free run");
});
@@ -332,7 +331,7 @@ internal sealed class FlangerDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { left, right, centre } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/ForgeDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/ForgeDeviceBody.cs
index 3e5fe89b..22ecf111 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/ForgeDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/ForgeDeviceBody.cs
@@ -47,7 +47,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "SATURATION";
+ public string? Subtitle => "Saturation";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -102,23 +102,19 @@ internal sealed class ForgeDeviceBody : IDeviceBody
: NotaNum.F($"{0.05 * Math.Pow(400, v):0.00} Hz");
// ---- small builders -----------------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
static T Col<T>(T c, int col) where T : Control { Grid.SetColumn(c, col); return c; }
static T GRow<T>(T c, int row) where T : Control { Grid.SetRow(c, row); return c; }
- static Border Island(Control child, double width = double.NaN) => new()
- {
- Width = width, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = child,
- };
+ static RuleSection Island(Control child, double width = double.NaN) => new() { Width = width, Child = child };
static Border Bar(Control child, Thickness pad) => new()
{ Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = pad, Child = child };
// Slider row, as the mockup draws it inside the card: caps 7 label · 3px track · mono 8 value
- // (brass-light once moved off its default). The param is chosen at paint time — the selected
+ // (primary ink once moved off its default). The param is chosen at paint time — the selected
// stage's, or a fixed one. Double-click resets.
Control Slider(string label, Func<int> param, Func<double, string> fmt, string tip, double labelW, double valueW,
bool teal = false, bool bipolar = false)
@@ -144,7 +140,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
int p = param();
if (!track.Dragging) track.Norm = P(p);
val.Text = fmt(P(p));
- val.Foreground = Math.Abs(P(p) - Def(p)) > 0.003 ? AccentBright : TextPrimary;
+ val.Foreground = Math.Abs(P(p) - Def(p)) > 0.003 ? TextPrimary : TextSecondary;
});
LearnFollow(g, param);
ToolTip.SetTip(g, tip);
@@ -164,7 +160,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
var dot = new Border { Width = 7, Height = 7, CornerRadius = NotaRadius.Pill, VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.Hand) };
var num = Mono((s + 1).ToString(), 8, TextSecondary); num.FontWeight = FontWeight.Bold;
var name = new TextBlock { FontSize = 9, FontWeight = FontWeight.SemiBold, VerticalAlignment = VerticalAlignment.Center };
- var role = new TextBlock { FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.5, VerticalAlignment = VerticalAlignment.Center };
+ var role = new TextBlock { FontSize = 7, FontWeight = FontWeight.Medium, VerticalAlignment = VerticalAlignment.Center };
var outTxt = Mono("", 8, TextSecondary);
var outBox = new Border
{
@@ -222,12 +218,12 @@ internal sealed class ForgeDeviceBody : IDeviceBody
dot.Background = lit ? Brass : BorderStrong;
num.Foreground = lit ? TextSecondary : TextDisabled;
name.Text = ForgeMath.AlgoNames[TypeI(s)];
- name.Foreground = lit ? (isSel ? AccentBright : TextPrimary) : TextTertiary;
- role.Text = ForgeMath.Role(RouteI(), s);
+ name.Foreground = lit ? TextPrimary : TextTertiary;
+ role.Text = NotaText.Label(ForgeMath.Role(RouteI(), s));
role.Foreground = lit ? NotaPalette.TealBright : TextDisabled;
double trim = (P(OutP(s)) - 0.5) * 24;
outTxt.Text = TrimF(P(OutP(s)));
- outTxt.Foreground = Math.Abs(trim) > 0.05 ? AccentBright : lit ? TextSecondary : TextDisabled;
+ outTxt.Foreground = Math.Abs(trim) > 0.05 ? TextPrimary : lit ? TextSecondary : TextDisabled;
tile.BorderBrush = isSel ? Brass : NotaPalette.GraphBorder;
tile.Background = isSel ? Raised : Sunken;
rows.Opacity = lit ? 1 : 0.45;
@@ -255,7 +251,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
Learn(transfer, Amount);
ToolTip.SetTip(transfer, "Input → output through the device (in M/S and Multi through the selected stage): each stage alone faint, the LFO-modulated curve dashed teal, the node where the input sits now. Drag up / down for Amount; double-click resets.");
var harm = new FgHarmonicsView { Height = 50 };
- ToolTip.SetTip(harm, "Harmonics 2 … 9 of a −6 dB sine through the curve: odd partials in brass (hard, buzzy), even ones in ink (warm, round), and the total harmonic distortion");
+ ToolTip.SetTip(harm, "Harmonics 2 … 9 of a −6 dB sine through the curve: odd partials in full ink (hard, buzzy), even ones dimmer (warm, round), and the total harmonic distortion");
var graphs = new DockPanel
{
Margin = new Thickness(5), LastChildFill = true,
@@ -277,8 +273,8 @@ internal sealed class ForgeDeviceBody : IDeviceBody
bool lit = On(OnP(sel));
badgeTxt.Text = (sel + 1).ToString();
badge.Background = lit ? AccentBright : TextDisabled;
- stName.Text = ForgeMath.AlgoNames[TypeI(sel)].ToUpperInvariant();
- stName.Foreground = lit ? AccentBright : TextTertiary;
+ stName.Text = ForgeMath.AlgoNames[TypeI(sel)];
+ stName.Foreground = lit ? TextPrimary : TextTertiary;
});
var typeSeg = Segments(ForgeMath.ChipNames, () => Array.IndexOf(ForgeMath.ChipAlgo, TypeI(sel)),
@@ -300,7 +296,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
{
if (!knob.Dragging) { double c = P(param()); if (Math.Abs(c - knob.Value) > 1e-4) knob.Value = c; }
val.Text = fmt(P(param()));
- val.Foreground = Math.Abs(P(param()) - Def(param())) > 0.003 ? AccentBright : TextPrimary;
+ val.Foreground = Math.Abs(P(param()) - Def(param())) > 0.003 ? TextPrimary : TextSecondary;
});
return KnobCell(label, knob, val, 46);
}
@@ -375,7 +371,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
{
bool alias = Sc(ForgeMath.S_Alias) > 0.5;
statusLeft.Text = StatusText();
- statusLeft.Foreground = alias ? AccentBright : TextSecondary;
+ statusLeft.Foreground = alias ? NotaPalette.Warning : TextSecondary;
double sr = Sc(ForgeMath.S_SampleRate);
statusRight.Text = sr > 0
? NotaNum.F($"{sr / 1000:0.#} kHz · OS {(OsI() == 0 ? "off" : OsNames[OsI()])} · latency {Sc(ForgeMath.S_Latency):0} smp · CPU {Sc(ForgeMath.S_Cpu) * 100:0.0} %")
@@ -390,7 +386,7 @@ internal sealed class ForgeDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { left, right, centre } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
var onArr = new bool[3];
refreshNow = () =>
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/LensDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/LensDeviceBody.cs
index 19b80b78..858b827e 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/LensDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/LensDeviceBody.cs
@@ -65,7 +65,7 @@ internal sealed class LensDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "ANALYZER";
+ public string? Subtitle => "Analyzer";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -108,8 +108,8 @@ internal sealed class LensDeviceBody : IDeviceBody
static string Pc(double v) => Inv($"{v * 100:0} %");
// ---- small builders (same kit as Prism / Chamber) -----------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? MutedC, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? MutedC, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static Control Docked(Control c, Dock d) { DockPanel.SetDock(c, d); return c; }
@@ -157,7 +157,7 @@ internal sealed class LensDeviceBody : IDeviceBody
// A sunken readout box: a caps eyebrow over one or two mono lines.
(Border Box, TextBlock A, TextBlock B) ReadBox(string title, string hintA = "—", string hintB = "")
{
- var a = Mono(hintA, 9, AmberLit);
+ var a = Mono(hintA, 9, NotaPalette.TextPrimary);
var b = Mono(hintB, 8, Txt2);
var box = new Border
{
@@ -351,8 +351,8 @@ internal sealed class LensDeviceBody : IDeviceBody
Toggle(NoteGridP, "Note grid"),
Toggle(PeakHoldP, "Peak hold"));
- // ---- SCALE rail ---------------------------------------------------------------
- var railTopVal = Mono("", 7, AmberLit);
+ // ---- Scale rail ---------------------------------------------------------------
+ var railTopVal = Mono("", 7, TxtC);
var railRngVal = Mono("", 7, TxtC);
// The slider stretches to the rail's height, its caption keeps its own line, and both
@@ -367,7 +367,7 @@ internal sealed class LensDeviceBody : IDeviceBody
s.ValueChanged += v => Raw(param(), (float)v);
readouts.Add(() =>
{
- lbl.Text = caption();
+ lbl.Text = NotaText.Label(caption());
s.Default = Def(param());
if (!s.Dragging) { float c = P(param()); if (Math.Abs(c - s.Value) > 1e-4) s.Value = c; }
});
@@ -378,18 +378,17 @@ internal sealed class LensDeviceBody : IDeviceBody
}
int centreTab = Sel(ViewP, 3);
- var railA = RailSlider(() => centreTab == 1 ? VoltDivP : ScaleTopP, NotaPalette.Accent, () => centreTab == 1 ? "V/D" : "TOP");
+ var railA = RailSlider(() => centreTab == 1 ? VoltDivP : ScaleTopP, NotaPalette.VizInk, () => centreTab == 1 ? "V/D" : "TOP");
var railB = RailSlider(() => centreTab == 1 ? TimeDivP : ScaleRangeP, NotaPalette.Teal, () => centreTab == 1 ? "T/D" : "RNG");
- var rail = new Border
+ var rail = new RuleSection
{
- Width = 56, Background = PanelBg, BorderBrush = Border2, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5),
+ Width = 56, Padding = new Thickness(0, 5),
Child = new DockPanel
{
LastChildFill = true,
Children =
{
- Docked(new TextBlock { Text = "SCALE", FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.9, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 0, 0, 4) }, Dock.Top),
+ Docked(new TextBlock { Text = "Scale", FontSize = NotaType.KnobLabel, FontWeight = FontWeight.SemiBold, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 0, 0, 4) }, Dock.Top),
Docked(new StackPanel { Spacing = 1, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 0), Children = { railTopVal, railRngVal } }, Dock.Bottom),
new StackPanel
{
@@ -443,7 +442,7 @@ internal sealed class LensDeviceBody : IDeviceBody
btns[i].Background = on ? PanelBg : Brushes.Transparent;
btns[i].BorderBrush = on ? Amber : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AmberLit : MutedC;
+ tb.Foreground = on ? NotaPalette.TextPrimary : MutedC;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
@@ -488,18 +487,10 @@ internal sealed class LensDeviceBody : IDeviceBody
return RightBody(t == 1 ? 3 : centreTab);
}, true, null, null);
- var right = new Border
- {
- Width = 186, Background = RailBg, BorderBrush = Border2, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame,
- };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border
- {
- Background = RailBg, BorderBrush = Border2, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre,
- };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ---- status strip ---------------------------------------------------------------
var statusLeft = new TextBlock { FontSize = 8, Foreground = Txt2, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
@@ -514,7 +505,7 @@ internal sealed class LensDeviceBody : IDeviceBody
DockPanel.SetDock(status, Dock.Bottom);
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { rail, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.BgApp, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
// ---- WAV export of the captured scope window --------------------------------------
async void ExportWav()
@@ -610,7 +601,7 @@ internal sealed class LensDeviceBody : IDeviceBody
int fftN = (int)Sc(M_FftN);
string winName = new[] { "Hann", "B-H", "Flat" }[Sel(WindowP, 3)];
headNote.Text = centreTab == 1
- ? (data.Held ? "HELD" : data.TrigOk ? "TRIG’D" : "FREE")
+ ? (data.Held ? "Held" : data.TrigOk ? "Trig’d" : "Free")
: centreTab == 2 ? Inv($"{LensData.WfBins} bins") : Inv($"FFT {fftN}");
specInfo.Text = Inv($"window {Sc(M_FftMs):0} ms · slope {P(TiltP) * 9:0.0} dB/oct");
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/PhaserDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/PhaserDeviceBody.cs
index c71f1bd7..1b8f9dce 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/PhaserDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/PhaserDeviceBody.cs
@@ -35,7 +35,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "MODULATION"; // the processing type, shown as the header badge
+ public string? Subtitle => "Modulation"; // the processing type, shown as the header badge
public Control Build(DeviceCardContext ctx, int index)
{
@@ -87,7 +87,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
// ---- small builders ---------------------------------------------------------
static TextBlock Caps(string t, IBrush? c = null) => new()
- { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.7, VerticalAlignment = VerticalAlignment.Center };
+ { Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -109,16 +109,15 @@ internal sealed class PhaserDeviceBody : IDeviceBody
return g;
}
- Border Island(Control head, Control body, double width = double.NaN)
+ RuleSection Island(Control head, Control body, double width = double.NaN)
{
var headBar = new Border
{
Height = 20, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(8, 0, 3, 0), Child = head,
};
- return new Border
+ return new RuleSection
{
- Width = width, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- ClipToBounds = true, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
+ Width = width, Child = new DockPanel { LastChildFill = true, Children = { Docked(headBar, Dock.Top), body } },
};
}
static Grid HeadRow(Control left, Control right)
@@ -148,7 +147,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
Learn(waveSeg, Waveform);
ToolTip.SetTip(waveSeg, "The LFO shape that sweeps the stages: Sine glides, Tri sweeps evenly, Saw rises and drops back");
- var big = Mono("", 26, AccentBright); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
+ var big = Mono("", 26, TextPrimary); big.FontWeight = FontWeight.Bold; big.LineHeight = 28;
var bigSub = new TextBlock { FontSize = 8, Foreground = TextSecondary };
var period = Mono("", 7, TextTertiary); period.Margin = new Thickness(0, 2, 0, 0);
readouts.Add(() =>
@@ -166,7 +165,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
bigSub.Text = "Hz · free";
period.Text = "period " + PeriodF(PeriodMs());
}
- big.Foreground = On() ? AccentBright : NotaPalette.TextAxis;
+ big.Foreground = On() ? TextPrimary : NotaPalette.TextAxis;
});
var bigBlock = new StackPanel { Spacing = 1, VerticalAlignment = VerticalAlignment.Center, Children = { big, bigSub, period } };
ToolTip.SetTip(bigBlock, "The LFO rate: in Hz, or the note value it takes from the tempo");
@@ -195,7 +194,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
var legend = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 8, Margin = new Thickness(0, 0, 5, 0),
- Children = { LegendItem("L", AccentBright), LegendItem("R", NotaPalette.TealBright), fcWord },
+ Children = { LegendItem("L", NotaPalette.VizInk), LegendItem("R", NotaPalette.TealBright), fcWord },
};
var response = new PhaserResponseView { Value = () => (P(Center), P(Feedback)) };
response.GestureBegin += () => { Begin(Center); Begin(Feedback); };
@@ -203,7 +202,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
response.Changed += (c, f) => { Raw(Center, c); Raw(Feedback, f); RefreshAll(); };
response.ResetRequested += () => { Reset(Center); Reset(Feedback); RefreshAll(); };
Learn(response, Center);
- ToolTip.SetTip(response, "The notches the stages cut into the spectrum, L brass and R teal, with the corner dashed and each notch ticked on top. Drag left / right to move Center, up / down for Feedback; double-click resets both.");
+ ToolTip.SetTip(response, "The notches the stages cut into the spectrum, L neutral and R teal, with the corner dashed and each notch ticked on top. Drag left / right to move Center, up / down for Feedback; double-click resets both.");
var sweep = new PhaserSweepView { Margin = new Thickness(0, 4, 0, 0) };
ToolTip.SetTip(sweep, "The corner frequency of both channels over two LFO cycles (20 Hz … 20 kHz), and where each is now");
@@ -220,7 +219,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
{
string m = Mode();
modeWord.Text = m;
- modeWord.Foreground = m == "resonant" ? AccentBright : m == "negative" ? NotaPalette.TealBright : TextSecondary;
+ modeWord.Foreground = m == "resonant" ? TextPrimary : m == "negative" ? NotaPalette.TealBright : TextSecondary;
});
ToolTip.SetTip(modeWord, "What the feedback makes: positive sharpens the peaks, negative moves and widens the notches, past 85 % the phaser whistles");
@@ -303,7 +302,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
+ PhaserMath.HzF(FcMin()) + " ↔ " + PhaserMath.HzF(FcMax()) + NotaNum.F($" Hz ({2 * PhaserMath.DepthOct * P(Depth):0.0} oct)");
}
statusLeft.Text = foot;
- statusLeft.Foreground = warn ? AccentBright : TextSecondary;
+ statusLeft.Foreground = warn ? NotaPalette.Warning : TextSecondary;
double sr = Sc(S_SampleRate);
statusRight.Text = (sr > 0 ? NotaNum.F($"{sr / 1000:0.#} kHz · ") : "") + NotaNum.F($"{Bpm():0.##} BPM · ") + (Synced() ? "retrig bar" : "free run");
});
@@ -315,7 +314,7 @@ internal sealed class PhaserDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { left, right, centre } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/PrismDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/PrismDeviceBody.cs
index 30061ab4..29e2abee 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/PrismDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/PrismDeviceBody.cs
@@ -2,9 +2,9 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Detail · Devices — built-in Nota Prism body (device kind 21, three-band dynamics), a build of
-// the "Nota Prism" mockup (700 × 260) on the Chamber frame: an always-visible GLOBAL column
+// the "Nota Prism" mockup (700 × 260) on the Chamber frame: an always-visible Global column
// (Amount + Output), a centre tabbed panel (Bands / Band detail / Time), a right tabbed panel
-// (Meters / Output) and a status strip. Bands are colour-coded Low = mauve, Mid = brass,
+// (Meters / Output) and a status strip. Bands are colour-coded Low = mauve, Mid = neutral ink,
// High = teal. The spectrum's crossover lines, the transfer curve's threshold dots and every
// slider are controls. Every control is a device param, so automation / MIDI learn / presets /
// A-B / persistence come for free. FullBleed — the shared shell draws the header.
@@ -37,7 +37,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
private const int TraceLen = 256;
private static readonly IBrush RailBg = NotaPalette.SurfaceInset;
- private static readonly IBrush Panel = NotaPalette.TextOnAccent; // dark ink over an engaged fill
+ private static readonly IBrush Panel = NotaPalette.SurfaceCard; // a section box on the panel tone
private static readonly IBrush Border2 = NotaPalette.BorderDefault;
private static readonly IBrush BorderIn = PrismInk.InnerBorder;
private static readonly IBrush Inset = NotaPalette.BgSunken;
@@ -58,7 +58,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "MULTIBAND";
+ public string? Subtitle => "Multiband";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -115,7 +115,9 @@ internal sealed class PrismDeviceBody : IDeviceBody
string FloorF(int b) => RatioB(P(BP(b, BelowRatio))) < 1 ? Inv($"+{P(BP(b, Floor)) * 48:0.0}\u2009dB") : Inv($"−{P(BP(b, Floor)) * 48:0.0}\u2009dB");
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new() { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? MutedC, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new() { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? MutedC, VerticalAlignment = VerticalAlignment.Center };
+ // An acronym NotaText.Label does not know (OS, GR) keeps its case: the label as written.
+ static TextBlock Acr(string t, IBrush? c = null) { var tb = Caps(t, c); tb.Text = t; return tb; }
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static Control Docked(Control c, Dock d) { DockPanel.SetDock(c, d); return c; }
@@ -169,7 +171,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
Control SliderRow(string label, int p, Func<double, string> fmt, double labW = 50, double valW = 30)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(Inv($"{labW},*")), VerticalAlignment = VerticalAlignment.Center };
- g.Children.Add(Caps(label)); g.Children.Add(Col(Bar(p, fmt, () => Amber, null, valW), 1));
+ g.Children.Add(Caps(label)); g.Children.Add(Col(Bar(p, fmt, () => NotaPalette.VizInk, null, valW), 1));
return g;
}
@@ -231,14 +233,14 @@ internal sealed class PrismDeviceBody : IDeviceBody
var lb = Caps(label); lb.HorizontalAlignment = HorizontalAlignment.Center;
return new DockPanel { Children = { Docked(lb, Dock.Bottom), f } };
}
- var amtTxt = Mono("", 7, AmberLit); amtTxt.HorizontalAlignment = HorizontalAlignment.Center;
+ var amtTxt = Mono("", 7, TxtC); amtTxt.HorizontalAlignment = HorizontalAlignment.Center;
var outTxt = Mono("", 7, TxtC); outTxt.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() => { amtTxt.Text = Pct(P(Amount)); outTxt.Text = DbShort((P(Output) - 0.5) * 48); });
var globTitle = Caps("GLOBAL"); globTitle.HorizontalAlignment = HorizontalAlignment.Center;
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 3) };
faders.Children.Add(Fader(Amount, "AMOUNT", "Amount — scales every band's compression and expansion (0\u2009% = none). Double-click: 100\u2009%"));
faders.Children.Add(Col(Fader(Output, "OUT", "Output gain ±24\u2009dB — double-click: 0\u2009dB"), 1));
- var globCol = new Border { Width = 56, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ var globCol = new RuleSection { Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(globTitle, Dock.Top), Docked(outTxt, Dock.Bottom), Docked(amtTxt, Dock.Bottom), faders } } };
DockPanel.SetDock(globCol, Dock.Left);
@@ -260,7 +262,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
var hA = Caps("ABOVE — COMPRESS", DimC); hA.HorizontalAlignment = HorizontalAlignment.Center;
var hB = Caps("BELOW — EXPAND", DimC); hB.HorizontalAlignment = HorizontalAlignment.Center;
var hG = Caps("GAIN", DimC); hG.HorizontalAlignment = HorizontalAlignment.Right;
- var hR = Caps("GR", DimC); hR.HorizontalAlignment = HorizontalAlignment.Right;
+ var hR = Acr("GR", DimC); hR.HorizontalAlignment = HorizontalAlignment.Right;
head.Children.Add(Caps("BAND", DimC)); head.Children.Add(Col(hA, 1)); head.Children.Add(Col(hB, 2)); head.Children.Add(Col(hG, 3)); head.Children.Add(Col(hR, 4));
var rows = new StackPanel { Children = { head } };
for (int b = 0; b < 3; b++)
@@ -332,7 +334,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
tr.Set(b, ThrA(P(BP(b, AboveThresh))), P(BP(b, AboveRatio)) * amt, On(BP(b, BelowOn)), ThrB(P(BP(b, BelowThresh))),
(RatioB(P(BP(b, BelowRatio))) - 1) * amt, P(BP(b, Floor)) * 48, P(BP(b, Knee)) * 24, Sc(S_Level0 + b));
});
- var trCap = Caps("TRANSFER · " + PrismInk.Names[b].ToUpperInvariant());
+ var trCap = Caps("Transfer · " + PrismInk.Names[b].ToLowerInvariant());
var kneeRow = new Grid { ColumnDefinitions = new ColumnDefinitions("32,*"), Margin = new Thickness(0, 4, 0, 0) };
kneeRow.Children.Add(Caps("KNEE"));
kneeRow.Children.Add(Col(Bar(BP(b, Knee), v => Inv($"{v * 24:0.0}\u2009dB"), () => PrismInk.Band[b], null, 32), 1));
@@ -355,7 +357,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
// BELOW — expansion / upward compression
var bCap = Caps("BELOW — EXPANSION");
- readouts.Add(() => { bool up = RatioB(P(BP(b, BelowRatio))) < 0.99; bCap.Text = up ? "BELOW — UPWARD COMPRESSION" : "BELOW — EXPANSION"; bCap.Foreground = On(BP(b, BelowOn)) ? Txt2 : MutedC; });
+ readouts.Add(() => { bool up = RatioB(P(BP(b, BelowRatio))) < 0.99; bCap.Text = up ? "Below — upward compression" : "Below — expansion"; bCap.Foreground = On(BP(b, BelowOn)) ? Txt2 : MutedC; });
var bToggle = Toggle(BP(b, BelowOn), "", () => On(BP(b, BelowOn)) ? "on" : "off");
var bHead = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto"), Height = 11 };
bHead.Children.Add(bCap); bHead.Children.Add(Col(bToggle, 1));
@@ -438,7 +440,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
int bb = b;
var m = new PrismGrMeter { Band = bb, HorizontalAlignment = HorizontalAlignment.Center };
var val = Mono("", 7, PrismInk.Band[bb]); val.HorizontalAlignment = HorizontalAlignment.Center;
- var nm = Caps(PrismInk.Names[bb].ToUpperInvariant()); nm.HorizontalAlignment = HorizontalAlignment.Center;
+ var nm = Caps(PrismInk.Names[bb]); nm.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
bool act = BandActive(bb);
@@ -626,9 +628,9 @@ internal sealed class PrismDeviceBody : IDeviceBody
{
view = (band, view.Centre, t); ViewState[(track, di)] = view; foreach (var a in readouts) a();
}, null);
- var right = new Border { Width = 186, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -677,7 +679,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { globCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = RailBg, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -699,7 +701,7 @@ internal sealed class PrismDeviceBody : IDeviceBody
{
bool on = i == sel;
btns[i].Background = on ? TabBg : Brushes.Transparent; btns[i].BorderBrush = on ? Amber : Brushes.Transparent;
- var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? AmberLit : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
+ var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? NotaPalette.TextPrimary : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
var bar = centered ? (Avalonia.Controls.Panel)new UniformGrid { Rows = 1 } : new StackPanel { Orientation = Orientation.Horizontal };
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/ReverbDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/ReverbDeviceBody.cs
index fbe696d9..41c0c5f3 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/ReverbDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/ReverbDeviceBody.cs
@@ -43,7 +43,7 @@ internal sealed class ReverbDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "REVERB";
+ public string? Subtitle => "Reverb";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -82,8 +82,8 @@ internal sealed class ReverbDeviceBody : IDeviceBody
string Algo() => Algos[Sel(Algorithm, 4)];
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -192,7 +192,7 @@ internal sealed class ReverbDeviceBody : IDeviceBody
});
// ======================================================================
- // LEFT — TAIL column (Decay · HF Damp)
+ // LEFT — Tail column (Decay · HF Damp)
// ======================================================================
Control TailFader(int p, string label, IBrush ink, IBrush handle, string tip)
{
@@ -213,11 +213,11 @@ internal sealed class ReverbDeviceBody : IDeviceBody
}
var tailTitle = Caps("TAIL"); tailTitle.HorizontalAlignment = HorizontalAlignment.Center;
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 1, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 3) };
- faders.Children.Add(TailFader(Decay, "DECAY", NotaPalette.Accent, NotaPalette.AccentBright,
+ faders.Children.Add(TailFader(Decay, "DECAY", NotaPalette.VizInk, NotaPalette.VizInk,
"Decay — RT60, the time the tail takes to fall 60 dB (0.2 … 12 s); Freeze holds it forever. Double-click resets."));
faders.Children.Add(Col(TailFader(HFDamp, "DAMP", NotaPalette.Teal, NotaPalette.TealBright,
"HF Damp — how much faster the highs die than the lows. Double-click resets."), 1));
- var decVal = Mono("", 7, AccentBright); decVal.HorizontalAlignment = HorizontalAlignment.Center;
+ var decVal = Mono("", 7, TextPrimary); decVal.HorizontalAlignment = HorizontalAlignment.Center;
var dmpVal = Mono("", 7, TextPrimary); dmpVal.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
@@ -225,12 +225,12 @@ internal sealed class ReverbDeviceBody : IDeviceBody
dmpVal.Text = Pct(P(HFDamp));
tailTitle.Foreground = On(Freeze) ? AccentBright : TextTertiary;
});
- var tailCol = new Border
+ // Freeze shows on the column's title (accent), not on a frame: sections have none.
+ var tailCol = new RuleSection
{
- Width = 64, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 64, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(tailTitle, Dock.Top), Docked(dmpVal, Dock.Bottom), Docked(decVal, Dock.Bottom), faders } },
};
- readouts.Add(() => tailCol.BorderBrush = On(Freeze) ? NotaPalette.BorderBrass : BorderDef);
DockPanel.SetDock(tailCol, Dock.Left);
// ======================================================================
@@ -331,7 +331,7 @@ internal sealed class ReverbDeviceBody : IDeviceBody
SliderRow("OUT", Output, v => ShortDb(OutDb(v))),
new Border { Height = 1, Background = NotaPalette.GraphBorder, Margin = new Thickness(0, 2) },
SliderRow("DECAY", Decay, DecayF, null, () => On(Freeze)),
- SliderRow("HF DAMP", HFDamp, Pct),
+ SliderRow("HF damp", HFDamp, Pct),
new Border { Height = 1, Background = NotaPalette.GraphBorder, Margin = new Thickness(0, 2) },
btns, wet,
};
@@ -357,7 +357,7 @@ internal sealed class ReverbDeviceBody : IDeviceBody
var mid = new StackPanel { Spacing = 6, Children = {
SliderRow("MIX", DryWet, Pct, () => On(WetOnly)),
SliderRow("WIDTH", WidthP, Pct),
- SliderRow("MONO f", BassMono, v => v <= 0.001 ? "off" : NotaNum.F($"{Exp(v, 30, 500):0}")) } };
+ SliderRow("Mono f", BassMono, v => v <= 0.001 ? "off" : NotaNum.F($"{Exp(v, 30, 500):0}")) } };
ToolTip.SetTip(mid.Children[2], "Bass mono — below this frequency the tail is mono, so a wide reverb does not smear the low end (off at the far left)");
var wetOnly = Toggle(WetOnly, "Wet only (send)");
@@ -399,9 +399,9 @@ internal sealed class ReverbDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Space", "Tone · Mod" }, centreHost, CentreBody, false, t => { centreTab = t; foreach (var a in readouts) a(); }, extras);
var rightFrame = TabFrame(new[] { "Levels", "Output" }, rightHost, RightBody, true, _ => { foreach (var a in readouts) a(); }, null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -438,7 +438,7 @@ internal sealed class ReverbDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { tailCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -462,7 +462,7 @@ internal sealed class ReverbDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/ShutterDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/ShutterDeviceBody.cs
index 14464ae7..1f6c41bc 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/ShutterDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/ShutterDeviceBody.cs
@@ -69,7 +69,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "GATE";
+ public string? Subtitle => "Gate";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -134,8 +134,10 @@ internal sealed class ShutterDeviceBody : IDeviceBody
string KeyName() => ExtOn() ? SrcName(Src()) : "Internal";
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ // An acronym NotaText.Label does not know (OS, GR) keeps its case: the label as written.
+ static TextBlock Acr(string t, IBrush? c = null) { var tb = Caps(t, c); tb.Text = t; return tb; }
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -186,7 +188,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
}
Control ModeSeg() => Seg(Flip, new[] { "Gate", "Duck" }, "Mode — Gate lets the signal through above the threshold; Duck turns it down while the key is above it");
- // Outlined chips: lit = brass edge + wash.
+ // Outlined chips: the chosen one = accent edge + wash.
Control Chips(string[] names, Func<int, bool> lit, Action<int> pick, int learnParam, string tip)
{
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 3, VerticalAlignment = VerticalAlignment.Center };
@@ -271,10 +273,10 @@ internal sealed class ShutterDeviceBody : IDeviceBody
{
bool ext = ExtOn();
name.Text = KeyName();
- name.Foreground = ext ? AccentBright : TextPrimary;
+ name.Foreground = TextPrimary; // an external key: a stronger frame and weight, not the accent
name.FontWeight = ext ? FontWeight.SemiBold : FontWeight.Normal;
- box.BorderBrush = ext ? Brass : BorderDef;
- chev.Foreground = ext ? NotaPalette.AccentDim : TextTertiary;
+ box.BorderBrush = ext ? NotaPalette.BorderStrong : BorderDef;
+ chev.Foreground = ext ? TextSecondary : TextTertiary;
});
ToolTip.SetTip(box, "Key source — Internal keys off this track; pick another track to gate or duck against it");
Learn(box, ExternalKey);
@@ -361,20 +363,20 @@ internal sealed class ShutterDeviceBody : IDeviceBody
// LEFT — STATE column (input or key level · reduction)
// ======================================================================
var stateTitle = Caps("STATE"); stateTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var inPill = new ShPill { Ink = Brass, VerticalAlignment = VerticalAlignment.Stretch };
+ var inPill = new ShPill { Ink = NotaPalette.VizInk, VerticalAlignment = VerticalAlignment.Stretch };
var grPill = new ShPill { Ink = Teal, FromTop = true, VerticalAlignment = VerticalAlignment.Stretch };
var inLbl = Caps("IN"); inLbl.HorizontalAlignment = HorizontalAlignment.Center;
- var grLbl = Caps("GR"); grLbl.HorizontalAlignment = HorizontalAlignment.Center;
+ var grLbl = Acr("GR"); grLbl.HorizontalAlignment = HorizontalAlignment.Center;
ToolTip.SetTip(inPill, "The level the detector compares — this track's input, or the key when an external sidechain drives it; the dashed tick is the threshold");
ToolTip.SetTip(grPill, "Gain reduction — how far the gate has turned the signal down now");
- var stateIn = Mono("", 7, AccentBright); stateIn.HorizontalAlignment = HorizontalAlignment.Center;
+ var stateIn = Mono("", 7, TextPrimary); stateIn.HorizontalAlignment = HorizontalAlignment.Center;
var stateGr = Mono("", 7, TextPrimary); stateGr.HorizontalAlignment = HorizontalAlignment.Center;
static double Norm60(double db) => Math.Clamp((db + 60) / 60, 0, 1);
readouts.Add(() =>
{
bool ext = Sc(S_ExtKey) > 0.5;
double lvl = ext ? Sc(S_KeyDb) : Sc(S_InDb);
- inLbl.Text = ext ? "SC" : "IN";
+ inLbl.Text = NotaText.Label(ext ? "SC" : "IN");
inPill.Set(Norm60(lvl), Norm60(ThrDb()));
grPill.Set(Math.Clamp(Sc(S_GrDb) / 60, 0, 1), double.NaN);
stateIn.Text = lvl <= -119 ? "−∞" : NotaNum.F($"{lvl:0.0}");
@@ -385,9 +387,9 @@ internal sealed class ShutterDeviceBody : IDeviceBody
var pills = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
pills.Children.Add(PillCol(inPill, inLbl));
pills.Children.Add(Col(PillCol(grPill, grLbl), 1));
- var stateCol = new Border
+ var stateCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(stateTitle, Dock.Top), Docked(stateGr, Dock.Bottom), Docked(stateIn, Dock.Bottom), pills } },
};
DockPanel.SetDock(stateCol, Dock.Left);
@@ -400,12 +402,12 @@ internal sealed class ShutterDeviceBody : IDeviceBody
{
signal = new ShSignalView();
WireDrag(signal, h => h == ShSignalView.HThreshold ? Threshold : Return);
- ToolTip.SetTip(signal, "The input (teal) and what passes (brass) over the window, with the threshold (dashed brass) and where the gate closes again (dashed). Drag a line up or down; double-click resets it.");
+ ToolTip.SetTip(signal, "The input (teal) and what passes (neutral ink) over the window, with the threshold (dashed) and where the gate closes again (dashed). Drag a line up or down; double-click resets it.");
Learn(signal, Threshold);
var liveBtn = Latch(-1, () => live, () => { live = !live; if (!live) Array.Copy(scope, frozen, kScope); }, () => live ? "Live" : "Frozen",
"Live — the graph follows the audio; click to freeze the picture");
- var ret = Mono("", 7, AccentBright);
+ var ret = Mono("", 7, TextSecondary);
readouts.Add(() => ret.Text = NotaNum.F($"return {RetDb():0.0}\u2009dB"));
var head = HeadRow(Row(6, Caps("MODE"), ModeSeg(), new Border { Width = 2 }, Caps("LOOK"),
Seg(Lookahead, new[] { "0", "1", "5\u2009ms" }, "Lookahead — the gate opens this much before the transient arrives (the track is delayed by it)"), liveBtn), ret);
@@ -435,7 +437,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
var shapes = Chips(Shapes, i => Sel(Shape, 3) == i, i => SetP(Shape, i / 2f), Shape,
"Shape — Linear: straight ramps over the times; Log: the classic one-pole curve; Snap: stays open, then shuts hard");
var retrig = ToggleLatch(Retrigger, "Retrig", "Retrigger — trigger mode: each hit fires one attack → hold → release, however long the signal stays above the threshold");
- var times = Mono("", 7, AccentBright);
+ var times = Mono("", 7, TextSecondary);
readouts.Add(() => times.Text = Times());
var head = HeadRow(Row(6, Caps("SHAPE"), shapes, new Border { Width = 2 }, ModeSeg(), retrig), times);
var knobs = KnobRow(new[]
@@ -458,12 +460,12 @@ internal sealed class ShutterDeviceBody : IDeviceBody
{
keyView = new ShKeyView();
WireDrag(keyView, h => h == ShKeyView.HHp ? DetHP : DetLP);
- ToolTip.SetTip(keyView, "The detector's band-pass (teal) — only this part of the key opens the gate — over the reduction in the window (brass). Drag the nodes sideways; double-click resets.");
+ ToolTip.SetTip(keyView, "The detector's band-pass (teal) — only this part of the key opens the gate — over the reduction in the window (neutral ink). Drag the nodes sideways; double-click resets.");
Learn(keyView, DetHP);
var eq = Latch(DetFilter, () => On(DetFilter), () => SetP(DetFilter, On(DetFilter) ? 0f : 1f), () => On(DetFilter) ? "SC EQ on" : "SC EQ off",
"SC EQ — the detector hears the key through its band-pass; off = the full band");
- var look = Mono("", 7, AccentBright);
+ var look = Mono("", 7, TextSecondary);
readouts.Add(() => look.Text = NotaNum.F($"look {LookMs()}\u2009ms"));
var head = HeadRow(Row(6, Caps("KEY"), KeyDrop(false), ModeSeg(), ListenLatch(), eq), look);
var knobs = KnobRow(new[]
@@ -518,7 +520,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
// A slider drawn as a filled bar with its value inside (Complexity / Smooth / Swing).
Control FillBar(int p, Func<string> text, string tip)
{
- var fill = new Border { HorizontalAlignment = HorizontalAlignment.Left, Background = NotaPalette.Wash(NotaPalette.Accent, 0x40) };
+ var fill = new Border { HorizontalAlignment = HorizontalAlignment.Left, Background = NotaPalette.Wash(NotaPalette.VizInk, 0x30) };
var tb = new TextBlock { FontSize = 9, Foreground = TextPrimary, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
var grid = new Grid { Children = { fill, tb } };
var host = new Border
@@ -532,8 +534,8 @@ internal sealed class ShutterDeviceBody : IDeviceBody
double v = P(p);
fill.Width = Math.Max(0, grid.Bounds.Width * v);
tb.Text = text();
- host.BorderBrush = v > 0.004 ? NotaPalette.BorderBrass : BorderDef;
- tb.Foreground = v > 0.004 ? AccentBright : TextSecondary;
+ host.BorderBrush = drag ? Brass : v > 0.004 ? NotaPalette.BorderStrong : BorderDef;
+ tb.Foreground = v > 0.004 ? TextPrimary : TextSecondary;
}
void SetX(double x) { Raw(p, x / Math.Max(1, grid.Bounds.Width)); Paint(); RefreshAll(); }
host.PointerPressed += (_, e) =>
@@ -631,7 +633,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
var smooth = FillBar(PatSmooth, () => "Smooth " + Pct(P(PatSmooth)), "Smooth — ramps into each step instead of jumping (up to half a step)");
var swing = FillBar(PatSwing, () => NotaNum.F($"Swing {P(PatSwing) * 75:0} %"), "Swing — every second step comes late");
- var nSt = Mono("", 9, AccentBright); var nLv = Mono("", 9, AccentBright);
+ var nSt = Mono("", 9, TextPrimary); var nLv = Mono("", 9, TextPrimary);
readouts.Add(() => { nSt.Text = NSteps().ToString(); nLv.Text = NLevels().ToString(); });
Border Cycle(TextBlock t, Action a, string tip)
{
@@ -701,7 +703,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
static Control LabelRow(string label, Control c, double labW = 40)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(NotaNum.F($"{labW},*")) };
- g.Children.Add(new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center });
+ g.Children.Add(new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
g.Children.Add(Col(c, 1));
return g;
}
@@ -776,7 +778,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
Caps("MEASUREMENTS"),
Line(() => Sc(S_ExtKey) > 0.5 ? "sc in" : "in", () => DbF(Sc(S_ExtKey) > 0.5 ? Sc(S_KeyDb) : Sc(S_InDb))),
Line(() => "out", () => DbF(Sc(S_OutDb))),
- Line(() => "GR · peak", () => NotaNum.F($"{(Sc(S_GrDb) < 0.05 ? "0.0" : Sc(S_GrDb) > 99 ? "−∞" : NotaNum.F($"−{Sc(S_GrDb):0.0}"))} · {(Sc(S_PeakGrDb) < 0.05 ? "0.0" : Sc(S_PeakGrDb) > 99 ? "−∞" : NotaNum.F($"−{Sc(S_PeakGrDb):0.0}"))}\u2009dB"), AccentBright) } },
+ Line(() => "GR · peak", () => NotaNum.F($"{(Sc(S_GrDb) < 0.05 ? "0.0" : Sc(S_GrDb) > 99 ? "−∞" : NotaNum.F($"−{Sc(S_GrDb):0.0}"))} · {(Sc(S_PeakGrDb) < 0.05 ? "0.0" : Sc(S_PeakGrDb) > 99 ? "−∞" : NotaNum.F($"−{Sc(S_PeakGrDb):0.0}"))}\u2009dB"), TextPrimary) } },
};
var sliders = new StackPanel { Spacing = 6, Children = {
SliderRow("SC HP", DetHP, HpF, modulation: true),
@@ -833,7 +835,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
// The right panel follows the centre: Rhythm / Detector beside the pattern, else Detector / Meters.
var rightFrame = TabFrame(new[] { "Detector", "Meters" }, rightHost, RightBody, true, _ => RefreshAll(), null);
Control? rhythmFrame = null;
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
var centre = TabFrame(new[] { "Signal", "Envelope", "Sidechain", "Pattern" }, centreHost, CentreBody, false, t =>
{
centreTab = t;
@@ -841,7 +843,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
Refresh();
}, extrasHost);
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -906,7 +908,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { stateCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -950,7 +952,7 @@ internal sealed class ShutterDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/StrataDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/StrataDeviceBody.cs
index f6edf80f..278cdedb 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/StrataDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/StrataDeviceBody.cs
@@ -39,7 +39,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
public double Width => 700;
- public string? Subtitle => "LOOPER"; // the processing type, shown as the header badge
+ public string? Subtitle => "Looper"; // the processing type, shown as the header badge
public bool FullBleed => true;
public Control Build(DeviceCardContext ctx, int index)
@@ -55,10 +55,10 @@ internal sealed class StrataDeviceBody : IDeviceBody
var scope = new float[6 + MaxLayers * 3];
var waveBuf = new float[64];
- Control Lbl(string t, double fs, IBrush c) => new TextBlock { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
+ Control Lbl(string t, double fs, IBrush c) => new TextBlock { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.SemiBold, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
- // ---------- LIVE strip ----------
- var barNum = new TextBlock { Text = "–", FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = AccentBright, VerticalAlignment = VerticalAlignment.Center, MinWidth = 30 };
+ // ---------- Live strip ----------
+ var barNum = new TextBlock { Text = "–", FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center, MinWidth = 30 };
barNum.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var ticks = new Border[16];
var tickRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 2, VerticalAlignment = VerticalAlignment.Center };
@@ -66,7 +66,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
var ofBars = new TextBlock { Text = "of – bars", FontSize = 8, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
// Transport actions. Each button is captioned with what it does next; the
- // active mode's button lights in its colour.
+ // active mode's button lights in its colour (Overdub's is the accent, so it rests neutral).
var actNames = new[] { "Record", "Overdub", "Play", "Stop" };
var actCmds = new[] { C_Record, C_Overdub, C_Play, C_Stop };
var actInks = new[] { NotaPalette.Record, NotaPalette.Accent, NotaPalette.Success, NotaPalette.TextSecondary };
@@ -75,7 +75,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
for (int i = 0; i < 4; i++)
{
int iv = i;
- actName[i] = new TextBlock { Text = actNames[i], FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = actInks[i] };
+ actName[i] = new TextBlock { Text = actNames[i], FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = i == 1 ? TextPrimary : actInks[i] };
actSub[i] = new TextBlock { Text = "", FontSize = 7, Foreground = TextTertiary };
actBtn[i] = new Border { Height = 24, MinWidth = 62, CornerRadius = NotaRadius.Control, BorderThickness = new Thickness(1), BorderBrush = BorderStrong, Background = Card2, Padding = new Thickness(9, 0), Cursor = new Cursor(StandardCursorType.Hand),
Child = new StackPanel { VerticalAlignment = VerticalAlignment.Center, Children = { actName[i], actSub[i] } } };
@@ -101,7 +101,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
idxTxts[i].BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var nameTxt = new TextBlock { Text = $"Layer {i + 1}", FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, Width = 58, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
waves[i] = new StrataWave { Height = 20, VerticalAlignment = VerticalAlignment.Center };
- stateTxts[i] = new TextBlock { Text = "PLAY", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = Success, Width = 36, TextAlignment = TextAlignment.Right, VerticalAlignment = VerticalAlignment.Center };
+ stateTxts[i] = new TextBlock { Text = "Play", FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = Success, Width = 36, TextAlignment = TextAlignment.Right, VerticalAlignment = VerticalAlignment.Center };
dbTxts[i] = new TextBlock { Text = "0.0", FontSize = 9, Foreground = TextSecondary, Width = 30, TextAlignment = TextAlignment.Right, VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.SizeNorthSouth) };
dbTxts[i].BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
// Vertical drag on the dB readout sets that layer's level.
@@ -110,7 +110,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
dbTxts[i].PointerMoved += (_, e) => { if (drag) { double db = Math.Clamp(startDb + (startY - e.GetPosition(dbTxts[iv]).Y) * 0.15, -24, 12); Act(A_LayerGain, iv, (float)db); dbTxts[iv].Text = $"{db:+0.0;−0.0;0.0}"; } };
dbTxts[i].PointerReleased += (_, e) => { drag = false; e.Pointer.Capture(null); };
muteBtns[i] = new Border { Width = 16, Height = 14, CornerRadius = NotaRadius.Badge, BorderThickness = new Thickness(1), BorderBrush = BorderDef, Background = Sunken, Cursor = new Cursor(StandardCursorType.Hand),
- Child = new TextBlock { Text = "M", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = TextTertiary, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center } };
+ Child = new TextBlock { Text = "M", FontSize = 8, FontWeight = FontWeight.Medium, Foreground = TextTertiary, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center } };
muteBtns[i].PointerPressed += (_, _) => { bool nowMuted = scope[8 + iv * 3] <= 0.5f; Act(A_LayerMute, iv, nowMuted ? 1f : 0f); };
var row = new DockPanel { LastChildFill = true, Children = { } };
var left = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 7, VerticalAlignment = VerticalAlignment.Center, Children = { idxTxts[i], nameTxt } };
@@ -127,7 +127,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
var stackHost = new Grid { Children = { layerStack, layerHint } };
layerCol.Children.Add(stackHost);
- // ---------- LOOP rail ----------
+ // ---------- Loop rail ----------
Control HSlider(int p, string name, Func<double, string> fmt, bool log, IBrush accent)
{
double mn = Mn(p), mx = Mx(p);
@@ -146,7 +146,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
() => engine.EndAutomationWrite(track, AutomationTarget.DeviceParam, di, p, ""), Vis);
readouts.Add(() => { if (!slider.Dragging) Vis(); });
Vis();
- var lbl = new TextBlock { Text = name.ToUpperInvariant(), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking, Foreground = TextTertiary, Width = 52, VerticalAlignment = VerticalAlignment.Center };
+ var lbl = new TextBlock { Text = NotaText.Label(name), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, Width = 52, VerticalAlignment = VerticalAlignment.Center };
var head = new DockPanel { LastChildFill = false, Children = { lbl } };
DockPanel.SetDock(val, Dock.Right); head.Children.Add(val);
return new StackPanel { Spacing = 2, Children = { head, slider } };
@@ -181,18 +181,18 @@ internal sealed class StrataDeviceBody : IDeviceBody
Grid.SetColumn(undo, 0); Grid.SetColumn(export, 1); Grid.SetColumn(clear, 2);
bottomActions.Children.Add(undo); bottomActions.Children.Add(export); bottomActions.Children.Add(clear);
- var qRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, Children = { new TextBlock { Text = "QUANTIZE", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center }, Seg(Quantize, new[] { "Off", "Bar", "1/4" }) } };
+ var qRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, Children = { new TextBlock { Text = "Quantize", FontSize = 8, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center }, Seg(Quantize, new[] { "Off", "Bar", "1/4" }) } };
var rail = new Border { Width = 174, Background = NotaPalette.SurfaceInset, BorderBrush = BorderDef, BorderThickness = new Thickness(1, 0, 0, 0), Padding = new Thickness(8, 6),
Child = new StackPanel { Spacing = 5, Children = {
Lbl("LOOP", 8, TextTertiary),
HSlider(Feedback, "FEEDBACK", PctF, false, Teal),
- HSlider(InputGain, "INPUT GAIN", DbF, false, Brass),
- HSlider(Speed, "SPEED", SpeedF, true, Brass),
+ HSlider(InputGain, "INPUT GAIN", DbF, false, NotaPalette.VizInk),
+ HSlider(Speed, "SPEED", SpeedF, true, NotaPalette.VizInk),
qRow,
new Border { Height = 1, Background = NotaPalette.SurfaceRaised },
- Toggle(CountIn, "COUNT-IN 1 BAR", Teal),
- Toggle(SetTempo, "SET TEMPO FROM LOOP", Teal),
- Toggle(Reverse, "REVERSE", Brass),
+ Toggle(CountIn, "Count-in 1 bar", Teal),
+ Toggle(SetTempo, "Set tempo from loop", Teal),
+ Toggle(Reverse, "Reverse", NotaPalette.VizInk),
new StackPanel { VerticalAlignment = VerticalAlignment.Bottom, Children = { bottomActions } } } } };
DockPanel.SetDock(rail, Dock.Right);
@@ -215,7 +215,8 @@ internal sealed class StrataDeviceBody : IDeviceBody
else barNum.Text = "–";
ofBars.Text = $"of {(loopBars > 0 ? loopBars : 0)} bars";
int lit = (int)Math.Round(Math.Clamp(phase, 0, 1) * 16);
- for (int i = 0; i < 16; i++) ticks[i].Background = (layers > 0 && i < lit) ? Brass : Sunken;
+ bool rolling = mode is M_Rec or M_Over or M_Play; // the progress is the playhead only while it runs
+ for (int i = 0; i < 16; i++) ticks[i].Background = (layers > 0 && i < lit) ? (rolling ? Brass : NotaPalette.VizInk) : Sunken;
countLbl.Text = layers > 0 ? $"{layers} of {MaxLayers} · one cycle shown" : "";
// Action captions + active highlight.
@@ -229,6 +230,7 @@ internal sealed class StrataDeviceBody : IDeviceBody
bool on = i == active;
actBtn[i].Background = on ? NotaPalette.Wash(actInks[i], 0x28) : Card2;
actBtn[i].BorderBrush = on ? actInks[i] : BorderStrong;
+ if (i == 1) actName[i].Foreground = on ? actInks[i] : TextPrimary;
}
layerHint.IsVisible = layers == 0;
@@ -239,15 +241,15 @@ internal sealed class StrataDeviceBody : IDeviceBody
if (!vis) continue;
int st = (int)scope[6 + k * 3]; float gainDb = scope[7 + k * 3]; bool muted = scope[8 + k * 3] > 0.5f;
bool rec = recL == k;
- stateTxts[k].Text = rec ? "REC" : muted ? "MUTED" : "PLAY";
+ stateTxts[k].Text = rec ? "Rec" : muted ? "Muted" : "Play";
stateTxts[k].Foreground = rec ? NotaPalette.Record : muted ? TextTertiary : Success;
dbTxts[k].Text = $"{gainDb:+0.0;−0.0;0.0}";
var mtxt = (TextBlock)muteBtns[k].Child!;
- muteBtns[k].Background = muted ? NotaPalette.MuteTint : Sunken;
- muteBtns[k].BorderBrush = muted ? NotaPalette.BorderBrass : BorderDef;
- mtxt.Foreground = muted ? NotaPalette.AccentHover : TextTertiary;
+ muteBtns[k].Background = muted ? NotaPalette.Mute : Sunken; // mute on = the amber mute fill
+ muteBtns[k].BorderBrush = muted ? NotaPalette.Mute : BorderDef;
+ mtxt.Foreground = muted ? NotaPalette.InkOn(NotaPalette.Mute) : TextTertiary;
var col = NotaPalette.InkColor(Palette[k % Palette.Length]);
- layerRows[k].Background = rec ? NotaPalette.Wash(NotaPalette.Record, 0x1A) : muted ? NotaPalette.SurfaceInset : NotaPalette.Wash(NotaPalette.Accent, 0x0D);
+ layerRows[k].Background = rec ? NotaPalette.Wash(NotaPalette.Record, 0x1A) : muted ? NotaPalette.SurfaceInset : NotaPalette.Wash(NotaPalette.VizInk, 0x0A);
layerRows[k].BorderBrush = rec ? NotaPalette.Record : muted ? BorderDef : new SolidColorBrush(Color.FromArgb(0x73, col.R, col.G, col.B));
int wn = engine.DeviceLayerWave(track, di, k, waveBuf, waveBuf.Length);
var env = new float[Math.Max(1, wn)];
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/UtilityDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/UtilityDeviceBody.cs
index c3aca6a8..b9c25d01 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/UtilityDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/UtilityDeviceBody.cs
@@ -47,7 +47,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "UTILITY";
+ public string? Subtitle => "Utility";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -126,8 +126,8 @@ internal sealed class UtilityDeviceBody : IDeviceBody
string DeltaText() => ScDb(S_OutLevel) > -119 && ScDb(S_InLevel) > -119 ? NotaNum.F($"Δ {Delta():+0.0;−0.0;0.0} dB") : "Δ —";
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -175,7 +175,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
return seg;
}
- // Outlined chips: lit = brass edge + wash.
+ // Outlined chips: the chosen one = accent edge + wash.
Control Chips(string[] names, Func<int, bool> lit, Action<int> pick, int learnParam, string tip, double h = 16, double padX = 7)
{
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 3, VerticalAlignment = VerticalAlignment.Center };
@@ -235,9 +235,10 @@ internal sealed class UtilityDeviceBody : IDeviceBody
Border Button(string text, Action click, string tip, bool primary)
{
var tb = new TextBlock { Text = text, FontSize = 8, VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center,
- FontWeight = primary ? FontWeight.SemiBold : FontWeight.Normal, Foreground = primary ? OnAccent : TextPrimary };
- var b = new Border { Height = 16, Padding = new Thickness(7, 0), CornerRadius = NotaRadius.Badge, Background = primary ? Brass : Raised,
- BorderBrush = primary ? Brass : NotaPalette.BorderStrong, BorderThickness = new Thickness(1),
+ FontWeight = primary ? FontWeight.SemiBold : FontWeight.Normal, Foreground = TextPrimary };
+ // A push button rests raised; `primary` only sets its text heavier (accent is for state, not actions).
+ var b = new Border { Height = 16, Padding = new Thickness(7, 0), CornerRadius = NotaRadius.Badge, Background = Raised,
+ BorderBrush = NotaPalette.BorderStrong, BorderThickness = new Thickness(1),
Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center, Child = tb };
b.PointerPressed += (_, e) => { if (!e.GetCurrentPoint(b).Properties.IsLeftButtonPressed) return; click(); RefreshAll(); e.Handled = true; };
ToolTip.SetTip(b, tip);
@@ -301,13 +302,13 @@ internal sealed class UtilityDeviceBody : IDeviceBody
const string ResetTip = "Reset — Gain back to 0 dB, and the meters, holds and the level history start over";
// ======================================================================
- // LEFT — LEVEL column (input · output)
+ // LEFT — Level column (input · output)
// ======================================================================
static AfFader MeterBar(IBrush ink) => new() { Ink = ink, Width = 16, VerticalAlignment = VerticalAlignment.Stretch, IsHitTestVisible = false };
var levelTitle = Caps("LEVEL"); levelTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var inMeter = MeterBar(Brass);
+ var inMeter = MeterBar(NotaPalette.VizInk);
var outMeter = MeterBar(Teal);
- var levelIn = Mono("", 7, AccentBright); levelIn.HorizontalAlignment = HorizontalAlignment.Center;
+ var levelIn = Mono("", 7, TextPrimary); levelIn.HorizontalAlignment = HorizontalAlignment.Center;
var levelOut = Mono("", 7, TextPrimary); levelOut.HorizontalAlignment = HorizontalAlignment.Center;
ToolTip.SetTip(levelIn, "The input's level in the meter's unit (LUFS-S, 1 s peak or 300 ms RMS)");
ToolTip.SetTip(levelOut, "The output's level in the meter's unit");
@@ -330,9 +331,9 @@ internal sealed class UtilityDeviceBody : IDeviceBody
var meters = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
meters.Children.Add(MeterCell(inMeter, "IN", "Input peak, −60 … 0 dBFS"));
meters.Children.Add(Col(MeterCell(outMeter, "OUT", "Output peak, −60 … 0 dBFS"), 1));
- var levelCol = new Border
+ var levelCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(levelTitle, Dock.Top), Docked(levelOut, Dock.Bottom), Docked(levelIn, Dock.Bottom), meters } },
};
DockPanel.SetDock(levelCol, Dock.Left);
@@ -353,7 +354,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
field.DragV += v => SetN(Width_, v);
field.GestureBegin += () => { Begin(Balance); Begin(Width_); };
field.GestureEnd += () => { End(Balance); End(Width_); };
- ToolTip.SetTip(field, "The output's stereo field by frequency over the last second — lows at the bottom, highs at the top. Brass: where each band sits between L and R; teal: how far it spreads; dashed: how far the width setting spreads an uncorrelated band. Drag sideways for the balance, up or down for the width.");
+ ToolTip.SetTip(field, "The output's stereo field by frequency over the last second — lows at the bottom, highs at the top. Solid: where each band sits between L and R; teal: how far it spreads; dashed: how far the width setting spreads an uncorrelated band. Drag sideways for the balance, up or down for the width.");
Learn(field, Width_);
var corr = Mono("", 7, TextTertiary);
@@ -385,10 +386,10 @@ internal sealed class UtilityDeviceBody : IDeviceBody
widthView.DragV += v => SetN(Width_, v);
widthView.GestureBegin += () => { Begin(MonoFreq); Begin(Width_); };
widthView.GestureEnd += () => { End(MonoFreq); End(Width_); };
- ToolTip.SetTip(widthView, "The width over frequency — brass: what the settings do (0 % = mono, 100 % = unchanged), the mono region shaded; teal dashed: the output's measured width (side against mid). Drag sideways for the mono cutoff, up or down for the width.");
+ ToolTip.SetTip(widthView, "The width over frequency — solid: what the settings do (0 % = mono, 100 % = unchanged), the mono region shaded; teal dashed: the output's measured width (side against mid). Drag sideways for the mono cutoff, up or down for the width.");
Learn(widthView, MonoFreq);
- var wv = Mono("", 7, AccentBright);
+ var wv = Mono("", 7, TextSecondary);
readouts.Add(() => wv.Text = NotaNum.F($"width {Sc(S_EffWidth):0}"));
var onOff = ToggleLatch(MonoBelow, () => On(MonoBelow) ? "On" : "Off", "Mono below — removes the side below the cutoff, so the low end is mono");
float[] quick = { 60, 120, 240 };
@@ -422,10 +423,10 @@ internal sealed class UtilityDeviceBody : IDeviceBody
levelView.DragV += v => SetN(Target, v);
levelView.GestureBegin += () => Begin(Target);
levelView.GestureEnd += () => End(Target);
- ToolTip.SetTip(levelView, "Input (teal) and output (brass) over the last 8 s in the meter's unit; dashed: the target. Drag up or down for the target.");
+ ToolTip.SetTip(levelView, "Input (teal) and output (neutral ink) over the last 8 s in the meter's unit; dashed: the target. Drag up or down for the target.");
Learn(levelView, Target);
- var delta = Mono("", 7, AccentBright);
+ var delta = Mono("", 7, TextSecondary);
readouts.Add(() => delta.Text = DeltaText());
var chips = IndexChips(Meter, Meters, "Meter — LUFS-S: short-term loudness (3 s, K-weighted); Peak: sample peak; RMS: 300 ms");
var head = HeadRow(Row(6, Caps("METER"), chips, Button("Gain match", GainMatch, GainMatchTip, true), Button("Reset", ResetLevels, ResetTip, false)), delta);
@@ -455,7 +456,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
static Control LabelRow(string label, Control c, double labW = 40)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(NotaNum.F($"{labW},*")) };
- g.Children.Add(new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center });
+ g.Children.Add(new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
g.Children.Add(Col(c, 1));
return g;
}
@@ -468,7 +469,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
ToggleLatch(InvertR, () => "Ø R", "Invert the right channel's phase", h: 15, padX: 6),
ToggleLatch(Mute, () => "Mute", "Mute the output", h: 15, padX: 6));
// Mono on: WIDTH · MONO f | BALANCE; off: WIDTH · BALANCE | GAIN — the mockup's two states.
- var monoRow = SliderRow("MONO f", MonoFreq, HzF);
+ var monoRow = SliderRow("Mono f", MonoFreq, HzF);
var balA = SliderRow("BALANCE", Balance, v => NotaNum.F($"{v:+0.00;−0.00;0.00}"), bipolar: true);
var balB = SliderRow("BALANCE", Balance, v => NotaNum.F($"{v:+0.00;−0.00;0.00}"), bipolar: true, modulation: true);
var gainRow = SliderRow("GAIN", Gain, Db1, bipolar: true);
@@ -489,9 +490,9 @@ internal sealed class UtilityDeviceBody : IDeviceBody
corrBar.Set(c);
corrText.Text = NotaNum.F($"{CorrF(c)} · {CorrWords()}");
bool lit = Math.Abs(P(Width_) - 100) > 0.5 || On(MonoBelow);
- corrBox.BorderBrush = lit ? NotaPalette.BorderBrass : NotaPalette.GraphBorder;
- corrTitle.Foreground = lit ? AccentBright : TextTertiary;
- corrText.Foreground = c < 0 && Sc(S_OutPk) > 1e-4 ? Danger : lit ? AccentBright : TextPrimary;
+ corrBox.BorderBrush = lit ? NotaPalette.BorderStrong : NotaPalette.GraphBorder; // the width is in play: a stronger frame
+ corrTitle.Foreground = lit ? TextSecondary : TextTertiary;
+ corrText.Foreground = c < 0 && Sc(S_OutPk) > 1e-4 ? Danger : TextPrimary;
});
return Spread(
LabelRow("PHASE", phase, 40),
@@ -522,13 +523,12 @@ internal sealed class UtilityDeviceBody : IDeviceBody
Caps("MEASUREMENTS"),
Line("in", () => NotaNum.F($"{LvlF(ScDb(S_InLevel))} {Unit()}")),
Line("out", () => NotaNum.F($"{LvlF(ScDb(S_OutLevel))} {Unit()}")),
- Line("true peak", () => NotaNum.F($"{LvlF(ScDb(S_TruePeak))} dBTP"), AccentBright) } },
+ Line("true peak", () => NotaNum.F($"{LvlF(ScDb(S_TruePeak))} dBTP"), TextPrimary) } },
};
var matchTo = Seg(MatchTo, new[] { "Input", "Target" }, "What Gain match and Level match aim for — the input's level, or Target");
var btns = new Grid { ColumnDefinitions = new ColumnDefinitions("*,*"), ColumnSpacing = 6 };
var gm = Button("Gain match", GainMatch, GainMatchTip, false);
- gm.Background = NotaPalette.AccentSubtle; gm.BorderBrush = Brass; gm.BorderThickness = new Thickness(1);
- ((TextBlock)gm.Child!).Foreground = AccentBright; ((TextBlock)gm.Child!).FontWeight = FontWeight.SemiBold;
+ ((TextBlock)gm.Child!).FontWeight = FontWeight.SemiBold;
btns.Children.Add(gm);
btns.Children.Add(Col(Button("Reset", ResetLevels, ResetTip, false), 1));
return Spread(
@@ -566,9 +566,9 @@ internal sealed class UtilityDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Field", "Mono", "Levels" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Routing", "Output" }, rightHost, RightBody, true, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -625,7 +625,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { levelCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -675,7 +675,7 @@ internal sealed class UtilityDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/ValveDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/ValveDeviceBody.cs
index 9d2626fc..8f732412 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/ValveDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/ValveDeviceBody.cs
@@ -47,7 +47,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "AMP SIM";
+ public string? Subtitle => "Amp sim";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -105,8 +105,10 @@ internal sealed class ValveDeviceBody : IDeviceBody
}
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ // An acronym NotaText.Label does not know (OS, GR) keeps its case: the label as written.
+ static TextBlock Acr(string t, IBrush? c = null) { var tb = Caps(t, c); tb.Text = t; return tb; }
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -220,12 +222,12 @@ internal sealed class ValveDeviceBody : IDeviceBody
// A list box: [name ▾] opens the entries; the wheel steps through them.
Control Drop(int p, string[] names, string tip)
{
- var name = new TextBlock { FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = AccentBright, VerticalAlignment = VerticalAlignment.Center };
+ var name = new TextBlock { FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center };
var box = new Border
{
- Height = 16, MinWidth = 74, Background = Sunken, BorderBrush = Brass, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
+ Height = 16, MinWidth = 74, Background = Sunken, BorderBrush = NotaPalette.BorderStrong, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
Padding = new Thickness(6, 0), Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center,
- Child = new DockPanel { Children = { Docked(new Glyph(GlyphKind.ChevronDown, 7) { Foreground = NotaPalette.AccentDim, Margin = new Thickness(6, 0, 0, 0) }, Dock.Right), name } },
+ Child = new DockPanel { Children = { Docked(new Glyph(GlyphKind.ChevronDown, 7) { Foreground = TextTertiary, Margin = new Thickness(6, 0, 0, 0) }, Dock.Right), name } },
};
readouts.Add(() => name.Text = names[Idx(p)]);
ToolTip.SetTip(box, tip);
@@ -294,7 +296,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
return new DockPanel { Children = { Docked(lb, Dock.Bottom), new Border { Margin = new Thickness(0, 0, 0, 3), Child = f } } };
}
var stageTitle = Caps("STAGE"); stageTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var stageGain = Mono("", 7, AccentBright); stageGain.HorizontalAlignment = HorizontalAlignment.Center;
+ var stageGain = Mono("", 7, TextPrimary); stageGain.HorizontalAlignment = HorizontalAlignment.Center;
var stageOut = Mono("", 7, TextPrimary); stageOut.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
@@ -303,11 +305,11 @@ internal sealed class ValveDeviceBody : IDeviceBody
stageTitle.Foreground = Sc(S_InPk) > 0.01 ? AccentBright : TextTertiary; // lit while signal passes
});
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
- faders.Children.Add(StageFader(Gain, "GAIN", Brass, "Gain — how hard the signal hits the preamp. Double-click resets."));
+ faders.Children.Add(StageFader(Gain, "GAIN", NotaPalette.VizInk, "Gain — how hard the signal hits the preamp. Double-click resets."));
faders.Children.Add(Col(StageFader(Output, "OUT", Teal, "Output — the master level after the cabinet, ±12 dB. Double-click resets."), 1));
- var stageCol = new Border
+ var stageCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(stageTitle, Dock.Top), Docked(stageOut, Dock.Bottom), Docked(stageGain, Dock.Bottom), faders } },
};
DockPanel.SetDock(stageCol, Dock.Left);
@@ -332,7 +334,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
readouts.Add(() => thd.Text = "THD " + ThdF(Sc(S_Thd)));
var count = Mono("", 7, TextTertiary);
readouts.Add(() => count.Text = NotaNum.F($"{Idx(Model) + 1} / {Models.Length}"));
- var head = HeadRow(Row(6, Caps("MODEL"), ModelDrop(), count, new Border { Width = 4 }, Caps("OS"), Seg(OS, OsNames)), thd);
+ var head = HeadRow(Row(6, Caps("MODEL"), ModelDrop(), count, new Border { Width = 4 }, Acr("OS"), Seg(OS, OsNames)), thd);
var knobs = KnobRow(new[]
{
K(Bass, "BASS", Ten),
@@ -362,7 +364,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
ToolTip.SetTip(cabView, "The cabinet as the mic hears it, with the low / high cuts — dashed is the same cab and mic on axis at the cap, 5 cm away. Drag sideways to move the mic off axis, up to bring it closer.");
Learn(cabView, Axis);
- var loss = Mono("", 7, AccentBright);
+ var loss = Mono("", 7, TextSecondary);
readouts.Add(() => loss.Text = On(CabOn) ? NotaNum.F($"{Sc(S_CabLossDb):+0.0;−0.0;0.0} dB @ 4 k") : "cabinet off");
var mics = IndexChips(Mic, Mics);
ToolTip.SetTip(mics, "Mic — Dynamic: the classic close mic; Condenser: brighter, less proximity bass; Ribbon: dark, the most proximity bass");
@@ -395,10 +397,10 @@ internal sealed class ValveDeviceBody : IDeviceBody
ToolTip.SetTip(harm, "The harmonics the preamp adds at the input's level (the fundamental at the top). Drag up or down for the gain.");
Learn(harm, Gain);
- var peak = Mono("", 7, AccentBright);
+ var peak = Mono("", 7, TextSecondary);
readouts.Add(() => peak.Text = DbfsF(Sc(S_OutPk)));
var even = ToggleLatch(EvenOnly, () => "Even only", "Even only — the preamp adds even harmonics only: warmth without the fizz of the odd ones");
- var head = HeadRow(Row(6, Caps("MODEL"), ModelDrop(), new Border { Width = 4 }, Caps("OS"), Seg(OS, OsNames), even), peak);
+ var head = HeadRow(Row(6, Caps("MODEL"), ModelDrop(), new Border { Width = 4 }, Acr("OS"), Seg(OS, OsNames), even), peak);
var knobs = KnobRow(new[]
{
K(Gain, "GAIN", Ten),
@@ -418,24 +420,24 @@ internal sealed class ValveDeviceBody : IDeviceBody
Control Box(Func<string> title, Func<string> line1, Func<string> line2, Func<bool>? lit = null)
{
var t = Caps("");
- var l1 = Mono("", 9, AccentBright);
+ var l1 = Mono("", 9, TextPrimary);
var l2 = Mono("", 8, TextSecondary);
l1.TextTrimming = l2.TextTrimming = TextTrimming.CharacterEllipsis;
var b = new Border { Background = Sunken, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge, Padding = new Thickness(6, 4),
Child = new StackPanel { Spacing = 2, Children = { t, l1, l2 } } };
readouts.Add(() =>
{
- t.Text = title(); l1.Text = line1(); l2.Text = line2();
- bool on = lit?.Invoke() ?? false;
- b.BorderBrush = on ? NotaPalette.BorderBrass : NotaPalette.GraphBorder;
- t.Foreground = on ? AccentBright : TextTertiary;
+ t.Text = NotaText.Label(title()); l1.Text = line1(); l2.Text = line2();
+ bool on = lit?.Invoke() ?? false; // the box that describes the tab in view
+ b.BorderBrush = on ? NotaPalette.BorderStrong : NotaPalette.GraphBorder;
+ t.Foreground = on ? TextSecondary : TextTertiary;
});
return b;
}
static Control LabelRow(string label, Control c, double labW = 40)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(NotaNum.F($"{labW},*")) };
- g.Children.Add(new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center });
+ g.Children.Add(new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
g.Children.Add(Col(c, 1));
return g;
}
@@ -501,7 +503,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
Caps("OUTPUT"),
Line("in", () => DbF(Sc(S_InPk))),
Line("out", () => DbF(Sc(S_OutPk))),
- Line("THD", () => ThdF(Sc(S_Thd)), AccentBright) } },
+ Line("THD", () => ThdF(Sc(S_Thd)), TextPrimary) } },
};
var sliders = new StackPanel { Spacing = 6, Children = {
SliderRow("MIX", Mix, Pct),
@@ -541,9 +543,9 @@ internal sealed class ValveDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Amp", "Cab", "Harmonics" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Cabinet", "Output" }, rightHost, RightBody, true, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -601,7 +603,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { stageCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -633,7 +635,7 @@ internal sealed class ValveDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Bodies/VintageDeviceBody.cs b/src/managed/Nota.App/DeviceCards/Bodies/VintageDeviceBody.cs
index 7923499a..238c7589 100644
--- a/src/managed/Nota.App/DeviceCards/Bodies/VintageDeviceBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Bodies/VintageDeviceBody.cs
@@ -41,7 +41,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
public double Width => 700;
public bool FullBleed => true;
- public string? Subtitle => "CHARACTER";
+ public string? Subtitle => "Character";
public Control Build(DeviceCardContext ctx, int index)
{
@@ -96,8 +96,10 @@ internal sealed class VintageDeviceBody : IDeviceBody
string StageName() => Sel(OutputStage, 3) switch { 1 => "tube stage", 2 => "analog stage", _ => "" };
// ---- small builders ---------------------------------------------------------
- static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = c ?? TextTertiary, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ // An acronym NotaText.Label does not know (OS, GR) keeps its case: the label as written.
+ static TextBlock Acr(string t, IBrush? c = null) { var tb = Caps(t, c); tb.Text = t; return tb; }
static TextBlock Mono(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -139,7 +141,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
return seg;
}
- // Outlined chips: lit = brass edge + wash.
+ // Outlined chips: the chosen one = accent edge + wash.
Control Chips(string[] names, Func<int, bool> lit, Action<int> pick, int learnParam, double h = 16, double padX = 7)
{
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 3, VerticalAlignment = VerticalAlignment.Center };
@@ -208,12 +210,12 @@ internal sealed class VintageDeviceBody : IDeviceBody
// The character list: [name ▾] opens the six voicings; the wheel steps through them.
Control CharDrop()
{
- var name = new TextBlock { FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = AccentBright, VerticalAlignment = VerticalAlignment.Center };
+ var name = new TextBlock { FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center };
var box = new Border
{
- Height = 16, MinWidth = 74, Background = Sunken, BorderBrush = Brass, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
+ Height = 16, MinWidth = 74, Background = Sunken, BorderBrush = NotaPalette.BorderStrong, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
Padding = new Thickness(6, 0), Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center,
- Child = new DockPanel { Children = { Docked(new Glyph(GlyphKind.ChevronDown, 7) { Foreground = NotaPalette.AccentDim, Margin = new Thickness(6, 0, 0, 0) }, Dock.Right), name } },
+ Child = new DockPanel { Children = { Docked(new Glyph(GlyphKind.ChevronDown, 7) { Foreground = TextTertiary, Margin = new Thickness(6, 0, 0, 0) }, Dock.Right), name } },
};
readouts.Add(() => name.Text = ModeName());
ToolTip.SetTip(box, "Character — the era the signal passes through: its saturation, tone, band-limit and how much hiss, crackle, wow and flutter it brings. Scroll to step.");
@@ -280,7 +282,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
return new DockPanel { Children = { Docked(lb, Dock.Bottom), new Border { Margin = new Thickness(0, 0, 0, 3), Child = f } } };
}
var stateTitle = Caps("STATE"); stateTitle.HorizontalAlignment = HorizontalAlignment.Center;
- var stateDrv = Mono("", 7, AccentBright); stateDrv.HorizontalAlignment = HorizontalAlignment.Center;
+ var stateDrv = Mono("", 7, TextPrimary); stateDrv.HorizontalAlignment = HorizontalAlignment.Center;
var stateWear = Mono("", 7, TextPrimary); stateWear.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
@@ -289,11 +291,11 @@ internal sealed class VintageDeviceBody : IDeviceBody
stateTitle.Foreground = Sc(S_InPk) > 0.01 ? AccentBright : TextTertiary; // lit while signal passes
});
var faders = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), ColumnSpacing = 9, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 4) };
- faders.Children.Add(StateFader(Drive, "DRV", Brass, "Drive — how hard the signal hits the saturation. Double-click resets."));
+ faders.Children.Add(StateFader(Drive, "DRV", NotaPalette.VizInk, "Drive — how hard the signal hits the saturation. Double-click resets."));
faders.Children.Add(Col(StateFader(Wear, "WEAR", Teal, "Wear — the age of the medium: a narrower band, more hiss and crackle, a wandering flutter. Double-click resets."), 1));
- var stateCol = new Border
+ var stateCol = new RuleSection
{
- Width = 56, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5, 0, 4),
+ Width = 56, Padding = new Thickness(0, 5, 0, 4),
Child = new DockPanel { Children = { Docked(stateTitle, Dock.Top), Docked(stateWear, Dock.Bottom), Docked(stateDrv, Dock.Bottom), faders } },
};
DockPanel.SetDock(stateCol, Dock.Left);
@@ -316,7 +318,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
readouts.Add(() => thd.Text = "THD " + ThdF(Sc(S_Thd)));
var count = Mono("", 7, TextTertiary);
readouts.Add(() => count.Text = NotaNum.F($"{Sel(Mode, 6) + 1} / 6"));
- var head = HeadRow(Row(6, Caps("CHAR"), CharDrop(), count, new Border { Width = 4 }, Caps("OS"), Seg(OS, OsNames)), thd);
+ var head = HeadRow(Row(6, Caps("CHAR"), CharDrop(), count, new Border { Width = 4 }, Acr("OS"), Seg(OS, OsNames)), thd);
var knobs = KnobRow(new[]
{
K(Drive, "DRIVE", Pct),
@@ -347,7 +349,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
wearView.DragH += v => Raw(wearShow == 1 ? FlutterRate : WowRate, (float)v);
wearView.GestureBegin += () => { Begin(Wow); Begin(Flutter); Begin(WowRate); Begin(FlutterRate); };
wearView.GestureEnd += () => { End(Wow); End(Flutter); End(WowRate); End(FlutterRate); };
- ToolTip.SetTip(wearView, "The pitch drift over the last four seconds — wow in brass, flutter in teal. Drag up or down for the depth of what is picked above, sideways for its rate.");
+ ToolTip.SetTip(wearView, "The pitch drift over the last four seconds — wow in neutral ink, flutter in teal. Drag up or down for the depth of what is picked above, sideways for its rate.");
Learn(wearView, Wow);
var show = Chips(new[] { "Wow", "Flutter", "Both" }, i => wearShow == i, i => wearShow = i, -1);
@@ -355,7 +357,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
var sync = Latch(WowSync, () => On(WowSync), () => SetP(WowSync, On(WowSync) ? 0f : 1f),
() => Synced() ? "Sync " + SyncNames[Sel(WowRate, 6)] : "Sync off",
"Sync — the wow follows the tempo: one sway every 4 bars … 1/8 (RATE picks it)");
- var drift = Mono("", 7, AccentBright);
+ var drift = Mono("", 7, TextSecondary);
readouts.Add(() => drift.Text = "drift " + HzF(WowHz()));
var head = HeadRow(Row(6, Caps("CHAR"), CharDrop(), show, sync), drift);
var knobs = KnobRow(new[]
@@ -395,11 +397,11 @@ internal sealed class VintageDeviceBody : IDeviceBody
ToolTip.SetTip(harm, "The harmonics the saturation adds at the input's level (the fundamental at the top), against the hiss floor in teal. Drag up or down for the drive.");
Learn(harm, Drive);
- var peak = Mono("", 7, AccentBright);
+ var peak = Mono("", 7, TextSecondary);
readouts.Add(() => peak.Text = DbfsF(Sc(S_OutPk)));
var comp = ToggleLatch(AutoComp, () => Sc(S_CompDb) != 0 && On(AutoComp) ? NotaNum.F($"Auto-comp {Sc(S_CompDb):+0.0;−0.0;0.0}") : "Auto-comp",
"Auto-comp — the output level follows the input's, however hard the drive");
- var head = HeadRow(Row(6, Caps("CHAR"), CharDrop(), new Border { Width = 4 }, Caps("OS"), Seg(OS, OsNames), comp), peak);
+ var head = HeadRow(Row(6, Caps("CHAR"), CharDrop(), new Border { Width = 4 }, Acr("OS"), Seg(OS, OsNames), comp), peak);
var knobs = KnobRow(new[]
{
K(Drive, "DRIVE", Pct),
@@ -427,16 +429,16 @@ internal sealed class VintageDeviceBody : IDeviceBody
Control Box(string title, Func<string> line1, Func<string> line2, Func<bool>? lit = null)
{
var t = Caps(title);
- var l1 = Mono("", 9, AccentBright);
+ var l1 = Mono("", 9, TextPrimary);
var l2 = Mono("", 8, TextSecondary);
var b = new Border { Background = Sunken, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge, Padding = new Thickness(6, 4),
Child = new StackPanel { Spacing = 2, Children = { t, l1, l2 } } };
readouts.Add(() =>
{
l1.Text = line1(); l2.Text = line2();
- bool on = lit?.Invoke() ?? false;
- b.BorderBrush = on ? NotaPalette.BorderBrass : NotaPalette.GraphBorder;
- t.Foreground = on ? AccentBright : TextTertiary;
+ bool on = lit?.Invoke() ?? false; // engaged: a stronger frame, not the accent
+ b.BorderBrush = on ? NotaPalette.BorderStrong : NotaPalette.GraphBorder;
+ t.Foreground = on ? TextSecondary : TextTertiary;
});
return b;
}
@@ -510,7 +512,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
Caps("OUTPUT"),
Line("in", () => DbF(Sc(S_InPk))),
Line("out", () => DbF(Sc(S_OutPk))),
- Line("THD", () => ThdF(Sc(S_Thd)), AccentBright) } },
+ Line("THD", () => ThdF(Sc(S_Thd)), TextPrimary) } },
};
var sliders = new StackPanel { Spacing = 6, Children = {
SliderRow("MIX", Mix, Pct),
@@ -553,9 +555,9 @@ internal sealed class VintageDeviceBody : IDeviceBody
var centre = TabFrame(new[] { "Curve", "Wear", "Output" }, centreHost, CentreBody, false, t => { centreTab = t; Refresh(); }, extras);
var rightFrame = TabFrame(new[] { "Tone", "Output" }, rightHost, RightBody, true, _ => RefreshAll(), null);
- var right = new Border { Width = 186, Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Dock.Right);
- var centreBox = new Border { Background = Card2, BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), ClipToBounds = true, Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip
@@ -612,7 +614,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { stateCol, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceInset, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
void Refresh()
{
@@ -641,7 +643,7 @@ internal sealed class VintageDeviceBody : IDeviceBody
btns[i].Background = on ? Card2 : Brushes.Transparent;
btns[i].BorderBrush = on ? Brass : Brushes.Transparent;
var tb = (TextBlock)btns[i].Child!;
- tb.Foreground = on ? AccentBright : TextTertiary;
+ tb.Foreground = on ? NotaPalette.TextPrimary : TextTertiary;
tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
diff --git a/src/managed/Nota.App/DeviceCards/DeviceParamControls.cs b/src/managed/Nota.App/DeviceCards/DeviceParamControls.cs
index 732f2c25..2f9c2757 100644
--- a/src/managed/Nota.App/DeviceCards/DeviceParamControls.cs
+++ b/src/managed/Nota.App/DeviceCards/DeviceParamControls.cs
@@ -73,7 +73,7 @@ internal static class DeviceParamControls
var engine = ctx.Engine;
int track = ctx.TrackId;
int di = index;
- var label = new TextBlock { Text = "SIDECHAIN", FontSize = 9, Foreground = TextTertiary };
+ var label = new TextBlock { Text = "Sidechain", FontSize = 9, FontWeight = FontWeight.Medium, Foreground = TextTertiary };
// Source: "None" first, then every track except this one.
var ids = new List<int> { -1 };
@@ -112,10 +112,10 @@ internal static class DeviceParamControls
};
// Gain (−24..+24 dB) and Mix (0..100%) sliders.
- var gain = ScFaderRow("GAIN", (engine.DeviceSidechainGain(track, di) + 24f) / 48f,
+ var gain = ScFaderRow("Gain", (engine.DeviceSidechainGain(track, di) + 24f) / 48f,
g => $"{g * 48f - 24f:+0.0;−0.0;0.0}\u2009dB",
g => engine.SetDeviceSidechainGain(track, di, (float)(g * 48.0 - 24.0)));
- var mix = ScFaderRow("MIX", engine.DeviceSidechainMix(track, di),
+ var mix = ScFaderRow("Mix", engine.DeviceSidechainMix(track, di),
m => $"{m * 100f:0}\u2009%",
m => engine.SetDeviceSidechainMix(track, di, (float)m));
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/AuroraInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/AuroraInstrumentCard.cs
index 812a01dc..828d7a96 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/AuroraInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/AuroraInstrumentCard.cs
@@ -22,7 +22,8 @@
// amount and one of twelve targets). Picking Mod brings the macros up, as
// the almanac draws that state.
//
-// Brass is the parameter itself; teal is modulation and what receives it. Everything is a
+// Neutral ink is the parameter itself; teal is modulation and what receives it; the accent
+// marks only live or chosen state. Everything is a
// plugin param → automation / persist / clone, and the card follows automation live.
//
// The live tick runs thirty times a second, so Refresh first asks whether ANY parameter
@@ -44,7 +45,7 @@ namespace Nota.App;
internal sealed class AuroraInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "WAVETABLE";
+ public string Subtitle => "Wavetable";
public double CardWidth => 700;
private const double WheelsW = 56, RailW = 186, TabH = 20, StatusH = 18, BodyH = 186;
@@ -78,8 +79,8 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
// What a macro on that target is called on the patch — the word a player reads.
private static readonly string[] MacroWords =
{
- "PITCH", "SHAPE", "INTERVAL", "LAYER", "SHIMMER", "WEIGHT",
- "AIR", "EDGE", "WIDTH", "SWELL", "GRIT", "PLACE",
+ "pitch", "shape", "interval", "layer", "shimmer", "weight",
+ "air", "edge", "width", "swell", "grit", "place",
};
// The engine's own maps (WavetableSynth.h), so a readout says what it does.
@@ -178,8 +179,8 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
// ---- shared builders ------------------------------------------------------
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8) => new()
@@ -189,7 +190,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
};
static TextBlock Section(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
+ Text = NotaText.Label(t), FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
Foreground = c ?? TextPrimary, VerticalAlignment = VerticalAlignment.Center,
};
static Border Rule() => new() { BorderBrush = NotaPalette.GraphBorder, BorderThickness = new Thickness(0, 1, 0, 0) };
@@ -278,7 +279,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
{
value.Text = fmt(G(id));
bool moved = Math.Abs(G(id) - engine.InstrumentParamDefault(track, pi)) > 1e-4f;
- cap.Foreground = moved && ink is null ? AccentBright : TextTertiary;
+ cap.Foreground = moved && ink is null ? TextPrimary : TextTertiary;
});
ToolTip.SetTip(cell, learn + " · drag to change, double-click to reset");
MidiLearn.Bind(cell, MidiTarget.PluginParam(track, -1, pi), learn);
@@ -390,9 +391,9 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
double semis = (G("bend") - 0.5) * 2 * range;
bool centred = Math.Abs(semis) < 0.05;
bendVal.Text = centred ? $"±{range} st" : NotaNum.Unit(semis, "+0.0;−0.0;0", "st");
- bendVal.Foreground = centred ? TextSecondary : AccentBright;
+ bendVal.Foreground = centred ? TextSecondary : TextPrimary;
modVal.Text = NotaNum.Pct(G("modwheel"));
- modVal.Foreground = G("modwheel") > 1e-3f ? AccentBright : TextSecondary;
+ modVal.Foreground = G("modwheel") > 1e-3f ? TextPrimary : TextSecondary;
});
static Grid Pair(Control a, Control b)
{
@@ -508,7 +509,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
var posMod = Mono("", Teal, NotaType.Axis);
readouts.Add(() =>
{
- tableCap.Text = $"TABLE {osel + 1} · {Banks[Sel(osel == 0 ? "table" : "osc2table", 4)].ToUpperInvariant()}";
+ tableCap.Text = $"Table {osel + 1} · {Banks[Sel(osel == 0 ? "table" : "osc2table", 4)]}";
frameCap.Text = "frame " + FrameText(G(osel == 0 ? "position" : "osc2position"));
int best = -1; double mag = 0.02;
for (int s = 0; s < SrcNames.Length; s++)
@@ -558,7 +559,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
? k switch { 0 => "cutoff", 1 => "resonance", _ => "fil1" + filtIds[k] }
: "fil2" + filtIds[k];
Func<float, string> fmt = k switch { 0 => Hz, 1 => Pct, 4 => Pct, _ => Bip };
- Control cell = PKnob(id, filtLbl[k].ToUpperInvariant(), $"Filter {f + 1} {filtLbl[k]}", fmt, 24, 33, k >= 2 ? Teal : null);
+ Control cell = PKnob(id, filtLbl[k], $"Filter {f + 1} {filtLbl[k]}", fmt, 24, 33, k >= 2 ? Teal : null);
cell.IsVisible = false;
filtStack[f, k] = cell;
filtCells[k].Children.Add(cell);
@@ -727,7 +728,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
readouts.Add(() =>
{
string pre = lfoShown == 0 ? "lfo1" : "lfo2";
- lfoShapeCap.Text = $"SHAPE · LFO {lfoShown + 1}";
+ lfoShapeCap.Text = $"Shape · LFO {lfoShown + 1}";
lfoStrip.Set(Sel(pre + "shape", 4), LfoCycles(lfoShown), G(pre + "depth"));
lfoShapeSum.Text = $"{ShapeNames[Sel(pre + "shape", 4)]} · "
+ (SyncDiv(G(pre + "sync")) > 0 ? SyncText(G(pre + "sync")) : SlowHz(ExpMap(G(pre + "rate"), 0.05, 20)))
@@ -854,7 +855,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -947,7 +948,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
string destId = $"mac{mv}dest";
var name = new TextBlock
{
- FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.KnobLabelTracking,
+ FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
Foreground = NotaPalette.TextStrong, TextTrimming = TextTrimming.CharacterEllipsis,
};
var dest = new TextBlock
@@ -1060,7 +1061,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
bool on = i == railTab;
railCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
railCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- railTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ railTexts[i].Foreground = on ? TextPrimary : TextTertiary;
railTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
railBodies[i].IsVisible = on;
}
@@ -1159,7 +1160,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, body },
};
@@ -1170,11 +1171,7 @@ internal sealed class AuroraInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/BassInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/BassInstrumentCard.cs
index 06b640e6..3767b3d1 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/BassInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/BassInstrumentCard.cs
@@ -17,7 +17,7 @@
// Rail 186 Global: voice mode, glide, unison, output drive, bend range, legato,
// volume, pan and the track's meter.
//
-// Brass is the parameter itself; teal is modulation and what receives it. Everything is a
+// Neutral ink is the parameter itself; teal is modulation and what receives it. Everything is a
// plugin param → automation / persist / clone, and the card follows automation live.
using System;
@@ -35,7 +35,7 @@ namespace Nota.App;
internal sealed class BassInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "BASS SYNTH";
+ public string Subtitle => "Bass synth";
public double CardWidth => 700;
private const double WheelsW = 56, RailW = 186, TabH = 20, StatusH = 18, BodyH = 186;
@@ -126,8 +126,8 @@ internal sealed class BassInstrumentCard : IInstrumentCard
// ---- shared builders --------------------------------------------------
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8) => new()
@@ -137,7 +137,7 @@ internal sealed class BassInstrumentCard : IInstrumentCard
};
static TextBlock Section(string t) => new()
{
- Text = t, FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
+ Text = NotaText.Label(t), FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center,
};
static Border Rule(Control child, bool top = true) => new()
@@ -315,12 +315,12 @@ internal sealed class BassInstrumentCard : IInstrumentCard
double semis = (G("bend") - 0.5) * 2 * range;
bool centred = Math.Abs(semis) < 0.05;
bendVal.Text = centred ? $"±{range} st" : NotaNum.Unit(semis, "+0.0;−0.0;0", "st");
- bendVal.Foreground = centred ? TextSecondary : AccentBright;
+ bendVal.Foreground = centred ? TextSecondary : TextPrimary;
bool modOn = G("modwheel") > 1e-3f;
modVal.Text = NotaNum.Pct(G("modwheel"));
- modVal.Foreground = modOn ? AccentBright : TextSecondary;
+ modVal.Foreground = modOn ? TextPrimary : TextSecondary;
// On the Mod tab the wheel is part of what's on screen — it drives the LFO.
- modCap.Foreground = tab == 1 ? AccentBright : TextTertiary;
+ modCap.Foreground = tab == 1 ? TextSecondary : TextTertiary;
});
Grid Pair(Control a, Control b)
@@ -532,7 +532,7 @@ internal sealed class BassInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -672,7 +672,7 @@ internal sealed class BassInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, body },
};
@@ -682,11 +682,7 @@ internal sealed class BassInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/ConsortInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/ConsortInstrumentCard.cs
index c9127feb..5d6be3bc 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/ConsortInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/ConsortInstrumentCard.cs
@@ -29,7 +29,6 @@ namespace Nota.App;
internal sealed class ConsortInstrumentCard : IInstrumentCard
{
private static readonly IBrush RailBg = NotaPalette.SurfaceInset;
- private static readonly IBrush Panel = NotaPalette.TextOnAccent; // dark ink over an engaged fill
private static readonly IBrush Border2 = NotaPalette.BorderDefault;
private static readonly IBrush BorderIn = NotaPalette.GraphBorder;
private static readonly IBrush Inset = NotaPalette.BgSunken;
@@ -65,7 +64,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
private static readonly Dictionary<int, ViewState> Views = new();
public bool BodyOnly => true;
- public string Subtitle => "PARAPHONIC";
+ public string Subtitle => "Paraphonic";
public string? VoiceLabel(IAudioEngine engine, int trackId, int active)
{
@@ -78,8 +77,8 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
return 0;
}
int a = Math.Max(0, active);
- if (G("truepoly", 8) > 0.5f) return $"POLY {a}/16";
- return Math.Clamp((int)Math.Round(G("voicemode", 7) * 2), 0, 2) switch { 0 => "MONO", 1 => $"DUO {a}/2", _ => $"PARA {a}/4" };
+ if (G("truepoly", 8) > 0.5f) return $"Poly {a}/16";
+ return Math.Clamp((int)Math.Round(G("voicemode", 7) * 2), 0, 2) switch { 0 => "Mono", 1 => $"Duo {a}/2", _ => $"Para {a}/4" };
}
public Control Build(DeviceCardContext ctx)
@@ -113,9 +112,9 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
void Refresh() => refreshAll();
// ---- small builders --------------------------------------------------------
- static TextBlock Lbl(string t, double fs, IBrush c, FontWeight w = FontWeight.Bold)
- => new() { Text = t, FontSize = fs, FontWeight = w, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
- static TextBlock Caps(string t) => new() { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center, LetterSpacing = 0.8 };
+ static TextBlock Lbl(string t, double fs, IBrush c, FontWeight w = FontWeight.SemiBold)
+ => new() { Text = NotaText.Label(t), FontSize = fs, FontWeight = w, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t) => new() { Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center };
static TextBlock MonoText(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -168,7 +167,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
Control ViewSeg(string[] names, Func<int> get, Action<int> set)
{
var arr = new Border[names.Length];
- void Hi() { for (int i = 0; i < arr.Length; i++) { bool on = i == get(); arr[i].Background = on ? Amber : Brushes.Transparent; var tb = (TextBlock)arr[i].Child!; tb.Foreground = on ? Panel : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal; } }
+ void Hi() { for (int i = 0; i < arr.Length; i++) { bool on = i == get(); arr[i].Background = on ? Amber : Brushes.Transparent; var tb = (TextBlock)arr[i].Child!; tb.Foreground = on ? NotaPalette.TextOnAccent : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal; } }
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 1 };
for (int i = 0; i < names.Length; i++)
{
@@ -229,8 +228,8 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
host.PointerMoved += (_, e) => { if (drag) From(e); };
host.PointerReleased += (_, e) => { if (drag) { drag = false; if (pi >= 0) End(id); e.Pointer.Capture(null); if (spring) Spring(); } };
host.SizeChanged += (_, _) => Vis(G(id));
- var nm = new TextBlock { Text = name, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center };
- common.Add(() => { if (!drag) Vis(G(id)); bool live = Math.Abs(G(id) - (spring ? 0.5f : 0f)) > 0.01f; nm.Foreground = live ? AmberLit : MutedC; });
+ var nm = new TextBlock { Text = NotaText.Label(name), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center };
+ common.Add(() => { if (!drag) Vis(G(id)); bool moved = Math.Abs(G(id) - (spring ? 0.5f : 0f)) > 0.01f; nm.Foreground = moved ? TxtC : MutedC; });
var col = new DockPanel { HorizontalAlignment = HorizontalAlignment.Center };
DockPanel.SetDock(nm, Avalonia.Controls.Dock.Bottom);
col.Children.Add(nm); col.Children.Add(host);
@@ -337,18 +336,18 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
// ======================================================================
// LEFT — wheels
// ======================================================================
- var bendTxt = MonoText("", 7, AmberLit); var modTxt = MonoText("", 7, MutedC);
+ var bendTxt = MonoText("", 7, TxtC); var modTxt = MonoText("", 7, MutedC);
bendTxt.HorizontalAlignment = HorizontalAlignment.Center; modTxt.HorizontalAlignment = HorizontalAlignment.Center;
- common.Add(() => { bendTxt.Text = $"±{BendSt()}\u2009st"; modTxt.Text = $"{G("modwheel") * 100:0}\u2009%"; modTxt.Foreground = G("modwheel") > 0.01f ? AmberLit : MutedC; });
+ common.Add(() => { bendTxt.Text = $"±{BendSt()}\u2009st"; modTxt.Text = $"{G("modwheel") * 100:0}\u2009%"; modTxt.Foreground = G("modwheel") > 0.01f ? TxtC : MutedC; });
var wheelsBody = new DockPanel { LastChildFill = true };
var wTitle = Caps("WHEELS"); wTitle.HorizontalAlignment = HorizontalAlignment.Center; wTitle.Margin = new Thickness(0, 0, 0, 4);
wheelsBody.Children.Add(Docked(wTitle, Avalonia.Controls.Dock.Top));
wheelsBody.Children.Add(Docked(modTxt, Avalonia.Controls.Dock.Bottom));
wheelsBody.Children.Add(Docked(bendTxt, Avalonia.Controls.Dock.Bottom));
wheelsBody.Children.Add(new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 0, 0, 3), Children = {
- VWheel("bend", "PITCH", Amber, spring: true),
- VWheel("modwheel", "MOD", AmberLit, spring: false) } });
- var wheels = new Border { Width = 52, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5), Child = wheelsBody };
+ VWheel("bend", "PITCH", NotaPalette.VizInk, spring: true),
+ VWheel("modwheel", "MOD", NotaPalette.VizInk, spring: false) } });
+ var wheels = new RuleSection { Width = 52, Padding = new Thickness(0, 5), Child = wheelsBody };
DockPanel.SetDock(wheels, Avalonia.Controls.Dock.Left);
// ======================================================================
@@ -394,7 +393,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
string p = $"o{n}";
var g = new Grid { ColumnDefinitions = new ColumnDefinitions(OscCols) };
g.Children.Add(Cell(Lbl(n.ToString(), 10, TxtC, FontWeight.SemiBold), 0, HorizontalAlignment.Left));
- g.Children.Add(Cell(MiniKnob($"{p}oct", Foot, 22, AmberLit), 1, HorizontalAlignment.Left));
+ g.Children.Add(Cell(MiniKnob($"{p}oct", Foot, 22, TxtC), 1, HorizontalAlignment.Left));
g.Children.Add(n == 1 ? Cell(MonoText("master", 8, MutedC), 2, HorizontalAlignment.Left) : Cell(MiniKnob($"{p}freq", Freq, 38, TxtC), 2, HorizontalAlignment.Left));
g.Children.Add(Cell(WaveSel($"{p}wave"), 3));
var jd = new ConsortJackDot(11);
@@ -416,7 +415,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
string[] h = { "#", "OCT", "FREQ", "WAVE", "SYNC / CV" };
for (int i = 0; i < h.Length; i++)
{
- var t = new TextBlock { Text = h[i], FontSize = 7, FontWeight = FontWeight.Bold, Foreground = DimC, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center,
+ var t = new TextBlock { Text = NotaText.Label(h[i]), FontSize = 7, FontWeight = FontWeight.Medium, Foreground = DimC, VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = i == 0 || i == 1 || i == 2 ? HorizontalAlignment.Left : i == h.Length - 1 ? HorizontalAlignment.Right : HorizontalAlignment.Center };
hdr.Children.Add(Col(t, i));
}
@@ -465,7 +464,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
}
Control EnvPanel(string title, string pre, bool amp)
{
- var curve = new PentadEnvCurve { Accent = amp ? TealC : Amber };
+ var curve = new PentadEnvCurve { Accent = amp ? TealC : NotaPalette.VizInk };
var times = MonoText("", 7, Txt2);
cur.Add(() =>
{
@@ -541,7 +540,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
});
var head = new DockPanel { Height = 14, LastChildFill = false, Children = { Docked(Caps(""), Avalonia.Controls.Dock.Left), Docked(times, Avalonia.Controls.Dock.Right) } };
var title = (TextBlock)head.Children[0];
- cur.Add(() => title.Text = On("dlydigital") ? "DELAY · DIGITAL" : "ANALOG DELAY · BBD");
+ cur.Add(() => title.Text = On("dlydigital") ? "Delay · digital" : "Analog delay · BBD");
var graph = new Border { Background = Inset, BorderBrush = BorderIn, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Control, Margin = new Thickness(0, 2, 0, 3), Child = view };
var knobs = Row(0, K("dlytime", "TIME", DlyMs, false, Knob.SizeSecondary, 44), K("dlyspacing", "SPACING", DlySpc, false, Knob.SizeSecondary, 44), K("dlyfb", "FEEDBACK", v => Pct(v), false, Knob.SizeSecondary, 46), K("dlymix", "MIX", v => Pct(v), false, Knob.SizeSecondary, 40));
var opts = new StackPanel { Spacing = 6, VerticalAlignment = VerticalAlignment.Center, Children = { Chips("dlyping", new[] { "Ping", "Stereo" }, new[] { 1f, 0f }), Toggle("dlydigital", "Digital") } };
@@ -567,7 +566,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
Control SeqTab()
{
// length: a draggable number
- var lenTxt = MonoText("", 9, AmberLit);
+ var lenTxt = MonoText("", 9, TxtC);
var lenBox = new Border { Padding = new Thickness(3, 0), Background = Brushes.Transparent, Cursor = new Cursor(StandardCursorType.SizeNorthSouth), Child = lenTxt };
ToolTip.SetTip(lenBox, "Sequence length — drag up / down");
{ bool drag = false; double y0 = 0; float v0 = 0;
@@ -577,7 +576,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
tabReadouts[3].Add(() => lenTxt.Text = $"{SeqLen()}");
// legend = paint brushes
string[] names = { "note", "ratchet", "tie", "rest" };
- IBrush[] cols = { Amber, ChamberInk.Mauve, TealC, NotaPalette.BorderStrong };
+ IBrush[] cols = { NotaPalette.VizInk, ChamberInk.Mauve, TealC, NotaPalette.BorderStrong };
var legend = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 7, VerticalAlignment = VerticalAlignment.Center };
var legItems = new Border[4];
for (int b = 0; b < 4; b++)
@@ -624,7 +623,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
ToolTip.SetTip(clkDot, "Clock out (patch bay)"); ToolTip.SetTip(gateDot, "Seq gate out (patch bay)");
tabReadouts[3].Add(() => { clkDot.Set(PatchedAt(true, 12)); gateDot.Set(PatchedAt(true, 11, 10)); });
var swingSl = HSlider("seqswing", v => $"{50 + v * 25:0}\u2009%", 28); swingSl.Width = 84;
- var rateTxt = MonoText("", 9, AmberLit);
+ var rateTxt = MonoText("", 9, TxtC);
var rateBox = new Border { Background = Brushes.Transparent, Padding = new Thickness(2, 0), Cursor = new Cursor(StandardCursorType.Hand), Child = Glyph.WithChevron(rateTxt, 7) };
ToolTip.SetTip(rateBox, "Step rate (synced to the host tempo)");
tabReadouts[3].Add(() => rateTxt.Text = SeqRates[Sel("seqrate", SeqRates.Length)]);
@@ -816,7 +815,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
g.Children.Add(Caps(cap)); g.Children.Add(Col(c, 1)); if (right != null) g.Children.Add(Col(right, 2));
return g;
}
- var mode = Chips("voicemode", new[] { "MONO", "DUO", "PARA" }, null, 7, Poly);
+ var mode = Chips("voicemode", new[] { "Mono", "Duo", "Para" }, null, 7, Poly);
var body = new StackPanel { Spacing = 1, Children = {
Line("MODE", mode),
Line("VOICES", cellRow),
@@ -873,7 +872,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
tabReadouts[2].Add(() => dlyTxt.Text = $"{(On("dlydigital") ? "digital" : "BBD")} · {(On("dlyping") ? "ping-pong" : "stereo")}");
extras[2] = dlyTxt;
cur = tabReadouts[3];
- extras[3] = Row(6, Chips("seqmode", new[] { "Off", "SEQ", "ARP" }), Caps("OCT"), Chips("arpoct", new[] { "1", "2", "3" }, null, 7, () => Sel("seqmode", 3) != 2));
+ extras[3] = Row(6, Chips("seqmode", new[] { "Off", "Seq", "Arp" }), Caps("OCT"), Chips("arpoct", new[] { "1", "2", "3" }, null, 7, () => Sel("seqmode", 3) != 2));
ToolTip.SetTip(extras[3], "Off · SEQ (steps transposed by the key) · ARP (the held chord over 1–3 octaves)");
cur = saved;
extras[4] = Row(6, ViewSeg(new[] { "Matrix", "Cables" }, () => vs.PatchView, v => { vs.PatchView = v; patchShow(); }), patchCountTxt);
@@ -899,9 +898,9 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
var (centre, selectCentre) = TabFrame(new[] { "Osc · Mix", "Filters · Env", "LFO · Delay", "Seq", "Patch" }, centreHost, CentreBody, false, vs.Centre,
t => { vs.Centre = t; if (t != 4) vs.LastNonPatch = t; extrasHost.Content = extras[t]; Refresh(); }, extrasHost);
var (rightFrame, _) = TabFrame(new[] { "Voices", "Output" }, rightHost, RightBody, true, vs.Right, t => { vs.Right = t; Refresh(); }, null);
- var right = new Border { Width = 172, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Child = rightFrame };
+ var right = new RuleSection { Width = 172, Child = rightFrame };
DockPanel.SetDock(right, Avalonia.Controls.Dock.Right);
- var centreBox = new Border { Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Patch-bay row (collapsed) + overlay
@@ -909,7 +908,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
var overlay = new Border { IsVisible = false, Background = RailBg, Focusable = true };
void OpenOverlay(bool open) { vs.Overlay = open; overlay.IsVisible = open; if (open) { overlay.Focus(); } Refresh(); }
var chipsHost = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 9, VerticalAlignment = VerticalAlignment.Center, ClipToBounds = true };
- var countTxt = MonoText("", 8, AmberLit);
+ var countTxt = MonoText("", 8, TxtC);
var openTxt = new TextBlock { FontSize = 8, Foreground = TxtC, VerticalAlignment = VerticalAlignment.Center };
var openBtn = new Border { Height = 13, Padding = new Thickness(6, 0), CornerRadius = NotaRadius.Badge, Background = OffPill, BorderThickness = new Thickness(1), Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center, Child = openTxt };
ToolTip.SetTip(openBtn, "Open the full patch bay (all 42 points) · on the Patch tab: back to the last panel");
@@ -976,7 +975,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
}
var view = ViewSeg(new[] { "Cables", "Matrix" }, () => 0, v => { if (v == 1) { vs.PatchView = 0; OpenOverlay(false); selectCentre(4); patchShow(); } });
var topGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto,Auto,*,Auto,Auto"), ColumnSpacing = 10 };
- topGrid.Children.Add(Lbl("Patch bay", 10, AmberLit, FontWeight.SemiBold));
+ topGrid.Children.Add(Lbl("Patch bay", 10, TxtC, FontWeight.SemiBold));
topGrid.Children.Add(Col(info, 1)); topGrid.Children.Add(Col(view, 2));
topGrid.Children.Add(Col(Btn("Clear all", ClearAll), 4)); topGrid.Children.Add(Col(Btn("Close", () => OpenOverlay(false)), 5));
var top = new Border { Height = 26, BorderBrush = Border2, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(10, 0), Child = topGrid };
@@ -1022,7 +1021,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
// ======================================================================
// Status strip
// ======================================================================
- string ModeName() => Poly() ? "True poly" : Sel("voicemode", 3) switch { 0 => "MONO", 1 => "DUO", _ => "PARA" };
+ string ModeName() => Poly() ? "True poly" : Sel("voicemode", 3) switch { 0 => "Mono", 1 => "Duo", _ => "Para" };
string FiltModeName() => Sel("filtmode", 3) switch { 0 => "HP/LP series", 1 => "LP/LP parallel stereo", _ => "HP/LP stereo" };
string StatusText()
{
@@ -1080,7 +1079,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5, 5, 5, 4), Children = { wheels, right, centreBox } };
- var main = new DockPanel { LastChildFill = true, Background = RailBg, Children = { status, strip, bodyRow } };
+ var main = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, strip, bodyRow } };
var root = new Panel { Children = { main, overlay } };
refreshAll = () =>
@@ -1107,7 +1106,7 @@ internal sealed class ConsortInstrumentCard : IInstrumentCard
{
bool on = i == sel;
btns[i].Background = on ? TabBg : Brushes.Transparent; btns[i].BorderBrush = on ? Amber : Brushes.Transparent;
- var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? AmberLit : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
+ var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? NotaPalette.TextPrimary : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
void Select(int i) { sel = i; Hi(); host.Content = body(i); changed?.Invoke(i); }
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/FluxInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/FluxInstrumentCard.cs
index f15da066..7b3a74c4 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/FluxInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/FluxInstrumentCard.cs
@@ -4,7 +4,7 @@
// Detail · Devices — built-in Nota Flux editor (instrument kind 11): the vector synth that
// listens to a track, in the 700 × 260 card the almanac draws for it.
//
-// Vector 186 the XY field — four timbre worlds at the corners, the brass dot is the
+// Vector 186 the XY field — four timbre worlds at the corners, the neutral dot is the
// vector, a dashed teal ring is where Motion and React pull it.
// React the sidechain source, a live scope of what the synth hears (envelope,
// transients, tilt) beside the reaction's own level, LISTEN and the TARGET
@@ -14,7 +14,7 @@
// tune and gain; resonance, attack/release and unison follow the vector.
// Status 18 the patch read back in words — the world blend, or what React is doing.
//
-// The four role chromas live only inside the vector field. Brass is the parameter itself;
+// The four role chromas live only inside the vector field. Neutral ink is the parameter itself;
// teal is the reaction and what receives it. Everything is a plugin param → automation /
// persist / clone, and the card follows automation live.
@@ -34,7 +34,7 @@ namespace Nota.App;
internal sealed class FluxInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "VECTOR";
+ public string Subtitle => "Vector";
public double CardWidth => 700;
private const double SideW = 186, HeadH = 20, StatusH = 18;
@@ -101,8 +101,8 @@ internal sealed class FluxInstrumentCard : IInstrumentCard
// ---- shared builders --------------------------------------------------
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking * 1.5, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Note(string t, IBrush? c = null) => new()
@@ -191,7 +191,7 @@ internal sealed class FluxInstrumentCard : IInstrumentCard
if (!pad.Dragging) pad.SetValue(G("vecx"), G("vecy"));
pad.SetGhost(effX, effY, Ghost());
vecReadout.Text = $"x {Coord(G("vecx"))} · y {Coord(G("vecy"))}";
- vecReadout.Foreground = VectorPulled() ? AccentBright : TextSecondary;
+ vecReadout.Foreground = VectorPulled() ? NotaPalette.TealBright : TextSecondary; // teal: the reaction pulls it
bool pulled = VectorPulled();
vecFoot.Text = pulled ? "dashed — where the reaction pulls"
: Ghost() ? "dashed — where motion drifts" : "four timbres · drag the point";
@@ -278,7 +278,7 @@ internal sealed class FluxInstrumentCard : IInstrumentCard
var targetStack = new StackPanel
{
Spacing = 5, VerticalAlignment = VerticalAlignment.Center,
- Children = { Cap("TARGET — what the reaction drives"), targetSeg, targetHint },
+ Children = { Cap("Target — what the reaction drives"), targetSeg, targetHint },
};
string TargetLine() => !live ? "→ assign a source to turn the reaction on" : TargetIdx() switch
{
@@ -421,7 +421,7 @@ internal sealed class FluxInstrumentCard : IInstrumentCard
Grid.SetColumn(macroPanel, 2); body.Children.Add(macroPanel);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
// Live tick: the scope, the pulled vector, transients per bar, then every readout.
void Tick()
@@ -453,11 +453,7 @@ internal sealed class FluxInstrumentCard : IInstrumentCard
private static T Docked<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/GenericInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/GenericInstrumentCard.cs
index bfccef61..eb3cd41a 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/GenericInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/GenericInstrumentCard.cs
@@ -4,6 +4,7 @@
// Detail · Devices — fallback instrument card: an "Open GUI" stub for a built-in with no
// editor. Hosted plug-ins have their own card (PluginCard).
+using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
using static Nota.App.DeviceCardKit;
@@ -20,6 +21,10 @@ internal sealed class GenericInstrumentCard : IInstrumentCard
var gui = TextButton("Open GUI ↗");
gui.PointerPressed += (_, _) => { try { engine.OpenPluginEditor(track, -1); } catch { /* no-op */ } };
var body = new StackPanel { Spacing = 8, VerticalAlignment = VerticalAlignment.Center, Children = { gui } };
- return SimpleCard("Instrument", 170, body);
+ return new Border { Padding = new Thickness(10), Child = body };
}
+
+ // Wrapped by the shared shell like every other instrument (spec 012): name, presets, power slot.
+ public bool BodyOnly => true;
+ public double CardWidth => 170;
}
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/GrainInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/GrainInstrumentCard.cs
index 0b1b7abb..92d216eb 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/GrainInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/GrainInstrumentCard.cs
@@ -20,7 +20,7 @@
// track's meter. On screen on every tab.
// Status 18 the tab read back in words, and the sample, voices and grains live.
//
-// Brass is the parameter itself; teal is variation and scatter (spread, spray, the three
+// Neutral ink is the parameter itself; teal is variation and scatter (spread, spray, the three
// jitters and the grains they make). Drop a sample from the browser to replace the
// procedural default. Everything is a plugin param → automation / persist / clone, and the
// card follows automation live.
@@ -40,7 +40,7 @@ namespace Nota.App;
internal sealed class GrainInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "GRANULAR";
+ public string Subtitle => "Granular";
private const double RailW = 186, TabH = 20, StatusH = 18;
@@ -171,8 +171,8 @@ internal sealed class GrainInstrumentCard : IInstrumentCard
// ---- shared builders --------------------------------------------------
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8) => new()
@@ -231,8 +231,8 @@ internal sealed class GrainInstrumentCard : IInstrumentCard
return row;
}
- // The window shape: four drawn chips in a 2 × 2 block; the chosen one in Brass Wash
- // with a brass edge and a brass curve.
+ // The window shape: four drawn chips in a 2 × 2 block; the chosen one in an accent
+ // wash with an accent edge and curve.
Control ShapeChips()
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto"), RowDefinitions = new RowDefinitions("Auto,Auto"), ColumnSpacing = 4, RowSpacing = 4, VerticalAlignment = VerticalAlignment.Center };
@@ -378,7 +378,7 @@ internal sealed class GrainInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -520,7 +520,7 @@ internal sealed class GrainInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, body },
};
@@ -588,11 +588,7 @@ internal sealed class GrainInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/KeysInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/KeysInstrumentCard.cs
index 7f207904..291422b6 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/KeysInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/KeysInstrumentCard.cs
@@ -16,7 +16,7 @@
// sits in the tab strip.
// • S 260 × 260 — the model chips, the pickup window, HARD · PICKUP · DRIVE · TREM.
//
-// Brass is the parameter itself; teal is modulation depth (vel → hardness, key → bright,
+// Neutral ink is the parameter itself; teal is modulation depth (vel → hardness, key → bright,
// tremolo depth). BodyOnly — the shared shell draws the header (name / preset / A-B / MPE).
using System;
@@ -35,7 +35,7 @@ namespace Nota.App;
internal sealed class KeysInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "ELECTRIC PIANO";
+ public string Subtitle => "Electric piano";
public double WidthFor(IAudioEngine engine, int trackId) => InstrumentView.IsMini(engine, trackId) ? 260 : 700;
@@ -127,11 +127,11 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
static TextBlock Caps(string text, IBrush? ink = null) => new()
{
- Text = text.ToUpperInvariant(), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = ink ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center,
+ Text = NotaText.Label(text), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = ink ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center,
};
- // A section's power dot: brass and glowing when on. Click toggles the param.
+ // A section's power dot: accent and glowing when on. Click toggles the param.
Control PowerDot(string id)
{
var dot = new Ellipse { Width = 7, Height = 7, VerticalAlignment = VerticalAlignment.Center };
@@ -296,7 +296,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
pedalDot.Fill = down ? NotaPalette.Success : NotaPalette.BorderStrong;
pedalPill.BorderBrush = down ? NotaPalette.Success : BorderDef;
pedalTxt.Foreground = down ? TextPrimary : TextTertiary;
- pedalLbl.Text = down ? "PEDAL ↓" : "PEDAL";
+ pedalLbl.Text = down ? "Pedal ↓" : "Pedal";
pedalLbl.Foreground = down ? TextPrimary : TextTertiary;
});
var damper = Col("Damper", VStack(
@@ -309,7 +309,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
for (int i = 0; i < soundCells.Length; i++) { Grid.SetColumn(soundCells[i], i); soundRow.Children.Add(soundCells[i]); }
// ======================= FX tab =========================================
- Border Island(string title, Control body, string? power = null, Control? accessory = null, double width = double.NaN)
+ Decorator Island(string title, Control body, string? power = null, Control? accessory = null, double width = double.NaN)
{
var head = new DockPanel { Height = 18, Margin = new Thickness(6, 0) };
if (accessory is not null) { DockPanel.SetDock(accessory, Dock.Right); head.Children.Add(accessory); }
@@ -323,11 +323,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
grid.Children.Add(new Border { BorderBrush = NotaPalette.GraphBorder, BorderThickness = new Thickness(0, 0, 0, 1), Child = head });
body.Margin = new Thickness(5, 5, 5, 5);
Grid.SetRow(body, 1); grid.Children.Add(body);
- var b = new Border
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = grid,
- };
+ var b = DeviceCardKit.Section(grid);
if (!double.IsNaN(width)) b.Width = width;
return b;
}
@@ -431,7 +427,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
railBottom.Children.Add(voiceInfo);
Grid.SetColumn(railMeter, 1); railBottom.Children.Add(railMeter);
var voicesRow = new DockPanel();
- var vLbl = new TextBlock { Text = "VOICES", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ var vLbl = new TextBlock { Text = "Voices", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
DockPanel.SetDock(vLbl, Dock.Left); voicesRow.Children.Add(vLbl);
voicesChips.HorizontalAlignment = HorizontalAlignment.Right; voicesRow.Children.Add(voicesChips);
var railTop = new StackPanel
@@ -481,7 +477,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
soundRow.IsVisible = tab == 0; fxRow.IsVisible = tab == 1;
@@ -513,7 +509,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
var statusHost = StatusStrip(status, meta);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
ShowTab();
return root;
}
@@ -548,7 +544,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
var statusHost = StatusStrip(status, meta);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, island } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, island } };
refresh();
return root;
}
@@ -565,11 +561,7 @@ internal sealed class KeysInstrumentCard : IInstrumentCard
};
}
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
private static Knob? FindKnob(Control cell)
=> cell is Panel p ? System.Linq.Enumerable.FirstOrDefault(System.Linq.Enumerable.OfType<Knob>(p.Children)) : null;
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/MonolithInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/MonolithInstrumentCard.cs
index b6cbda8f..17d119e0 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/MonolithInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/MonolithInstrumentCard.cs
@@ -26,24 +26,20 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
{
private static readonly IBrush CardBg = NotaPalette.BgApp;
private static readonly IBrush RailBg = NotaPalette.SurfaceInset;
- private static readonly IBrush Panel = NotaPalette.TextOnAccent; // dark ink over an engaged fill
private static readonly IBrush Border2 = NotaPalette.BorderDefault;
private static readonly IBrush BorderIn = NotaPalette.GraphBorder;
private static readonly IBrush Inset = NotaPalette.BgSunken;
private static readonly IBrush TabBg = NotaPalette.SurfaceCard;
private static readonly IBrush Amber = NotaPalette.Accent;
- private static readonly IBrush AmberLit = NotaPalette.AccentBright;
private static readonly IBrush TealC = NotaPalette.Teal;
- private static readonly IBrush RedC = NotaPalette.Accent; // a state, not an alert: red is kept for recording and overload
private static readonly IBrush TxtC = NotaPalette.TextPrimary;
private static readonly IBrush MutedC = NotaPalette.TextTertiary;
private static readonly IBrush Handle = NotaPalette.TextSecondary;
- private static readonly IBrush AmberSubtle = NotaPalette.Wash(NotaPalette.Accent, 0x28);
- private static readonly string[] Feet = { "LO", "32′", "16′", "8′", "4′", "2′" };
+ private static readonly string[] Feet = { "Lo", "32′", "16′", "8′", "4′", "2′" };
public bool BodyOnly => true;
- public string Subtitle => "MONO · MODEL-D";
+ public string Subtitle => "Mono · Model-D";
public Control Build(DeviceCardContext ctx)
{
@@ -59,7 +55,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
var readouts = new List<Action>();
var filtCurve = new MonolithFilterCurve();
- var fEnvCurve = new MonolithEnvCurve { Accent = Amber };
+ var fEnvCurve = new MonolithEnvCurve { Accent = NotaPalette.VizInk };
var aEnvCurve = new MonolithEnvCurve { Accent = TealC };
void Refresh()
@@ -71,8 +67,8 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
}
// ---- shared builders --------------------------------------------------
- Control Lbl(string t, double fs, IBrush c, FontWeight w = FontWeight.Bold)
- => new TextBlock { Text = t, FontSize = fs, FontWeight = w, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
+ Control Lbl(string t, double fs, IBrush c, FontWeight w = FontWeight.SemiBold)
+ => new TextBlock { Text = NotaText.Label(t), FontSize = fs, FontWeight = w, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
Control Row(double sp, params Control[] cs)
{ var s = new StackPanel { Orientation = Orientation.Horizontal, Spacing = sp, VerticalAlignment = VerticalAlignment.Center }; foreach (var c in cs) s.Children.Add(c); return s; }
@@ -142,7 +138,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
// Vertical wheel slider bound to a param (pitch / mod). spring = auto-return to centre.
Control VWheel(string id, string name, Func<double, string> fmt, IBrush? col = null, bool spring = false)
{
- int pi = I(id); var lit = col ?? Amber;
+ int pi = I(id); var lit = col ?? NotaPalette.VizInk;
IBrush grad = NotaPalette.BgSunken;
var trackBar = new Border { Width = 16, Background = grad, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Pill, VerticalAlignment = VerticalAlignment.Stretch };
var mark = new Border { Height = 2, Background = lit, CornerRadius = NotaRadius.Bar, Margin = new Thickness(2, 0) };
@@ -168,11 +164,11 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
host.PointerMoved += (_, e) => { if (drag) From(e); };
host.PointerReleased += (_, e) => { if (drag) { drag = false; if (pi >= 0) engine.EndAutomationWrite(track, AutomationTarget.PluginParam, -1, -1, id); e.Pointer.Capture(null); if (spring) Spring(); } };
host.SizeChanged += (_, _) => Vis(G(id));
- var valTxt = new TextBlock { FontSize = 7, Foreground = lit, HorizontalAlignment = HorizontalAlignment.Center };
+ var valTxt = new TextBlock { FontSize = 7, Foreground = TextSecondary, HorizontalAlignment = HorizontalAlignment.Center };
valTxt.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
readouts.Add(() => { if (!drag) Vis(G(id)); valTxt.Text = fmt(G(id)); });
var col2 = new DockPanel { HorizontalAlignment = HorizontalAlignment.Center };
- var nm = new TextBlock { Text = name, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center };
+ var nm = new TextBlock { Text = NotaText.Label(name), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center };
DockPanel.SetDock(nm, Dock.Bottom); DockPanel.SetDock(valTxt, Dock.Bottom);
col2.Children.Add(valTxt); col2.Children.Add(nm); col2.Children.Add(host);
if (pi >= 0) MidiLearn.Bind(col2, MidiTarget.PluginParam(track, -1, pi), name);
@@ -192,12 +188,12 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
// ======================================================================
// LEFT — wheels column (always visible)
// ======================================================================
- var wheels = new Border { Width = 56, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5),
+ var wheels = new RuleSection { Width = 56, Padding = new Thickness(0, 5),
Child = new DockPanel { LastChildFill = true, Children = {
Head(Lbl("WHEELS", 7, MutedC)),
new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 4, 0, 0), Children = {
VWheel("bend", "PITCH", v => $"{(v - 0.5) * 2 * (2 + G("bendrange") * 10):+0.0;−0.0;0.0}", null, spring: true),
- VWheel("modwheel", "MOD", v => $"{v * 100:0}\u2009%", AmberLit) } } } } };
+ VWheel("modwheel", "MOD", v => $"{v * 100:0}\u2009%", NotaPalette.VizInk) } } } } };
DockPanel.SetDock(wheels, Dock.Left);
Control Head(Control c) { DockPanel.SetDock(c, Dock.Top); ((Control)c).HorizontalAlignment = HorizontalAlignment.Center; return c; }
@@ -241,7 +237,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
{
var hdr = new Grid { ColumnDefinitions = new ColumnDefinitions("14,50,54,*,40"), Height = 12, Margin = new Thickness(4, 0) };
string[] h = { "#", "RANGE", "FREQ", "WAVEFORM", "MOD" };
- for (int i = 0; i < 5; i++) { var t = new TextBlock { Text = h[i], FontSize = 7, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextDisabled, HorizontalAlignment = i == 0 ? HorizontalAlignment.Left : (i == 4 ? HorizontalAlignment.Right : HorizontalAlignment.Center) }; Grid.SetColumn(t, i); hdr.Children.Add(t); }
+ for (int i = 0; i < 5; i++) { var t = new TextBlock { Text = NotaText.Label(h[i]), FontSize = 7, FontWeight = FontWeight.Medium, Foreground = NotaPalette.TextDisabled, HorizontalAlignment = i == 0 ? HorizontalAlignment.Left : (i == 4 ? HorizontalAlignment.Right : HorizontalAlignment.Center) }; Grid.SetColumn(t, i); hdr.Children.Add(t); }
var table = new DockPanel { LastChildFill = true };
DockPanel.SetDock(hdr, Dock.Top);
table.Children.Add(hdr);
@@ -267,7 +263,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
C(K("emph", "EMPHASIS", EmphFmt, false, Knob.SizeSecondary, 48), 1);
C(K("contour", "CONTOUR", v => $"{v * 100:0}\u2009%", true, Knob.SizeSecondary, 44), 2);
var kbd = new StackPanel { Spacing = 2, VerticalAlignment = VerticalAlignment.Center, Children = {
- new TextBlock { Text = "KBD CTRL", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC },
+ new TextBlock { Text = "Kbd ctrl", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = MutedC },
Row(3, Toggle("kbd1", "1/3"), Toggle("kbd2", "2/3")) } };
C(kbd, 3);
var body = new DockPanel { LastChildFill = true, Children = { WithDock(Lbl("FILTER", 7, MutedC), Dock.Top), WithDock(knobs, Dock.Bottom), graph } };
@@ -288,7 +284,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
Control ModifiersTab()
{
var contours = new Grid { RowDefinitions = new RowDefinitions("*,*"), RowSpacing = 4, Margin = new Thickness(6, 2) };
- var c1 = ContourPanel("FILTER CONTOUR", "→ cutoff", fEnvCurve, "f", Amber);
+ var c1 = ContourPanel("FILTER CONTOUR", "→ cutoff", fEnvCurve, "f", TextSecondary);
var c2 = ContourPanel("LOUDNESS CONTOUR", "→ amp", aEnvCurve, "a", TealC);
Grid.SetRow((Control)c2, 1); contours.Children.Add((Control)c1); contours.Children.Add((Control)c2);
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*") };
@@ -304,7 +300,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,42,*"), ColumnSpacing = 6, VerticalAlignment = VerticalAlignment.Center };
var tog = Toggle(onId, ""); Grid.SetColumn(tog, 0);
- var lbl = new TextBlock { Text = name, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center }; Grid.SetColumn(lbl, 1);
+ var lbl = new TextBlock { Text = NotaText.Label(name), FontSize = 7, FontWeight = FontWeight.Medium, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center }; Grid.SetColumn(lbl, 1);
var sl = HSlider(lvlId, "", v => $"{v * 10:0.0}", 0, 22, col); sl.HorizontalAlignment = HorizontalAlignment.Stretch; Grid.SetColumn(sl, 2);
g.Children.Add(tog); g.Children.Add(lbl); g.Children.Add(sl);
return g;
@@ -322,7 +318,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
var ext = HSlider("extlvl", "EXT", v => $"{v * 10:0.0}", 26, 22); ext.HorizontalAlignment = HorizontalAlignment.Stretch; Grid.SetColumn(ext, 1);
nrow.Children.Add(chips); nrow.Children.Add(ext);
R(nrow, 4);
- var fb = new Border { BorderBrush = BorderIn, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(0, 6, 0, 0), Child = MixRow("exton", "feedback", "FEEDBACK", RedC) };
+ var fb = new Border { BorderBrush = BorderIn, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(0, 6, 0, 0), Child = MixRow("exton", "feedback", "FEEDBACK", NotaPalette.VizInk) };
R(fb, 5);
return g;
}
@@ -339,7 +335,7 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
LblRow("BEND", Chips("bendrange", new[] { "±2", "±4", "±5", "±7", "±9", "±12" })) } } } } };
return sp;
}
- Control LblRow(string t, Control c) { c.HorizontalAlignment = HorizontalAlignment.Left; return new Grid { ColumnDefinitions = new ColumnDefinitions("48,*"), Children = { WithCol(new TextBlock { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center }, 0), WithCol(c, 1) } }; }
+ Control LblRow(string t, Control c) { c.HorizontalAlignment = HorizontalAlignment.Left; return new Grid { ColumnDefinitions = new ColumnDefinitions("48,*"), Children = { WithCol(new TextBlock { Text = NotaText.Label(t), FontSize = 7, FontWeight = FontWeight.Medium, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center }, 0), WithCol(c, 1) } }; }
// ---- tab shells -------------------------------------------------------
var centreHost = new ContentControl { VerticalAlignment = VerticalAlignment.Stretch };
@@ -348,15 +344,15 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
Control CentreBody(int t) => t == 1 ? (modTabC ??= ModifiersTab()) : (oscTabC ??= OscTab());
Control RightBody(int t) => t == 1 ? (outTabC ??= OutputTab()) : (mixTabC ??= MixerTab());
- var drift = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, VerticalAlignment = VerticalAlignment.Center, Width = 96, Children = { new TextBlock { Text = "DRIFT", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center }, WithStretch(HSlider("drift", "", v => $"{v * 100:0}\u2009%", 0, 22)) } };
+ var drift = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, VerticalAlignment = VerticalAlignment.Center, Width = 96, Children = { new TextBlock { Text = "Drift", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center }, WithStretch(HSlider("drift", "", v => $"{v * 100:0}\u2009%", 0, 22)) } };
var centre = TabPanel(new[] { "Controllers · Osc Bank", "Modifiers" }, drift, centreHost, CentreBody);
- var right = new Border { Width = 186, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Child = TabInner(new[] { "Mixer", "Output" }, null, rightHost, RightBody, true) };
+ var right = new RuleSection { Width = 186, Child = TabInner(new[] { "Mixer", "Output" }, null, rightHost, RightBody, true) };
DockPanel.SetDock(right, Dock.Right);
// ---- assemble ---------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { wheels, right, centre } };
- var root = new Border { Background = RailBg, Child = bodyRow };
+ var root = new Border { Background = NotaPalette.SurfaceCard, Child = bodyRow };
ctx.SetInstLiveViz(Refresh);
Refresh();
@@ -364,11 +360,11 @@ internal sealed class MonolithInstrumentCard : IInstrumentCard
// local: build the centre tab panel (flex) with an extras control in the tab bar
Control TabPanel(string[] tabs, Control? extras, ContentControl host, Func<int, Control> body)
- => new Border { Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), Child = TabInner(tabs, extras, host, body, false) };
+ => new RuleSection { Margin = new Thickness(5, 0), Child = TabInner(tabs, extras, host, body, false) };
Control TabInner(string[] tabs, Control? extras, ContentControl host, Func<int, Control> body, bool centered)
{
int sel = 0; var btns = new Border[tabs.Length];
- void Hi() { for (int i = 0; i < tabs.Length; i++) { bool on = i == sel; btns[i].Background = on ? TabBg : Brushes.Transparent; btns[i].BorderBrush = on ? Amber : Brushes.Transparent; ((TextBlock)btns[i].Child!).Foreground = on ? AmberLit : MutedC; } }
+ void Hi() { for (int i = 0; i < tabs.Length; i++) { bool on = i == sel; btns[i].Background = on ? TabBg : Brushes.Transparent; btns[i].BorderBrush = on ? Amber : Brushes.Transparent; ((TextBlock)btns[i].Child!).Foreground = on ? TxtC : MutedC; } }
var bar = new StackPanel { Orientation = Orientation.Horizontal };
for (int i = 0; i < tabs.Length; i++)
{ int iv = i; var b = new Border { Padding = new Thickness(10, 0), BorderThickness = new Thickness(0, 0, 0, 2), BorderBrush = Brushes.Transparent, VerticalAlignment = VerticalAlignment.Stretch, HorizontalAlignment = centered ? HorizontalAlignment.Stretch : HorizontalAlignment.Left, Child = new TextBlock { Text = tabs[i], FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center } }; if (centered) b.Width = double.NaN; b.PointerPressed += (_, _) => { sel = iv; Hi(); host.Content = body(iv); }; btns[i] = b; bar.Children.Add(b); }
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/MosaicInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/MosaicInstrumentCard.cs
index 6ea9c0fe..3216e535 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/MosaicInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/MosaicInstrumentCard.cs
@@ -5,7 +5,7 @@
// One device, two sizes (the shell's S / L toggle — the instrument's "view" param):
//
// • L 700 × 260. Centre: a tab panel —
-// Zones the zone map (keys × velocity, the keyboard under it, a brass tick under
+// Zones the zone map (keys × velocity, the keyboard under it, a tick under
// every root), Attack / Release to show the release zones, and the selected
// zone's row: root · layer · round-robin, keys, velocity, fine, gain, pan.
// Drag a tile to move it, an edge to resize; the keyboard plays.
@@ -27,7 +27,7 @@
//
// Samples are referenced, never copied (see MosaicProgram). The program is edited here as a
// MosaicProgram and committed whole (one undo step); a drag previews in the map and commits
-// on release. Brass is the parameter; teal is modulation depth (Vel → Vol, MPE).
+// on release. Neutral ink is the parameter; teal is modulation depth (Vel → Vol, MPE).
using System;
using System.Collections.Generic;
@@ -51,7 +51,7 @@ namespace Nota.App;
internal sealed class MosaicInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "MULTISAMPLE";
+ public string Subtitle => "Multisample";
public double WidthFor(IAudioEngine engine, int trackId) => InstrumentView.IsMini(engine, trackId) ? 260 : 700;
@@ -73,7 +73,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
for (int i = 0; i < pc; i++) if (engine.PluginParamId(trackId, -1, i) == "polyphony") poly = MosaicModel.Poly(engine.PluginParamGet(trackId, -1, i));
if (InstrumentView.IsMini(engine, trackId)) return $"{Math.Max(0, active)}/{poly}";
if (!engine.TryGetMosaicStatus(trackId, out var st) || st.FilesTotal == 0) return $"{Math.Max(0, active)}/{poly}";
- if (st.State == 1) return $"LOADING {(int)Math.Round(100.0 * st.DiskDone / Math.Max(1, st.DiskTotal))} %";
+ if (st.State == 1) return $"Loading {(int)Math.Round(100.0 * st.DiskDone / Math.Max(1, st.DiskTotal))} %";
var ui = Ui(trackId);
string tag = ui.SourceTag;
return $"{tag} · {NotaNum.Bytes(st.RamBytes)}";
@@ -86,7 +86,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
public bool ReleaseView, ReportOpen;
public SfzImportReport? Report;
public bool ReportDismissed;
- public string SourceTag = "FILES";
+ public string SourceTag = "Files";
}
private static readonly Dictionary<int, UiState> States = new();
internal static UiState Ui(int track) => States.TryGetValue(track, out var s) ? s : States[track] = new UiState();
@@ -103,11 +103,11 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
private static string SourceTagOf(MosaicProgram p) => p.SourceKind switch
{
- "sfz" => p.PackId.Length > 0 ? "PACK" : "SFZ",
- "folder" => p.PackId.Length > 0 ? "PACK" : "MULTI",
- "factory" => "BUILT-IN",
- "sample" => "ONE-SHOT",
- _ => p.PackId.Length > 0 ? "PACK" : "MULTI",
+ "sfz" => p.PackId.Length > 0 ? "Pack" : "SFZ",
+ "folder" => p.PackId.Length > 0 ? "Pack" : "Multi",
+ "factory" => "Built-in",
+ "sample" => "One-shot",
+ _ => p.PackId.Length > 0 ? "Pack" : "Multi",
};
public Control Build(DeviceCardContext ctx)
@@ -175,8 +175,8 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
static TextBlock Caps(string t, IBrush? c = null) => new()
{
- Text = t.ToUpperInvariant(), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary, VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8) => new()
{
@@ -243,7 +243,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
return row;
}
- // A raised text button; a latching one turns brass-washed while on.
+ // A raised text button (a primary one in heavier text); a latching one turns accent-washed while on.
Border Button(string text, Action click, string tip, Func<bool>? on = null, Func<bool>? enabled = null, bool primary = false)
{
var tb = new TextBlock { Text = text, FontSize = 8, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
@@ -256,9 +256,9 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
void Paint()
{
bool lit = on?.Invoke() ?? false, ok = enabled?.Invoke() ?? true;
- b.Background = primary && ok ? Brass : lit ? NotaPalette.AccentSubtle : NotaPalette.SurfaceRaised;
- b.BorderBrush = primary && ok ? Brass : lit ? NotaPalette.BorderBrass : BorderDef;
- tb.Foreground = !ok ? TextTertiary : primary ? OnAccent : lit ? AccentBright : NotaPalette.TextStrong;
+ b.Background = lit ? NotaPalette.AccentSubtle : NotaPalette.SurfaceRaised;
+ b.BorderBrush = lit ? NotaPalette.BorderBrass : primary && ok ? NotaPalette.BorderStrong : BorderDef;
+ tb.Foreground = !ok ? TextTertiary : lit ? AccentBright : primary ? TextPrimary : NotaPalette.TextStrong;
tb.FontWeight = primary ? FontWeight.SemiBold : FontWeight.Normal;
b.Cursor = ok ? new Cursor(StandardCursorType.Hand) : Cursor.Default;
}
@@ -418,7 +418,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
// SFZ import banner over the map.
var bannerText = Mono("", TextPrimary, 8);
var bannerDot = new Ellipse { Width = 6, Height = 6, Fill = NotaPalette.Success, VerticalAlignment = VerticalAlignment.Center };
- var reportLink = new TextBlock { Text = "Report", FontSize = 8, Foreground = AccentBright, Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center };
+ var reportLink = new TextBlock { Text = "Report", FontSize = 8, Foreground = TextPrimary, Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center };
var bannerClose = new Glyph(GlyphKind.Close, 7) { Foreground = TextTertiary, Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center };
Action rebuildRail = () => { };
reportLink.PointerPressed += (_, e) => { ui.ReportOpen = !ui.ReportOpen; rebuildRail(); e.Handled = true; };
@@ -447,7 +447,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
? $"This preset uses {prog.Files.Count} samples from the pack. Zone settings are kept, no sound until installed."
: $"None of its {prog.Files.Count} samples were found. Zone settings are kept — point Mosaic at the folder that holds them.";
var buttons = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, HorizontalAlignment = HorizontalAlignment.Center };
- if (pack) buttons.Children.Add(Button("Install pack", () => InstallPackRequested?.Invoke(prog.PackId), "Settings → Downloads → Sample Packs", primary: true));
+ if (pack) buttons.Children.Add(Button("Install pack", () => InstallPackRequested?.Invoke(prog.PackId), "Settings → Downloads → Sample packs", primary: true));
buttons.Children.Add(Button("Locate folder…", () => _ = LocateAsync(), "Pick the folder that holds the samples — Mosaic finds each file in it by its path or its name"));
return new Border
{
@@ -580,7 +580,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
var snapBtn = Button("Snap to zero", SnapAll, "Move Start, End and the loop to the nearest zero crossing", enabled: () => wframes > 1);
var trimBtn = Button("Trim silence", Trim, "Move Start and End to where the sound begins and fades out (−48 dB)", enabled: () => wframes > 1);
snapBtn.HorizontalAlignment = HorizontalAlignment.Stretch; trimBtn.HorizontalAlignment = HorizontalAlignment.Stretch;
- var sampleChip = Mono("", AccentBright, 9);
+ var sampleChip = Mono("", TextPrimary, 9);
readouts.Add(() => sampleChip.Text = Zsel() is { } z ? ZoneChip(z) : "");
var sampleRow = Row(14, (Field("Zone", sampleChip), "Auto"), (Field("Loop", loopSeg), "Auto"), (xfKnob, "Auto"), (zGainKnob, "Auto"), (new Panel(), "*"),
(new StackPanel { Spacing = 3, Children = { snapBtn, trimBtn } }, "Auto"));
@@ -607,9 +607,9 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
return tb;
}
var groupHead = GroupRowGrid();
- foreach (var (c, t, a) in new[] { (0, "GROUP", TextAlignment.Left), (1, "ZONES", TextAlignment.Right), (2, "GAIN", TextAlignment.Right), (3, "TUNE", TextAlignment.Right), (4, "RR", TextAlignment.Right), (5, "RR MODE", TextAlignment.Left), (6, "EXCL", TextAlignment.Right) })
+ foreach (var (c, t, a) in new[] { (0, "Group", TextAlignment.Left), (1, "Zones", TextAlignment.Right), (2, "Gain", TextAlignment.Right), (3, "Tune", TextAlignment.Right), (4, "RR", TextAlignment.Right), (5, "RR mode", TextAlignment.Left), (6, "Excl", TextAlignment.Right) })
{
- var cap = Caps(t); cap.TextAlignment = a; cap.HorizontalAlignment = a == TextAlignment.Left ? HorizontalAlignment.Left : HorizontalAlignment.Right;
+ var cap = Caps(t); cap.Text = t; cap.TextAlignment = a; // as written: RR is an acronym cap.HorizontalAlignment = a == TextAlignment.Left ? HorizontalAlignment.Left : HorizontalAlignment.Right;
Grid.SetColumn(cap, c); groupHead.Children.Add(cap);
}
rebuildGroups = () =>
@@ -623,7 +623,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
var row = GroupRowGrid();
var name = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 5, VerticalAlignment = VerticalAlignment.Center };
name.Children.Add(new TextBlock { Text = gr.Name.Length > 0 ? gr.Name : $"Group {g + 1}", FontSize = 8.5, FontWeight = sel ? FontWeight.SemiBold : FontWeight.Normal, Foreground = sel ? AccentBright : TextPrimary, VerticalAlignment = VerticalAlignment.Center });
- if (IsReleaseGroup(g)) name.Children.Add(new Border { BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge, Padding = new Thickness(3, 0), Child = Mono("TRIG REL", TextTertiary, 7) });
+ if (IsReleaseGroup(g)) name.Children.Add(new Border { BorderBrush = BorderDef, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge, Padding = new Thickness(3, 0), Child = Mono("trig rel", TextTertiary, 7) });
Grid.SetColumn(name, 0); row.Children.Add(name);
Cell(row, 1, ZonesIn(g).ToString(NotaNum.Culture));
Cell(row, 2, DbS(gr.GainDb));
@@ -885,7 +885,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
Control RailHead(string title, Control? right = null, string? sub = null)
{
var head = new Grid { Height = TabH, ColumnDefinitions = new ColumnDefinitions("Auto,*"), Margin = new Thickness(8, 0) };
- var cap = Caps(title); cap.LetterSpacing = NotaType.SectionLabelTracking;
+ var cap = Caps(title);
head.Children.Add(cap);
Control? r = right ?? (sub is null ? null : Mono(sub, TextTertiary, 7));
if (r is not null) { r.HorizontalAlignment = HorizontalAlignment.Right; r.VerticalAlignment = VerticalAlignment.Center; Grid.SetColumn(r, 1); head.Children.Add(r); }
@@ -976,7 +976,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
}
var order = new StackPanel { Spacing = 2 };
for (int i = 0; i < MosaicModel.StealOrder.Length; i++)
- order.Children.Add(new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, Children = { Mono((i + 1).ToString(NotaNum.Culture), AccentBright, 8), new TextBlock { Text = MosaicModel.StealOrder[i], FontSize = 8.5, Foreground = TextPrimary } } });
+ order.Children.Add(new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, Children = { Mono((i + 1).ToString(NotaNum.Culture), TextSecondary, 8), new TextBlock { Text = MosaicModel.StealOrder[i], FontSize = 8.5, Foreground = TextPrimary } } });
var perKey = NumBox(() => MosaicModel.PerKey(G("perkey")).ToString(NotaNum.Culture), d => SetP("perkey", (MosaicModel.PerKey(G("perkey")) - 1 + d) / 3.0),
() => SetP("perkey", Def("perkey")), 30, "How many strikes of one key may ring together");
var fade = NumBox(() => NotaNum.Unit(MosaicModel.OldFadeMs(G("oldfade")), "0", "ms"), d => SetP("oldfade", MosaicModel.OldFadeNorm(MosaicModel.OldFadeMs(G("oldfade")) + d)),
@@ -1031,7 +1031,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
voicesTxt.Text = $"{snap.Voices} / {Poly()}";
});
var pedalRow = new Grid { ColumnDefinitions = new ColumnDefinitions("50,Auto,*"), ColumnSpacing = 4 };
- var pl = new TextBlock { Text = "PEDAL", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ var pl = new TextBlock { Text = "Pedal", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
pedalRow.Children.Add(pl);
Grid.SetColumn(pedalPill, 1); pedalRow.Children.Add(pedalPill);
voicesTxt.HorizontalAlignment = HorizontalAlignment.Right;
@@ -1071,7 +1071,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
var seq = NumBox(() => gr.SeqLen.ToString(NotaNum.Culture), d => gr.SeqLen = Math.Clamp(gr.SeqLen + d, 1, 16), () => gr.SeqLen = 1, 36,
"Round-robin steps: the group's zones take turns 1 … N (each zone's step is set by its file)", () => { Commit(); rebuildGroups(); });
var seqRow = new Grid { ColumnDefinitions = new ColumnDefinitions("50,Auto") };
- seqRow.Children.Add(new TextBlock { Text = "SEQ LEN", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
+ seqRow.Children.Add(new TextBlock { Text = "Seq len", FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
Grid.SetColumn(seq, 1); seqRow.Children.Add(seq);
var rrSeg = Segments(new[] { "Sequential", "Random", "No repeat" }, () => gr.RrMode, iv => { gr.RrMode = iv; Commit(); rebuildGroups(); }, out var rrSync, fill: true, padX: 3, fontSize: 7.5);
readouts.Add(rrSync);
@@ -1210,7 +1210,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
body.Children.Add(tabPanel);
Grid.SetColumn(rail, 1); body.Children.Add(rail);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
HookDrop(root, dropLayer);
bool lastLoading = Loading(), lastMissing = AllMissing();
@@ -1222,7 +1222,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
pages[i].IsVisible = on;
}
@@ -1283,7 +1283,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
var dash = new Rectangle
{
Stroke = AccentBright, StrokeThickness = 1.2, StrokeDashArray = new Avalonia.Collections.AvaloniaList<double> { 4, 3 },
- RadiusX = 6, RadiusY = 6, Fill = NotaPalette.Wash(NotaPalette.SurfaceCard, 0xE6),
+ RadiusX = NotaRadius.ControlValue, RadiusY = NotaRadius.ControlValue, Fill = NotaPalette.Wash(NotaPalette.SurfaceCard, 0xE6),
};
var box = new Panel
{
@@ -1415,11 +1415,7 @@ internal sealed class MosaicInstrumentCard : IInstrumentCard
return list;
}
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
private static Border HeaderStrip(Control child) => new()
{
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/OperatorInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/OperatorInstrumentCard.cs
index 28bb9207..4baa84ef 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/OperatorInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/OperatorInstrumentCard.cs
@@ -17,7 +17,7 @@
// and the track's meter) or Env (one operator's ADSR, drawn and draggable,
// with key and velocity tracking).
//
-// Brass is a carrier — what reaches the output; teal is a modulator. Everything is a
+// Neutral ink is a carrier — what reaches the output; teal is a modulator. Everything is a
// plugin param → automation / persist / clone.
using System;
@@ -126,8 +126,8 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
// ---- shared builders --------------------------------------------------
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8)
@@ -212,7 +212,7 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
var bendWheel = Wheel("bend", 0.5, true, out _);
var modWheel = Wheel("modwheel", 0, false, out _);
- var bendVal = Mono("", AccentBright, NotaType.KnobValue);
+ var bendVal = Mono("", TextPrimary, NotaType.KnobValue);
var modVal = Mono("", TextSecondary, NotaType.KnobValue);
bendVal.HorizontalAlignment = modVal.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
@@ -221,9 +221,9 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
double semis = (G("bend") - 0.5) * 2 * range;
bool centred = Math.Abs(semis) < 0.05;
bendVal.Text = centred ? $"±{range} st" : NotaNum.Unit(semis, "+0.0;−0.0;0", "st");
- bendVal.Foreground = centred ? TextSecondary : AccentBright;
+ bendVal.Foreground = centred ? TextSecondary : TextPrimary;
modVal.Text = NotaNum.Pct(G("modwheel"));
- modVal.Foreground = G("modwheel") > 1e-3f ? AccentBright : TextSecondary;
+ modVal.Foreground = G("modwheel") > 1e-3f ? TextPrimary : TextSecondary;
});
var wheelPair = new Grid { ColumnDefinitions = new ColumnDefinitions("*,*"), VerticalAlignment = VerticalAlignment.Stretch };
@@ -278,16 +278,16 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
};
var role = new TextBlock
{
- FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.KnobLabelTracking,
+ FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
VerticalAlignment = VerticalAlignment.Center,
};
readouts.Add(() =>
{
var tgt = OperatorTopo.Algo[AlgoIdx()];
bool carrier = tgt[op] == 4;
- var ink = carrier ? AccentBright : Teal;
- role.Text = carrier ? "OUT" : "→ " + OperatorTopo.Names[tgt[op]];
- role.Foreground = ink; letter.Foreground = ink; bar.Background = carrier ? Brass : Teal;
+ var ink = carrier ? NotaPalette.VizInk : Teal;
+ role.Text = carrier ? "out" : "→ " + OperatorTopo.Names[tgt[op]];
+ role.Foreground = ink; letter.Foreground = ink; bar.Background = carrier ? NotaPalette.VizInk : Teal;
});
// A hairline under each row, drawn behind its cells across the full width.
@@ -403,7 +403,7 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -560,11 +560,11 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
string p = OpId[envOp];
var tgt = OperatorTopo.Algo[AlgoIdx()];
bool carrier = tgt[envOp] == 4;
- env.Accent = carrier ? AccentBright : Teal;
+ env.Accent = carrier ? NotaPalette.VizInk : Teal;
env.Target($"{OperatorTopo.Names[envOp]} ENV",
(I(p + "atk"), p + "atk"), (I(p + "dec"), p + "dec"), (I(p + "sus"), p + "sus"), (I(p + "rel"), p + "rel"));
envRoleText.Text = carrier ? "carrier → out" : "mod → " + OperatorTopo.Names[tgt[envOp]];
- envRoleText.Foreground = carrier ? AccentBright : Teal;
+ envRoleText.Foreground = carrier ? TextPrimary : Teal;
for (int o = 0; o < 4; o++)
for (int s = 0; s < 4; s++) stageCells[o, s].IsVisible = o == envOp;
for (int i = 0; i < 4; i++)
@@ -572,7 +572,7 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
bool on = i == envOp;
bool carr = tgt[i] == 4;
opCells[i].Background = on ? (carr ? Brass : Teal) : Brushes.Transparent;
- opTexts[i].Foreground = on ? OnAccent : carr ? AccentBright : Teal;
+ opTexts[i].Foreground = on ? OnAccent : carr ? TextPrimary : Teal;
opTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
};
@@ -602,7 +602,7 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
bool on = i == railTab;
railCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
railCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- railTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ railTexts[i].Foreground = on ? TextPrimary : TextTertiary;
railTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
railBodies[i].IsVisible = on;
}
@@ -677,7 +677,7 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, body },
};
@@ -697,11 +697,7 @@ internal sealed class OperatorInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/PendulumInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/PendulumInstrumentCard.cs
index beddaccd..5a54f2d2 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/PendulumInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/PendulumInstrumentCard.cs
@@ -20,7 +20,7 @@
// Humanize / Reset on Voice.
//
// Everything live comes from the engine's telemetry (PendulumModel), so the lanes are the
-// balls the audio thread is actually swinging. Brass is the parameter, teal is where a
+// balls the audio thread is actually swinging. Neutral ink is the parameter, teal is where a
// ball is going and the spread (modulation). Every control is a plugin param →
// automation / persist / clone, and the card follows automation live.
@@ -40,7 +40,7 @@ namespace Nota.App;
internal sealed class PendulumInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "GEN KEYS";
+ public string Subtitle => "Gen keys";
public double CardWidth => 700;
public string? VoiceLabel(IAudioEngine engine, int trackId, int active)
@@ -86,14 +86,14 @@ internal sealed class PendulumInstrumentCard : IInstrumentCard
var lanes = new PendulumLanesView { VerticalAlignment = VerticalAlignment.Stretch };
ToolTip.SetTip(lanes, "One lane per ball: x is pitch, low to high. Crossing a chord degree plays that note; teal shows the wall ahead");
var bar = new PendulumBarView { Height = BarH };
- ToolTip.SetTip(bar, "The bar: generated notes land on the 1/16 grid — brass this bar, deep brass the last bar ahead of the playhead");
+ ToolTip.SetTip(bar, "The bar: generated notes land on the 1/16 grid — this bar in neutral ink with the note just played in accent, the last bar dimmer ahead of the playhead");
var ballList = new PendulumBallList();
var voiceBars = new PendulumVoiceBars { VerticalAlignment = VerticalAlignment.Center };
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 7) => new()
@@ -220,7 +220,7 @@ internal sealed class PendulumInstrumentCard : IInstrumentCard
return row;
}
- // A rail button: raised at rest; a latching one turns brass-washed while on.
+ // A rail button: raised at rest; a latching one turns accent-washed while on.
Border RailButton(string text, Action click, Func<bool>? on = null, string? id = null, double height = 16)
{
var tb = new TextBlock
@@ -357,7 +357,7 @@ internal sealed class PendulumInstrumentCard : IInstrumentCard
var tabPanel = SectionBox(tabGrid);
// ---- rail · the balls ---------------------------------------------------------
- var railCap = Cap("BALLS"); railCap.LetterSpacing = NotaType.SectionLabelTracking; railCap.Margin = new Thickness(8, 0, 0, 0);
+ var railCap = Cap("BALLS"); railCap.Margin = new Thickness(8, 0, 0, 0);
var railSub = Mono("rate · phase · note", TextTertiary); railSub.HorizontalAlignment = HorizontalAlignment.Right; railSub.Margin = new Thickness(0, 0, 8, 0);
var railHead = new Grid { Height = TabH, ColumnDefinitions = new ColumnDefinitions("Auto,*") };
railHead.Children.Add(railCap);
@@ -573,7 +573,7 @@ internal sealed class PendulumInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -602,7 +602,7 @@ internal sealed class PendulumInstrumentCard : IInstrumentCard
Grid.SetColumn(rail, 1); body.Children.Add(rail);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
ctx.AddDeviceRefresher(Live);
ctx.SetInstLiveViz(Refresh);
@@ -612,11 +612,7 @@ internal sealed class PendulumInstrumentCard : IInstrumentCard
}
// A section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/PentadInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/PentadInstrumentCard.cs
index 234c5633..c4591144 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/PentadInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/PentadInstrumentCard.cs
@@ -28,13 +28,11 @@ namespace Nota.App;
internal sealed class PentadInstrumentCard : IInstrumentCard
{
private static readonly IBrush RailBg = NotaPalette.SurfaceInset;
- private static readonly IBrush Panel = NotaPalette.TextOnAccent; // dark ink over an engaged fill
private static readonly IBrush Border2 = NotaPalette.BorderDefault;
private static readonly IBrush BorderIn = NotaPalette.GraphBorder;
private static readonly IBrush Inset = NotaPalette.BgSunken;
private static readonly IBrush TabBg = NotaPalette.SurfaceCard;
private static readonly IBrush Amber = NotaPalette.Accent;
- private static readonly IBrush AmberLit = NotaPalette.AccentBright;
private static readonly IBrush TealC = NotaPalette.Teal;
private static readonly IBrush TxtC = NotaPalette.TextPrimary;
private static readonly IBrush Txt2 = NotaPalette.TextSecondary;
@@ -42,13 +40,12 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
private static readonly IBrush DimC = NotaPalette.TextDisabled;
private static readonly IBrush Handle = NotaPalette.TextSecondary;
private static readonly IBrush OffPill = NotaPalette.SurfaceRaised;
- private static readonly IBrush AmberSubtle = NotaPalette.AccentSubtle;
private static readonly string[] Feet = { "32′", "16′", "8′", "4′" };
private static readonly string[] SyncNames = { "8 bar", "4 bar", "2 bar", "1 bar", "1/2", "1/4.", "1/4", "1/8.", "1/4T", "1/8", "1/8T", "1/16", "1/16T", "1/32" };
public bool BodyOnly => true;
- public string Subtitle => "ANALOG POLY";
+ public string Subtitle => "Analog poly";
public string? VoiceLabel(IAudioEngine engine, int trackId, int active)
{
@@ -84,7 +81,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
var readouts = new List<Action>();
var scope = new float[32];
var filtCurve = new PentadFilterCurve();
- var fEnvCurve = new PentadEnvCurve { Accent = Amber };
+ var fEnvCurve = new PentadEnvCurve { Accent = NotaPalette.VizInk };
var aEnvCurve = new PentadEnvCurve { Accent = TealC };
var voiceStrips = new List<PentadVoiceStrip>();
var meterL = new PentadLevelBar { Vertical = true, Width = 11, Height = 56 };
@@ -113,9 +110,9 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
}
// ---- small builders --------------------------------------------------------
- static TextBlock Lbl(string t, double fs, IBrush c, FontWeight w = FontWeight.Bold)
- => new() { Text = t, FontSize = fs, FontWeight = w, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
- static TextBlock Caps(string t) => new() { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center, LetterSpacing = 0.8 };
+ static TextBlock Lbl(string t, double fs, IBrush c, FontWeight w = FontWeight.SemiBold)
+ => new() { Text = NotaText.Label(t), FontSize = fs, FontWeight = w, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
+ static TextBlock Caps(string t) => new() { Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = MutedC, VerticalAlignment = VerticalAlignment.Center };
static TextBlock MonoText(string t, double fs, IBrush c)
{ var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
static StackPanel Row(double sp, params Control[] cs)
@@ -176,7 +173,9 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
Control SliderRow(string label, string id, Func<double, string> fmt, double labW = 38, double valW = 24, Func<bool>? dim = null, List<Action>? into = null)
{
var g = new Grid { ColumnDefinitions = new ColumnDefinitions($"{labW},*"), VerticalAlignment = VerticalAlignment.Center };
- g.Children.Add(Caps(label)); g.Children.Add(Col(HSlider(id, fmt, valW, dim, into), 1));
+ var cap = Caps(label);
+ if (label.StartsWith("AT ")) cap.Text = "AT" + NotaText.Label(label)[2..]; // aftertouch: an acronym Label would lowercase
+ g.Children.Add(cap); g.Children.Add(Col(HSlider(id, fmt, valW, dim, into), 1));
return g;
}
@@ -209,8 +208,8 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
host.PointerMoved += (_, e) => { if (drag) From(e); };
host.PointerReleased += (_, e) => { if (drag) { drag = false; if (pi >= 0) engine.EndAutomationWrite(track, AutomationTarget.PluginParam, -1, -1, id); e.Pointer.Capture(null); if (spring) Spring(); } };
host.SizeChanged += (_, _) => Vis(G(id));
- var nm = new TextBlock { Text = name, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center };
- readouts.Add(() => { if (!drag) Vis(G(id)); bool live = Math.Abs(G(id) - (spring ? 0.5f : 0f)) > 0.01f; nm.Foreground = live ? AmberLit : MutedC; });
+ var nm = new TextBlock { Text = NotaText.Label(name), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = MutedC, HorizontalAlignment = HorizontalAlignment.Center };
+ readouts.Add(() => { if (!drag) Vis(G(id)); bool moved = Math.Abs(G(id) - (spring ? 0.5f : 0f)) > 0.01f; nm.Foreground = moved ? TxtC : MutedC; });
var col = new DockPanel { HorizontalAlignment = HorizontalAlignment.Center };
DockPanel.SetDock(nm, Avalonia.Controls.Dock.Bottom);
col.Children.Add(nm); col.Children.Add(host);
@@ -236,18 +235,18 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
// ======================================================================
// LEFT — wheels
// ======================================================================
- var bendTxt = MonoText("", 7, AmberLit); var modTxt = MonoText("", 7, MutedC);
+ var bendTxt = MonoText("", 7, TxtC); var modTxt = MonoText("", 7, MutedC);
bendTxt.HorizontalAlignment = HorizontalAlignment.Center; modTxt.HorizontalAlignment = HorizontalAlignment.Center;
- readouts.Add(() => { bendTxt.Text = $"±{BendSt()}\u2009st"; modTxt.Text = $"{G("modwheel") * 100:0}\u2009%"; modTxt.Foreground = G("modwheel") > 0.01f ? AmberLit : MutedC; });
+ readouts.Add(() => { bendTxt.Text = $"±{BendSt()}\u2009st"; modTxt.Text = $"{G("modwheel") * 100:0}\u2009%"; modTxt.Foreground = G("modwheel") > 0.01f ? TxtC : MutedC; });
var wheelsBody = new DockPanel { LastChildFill = true };
var wTitle = Caps("WHEELS"); wTitle.HorizontalAlignment = HorizontalAlignment.Center; wTitle.Margin = new Thickness(0, 0, 0, 4);
wheelsBody.Children.Add(Docked(wTitle, Avalonia.Controls.Dock.Top));
wheelsBody.Children.Add(Docked(modTxt, Avalonia.Controls.Dock.Bottom));
wheelsBody.Children.Add(Docked(bendTxt, Avalonia.Controls.Dock.Bottom));
wheelsBody.Children.Add(new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, 0, 0, 3), Children = {
- VWheel("bend", "PITCH", v => "", Amber, spring: true),
- VWheel("modwheel", "MOD", v => "", AmberLit, spring: false) } });
- var wheels = new Border { Width = 56, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Padding = new Thickness(0, 5), Child = wheelsBody };
+ VWheel("bend", "PITCH", v => "", NotaPalette.VizInk, spring: true),
+ VWheel("modwheel", "MOD", v => "", NotaPalette.VizInk, spring: false) } });
+ var wheels = new RuleSection { Width = 56, Padding = new Thickness(0, 5), Child = wheelsBody };
DockPanel.SetDock(wheels, Avalonia.Controls.Dock.Left);
// ======================================================================
@@ -279,7 +278,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
string[] h = { "OSC", "OCT", "SEMI", "FINE", "SHAPE · PULSE WIDTH", "OPTIONS" };
for (int i = 0; i < h.Length; i++)
{
- var t = new TextBlock { Text = h[i], FontSize = 7, FontWeight = FontWeight.Bold, Foreground = DimC, LetterSpacing = 0.8, VerticalAlignment = VerticalAlignment.Center,
+ var t = new TextBlock { Text = NotaText.Label(h[i]), FontSize = 7, FontWeight = FontWeight.Medium, Foreground = DimC, VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = i == 0 ? HorizontalAlignment.Left : i == h.Length - 1 ? HorizontalAlignment.Right : HorizontalAlignment.Center };
hdr.Children.Add(Col(t, i));
}
@@ -384,7 +383,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
SliderRow("VEL → AMP", "velamp", v => Pct(v), 52, 30),
Col(SliderRow("VEL → FILT", "velfilt", v => Pct(v), 52, 30), 1) } };
var at = new Grid { ColumnDefinitions = new ColumnDefinitions("*,*"), ColumnSpacing = 12, Height = 18, Children = {
- SliderRow("AT → CUT", "atcutoff", v => Pct(v), 52, 30),
+ SliderRow("AT → cut", "atcutoff", v => Pct(v), 52, 30),
Col(SliderRow("AT → LFO", "atlfo", v => Pct(v), 52, 30), 1) } };
var routes = new StackPanel { Spacing = 1, Children = {
RouteRow("Filter env", "pmenv", true, Dests),
@@ -429,7 +428,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
{
bool UniOff() => G("voicemode") < 0.25f && G("unison") < 0.25f;
var noiseType = Chips("noisecolor", new[] { "White", "Pink" }); noiseType.Margin = new Thickness(24, 0, 0, 0);
- var uni = Row(6, new TextBlock { Text = "UNISON", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, Width = 38, VerticalAlignment = VerticalAlignment.Center }, Chips("unison", new[] { "Off", "×2", "×5" }));
+ var uni = Row(6, new TextBlock { Text = "Unison", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = MutedC, Width = 38, VerticalAlignment = VerticalAlignment.Center }, Chips("unison", new[] { "Off", "×2", "×5" }));
var det = SliderRow("DETUNE", "unidetune", v => $"{v * 50:0}\u2009c", 38, 26, UniOff);
var sum = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), ColumnSpacing = 6, Children = { Caps("SUM"), Col(sumBar, 1), Col(sumTxt, 2) } };
var g = new Grid { RowDefinitions = new RowDefinitions("*,*,*,*,Auto,*,*,*") };
@@ -446,7 +445,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
new StackPanel { Spacing = 2, Children = { meterR, Center(Lbl("R", 7, MutedC, FontWeight.Normal)) } }, scale);
meters.VerticalAlignment = VerticalAlignment.Top;
var top = Row(10, K("volume", "VOLUME", VolDb, false, Knob.SizeMain, 54), meters);
- var bend = Row(6, new TextBlock { Text = "BEND", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = MutedC, Width = 38, VerticalAlignment = VerticalAlignment.Center },
+ var bend = Row(6, new TextBlock { Text = "Bend", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = MutedC, Width = 38, VerticalAlignment = VerticalAlignment.Center },
Chips("bendrange", new[] { "2", "5", "7", "12" }, new[] { 1 / 11f, 4 / 11f, 6 / 11f, 1f }), Lbl("st", 7, MutedC, FontWeight.Normal));
// Velocity → filter: a quick switch over the Velocity Filter amount (0 ↔ 50 %).
var velF = Switch("Vel → filter", () => G("velfilt") > 0.001f, () => { SetP("velfilt", G("velfilt") > 0.001f ? 0f : 0.5f); Refresh(); }, out var velSync);
@@ -491,9 +490,9 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
var statusLeft = new TextBlock { FontSize = 8, Foreground = Txt2, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
var centre = TabFrame(new[] { "Oscillators", "Filter · Amp", "Poly Mod" }, centreHost, CentreBody, false, t => { centreTab = t; extrasHost.Content = extras[t]; Refresh(); }, extrasHost);
var rightFrame = TabFrame(new[] { "Mixer", "Output" }, rightHost, RightBody, true, null, null);
- var right = new Border { Width = 186, Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Child = rightFrame };
+ var right = new RuleSection { Width = 186, Child = rightFrame };
DockPanel.SetDock(right, Avalonia.Controls.Dock.Right);
- var centreBox = new Border { Background = Panel, BorderBrush = Border2, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, Margin = new Thickness(5, 0), Child = centre };
+ var centreBox = new RuleSection { Margin = new Thickness(5, 0), Child = centre };
// ======================================================================
// Status strip + Voice setup flyout
@@ -569,7 +568,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
// ---- assemble ---------------------------------------------------------------
var bodyRow = new DockPanel { LastChildFill = true, Margin = new Thickness(5), Children = { wheels, right, centreBox } };
- var root = new DockPanel { LastChildFill = true, Background = RailBg, Children = { status, bodyRow } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { status, bodyRow } };
ctx.SetInstLiveViz(Refresh);
Refresh();
@@ -585,7 +584,7 @@ internal sealed class PentadInstrumentCard : IInstrumentCard
{
bool on = i == sel;
btns[i].Background = on ? TabBg : Brushes.Transparent; btns[i].BorderBrush = on ? Amber : Brushes.Transparent;
- var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? AmberLit : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
+ var tb = (TextBlock)btns[i].Child!; tb.Foreground = on ? NotaPalette.TextPrimary : MutedC; tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
var bar = centered ? (Panel)new UniformGrid { Rows = 1 } : new StackPanel { Orientation = Orientation.Horizontal };
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/PhysicalInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/PhysicalInstrumentCard.cs
index f460e493..5ad6d43f 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/PhysicalInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/PhysicalInstrumentCard.cs
@@ -16,7 +16,7 @@
// Rail 186 Output: Poly / Mono, tune, fine and note-off rows, volume, pan and the
// track's meter.
//
-// Brass is the parameter itself; teal is modulation. Everything is a plugin param →
+// Neutral ink is the parameter itself; teal is modulation. Everything is a plugin param →
// automation / persist / clone, and the card follows automation live.
using System;
@@ -34,7 +34,7 @@ namespace Nota.App;
internal sealed class PhysicalInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "MODAL";
+ public string Subtitle => "Modal";
public double CardWidth => 700;
public string? VoiceLabel(IAudioEngine engine, int trackId, int active)
@@ -91,8 +91,8 @@ internal sealed class PhysicalInstrumentCard : IInstrumentCard
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8) => new()
@@ -121,7 +121,7 @@ internal sealed class PhysicalInstrumentCard : IInstrumentCard
double f0 = n > 2 && scope[2] > 0 ? scope[2] : 261.63;
string pre = bank == 0 ? "r1" : "r2";
int audible = PhysicalModel.AudiblePartials(mine, f0, sr);
- partials.Set($"PARTIALS · {TypeWord(pre).ToUpperInvariant()}", mine, r2 ? other : Array.Empty<(double, double, double)>(),
+ partials.Set($"Partials · {TypeWord(pre).ToLowerInvariant()}", mine, r2 ? other : Array.Empty<(double, double, double)>(),
sr * 0.49 / f0, $"{audible} partials · inharm {NotaNum.Pct(G(pre + "inharm"))}", bank == 1 && !r2);
}
@@ -372,7 +372,7 @@ internal sealed class PhysicalInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -515,7 +515,7 @@ internal sealed class PhysicalInstrumentCard : IInstrumentCard
Grid.SetColumn(rail, 1); body.Children.Add(rail);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
ctx.SetInstLiveViz(Refresh);
showTab();
@@ -523,11 +523,7 @@ internal sealed class PhysicalInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/RhythmInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/RhythmInstrumentCard.cs
index 469a45bf..047575b2 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/RhythmInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/RhythmInstrumentCard.cs
@@ -22,8 +22,9 @@
// PERFORM 186 Swing · Human · Accent (teal — they shape the playing, not the sound),
// Master and Glue (the bus compressor), the output meter.
// STEP a full-width strip: the selected voice's sixteen steps in bank A–D, a
-// velocity lane under them. Brass is the step, bright brass the accent, a
-// brass outline a quiet step; teal is the playhead and the velocity.
+// velocity lane under them. An on step is accent (a toggle that is on), a
+// brighter one the accent step, an outline a quiet step; teal is the playhead
+// and the velocity.
// status what the voice is and where its steps are · voices · rate · tempo · CPU.
//
// Every knob is a plugin param → automation / persist / clone, followed live. The steps are
@@ -49,7 +50,7 @@ namespace Nota.App;
internal sealed class RhythmInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "DRUM MACHINE";
+ public string Subtitle => "Drum machine";
public double CardWidth => 700;
public string? VoiceLabel(IAudioEngine engine, int trackId, int active) => $"{Math.Max(0, active)}/{RM.Voices}";
@@ -113,8 +114,8 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.SectionLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 7) => new()
@@ -163,7 +164,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
return row;
}
- // A small raised button; a latching one turns brass-washed while on.
+ // A small raised button; a latching one turns accent-washed while on.
Border SmallButton(Control content, TextBlock label, Action click, Func<bool>? on = null)
{
var b = new Border
@@ -249,7 +250,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
Foreground = on ? AccentBright : TextPrimary, VerticalAlignment = VerticalAlignment.Center,
TextTrimming = TextTrimming.CharacterEllipsis, Margin = new Thickness(5, 0, 4, 0),
};
- var tag = Mono(isSample[v] ? "SMP" : "SYN", on ? AccentBright : TextTertiary);
+ var tag = Mono(isSample[v] ? "smp" : "syn", on ? AccentBright : TextTertiary);
var fxTag = Mono(engine.RhythmVoiceDeviceCount(track, v) > 0 ? "fx" : "", on ? AccentBright : TextTertiary);
fxTag.Margin = new Thickness(0, 0, 3, 0);
var row = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto,Auto"), Margin = new Thickness(5, 0) };
@@ -320,11 +321,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
}, out _, padX: 6, fontSize: 7);
ToolTip.SetTip(srcSeg, "Synth: the voice's own engine · Sample: a loaded one-shot (loads one if the voice has none)");
- var folder = new Avalonia.Controls.Shapes.Path
- {
- Data = Geometry.Parse("M1 3.5 L4.5 3.5 L5.6 2 L11 2 L11 10 L1 10 Z"), Stroke = NotaPalette.TextStrong, StrokeThickness = 1.2,
- Width = 7, Height = 7, Stretch = Stretch.Uniform, VerticalAlignment = VerticalAlignment.Center,
- };
+ var folder = new Glyph(GlyphKind.Folder, 8) { Foreground = NotaPalette.TextStrong };
var fileText = new TextBlock
{
Text = sampleMode ? sampleName : "Load file…", FontSize = 7, FontWeight = FontWeight.SemiBold, MaxWidth = 90,
@@ -333,7 +330,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
if (sampleMode) fileText.FontFamily = NotaFonts.MonoFamily;
var fileBtn = SmallButton(new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, Children = { folder, fileText } }, fileText,
() => LoadSample(kit, sel), () => sampleMode);
- readouts.Add(() => folder.Stroke = sampleMode ? AccentBright : NotaPalette.TextStrong);
+ readouts.Add(() => folder.Foreground = sampleMode ? NotaPalette.TextPrimary : NotaPalette.TextStrong);
ToolTip.SetTip(fileBtn, sampleMode ? $"{sampleName} — click to load another file" : "Load a one-shot into this voice (or drop a file on the voice)");
var voiceHead = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, Margin = new Thickness(7, 0), VerticalAlignment = VerticalAlignment.Center };
@@ -414,7 +411,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
string secs = sampleSecs > 0 ? " · " + NotaNum.Unit((en - st) * sampleSecs, "0.00", "s") : "";
sv.Set(sampleName, Hue(sel), st, en, G(P("reverse")) >= 0.5f, posSel, $"{RM.Pct(st)} → {RM.Pct(en)}{secs}");
});
- ToolTip.SetTip(sv, "Drag the brass lines to set Start and End · double-click to load another file");
+ ToolTip.SetTip(sv, "Drag the Start and End lines to set them · double-click to load another file");
AcceptDrops(sv, sel, _ => { });
graph = sv;
}
@@ -709,7 +706,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
Grid.SetRow(steps, 1); body.Children.Add(steps);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
LoadStrip(); PaintBanks();
ctx.AddDeviceRefresher(Live);
@@ -848,8 +845,8 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
}
}
- // A section: card ground, hairline, radius 6, with an 18px header strip.
- private static Border Section(Control head, Control body)
+ // A section: a rule-divided area of the card, with an 18px header strip.
+ private static Decorator Section(Control head, Control body)
{
var headHost = new Border { Height = HeadH, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Child = head };
var g = new Grid { RowDefinitions = new RowDefinitions("Auto,*") };
@@ -858,11 +855,7 @@ internal sealed class RhythmInstrumentCard : IInstrumentCard
return SectionBox(g);
}
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
/// <summary>Row definitions that put a caption for each dB mark at its place on the meter.</summary>
private static IEnumerable<string> ScaleRows(params double[] dbs)
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/SamplerInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/SamplerInstrumentCard.cs
index 3cc9c5d9..42c3f8d8 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/SamplerInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/SamplerInstrumentCard.cs
@@ -18,7 +18,7 @@
// Rail 186 always there: the voice mode (Poly 16 / Mono / Choke), Volume, Pan,
// Glide, the Output level, Vel → Vol and the output meter.
//
-// Brass is the parameter itself; teal is detune and modulation (keytrack, velocity, the
+// Neutral ink is the parameter itself; teal is detune and modulation (keytrack, velocity, the
// envelope's reach) and what the engine is doing now (the voice on the envelope, the
// cutoff it hears). Every control is a plugin param → automation / persist / clone, and
// the card follows automation live. The editor (BuildEditor) also serves a rack chain's
@@ -39,7 +39,7 @@ namespace Nota.App;
internal sealed class SamplerInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "BUILT-IN";
+ public string Subtitle => "Built-in";
public double CardWidth => 700;
private const double RailW = 186, TabH = 20, RowH = 66, StatusH = 18;
@@ -87,8 +87,8 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 7) => new()
@@ -116,7 +116,7 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
value.Text = fmt(v);
});
acc.Learn(knob, pi);
- var cell = KnobCell(label, knob, value, cellW, emphasised, emphasised ? AccentBright : null);
+ var cell = KnobCell(label, knob, value, cellW, emphasised, emphasised ? TextPrimary : null);
cell.VerticalAlignment = VerticalAlignment.Center;
if (tip is not null) ToolTip.SetTip(cell, tip);
return cell;
@@ -147,7 +147,7 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
return row;
}
- // A raised text button; a latching one turns brass-washed while on.
+ // A raised text button; a latching one turns accent-washed while on.
Border Button(string text, Action click, string tip, Func<bool>? on = null, Func<bool>? enabled = null, string? learnId = null)
{
var tb = new TextBlock { Text = text, FontSize = 8, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
@@ -416,7 +416,7 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
var voiceSeg = ParamChips("voicemode", SamplerModel.VoiceNames, padX: 5);
ToolTip.SetTip(voiceSeg, "Poly: 16 voices · Mono: one at a time (legato with Glide) · Choke: a new note cuts the ringing ones");
var railHead = new Grid { Height = TabH, ColumnDefinitions = new ColumnDefinitions("Auto,*"), Margin = new Thickness(8, 0) };
- var railCap = Cap("VOICES"); railCap.LetterSpacing = NotaType.SectionLabelTracking;
+ var railCap = Cap("VOICES");
railHead.Children.Add(railCap);
voiceSeg.HorizontalAlignment = HorizontalAlignment.Right; voiceSeg.VerticalAlignment = VerticalAlignment.Center;
Grid.SetColumn(voiceSeg, 1); railHead.Children.Add(voiceSeg);
@@ -529,7 +529,7 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
body.Children.Add(tabPanel);
Grid.SetColumn(rail, 1); body.Children.Add(rail);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
showTab = () =>
{
@@ -538,7 +538,7 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
pages[i].IsVisible = on;
}
@@ -571,11 +571,7 @@ internal sealed class SamplerInstrumentCard : IInstrumentCard
}
// A section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/SynthInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/SynthInstrumentCard.cs
index 7304fb63..e63b9055 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/SynthInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/SynthInstrumentCard.cs
@@ -11,7 +11,7 @@
//
// A 186px rail stays put on every tab — voice mode, volume, pan, glide, unison spread,
// velocity tracking and the track's meter — over a status strip that reads the patch back
-// in words. Brass is the parameter itself; teal is modulation (detune, env → cutoff).
+// in words. Neutral ink is the parameter itself; teal is modulation (detune, env → cutoff).
//
// Two sizes share every value; the S / L toggle in the shell header flips the card (the
// choice is the synth's "view" param — see InstrumentView — so it persists with the
@@ -36,7 +36,7 @@ namespace Nota.App;
internal sealed class SynthInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "SUBTRACTIVE";
+ public string Subtitle => "Subtractive";
public double WidthFor(IAudioEngine engine, int trackId) => InstrumentView.IsMini(engine, trackId) ? 260 : 700;
@@ -128,7 +128,7 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
return seg;
}
- // A caps caption over a control, left-aligned — the almanac's label-above form.
+ // A caption over a control, left-aligned — the almanac's label-above form.
Control Capped(string label, Control c) => new StackPanel
{
Spacing = 4, VerticalAlignment = VerticalAlignment.Center,
@@ -136,8 +136,8 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
{
new TextBlock
{
- Text = label, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = TextTertiary,
+ Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = TextTertiary,
},
c,
},
@@ -254,7 +254,7 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].Graph.IsVisible = on;
bodies[i].Row.IsVisible = on;
@@ -290,8 +290,8 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
var railHeader = new Grid { Height = TabH, ColumnDefinitions = new ColumnDefinitions("Auto,*"), Margin = new Thickness(8, 0) };
railHeader.Children.Add(new TextBlock
{
- Text = "VOICES", FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center,
+ Text = "Voices", FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center,
});
voiceChips.HorizontalAlignment = HorizontalAlignment.Right;
Grid.SetColumn(voiceChips, 1); railHeader.Children.Add(voiceChips);
@@ -369,9 +369,9 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
{
if (mini) return $"out {Db(G("gain"))}";
int uni = UnisonCounts[Sel("unison", 4)];
- string mode = VoiceNames[Sel("voicemode", 3)].ToUpperInvariant();
+ string mode = VoiceNames[Sel("voicemode", 3)];
string oct = Octaves(G("octave"));
- return $"{mode} · UNISON {uni} · OCT {oct} · {Db(G("gain"))}";
+ return $"{mode} · unison {uni} · oct {oct} · {Db(G("gain"))}";
}
var statusHost = StatusStrip(status, meta);
@@ -387,7 +387,7 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, body },
};
ShowTab();
@@ -434,7 +434,7 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, island },
};
refresh();
@@ -468,11 +468,7 @@ internal sealed class SynthInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Instruments/VoltInstrumentCard.cs b/src/managed/Nota.App/DeviceCards/Instruments/VoltInstrumentCard.cs
index 40c4c03c..8c2bcba0 100644
--- a/src/managed/Nota.App/DeviceCards/Instruments/VoltInstrumentCard.cs
+++ b/src/managed/Nota.App/DeviceCards/Instruments/VoltInstrumentCard.cs
@@ -20,7 +20,8 @@
// the track's meter) or Voice (both output amps, unison and the two
// velocity amounts).
//
-// Brass is the parameter itself; teal is modulation and what receives it. Everything is a
+// Neutral ink is the parameter itself; teal is modulation and what receives it; the accent
+// marks only live or chosen state. Everything is a
// plugin param → automation / persist / clone, and the card follows automation live.
using System;
@@ -38,7 +39,7 @@ namespace Nota.App;
internal sealed class VoltInstrumentCard : IInstrumentCard
{
public bool BodyOnly => true;
- public string Subtitle => "SUBTRACTIVE";
+ public string Subtitle => "Subtractive";
public double CardWidth => 700;
private const double WheelsW = 56, RailW = 186, TabH = 20, StatusH = 18, BodyH = 186;
@@ -68,8 +69,8 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
// the parameter's name.
private static readonly string[] MacroWords =
{
- "PITCH", "BODY", "INTERVAL", "DRIVE", "BRIGHT", "AIR",
- "TONE 2", "EDGE", "MOTION", "SWELL", "DRIFT", "WIDTH",
+ "pitch", "body", "interval", "drive", "bright", "air",
+ "tone 2", "edge", "motion", "swell", "drift", "width",
};
// The engine's own perceptual maps (VoltSynth.h), so a readout says what it does.
@@ -146,8 +147,8 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
// ---- shared builders --------------------------------------------------
static TextBlock Cap(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.KnobLabelTracking, Foreground = c ?? TextTertiary,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
+ Foreground = c ?? TextTertiary,
VerticalAlignment = VerticalAlignment.Center,
};
static TextBlock Mono(string t, IBrush? c = null, double fs = 8) => new()
@@ -157,7 +158,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
};
static TextBlock Section(string t, IBrush? c = null) => new()
{
- Text = t, FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
+ Text = NotaText.Label(t), FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
Foreground = c ?? TextPrimary, VerticalAlignment = VerticalAlignment.Center,
};
@@ -295,9 +296,9 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
double semis = (G("bend") - 0.5) * 2 * range;
bool centred = Math.Abs(semis) < 0.05;
bendVal.Text = centred ? $"±{range}\u2009st" : NotaNum.Unit(semis, "+0.0;−0.0;0", "st");
- bendVal.Foreground = centred ? TextSecondary : AccentBright;
+ bendVal.Foreground = centred ? TextSecondary : TextPrimary;
modVal.Text = NotaNum.Pct(G("modwheel"));
- modVal.Foreground = G("modwheel") > 1e-3f ? AccentBright : TextSecondary;
+ modVal.Foreground = G("modwheel") > 1e-3f ? TextPrimary : TextSecondary;
});
Grid Pair(Control a, Control b)
@@ -409,7 +410,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
// Filter 2 has no "To F2" — it is the end of that path.
Control cell = k == 5 && f == 1
? new Panel()
- : PKnob(id, filtLbl[k].ToUpperInvariant(), $"Filter {f + 1} {filtLbl[k]}", fmt, 26, 44, k >= 2 ? Teal : null);
+ : PKnob(id, filtLbl[k], $"Filter {f + 1} {filtLbl[k]}", fmt, 26, 44, k >= 2 ? Teal : null);
cell.IsVisible = false;
filtStack[f, k] = cell;
filtCells[k].Children.Add(cell);
@@ -618,7 +619,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
string destId = $"mac{mv}dest";
var name = new TextBlock
{
- FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.KnobLabelTracking,
+ FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
Foreground = NotaPalette.TextStrong, HorizontalAlignment = HorizontalAlignment.Center,
};
var dest = new TextBlock
@@ -669,7 +670,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
{
bool on = MacroOn(mv);
int d = MacroDest(mv);
- name.Text = on ? $"MACRO {mv + 1} · {MacroWords[d]}" : $"MACRO {mv + 1}";
+ name.Text = on ? $"Macro {mv + 1} · {MacroWords[d]}" : $"Macro {mv + 1}";
name.Foreground = on ? NotaPalette.TextStrong : TextDisabled;
dest.Text = on ? "→ " + MacroDests[d] : "unassigned";
dest.Foreground = on ? Teal : TextDisabled;
@@ -723,7 +724,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
bool on = i == tab;
tabCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
tabCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- tabTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ tabTexts[i].Foreground = on ? TextPrimary : TextTertiary;
tabTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
bodies[i].IsVisible = on;
}
@@ -853,7 +854,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
bool on = i == railTab;
railCells[i].Background = on ? NotaPalette.SurfaceRaised : Brushes.Transparent;
railCells[i].BorderBrush = on ? Brass : Brushes.Transparent;
- railTexts[i].Foreground = on ? AccentBright : TextTertiary;
+ railTexts[i].Foreground = on ? TextPrimary : TextTertiary;
railTexts[i].FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
railBodies[i].IsVisible = on;
}
@@ -920,8 +921,8 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
};
string Meta()
{
- string mode = G("mono") >= 0.5f ? "MONO" : "POLY 16";
- return $"{mode} · ±{BendRange(G("bendrange"))} ST · GAIN {Pct(G("volume"))}";
+ string mode = G("mono") >= 0.5f ? "Mono" : "Poly 16";
+ return $"{mode} · ±{BendRange(G("bendrange"))}\u2009st · gain {Pct(G("volume"))}";
}
var statusBar = new Grid { Height = StatusH, ColumnDefinitions = new ColumnDefinitions("*,Auto"), ColumnSpacing = 10 };
statusBar.Children.Add(status);
@@ -945,7 +946,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
DockPanel.SetDock(statusHost, Dock.Bottom);
var root = new DockPanel
{
- LastChildFill = true, Background = NotaPalette.Gutter,
+ LastChildFill = true, Background = NotaPalette.SurfaceCard,
Children = { statusHost, body },
};
@@ -956,11 +957,7 @@ internal sealed class VoltInstrumentCard : IInstrumentCard
}
// A device section: card ground, hairline, radius 6 — the almanac's section box.
- private static Border SectionBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator SectionBox(Control child) => DeviceCardKit.Section(child);
// A section's own header strip: a hairline under it, nothing else.
private static Border HeaderStrip(Control child) => new()
diff --git a/src/managed/Nota.App/DeviceCards/Midi/ArpMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/ArpMidiBody.cs
index b3d28007..bffe14c1 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/ArpMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/ArpMidiBody.cs
@@ -11,7 +11,7 @@
// its name) over four knobs (Rate · Gate · Oct · Swing). The header keeps the full preset
// picker (same list, same current preset as L); what S can't edit, presets still set.
// The window (ArpGrid) animates from the engine's telemetry: the head band walks the
-// steps, played cells turn Brass Deep and the sounding one Brass Light.
+// steps, played cells dim to a neutral wash and the sounding one turns accent.
using System;
using System.Collections.Generic;
@@ -40,14 +40,12 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
private static readonly string[] RetrigNames = { "Off", "Note", "Beat" };
private const double FreeMsMin = 20, FreeMsMax = 1000, LabelW = 50;
- private static readonly IBrush Ground = NotaPalette.SurfaceInset;
- private static readonly IBrush Island = NotaPalette.SurfaceCard;
+ private static readonly IBrush Ground = NotaPalette.SurfaceCard; // the card surface: sections sit on it, divided by rules (spec 012)
private static readonly IBrush Bd = NotaPalette.BorderDefault;
private static readonly IBrush Rule = NotaPalette.GraphBorder;
private static readonly IBrush Well = NotaPalette.BgSunken;
private static readonly IBrush Chip = NotaPalette.GridBeat;
private static readonly IBrush Brass = NotaPalette.Accent;
- private static readonly IBrush BrassLit = NotaPalette.AccentBright;
private static readonly IBrush Txt = NotaPalette.TextPrimary;
private static readonly IBrush Sub = NotaPalette.TextSecondary;
private static readonly IBrush Cap = NotaPalette.TextTertiary;
@@ -65,8 +63,8 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
public double WidthFor(IAudioEngine engine, int trackId, int index) => IsMini(engine, trackId, index) ? 260 : 700;
// ---- small builders -------------------------------------------------------------------
- private static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, LetterSpacing = 0.6, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, IBrush c, double fs = 8) => new()
{ Text = t, FontSize = fs, FontFamily = NotaFonts.MonoFamily, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
@@ -254,7 +252,7 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
bool on = (i == 1) == grid.Groove;
tabs[i].b.Background = on ? Chip : Brushes.Transparent;
tabs[i].b.BorderBrush = on ? Brass : Brushes.Transparent;
- tabs[i].tb.Foreground = on ? BrassLit : Cap;
+ tabs[i].tb.Foreground = on ? NotaPalette.TextPrimary : Cap;
tabs[i].tb.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
}
@@ -263,7 +261,7 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
readouts.Add(() =>
{
info.Text = InfoText(false);
- info.Foreground = grid.Groove ? BrassLit : Cap;
+ info.Foreground = grid.Groove ? Txt : Cap;
for (int i = 0; i < Lanes.Length; i++)
{
bool on = i == grid.LaneIndex;
@@ -350,15 +348,14 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
for (int i = 0; i < cells.Length; i++) { Grid.SetColumn(cells[i], i); knobs.Children.Add(cells[i]); }
var inner = new DockPanel { Children = { WithDock(head, Dock.Top), WithDock(knobs, Dock.Bottom), grid } };
- var island = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- Padding = new Thickness(6, 5, 6, 0), Child = inner };
+ var island = new RuleSection { Padding = new Thickness(6, 5, 6, 0), Child = inner };
readouts.Add(() =>
{
laneBtn.IsVisible = grid.Groove;
laneName.Text = Lanes[grid.LaneIndex].Label;
info.Text = InfoText(true);
- info.Foreground = grid.Groove ? BrassLit : Cap;
+ info.Foreground = grid.Groove ? Txt : Cap;
});
var statusL = new TextBlock { FontSize = 8, Foreground = Sub, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
@@ -388,10 +385,9 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
return new Border { Height = 20, BorderBrush = Bd, BorderThickness = new Thickness(0, 0, 0, 1), Child = d };
}
- Border IslandBox(Control head, Control content, double width)
+ Decorator IslandBox(Control head, Control content, double width)
{
- var b = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
- Child = new DockPanel { Children = { WithDock(head, Dock.Top), content } } };
+ var b = DeviceCardKit.Section(new DockPanel { Children = { WithDock(head, Dock.Top), content } });
if (!double.IsNaN(width)) b.Width = width;
return b;
}
@@ -403,7 +399,7 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
}
Control Ruled(Control c) => new Border { BorderBrush = Rule, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(0, 4, 0, 0), Child = c };
- // A PLAY slider: label brightens to brass once moved off its default.
+ // A PLAY slider: label brightens to primary text once moved off its default.
Control SliderLine(string label, int p, Func<double, double> toNorm, Func<double, double> fromNorm, Func<double, string> fmt)
{
var l = Caps(label); l.Width = LabelW;
@@ -418,8 +414,8 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
double v = G(p);
if (!track.Dragging) track.Norm = toNorm(v);
bool mod = Math.Abs(v - Def(p)) > 0.005;
- l.Foreground = mod ? BrassLit : Cap;
- val.Foreground = mod ? BrassLit : Txt;
+ l.Foreground = mod ? Txt : Cap;
+ val.Foreground = Txt;
val.Text = fmt(v);
});
track.Margin = new Thickness(0, 0, 4, 0);
@@ -450,8 +446,8 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
{
int v = GI(p);
bool mod = Math.Abs(v - Def(p)) > 0.5;
- l.Foreground = mod ? BrassLit : Cap;
- val.Foreground = mod ? BrassLit : Txt;
+ l.Foreground = mod ? Txt : Cap;
+ val.Foreground = Txt;
val.Text = fmt(v);
});
return new DockPanel { Children = { WithDock(l, Dock.Left), box } };
@@ -486,7 +482,7 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
return g;
}
- // A mini-view knob: 34px gauge, caps label, mono value. `learnParam` names the param the
+ // A mini-view knob: 34px gauge, sentence-case label, mono value. `learnParam` names the param the
// knob drives right now (Rate is the division when synced, the free rate otherwise).
Control KnobCell(string label, int p, Func<double> norm, Action<double> set, Func<string> text, Func<int>? learnParam = null)
{
@@ -498,7 +494,7 @@ internal sealed class ArpMidiBody : IMidiDeviceBody
var val = Mono("", Sub, 7); val.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() => { double n = norm(); if (!knob.Dragging && Math.Abs(knob.Value - n) > 1e-6) knob.Value = n; val.Text = text(); });
return new StackPanel { HorizontalAlignment = HorizontalAlignment.Center, Cursor = new Cursor(StandardCursorType.SizeNorthSouth),
- Children = { knob, new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.6, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, val } };
+ Children = { knob, new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, val } };
}
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Midi/ChordMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/ChordMidiBody.cs
index 9bc0e52b..bcfba58a 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/ChordMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/ChordMidiBody.cs
@@ -7,7 +7,7 @@
// • L 700 × 260 — TYPE list (Maj7 / Min7 / Sus4 / 5th / Custom, Keep root, Fold in scale +
// its key) | SHIFTS: six rows — switch dot, semitones, a bipolar ±12 ruler, the interval
// name and a draggable velocity offset | RESULT: the chord's note names, a three-octave
-// keyboard (played Brass Light, added Brass Deep, an unplayed root outlined), Strum and
+// keyboard (played bright accent, added deeper accent, an unplayed root outlined), Strum and
// Spread — over a status line.
// • S 260 × 260 — note names + the keyboard over six vertical bipolar shift bars (the
// number under each toggles it), Strum / Spread knobs and the two flags. The header keeps
@@ -46,12 +46,10 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
private static readonly bool[] MajorPc = { true, false, true, false, true, true, false, true, false, true, false, true };
private static readonly bool[] MinorPc = { true, false, true, true, false, true, false, true, true, false, true, false };
- private static readonly IBrush Ground = NotaPalette.SurfaceInset;
- private static readonly IBrush Island = NotaPalette.SurfaceCard;
+ private static readonly IBrush Ground = NotaPalette.SurfaceCard; // the card surface: sections sit on it, divided by rules (spec 012)
private static readonly IBrush Bd = NotaPalette.BorderDefault;
private static readonly IBrush Rule = NotaPalette.GraphBorder;
private static readonly IBrush Well = NotaPalette.BgSunken;
- private static readonly IBrush BrassLit = NotaPalette.AccentBright;
private static readonly IBrush Txt = NotaPalette.TextPrimary;
private static readonly IBrush Sub = NotaPalette.TextSecondary;
private static readonly IBrush Cap = NotaPalette.TextTertiary;
@@ -129,8 +127,8 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
}
// ---- small builders -------------------------------------------------------------------------
- private static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, LetterSpacing = 0.8, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, IBrush c, double fs = 8) => new()
{ Text = t, FontSize = fs, FontFamily = NotaFonts.MonoFamily, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
private static T WithDock<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -256,7 +254,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
var shiftsIsland = IslandBox(IslandHead(Caps("SHIFTS"), Mono("semitones · interval · velocity", Cap, 7)), rows, 292);
// ---- RESULT ----
- var noteText = Mono("", BrassLit); noteText.FontWeight = FontWeight.Medium;
+ var noteText = Mono("", Txt); noteText.FontWeight = FontWeight.Medium;
var range = Mono("", Axis, 7); range.HorizontalAlignment = HorizontalAlignment.Right;
var legend = new DockPanel { Children = { WithDock(range, Dock.Right), new StackPanel { Orientation = Orientation.Horizontal, Spacing = 10, Children =
{
@@ -277,7 +275,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
{
noteText.Text = NoteList();
int start = KeyStart();
- range.Text = $"{DeviceCardKit.NoteName(start)} – {DeviceCardKit.NoteName(start + 35)}";
+ range.Text = $"{DeviceCardKit.NoteName(start)}–{DeviceCardKit.NoteName(start + 35)}";
keys.Set(start, lit, RingPitch());
});
@@ -298,7 +296,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
// =========================================================================================
Control BuildMini()
{
- var noteText = Mono("", BrassLit); noteText.FontWeight = FontWeight.Medium;
+ var noteText = Mono("", Txt); noteText.FontWeight = FontWeight.Medium;
var voicesText = Mono("", Cap, 7);
var head = new DockPanel { Height = 12, Children = { WithDock(voicesText, Dock.Right), noteText } };
var keys = new ChordKeysViz { Labels = false, KeyRadius = 0, Height = 40 };
@@ -326,8 +324,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
WithDock(head, Dock.Top), WithDock(new Border { Margin = new Thickness(0, 4), Child = keys }, Dock.Top),
WithDock(knobs, Dock.Bottom), bars,
} };
- var island = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- Padding = new Thickness(6, 5, 6, 0), Child = inner };
+ var island = new RuleSection { Padding = new Thickness(6, 5, 6, 0), Child = inner };
readouts.Add(() =>
{
noteText.Text = NoteList();
@@ -362,10 +359,9 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
return new Border { Height = 20, BorderBrush = Bd, BorderThickness = new Thickness(0, 0, 0, 1), Child = d };
}
- Border IslandBox(Control head, Control content, double width)
+ Decorator IslandBox(Control head, Control content, double width)
{
- var b = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
- Child = new DockPanel { Children = { WithDock(head, Dock.Top), content } } };
+ var b = DeviceCardKit.Section(new DockPanel { Children = { WithDock(head, Dock.Top), content } });
if (!double.IsNaN(width)) b.Width = width;
return b;
}
@@ -377,7 +373,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
return new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, Children = { sw, new TextBlock { Text = label, FontSize = 8, Foreground = Sub, VerticalAlignment = VerticalAlignment.Center } } };
}
- // A switch flag (Keep root / Fold in scale), brass-washed when on.
+ // A switch flag (Keep root / Fold in scale), accent-washed when on.
Control Flag(int p, string label, string tip)
{
var tb = new TextBlock { Text = label, FontSize = 8, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
@@ -492,7 +488,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
hit.PointerCaptureLost += (_, _) => Stop();
ToolTip.SetTip(hit, $"Shift {s + 1} velocity offset — drag sideways, double-click resets");
Learn(hit, p, $"Shift {s + 1} velocity");
- readouts.Add(() => { int v = GI(p); tb.Text = Sgn(v); tb.Foreground = v != 0 ? BrassLit : Cap; });
+ readouts.Add(() => { int v = GI(p); tb.Text = Sgn(v); tb.Foreground = v != 0 ? Txt : Cap; });
return hit;
}
@@ -527,7 +523,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
return new DockPanel { Children = { WithDock(lblHit, Dock.Bottom), bar } };
}
- // A RESULT slider: the label brightens to brass once moved off its default.
+ // A RESULT slider: the label brightens to primary text once moved off its default.
Control SliderLine(string label, int p, Func<double, double> toNorm, Func<double, double> fromNorm, Func<double, string> fmt)
{
var l = Caps(label); l.Width = 40;
@@ -543,8 +539,8 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
double v = G(p);
if (!track.Dragging) track.Norm = toNorm(v);
bool mod = Math.Abs(v - Def(p)) > 0.5;
- l.Foreground = mod ? BrassLit : Cap;
- val.Foreground = mod ? BrassLit : Txt;
+ l.Foreground = mod ? Txt : Cap;
+ val.Foreground = Txt;
val.Text = fmt(v);
});
track.Margin = new Thickness(6, 0, 6, 0);
@@ -562,7 +558,7 @@ internal sealed class ChordMidiBody : IMidiDeviceBody
var val = Mono("", Sub, 7); val.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() => { double n = norm(); if (!knob.Dragging && Math.Abs(knob.Value - n) > 1e-6) knob.Value = n; val.Text = text(); });
return new StackPanel { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.SizeNorthSouth),
- Children = { knob, new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.6, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, val } };
+ Children = { knob, new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, val } };
}
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Midi/GenericMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/GenericMidiBody.cs
index 2bc89cc9..40d1a4b8 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/GenericMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/GenericMidiBody.cs
@@ -32,7 +32,7 @@ internal sealed class GenericMidiBody : IMidiDeviceBody
var value = new TextBlock { Text = FmtParam(v, integral), FontSize = 9, Foreground = TextPrimary, HorizontalAlignment = HorizontalAlignment.Right };
value.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var top = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto") };
- top.Children.Add(new TextBlock { Text = engine.MidiEffectParamName(track, index, i).ToUpperInvariant(), FontSize = 9, Foreground = TextTertiary });
+ top.Children.Add(new TextBlock { Text = NotaText.Label(engine.MidiEffectParamName(track, index, i)), FontSize = 9, Foreground = TextTertiary });
Grid.SetColumn(value, 1); top.Children.Add(value);
var bar = new Knob((v - min) / Math.Max(1e-6f, max - min), 1.0) { Accent = true, HorizontalAlignment = HorizontalAlignment.Center,
Default = (engine.MidiEffectParamDefault(track, index, pi) - min) / Math.Max(1e-6f, max - min) };
diff --git a/src/managed/Nota.App/DeviceCards/Midi/LengthMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/LengthMidiBody.cs
index 4f87b174..b4b0acb1 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/LengthMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/LengthMidiBody.cs
@@ -35,12 +35,10 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
internal static readonly string[] Modes = { "Sync", "ms", "Gate %" };
internal static readonly string[] Divs = { "1/32", "1/16", "1/8", "1/4", "1/2", "1/1", "1/8.", "1/4T" };
- private static readonly IBrush Ground = NotaPalette.SurfaceInset;
- private static readonly IBrush Island = NotaPalette.SurfaceCard;
+ private static readonly IBrush Ground = NotaPalette.SurfaceCard; // the card surface: sections sit on it, divided by rules (spec 012)
private static readonly IBrush Bd = NotaPalette.BorderDefault;
private static readonly IBrush Rule = NotaPalette.GraphBorder;
private static readonly IBrush Well = NotaPalette.BgSunken;
- private static readonly IBrush BrassLit = NotaPalette.AccentBright;
private static readonly IBrush Txt = NotaPalette.TextPrimary;
private static readonly IBrush Sub = NotaPalette.TextSecondary;
private static readonly IBrush Muted = NotaPalette.TextMuted;
@@ -63,11 +61,11 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center };
if (!IsMini(e, t, index))
{
- var tag = Mono("", Cap, 8); tag.LetterSpacing = 0.6;
+ var tag = Mono("", Cap, 8);
var bpm = Mono("", Cap, 8);
void Sync()
{
- tag.Text = Modes[Math.Clamp((int)Math.Round(e.MidiEffectGetParam(t, index, PMode)), 0, 2)].ToUpperInvariant();
+ tag.Text = Modes[Math.Clamp((int)Math.Round(e.MidiEffectGetParam(t, index, PMode)), 0, 2)];
bpm.Text = $"{e.Bpm:0.0} BPM";
}
Sync();
@@ -112,8 +110,8 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
internal static string Signed(double v) => (v > 0.004 ? "+" : v < -0.004 ? "−" : "") + $"{Math.Abs(Math.Round(v * 100)):0}\u2009%";
// ---- small builders -------------------------------------------------------------------------
- private static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, LetterSpacing = 0.8, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, IBrush c, double fs = 8) => new()
{ Text = t, FontSize = fs, FontFamily = NotaFonts.MonoFamily, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
private static T WithDock<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -170,7 +168,7 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
Learn(modeSeg, PMode, "Mode");
ToolTip.SetTip(modeSeg, "Sync: a tempo division · ms: a fixed time · Gate %: a share of how long each note was held");
- var bigVal = Mono("", BrassLit, 18); bigVal.FontWeight = FontWeight.Medium; bigVal.LetterSpacing = -0.3;
+ var bigVal = Mono("", Txt, 18); bigVal.FontWeight = FontWeight.Medium; bigVal.LetterSpacing = -0.3;
var bigSub = Mono("", Cap, 7); bigSub.VerticalAlignment = VerticalAlignment.Bottom; bigSub.Margin = new Thickness(0, 0, 0, 4);
var valRow = new DockPanel { Children = { WithDock(bigSub, Dock.Right), bigVal } };
bigSub.HorizontalAlignment = HorizontalAlignment.Right;
@@ -287,7 +285,7 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
ToolTip.SetTip(modeChip, "Length mode: Sync / ms / Gate % — click for the next, Shift-click for the previous");
Learn(modeChip, PMode, "Mode");
- var val = Mono("", BrassLit, 9); val.FontWeight = FontWeight.Medium;
+ var val = Mono("", Txt, 9); val.FontWeight = FontWeight.Medium;
var sub = Mono("", Cap, 7);
var head = new DockPanel { Height = 14, Children = { WithDock(modeChip, Dock.Left), WithDock(sub, Dock.Right), val } };
@@ -308,8 +306,7 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
{
WithDock(head, Dock.Top), WithDock(knobs, Dock.Bottom), new Border { Margin = new Thickness(0, 4), Child = gate },
} };
- var island = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- Padding = new Thickness(6, 5, 6, 0), Child = inner };
+ var island = new RuleSection { Padding = new Thickness(6, 5, 6, 0), Child = inner };
readouts.Add(() =>
{
modeTb.Text = Modes[Mode(G)];
@@ -354,15 +351,14 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
return new Border { Height = 20, BorderBrush = Bd, BorderThickness = new Thickness(0, 0, 0, 1), Child = d };
}
- Border IslandBox(Control head, Control content, double width)
+ Decorator IslandBox(Control head, Control content, double width)
{
- var b = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
- Child = new DockPanel { Children = { WithDock(head, Dock.Top), content } } };
+ var b = DeviceCardKit.Section(new DockPanel { Children = { WithDock(head, Dock.Top), content } });
if (!double.IsNaN(width)) b.Width = width;
return b;
}
- // A MODIFIERS slider: caps label + value (brass once moved off neutral), the track, a hint.
+ // A MODIFIERS slider: label + value (primary text once moved off neutral), the track, a hint.
Control ModSlider(string label, int p, bool bipolar, string hint)
{
var l = Caps(label);
@@ -382,8 +378,8 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
double x = G(p);
if (!trk.Dragging) trk.Norm = toNorm();
bool mod = Math.Abs(x) > 0.004;
- l.Foreground = mod ? BrassLit : Cap;
- v.Foreground = mod ? BrassLit : Txt;
+ l.Foreground = mod ? Txt : Cap;
+ v.Foreground = Txt;
v.Text = bipolar ? Signed(x) : $"±{Math.Round(x * 100):0}\u2009%";
});
return new StackPanel { Spacing = 2, Children =
@@ -423,7 +419,7 @@ internal sealed class LengthMidiBody : IMidiDeviceBody
var v = Mono("", Sub, 7); v.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() => { double n = norm(); if (!knob.Dragging && Math.Abs(knob.Value - n) > 1e-6) knob.Value = n; v.Text = text(); });
return new StackPanel { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.SizeNorthSouth),
- Children = { knob, new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.6, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, v } };
+ Children = { knob, new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, v } };
}
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Midi/MidiCardHeader.cs b/src/managed/Nota.App/DeviceCards/Midi/MidiCardHeader.cs
index d1c075a1..315d4384 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/MidiCardHeader.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/MidiCardHeader.cs
@@ -18,7 +18,7 @@ internal static class MidiCardHeader
{
public static Control LearnButton(DeviceCardContext ctx)
{
- var tb = new TextBlock { Text = "MIDI Learn", FontSize = 8, VerticalAlignment = VerticalAlignment.Center };
+ var tb = new TextBlock { Text = "MIDI learn", FontSize = 8, VerticalAlignment = VerticalAlignment.Center };
var learn = new Border { Height = 16, CornerRadius = NotaRadius.Badge, Padding = new Thickness(6, 0), BorderThickness = new Thickness(1), Cursor = new Cursor(StandardCursorType.Hand), Child = tb };
ToolTip.SetTip(learn, "Map a hardware control: arm, touch a control on the card, move a knob or key");
void Sync()
diff --git a/src/managed/Nota.App/DeviceCards/Midi/RandomMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/RandomMidiBody.cs
index a406f501..1f0faab9 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/RandomMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/RandomMidiBody.cs
@@ -36,12 +36,9 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
internal static readonly string[] Dists = { "Gauss", "Even", "Walk" };
internal static readonly string[] Rates = { "Per note", "Per bar" };
- private static readonly IBrush Ground = NotaPalette.SurfaceInset;
- private static readonly IBrush Island = NotaPalette.SurfaceCard;
+ private static readonly IBrush Ground = NotaPalette.SurfaceCard; // the card surface: sections sit on it, divided by rules (spec 012)
private static readonly IBrush Bd = NotaPalette.BorderDefault;
private static readonly IBrush Well = NotaPalette.BgSunken;
- private static readonly IBrush Brass = NotaPalette.Accent;
- private static readonly IBrush BrassLit = NotaPalette.AccentBright;
private static readonly IBrush Txt = NotaPalette.TextPrimary;
private static readonly IBrush Sub = NotaPalette.TextSecondary;
private static readonly IBrush Muted = NotaPalette.TextMuted;
@@ -65,11 +62,11 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center };
if (!IsMini(e, t, index))
{
- var tag = Mono("", Cap, 8); tag.LetterSpacing = 0.6;
+ var tag = Mono("", Cap, 8);
var bpm = Mono("", Cap, 8);
void Sync()
{
- tag.Text = Dists[Math.Clamp((int)Math.Round(e.MidiEffectGetParam(t, index, PDist)), 0, 2)].ToUpperInvariant();
+ tag.Text = Dists[Math.Clamp((int)Math.Round(e.MidiEffectGetParam(t, index, PDist)), 0, 2)];
bpm.Text = $"{e.Bpm:0.0} BPM";
}
Sync();
@@ -90,8 +87,8 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
internal static string ChanceText(double v) => $"{Math.Round(v * 100, MidpointRounding.AwayFromZero):0} %";
// ---- small builders -------------------------------------------------------------------------
- private static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, LetterSpacing = 0.8, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, IBrush c, double fs = 8) => new()
{ Text = t, FontSize = fs, FontFamily = NotaFonts.MonoFamily, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
private static T WithDock<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -182,7 +179,7 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
var legend = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 10, Height = 10, Margin = new Thickness(22, 3, 0, 0), Children =
{
LegendItem(new Rectangle { Width = 9, Height = 5, Stroke = Muted, StrokeThickness = 1, StrokeDashArray = new Avalonia.Collections.AvaloniaList<double> { 2, 1 }, RadiusX = 1, RadiusY = 1 }, "input"),
- LegendItem(new Border { Width = 9, Height = 5, Background = Brass, CornerRadius = NotaRadius.Bar }, "output · brightness = velocity"),
+ LegendItem(new Border { Width = 9, Height = 5, Background = NotaPalette.VizInk, CornerRadius = NotaRadius.Bar }, "output · brightness = velocity"),
LegendItem(Mono("×", Muted, 8), "skip"),
} };
var outBody = new DockPanel { Margin = new Thickness(8, 5, 8, 4), Children = { WithDock(legend, Dock.Bottom), viz } };
@@ -195,8 +192,8 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
readouts.Add(() =>
{
bool mod = Math.Abs(G(PChance) - Def(PChance)) > 0.004;
- chanceLbl.Foreground = mod ? BrassLit : Cap;
- chanceVal.Foreground = mod ? BrassLit : Txt;
+ chanceLbl.Foreground = mod ? Txt : Cap;
+ chanceVal.Foreground = Txt;
chanceVal.Text = ChanceText(G(PChance));
});
ToolTip.SetTip(chanceTrk, "Chance — how many notes get varied at all");
@@ -290,8 +287,7 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
{
WithDock(head, Dock.Top), WithDock(knobs, Dock.Bottom), new Border { Margin = new Thickness(0, 4), Child = viz },
} };
- var island = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- Padding = new Thickness(6, 5, 6, 0), Child = inner };
+ var island = new RuleSection { Padding = new Thickness(6, 5, 6, 0), Child = inner };
readouts.Add(() =>
{
distTb.Text = Dists[Dist(G)];
@@ -336,10 +332,9 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
return new Border { Height = 20, BorderBrush = Bd, BorderThickness = new Thickness(0, 0, 0, 1), Child = d };
}
- Border IslandBox(Control head, Control content, double width)
+ Decorator IslandBox(Control head, Control content, double width)
{
- var b = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
- Child = new DockPanel { Children = { WithDock(head, Dock.Top), content } } };
+ var b = DeviceCardKit.Section(new DockPanel { Children = { WithDock(head, Dock.Top), content } });
if (!double.IsNaN(width)) b.Width = width;
return b;
}
@@ -364,7 +359,7 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
return trk;
}
- // One WHAT VARIES row: the label (lit once it does something), the value (brass once moved
+ // One WHAT VARIES row: the label (lit once it does something), the value (primary text once moved
// off the default) and the amount slider under them.
Control VaryRow(string label, int p, double max, Func<double, string> fmt, string tip)
{
@@ -378,7 +373,7 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
{
double x = G(p);
l.Foreground = x > 0.0005 ? Txt : Cap;
- v.Foreground = Math.Abs(x - Def(p)) > 0.0005 ? BrassLit : Sub;
+ v.Foreground = Math.Abs(x - Def(p)) > 0.0005 ? Txt : Sub;
v.Text = fmt(x);
});
return new StackPanel { Spacing = 2, VerticalAlignment = VerticalAlignment.Center, Children =
@@ -397,7 +392,7 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
return seg;
}
- // A small action button (Reroll / Lock); the sync paints the engaged (brass-wash) state.
+ // A small action button (Reroll / Lock); the sync paints the engaged (accent-wash) state.
Border Button(string text, string tip, Action click, out Action<bool> sync)
{
var tb = new TextBlock { Text = text, FontSize = 8, Foreground = Txt, VerticalAlignment = VerticalAlignment.Center };
@@ -469,7 +464,7 @@ internal sealed class RandomMidiBody : IMidiDeviceBody
var v = Mono("", Sub, 7); v.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() => { double n = G(p) / max; if (!knob.Dragging && Math.Abs(knob.Value - n) > 1e-6) knob.Value = n; v.Text = text(G(p)); });
return new StackPanel { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.SizeNorthSouth),
- Children = { knob, new TextBlock { Text = label, FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.6, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, v } };
+ Children = { knob, new TextBlock { Text = NotaText.Label(label), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 }, v } };
}
}
}
diff --git a/src/managed/Nota.App/DeviceCards/Midi/ScaleMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/ScaleMidiBody.cs
index 90161107..5f15fe38 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/ScaleMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/ScaleMidiBody.cs
@@ -6,7 +6,7 @@
// choice is the device's "View" param, so it persists with the project):
// • L 700 × 260 — ROOT stepper over the scale TYPE list (Major / Minor / Dorian / Phryg /
// Penta / Custom, each with its note count) | NOTE MAP: the twelve pitch classes as key
-// cells — scale notes Brass Deep, the root edged Brass Light, the rest naming where they
+// cells — scale notes accent-washed (chosen), the root edged bright, the rest naming where they
// fold; click one to add / remove it (the scale turns Custom) | FOLD: Nearest / Down / Up,
// the last IN → OUT, Range (± an octave, drag for semitones), Follow key, Learn and Clear —
// over a status line.
@@ -40,12 +40,10 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
private static readonly int[] TypeRows = { 0, 1, 3, 4, 7, Custom };
private static readonly string[] Folds = { "Nearest", "Down", "Up" };
- private static readonly IBrush Ground = NotaPalette.SurfaceInset;
- private static readonly IBrush Island = NotaPalette.SurfaceCard;
+ private static readonly IBrush Ground = NotaPalette.SurfaceCard; // the card surface: sections sit on it, divided by rules (spec 012)
private static readonly IBrush Bd = NotaPalette.BorderDefault;
private static readonly IBrush Rule = NotaPalette.GraphBorder;
private static readonly IBrush Well = NotaPalette.BgSunken;
- private static readonly IBrush BrassLit = NotaPalette.AccentBright;
private static readonly IBrush Txt = NotaPalette.TextPrimary;
private static readonly IBrush Sub = NotaPalette.TextSecondary;
private static readonly IBrush Muted = NotaPalette.TextMuted;
@@ -79,8 +77,8 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center };
if (!IsMini(e, t, index))
{
- var tag = Mono("", Cap, 8); tag.LetterSpacing = 0.6;
- void Sync() => tag.Text = KeyTag(p => e.MidiEffectGetParam(t, index, p)).ToUpperInvariant();
+ var tag = Mono("", Cap, 8);
+ void Sync() => tag.Text = KeyTag(p => e.MidiEffectGetParam(t, index, p));
Sync();
ctx.AddDeviceRefresher(Sync);
ToolTip.SetTip(tag, "The key in effect: root and scale");
@@ -91,8 +89,8 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
}
// ---- small builders -------------------------------------------------------------------------
- private static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, LetterSpacing = 0.8, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, IBrush c, double fs = 8) => new()
{ Text = t, FontSize = fs, FontFamily = NotaFonts.MonoFamily, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
private static T WithDock<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -226,7 +224,7 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
// ---- FOLD ----
var foldSeg = FoldSeg(13);
- var ioIn = Mono("—", Sub, 13); var ioOut = Mono("—", BrassLit, 13);
+ var ioIn = Mono("—", Sub, 13); var ioOut = Mono("—", Txt, 13);
var ioBox = new Border
{
Height = 30, Background = Well, BorderBrush = Rule, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge,
@@ -280,12 +278,12 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
var top = new DockPanel { Children = { WithDock(RootStepper(), Dock.Left), WithDock(TypeDrop(), Dock.Left), FoldSeg(12) } };
((Control)top.Children[1]).Margin = new Thickness(5, 0);
- var ioIn = Mono("—", Sub, 11); var ioOut = Mono("—", BrassLit, 11);
+ var ioIn = Mono("—", Sub, 11); var ioOut = Mono("—", Txt, 11);
var ioBar = new Border
{
Height = 24, Background = Well, BorderBrush = Rule, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge, Padding = new Thickness(8, 0),
Child = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, Children =
- { Mono("IN → OUT", Cap, 7), ioIn, new TextBlock { Text = "→", FontSize = 9, Foreground = Cap, VerticalAlignment = VerticalAlignment.Center }, ioOut } },
+ { Mono("In → out", Cap, 7), ioIn, new TextBlock { Text = "→", FontSize = 9, Foreground = Cap, VerticalAlignment = VerticalAlignment.Center }, ioOut } },
};
readouts.Add(() => { ioIn.Text = li >= 0 ? DeviceCardKit.NoteName(li) : "—"; ioOut.Text = lo >= 0 ? DeviceCardKit.NoteName(lo) : "—"; });
@@ -293,8 +291,7 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
{
WithDock(top, Dock.Top), WithDock(ioBar, Dock.Bottom), new Border { Margin = new Thickness(0, 6), Child = map },
} };
- var island = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- Padding = new Thickness(6), Child = inner };
+ var island = new RuleSection { Padding = new Thickness(6), Child = inner };
var statusL = new TextBlock { FontSize = 8, Foreground = Sub, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
var statusR = Mono("", Sub);
@@ -326,10 +323,9 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
return new Border { Height = 20, BorderBrush = Bd, BorderThickness = new Thickness(0, 0, 0, 1), Child = d };
}
- Border IslandBox(Control head, Control content, double width)
+ Decorator IslandBox(Control head, Control content, double width)
{
- var b = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
- Child = new DockPanel { Children = { WithDock(head, Dock.Top), content } } };
+ var b = DeviceCardKit.Section(new DockPanel { Children = { WithDock(head, Dock.Top), content } });
if (!double.IsNaN(width)) b.Width = width;
return b;
}
@@ -351,7 +347,7 @@ internal sealed class ScaleMidiBody : IMidiDeviceBody
b.PointerExited += (_, _) => b.Background = NotaPalette.TrackOff;
return b;
}
- var name = Mono("", BrassLit, 9); name.FontWeight = FontWeight.SemiBold; name.Width = 20; name.TextAlignment = TextAlignment.Center;
+ var name = Mono("", Txt, 9); name.FontWeight = FontWeight.SemiBold; name.Width = 20; name.TextAlignment = TextAlignment.Center;
readouts.Add(() => name.Text = Notes[Root()]);
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 2, VerticalAlignment = VerticalAlignment.Center, Background = Brushes.Transparent,
Children = { Arrow(GlyphKind.ChevronLeft, -1), name, Arrow(GlyphKind.ChevronRight, 1) } };
diff --git a/src/managed/Nota.App/DeviceCards/Midi/VelocityMidiBody.cs b/src/managed/Nota.App/DeviceCards/Midi/VelocityMidiBody.cs
index 922b8ed0..2f96559d 100644
--- a/src/managed/Nota.App/DeviceCards/Midi/VelocityMidiBody.cs
+++ b/src/managed/Nota.App/DeviceCards/Midi/VelocityMidiBody.cs
@@ -112,12 +112,10 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
private static readonly string[] Modes = VelocityModel.Modes;
private static readonly string[] Dirs = VelocityModel.Dirs;
- private static readonly IBrush Ground = NotaPalette.SurfaceInset;
- private static readonly IBrush Island = NotaPalette.SurfaceCard;
+ private static readonly IBrush Ground = NotaPalette.SurfaceCard; // the card surface: sections sit on it, divided by rules (spec 012)
private static readonly IBrush Bd = NotaPalette.BorderDefault;
private static readonly IBrush Rule = NotaPalette.GraphBorder;
private static readonly IBrush Well = NotaPalette.BgSunken;
- private static readonly IBrush BrassLit = NotaPalette.AccentBright;
private static readonly IBrush Txt = NotaPalette.TextPrimary;
private static readonly IBrush Sub = NotaPalette.TextSecondary;
private static readonly IBrush Cap = NotaPalette.TextTertiary;
@@ -138,8 +136,8 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center };
if (!IsMini(e, t, index))
{
- var tag = Mono("", Cap, 8); tag.LetterSpacing = 0.6;
- void Sync() => tag.Text = Modes[VelocityModel.Mode(p => e.MidiEffectGetParam(t, index, p))].ToUpperInvariant();
+ var tag = Mono("", Cap, 8);
+ void Sync() => tag.Text = Modes[VelocityModel.Mode(p => e.MidiEffectGetParam(t, index, p))];
Sync();
ctx.AddDeviceRefresher(Sync);
ToolTip.SetTip(tag, "Velocity mode");
@@ -150,8 +148,8 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
}
// ---- small builders -------------------------------------------------------------------------
- private static TextBlock Caps(string t, IBrush? c = null, double fs = 7) => new()
- { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, LetterSpacing = 0.8, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, IBrush? c = null, double fs = NotaType.KnobLabel) => new()
+ { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = c ?? Cap, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, IBrush c, double fs = 8) => new()
{ Text = t, FontSize = fs, FontFamily = NotaFonts.MonoFamily, Foreground = c, VerticalAlignment = VerticalAlignment.Center };
private static T WithDock<T>(T c, Dock d) where T : Control { DockPanel.SetDock(c, d); return c; }
@@ -198,7 +196,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
if (IsFixed()) S(PFixed, Math.Round(1 + Math.Clamp(n, 0, 1) * 126) / 127.0);
else S(PDrive, VelocityModel.DriveFromNorm(n));
}
- string DriveLabel() => IsFixed() ? "VALUE" : "DRIVE";
+ string DriveLabel() => IsFixed() ? "Value" : "Drive";
// The Out range in whole velocities, keeping low below high.
void SetLo(double v) { var (_, hi) = VelocityModel.Range(G); S(POutLo, Math.Clamp(Math.Round(v), 1, hi - 1) / 127.0); }
@@ -250,7 +248,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
}
var dLabel = Caps("DRIVE");
- var dValue = Mono("", BrassLit, 13); dValue.FontWeight = FontWeight.Medium; dValue.HorizontalAlignment = HorizontalAlignment.Right;
+ var dValue = Mono("", Txt, 13); dValue.FontWeight = FontWeight.Medium; dValue.HorizontalAlignment = HorizontalAlignment.Right;
int dGesture = -1;
var dTrack = new SliderTrack { Height = 11, Reset = () => { int p = DriveParam(); Set1(p, Def(p)); Refresh(); } };
dTrack.Changed += n => { DriveSet(n); Refresh(); };
@@ -276,7 +274,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
// ---- TRANSFER ----
var viz = new VelocityTransferViz { Full = true };
ToolTip.SetTip(viz, "Input velocity across, output up. Dashed — the Out range; the band — where Random can put a note; dots — the last notes played");
- var plotInfo = Mono("", BrassLit, 7);
+ var plotInfo = Mono("", Sub, 7);
readouts.Add(() =>
{
viz.Set(n => VelocityModel.Base(G, n), VelocityModel.RangeN(G).Lo, VelocityModel.RangeN(G).Hi, VelocityModel.Spread(G), notes, count, Bypassed());
@@ -301,12 +299,12 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
range.GestureBegin += h => Begin(h == 0 ? POutLo : POutHi);
range.GestureEnd += h => End(h == 0 ? POutLo : POutHi);
range.Changed += (h, n) => { if (h == 0) SetLo(1 + n * 126); else SetHi(1 + n * 126); Refresh(); };
- ToolTip.SetTip(range, "Out range — drag a handle, double-click resets to 1 – 127");
+ ToolTip.SetTip(range, "Out range — drag a handle, double-click resets to 1–127");
Learn(range, POutHi, "Out High");
readouts.Add(() =>
{
var (lo, hi) = VelocityModel.Range(G);
- rangeTxt.Text = $"{lo} – {hi}";
+ rangeTxt.Text = $"{lo}–{hi}";
if (!range.Dragging) { range.Lo = (lo - 1) / 126.0; range.Hi = (hi - 1) / 126.0; }
});
@@ -326,7 +324,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
rndTrack.Changed += n => { S(PRandom, Math.Round(n * VelocityModel.RandomSpan) / VelocityModel.RandomSpan); Refresh(); };
rndTrack.GestureBegin += () => Begin(PRandom);
rndTrack.GestureEnd += () => End(PRandom);
- ToolTip.SetTip(rndTrack, "Random amount, ±0 – 64 velocity — drag up / down, double-click resets");
+ ToolTip.SetTip(rndTrack, "Random amount, ±0–64 velocity — drag up / down, double-click resets");
Learn(rndTrack, PRandom, "Random");
var dirSeg = DeviceCardKit.Segments(Dirs, () => VelocityModel.Dir(G), i => { Set1(PRandomDir, i); Refresh(); }, out var dirSync,
fill: true, padX: 2, fontSize: 8);
@@ -395,7 +393,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
var viz = new VelocityTransferViz { Full = false };
ToolTip.SetTip(viz, "Input across, output up · dashed — the Out range · band — Random · dots — the last notes");
- var lastIO = Mono("", BrassLit, 7);
+ var lastIO = Mono("", Sub, 7);
lastIO.HorizontalAlignment = HorizontalAlignment.Right; lastIO.VerticalAlignment = VerticalAlignment.Top; lastIO.Margin = new Thickness(0, 3, 5, 0);
lastIO.IsHitTestVisible = false;
var plot = new Panel { Margin = new Thickness(0, 4), Children = { viz, lastIO } };
@@ -415,8 +413,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
for (int i = 0; i < cells.Length; i++) { Grid.SetColumn(cells[i], i); knobs.Children.Add(cells[i]); }
var inner = new DockPanel { Children = { WithDock(head, Dock.Top), WithDock(knobs, Dock.Bottom), plot } };
- var island = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile,
- Padding = new Thickness(6, 5, 6, 0), Child = inner };
+ var island = new RuleSection { Padding = new Thickness(6, 5, 6, 0), Child = inner };
readouts.Add(() =>
{
modeTb.Text = Modes[Mode()];
@@ -446,7 +443,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
{
statusL.Text = VelocityModel.RandomOn(G) ? $"random {Dirs[VelocityModel.Dir(G)].ToLowerInvariant()}" : "random off";
var (lo, hi) = VelocityModel.Range(G);
- statusR.Text = Bypassed() ? "bypassed" : $"out {lo} – {hi}";
+ statusR.Text = Bypassed() ? "bypassed" : $"out {lo}–{hi}";
});
return Framed(island, statusL, statusR);
}
@@ -468,10 +465,9 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
return new Border { Height = 20, BorderBrush = Bd, BorderThickness = new Thickness(0, 0, 0, 1), Child = d };
}
- Border IslandBox(Control head, Control content, double width)
+ Decorator IslandBox(Control head, Control content, double width)
{
- var b = new Border { Background = Island, BorderBrush = Bd, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Tile, ClipToBounds = true,
- Child = new DockPanel { Children = { WithDock(head, Dock.Top), content } } };
+ var b = DeviceCardKit.Section(new DockPanel { Children = { WithDock(head, Dock.Top), content } });
if (!double.IsNaN(width)) b.Width = width;
return b;
}
@@ -485,7 +481,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
knob.GestureBegin += () => { gesture = param(); Begin(gesture); if (gesture == PRandom) Begin(PRandomOn); };
knob.GestureEnd += () => { if (gesture >= 0) End(gesture); if (gesture == PRandom) End(PRandomOn); gesture = -1; };
Learn(knob, param(), label());
- var lbl = new TextBlock { FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.6, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 };
+ var lbl = new TextBlock { FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = Cap, HorizontalAlignment = HorizontalAlignment.Center, LineHeight = 9 };
var v = Mono("", Sub, 7); v.HorizontalAlignment = HorizontalAlignment.Center;
readouts.Add(() =>
{
@@ -493,7 +489,7 @@ internal sealed class VelocityMidiBody : IMidiDeviceBody
if (!knob.Dragging && Math.Abs(knob.Value - n) > 1e-6) knob.Value = n;
knob.Default = resetNorm();
knob.IsDim = dim?.Invoke() ?? false;
- lbl.Text = label(); v.Text = text();
+ lbl.Text = NotaText.Label(label()); v.Text = text();
});
return new StackPanel { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.SizeNorthSouth),
Children = { knob, lbl, v } };
diff --git a/src/managed/Nota.App/DeviceCards/Mosaic/MosaicViews.cs b/src/managed/Nota.App/DeviceCards/Mosaic/MosaicViews.cs
index 2ca6ef09..04fea71f 100644
--- a/src/managed/Nota.App/DeviceCards/Mosaic/MosaicViews.cs
+++ b/src/managed/Nota.App/DeviceCards/Mosaic/MosaicViews.cs
@@ -4,9 +4,9 @@
// Nota Mosaic's windows:
//
// MosaicZoneMap the zone map — keys on X, velocity on Y, the keyboard under it with a
-// brass tick under every root. Zones are tiles; the selected one is
-// outlined in Brass Light with its root written in; zones sounding now
-// fill brass (muted brass while the pedal holds them, a deeper wash for
+// neutral tick under every root. Zones are tiles; the selected one is
+// outlined in bright accent with its root written in; zones sounding now
+// fill accent (muted accent while the pedal holds them, a deeper wash for
// release samples and fades); an exclusive group is outlined. Click a
// tile to select it (again: the next round-robin tile under it), drag it
// to move, drag an edge to resize. The keyboard plays (press / release).
@@ -290,7 +290,7 @@ internal sealed class MosaicZoneMap : Control
ctx.DrawText(t, new Point(AxisW - 2 - t.Width, y));
}
- // The keyboard: white / black keys, sounding keys brass, a tick under every root.
+ // The keyboard: white / black keys, sounding keys accent, a neutral tick under every root.
double ky = m.Bottom + 1, kh = Mini ? KeyH * 0.75 - 2 : KeyH;
var held = new HashSet<int>(_keysDown);
held.UnionWith(_playing);
@@ -303,7 +303,7 @@ internal sealed class MosaicZoneMap : Control
: black ? NotaPalette.KeyBlack : NotaPalette.MiniKeyWhite;
ctx.DrawRectangle(fill, null, r);
if (roots.Contains(k) && !Mini)
- ctx.DrawRectangle(NotaPalette.Accent, null, new Rect(r.X + r.Width * 0.2, ky + kh + 1, Math.Max(1, r.Width * 0.6), 1.5));
+ ctx.DrawRectangle(NotaPalette.VizInk, null, new Rect(r.X + r.Width * 0.2, ky + kh + 1, Math.Max(1, r.Width * 0.6), 1.5));
}
if (!Mini)
for (int k = _lo; k <= _hi; k++)
@@ -388,7 +388,7 @@ internal sealed class MosaicCurveView : Control
if (Node is { } nx)
{
double y = Math.Clamp(Curve(nx), 0, 1);
- NotaGraph.Node(ctx, new Point(inner.X + nx * inner.Width, inner.Bottom - y * inner.Height), true);
+ NotaGraph.Node(ctx, new Point(inner.X + nx * inner.Width, inner.Bottom - y * inner.Height), _drag);
}
}
}
diff --git a/src/managed/Nota.App/DeviceCards/PluginCard.cs b/src/managed/Nota.App/DeviceCards/PluginCard.cs
index 3004a5a1..a582f3fb 100644
--- a/src/managed/Nota.App/DeviceCards/PluginCard.cs
+++ b/src/managed/Nota.App/DeviceCards/PluginCard.cs
@@ -90,13 +90,13 @@ internal static class PluginCard
};
var tags = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, Margin = new Thickness(0, 4, 0, 0) };
if (info.Format.Length > 0) tags.Children.Add(Tag(info.Format));
- tags.Children.Add(Tag(info.IsInstrument ? "INSTRUMENT" : "EFFECT"));
+ tags.Children.Add(Tag(info.IsInstrument ? "Instrument" : "Effect"));
int pc = e.PluginParamCount(t, di);
double ms = e.SampleRate > 0 ? e.TrackLatencySamples(t) / e.SampleRate * 1000.0 : 0;
var facts = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), RowDefinitions = new RowDefinitions("Auto,Auto"), RowSpacing = 3, Margin = new Thickness(0, 8, 0, 0) };
- Fact(facts, 0, "PARAMS", pc.ToString(NotaNum.Culture));
- Fact(facts, 1, "LATENCY", $"{ms.ToString("0.0", NotaNum.Culture)}\u2009ms");
+ Fact(facts, 0, "Params", pc.ToString(NotaNum.Culture));
+ Fact(facts, 1, "Latency", $"{ms.ToString("0.0", NotaNum.Culture)}\u2009ms");
var open = ActionButton("Open editor", GlyphKind.PopOut, primary: true);
ToolTip.SetTip(open, "Open the plug-in's own window");
@@ -123,7 +123,7 @@ internal static class PluginCard
for (int i = 0, n = e.TrackCount; i < n && src >= 0; i++)
if (e.TryGetTrackInfo(i, out var ti) && ti.Id == src) { label = TrackNames.Of(e, ti); break; }
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), Margin = new Thickness(0, 0, 0, 3) };
- Fact(g, 0, "SIDECHAIN", label);
+ Fact(g, 0, "Sidechain", label);
return g;
}
@@ -132,7 +132,7 @@ internal static class PluginCard
if (g.RowDefinitions.Count <= row) g.RowDefinitions.Add(new RowDefinition(GridLength.Auto));
var l = new TextBlock
{
- Text = label, FontSize = NotaType.RowLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.RowLabelTracking,
+ Text = NotaText.Label(label), FontSize = NotaType.RowLabel, FontWeight = FontWeight.Medium,
Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, 10, 0),
};
var v = new TextBlock
@@ -150,8 +150,8 @@ internal static class PluginCard
Padding = new Thickness(4, 1), VerticalAlignment = VerticalAlignment.Center,
Child = new TextBlock
{
- Text = text.ToUpperInvariant(), FontFamily = NotaFonts.MonoFamily, FontSize = NotaType.KnobLabel,
- FontWeight = FontWeight.Medium, LetterSpacing = 0.8, Foreground = TextSecondary,
+ Text = NotaText.Label(text), FontFamily = NotaFonts.MonoFamily, FontSize = NotaType.KnobLabel,
+ FontWeight = FontWeight.Medium, Foreground = TextSecondary,
},
};
@@ -181,8 +181,8 @@ internal static class PluginCard
var title = new TextBlock
{
- Text = "PARAMETERS", FontSize = NotaType.DeviceSection, FontWeight = FontWeight.Bold,
- LetterSpacing = NotaType.DeviceSectionTracking, Foreground = TextSecondary, VerticalAlignment = VerticalAlignment.Center,
+ Text = "Parameters", FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold,
+ Foreground = TextSecondary, VerticalAlignment = VerticalAlignment.Center,
};
var count = new TextBlock { FontFamily = NotaFonts.MonoFamily, FontSize = NotaType.KnobValue, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(6, 0, 0, 0) };
@@ -294,9 +294,10 @@ internal static class PluginCard
}
// A device section: card ground, hairline, radius 6.
- private static Border Section(Control child, double pad = 8) => new()
+ private static Decorator Section(Control child, double pad = 8)
{
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Panel, Padding = new Thickness(pad, 6, pad, pad), ClipToBounds = true, Child = child,
- };
+ var d = DeviceCardKit.Section(child);
+ d.Padding = new Thickness(pad, 6, pad, pad);
+ return d;
+ }
}
diff --git a/src/managed/Nota.App/DeviceCards/Rack/MacroPanel.cs b/src/managed/Nota.App/DeviceCards/Rack/MacroPanel.cs
index 9cee13aa..ce3ee0eb 100644
--- a/src/managed/Nota.App/DeviceCards/Rack/MacroPanel.cs
+++ b/src/managed/Nota.App/DeviceCards/Rack/MacroPanel.cs
@@ -2,10 +2,10 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// Detail · Devices — the kit macros of the Drum Rack and Nota Rhythm, from the almanac's
-// "1c Macro" cards. Eight knobs over the whole kit, as a 4 × 2 grid: the value in brass, the
+// "1c Macro" cards. Eight knobs over the whole kit, as a 4 × 2 grid: the value in primary text, the
// name, and in teal where it goes ("→ Reverb · Snare, Clap"). An unassigned macro is a dashed,
// empty cell. The selected macro's receivers — every mapping, with its range as a teal band and
-// the value it sits at now as a brass tick — are listed by MacroDetail (the Drum Rack's right
+// the value it sits at now as a neutral tick — are listed by MacroDetail (the Drum Rack's right
// panel); the band's ends drag.
//
// Both instruments reach this through IMacroSurface: the rack's macros (RackCore) and the
@@ -147,7 +147,7 @@ internal static class MacroPanel
string pid = RhythmModel.MacroId(m);
var knob = new Knob(Value(e, s, m), 1.0) { Accent = true, Default = 0.5, Width = Knob.SizeSecondary, Height = Knob.SizeSecondary, IsDim = !assigned };
- var value = new TextBlock { Text = Pct(Value(e, s, m)), FontSize = 7, FontFamily = NotaFonts.MonoFamily, Foreground = assigned ? AccentBright : TextDisabled, LineHeight = 9 };
+ var value = new TextBlock { Text = Pct(Value(e, s, m)), FontSize = 7, FontFamily = NotaFonts.MonoFamily, Foreground = assigned ? TextPrimary : TextDisabled, LineHeight = 9 };
knob.ValueChanged += v =>
{
e.PluginParamSet(track, di, pi, (float)v);
@@ -167,8 +167,8 @@ internal static class MacroPanel
bool custom = name != $"Macro {m + 1}";
var title = new TextBlock
{
- Text = assigned || custom ? (stacked ? $"MACRO {m + 1} · {name.ToUpperInvariant()}" : $"{m + 1} · {name.ToUpperInvariant()}") : (stacked ? $"MACRO {m + 1}" : $"{m + 1}"),
- FontSize = 7, FontWeight = FontWeight.Bold, LetterSpacing = 0.56, TextTrimming = TextTrimming.CharacterEllipsis,
+ Text = assigned || custom ? (stacked ? $"Macro {m + 1} · {name}" : $"{m + 1} · {name}") : (stacked ? $"Macro {m + 1}" : $"{m + 1}"),
+ FontSize = 7, FontWeight = FontWeight.Medium, TextTrimming = TextTrimming.CharacterEllipsis,
Foreground = !assigned ? TextDisabled : sel ? AccentBright : NotaPalette.TextStrong,
};
var recv = new TextBlock
@@ -294,10 +294,10 @@ internal static class MacroPanel
public static Control Detail(DeviceCardContext ctx, IMacroSurface s, int m, List<Action> tick)
{
var e = ctx.Engine;
- var val = new TextBlock { FontSize = 7, FontFamily = NotaFonts.MonoFamily, Foreground = AccentBright, VerticalAlignment = VerticalAlignment.Center };
+ var val = new TextBlock { FontSize = 7, FontFamily = NotaFonts.MonoFamily, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center };
tick.Add(() => val.Text = Pct(Value(e, s, m)));
var head = new Grid { Height = 20, ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), ColumnSpacing = 5, Margin = new Thickness(8, 0) };
- head.Children.Add(Cap($"MACRO {m + 1}"));
+ head.Children.Add(Cap($"Macro {m + 1}"));
var nm = new TextBlock { Text = s.MacroName(m), FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
Avalonia.Controls.Grid.SetColumn(nm, 1); head.Children.Add(nm);
Avalonia.Controls.Grid.SetColumn(val, 2); head.Children.Add(val);
@@ -386,7 +386,7 @@ internal static class MacroPanel
ToolTip.SetTip(name, dev.Length > 0 ? $"{s.SlotName(mm.Chain)} · {Short(dev)} · {pn}" : $"{s.SlotName(mm.Chain)} · {pn}");
var band = new Border { Height = 3, CornerRadius = NotaRadius.Bar, Background = NotaPalette.Teal, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
- var now = new Border { Width = 2, Height = 7, Background = AccentBright, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
+ var now = new Border { Width = 2, Height = 7, Background = NotaPalette.VizInk, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
var track = new Panel
{
Height = 9, Background = Brushes.Transparent, Cursor = new Cursor(StandardCursorType.SizeWestEast), VerticalAlignment = VerticalAlignment.Center,
@@ -425,7 +425,7 @@ internal static class MacroPanel
};
track.PointerMoved += (_, e) => { if (drag != 0) Apply(e.GetPosition(track).X); };
track.PointerReleased += (_, e) => { if (drag != 0) { drag = 0; e.Pointer.Capture(null); ctx.NotifyChanged(); } };
- ToolTip.SetTip(track, "The range the macro sweeps: drag either end · the brass tick is where it is now");
+ ToolTip.SetTip(track, "The range the macro sweeps: drag either end · the tick is where it is now");
var g = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,Auto,*,Auto"), ColumnSpacing = 5 };
g.Children.Add(hue);
@@ -449,7 +449,7 @@ internal static class MacroPanel
public static TextBlock Cap(string t) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.KnobLabelTracking,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center,
};
diff --git a/src/managed/Nota.App/DeviceCards/Rack/RackCardView.Drum.cs b/src/managed/Nota.App/DeviceCards/Rack/RackCardView.Drum.cs
index 0da706df..c5e80928 100644
--- a/src/managed/Nota.App/DeviceCards/Rack/RackCardView.Drum.cs
+++ b/src/managed/Nota.App/DeviceCards/Rack/RackCardView.Drum.cs
@@ -21,7 +21,7 @@
// receivers with their ranges, and Map · Rename · Clear.
// Status the selection and the kit, in words.
//
-// A pad's colour is its track-palette slot; brass means selection only, and a pad that is
+// A pad's colour is its track-palette slot; accent means selection only, and a pad that is
// sounding lights in its own hue.
using System;
@@ -104,7 +104,7 @@ internal sealed partial class RackCardView
var statusHost = DrumStatus(a, pads, macros);
DockPanel.SetDock(statusHost, Dock.Bottom);
- var root = new DockPanel { LastChildFill = true, Background = NotaPalette.Gutter, Children = { statusHost, body } };
+ var root = new DockPanel { LastChildFill = true, Background = NotaPalette.SurfaceCard, Children = { statusHost, body } };
if (_irTick.Count > 0) _ctx.AddDeviceRefresher(() => { for (int i = 0; i < _irTick.Count; i++) _irTick[i](); });
return root;
@@ -121,7 +121,7 @@ internal sealed partial class RackCardView
var tb = new TextBlock
{
Text = DrumViews[i], FontSize = NotaType.DeviceSection, VerticalAlignment = VerticalAlignment.Center,
- Foreground = on ? AccentBright : TextTertiary, FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal,
+ Foreground = on ? TextPrimary : TextTertiary, FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal,
};
var cell = new Border
{
@@ -230,7 +230,7 @@ internal sealed partial class RackCardView
Grid.SetColumn(nameTb, 1); top.Children.Add(nameTb);
var noteTb = DrumMono(NoteName(note), selected ? AccentBright : filled ? TextTertiary : TextDisabled, 7);
- var chokeTb = DrumMono(choke > 0 ? $"CH {choke}" : "", NotaPalette.TealBright, 7);
+ var chokeTb = DrumMono(choke > 0 ? $"Ch {choke}" : "", NotaPalette.TealBright, 7);
var bottom = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto"), VerticalAlignment = VerticalAlignment.Bottom };
bottom.Children.Add(noteTb);
Grid.SetColumn(chokeTb, 1); bottom.Children.Add(chokeTb);
@@ -252,7 +252,7 @@ internal sealed partial class RackCardView
if (filled)
{
- // A sounding pad lights in its own hue; brass stays the selection.
+ // A sounding pad lights in its own hue; accent stays the selection.
var hot = PadFill(PadHue(chain), 0.22);
_irTick.Add(() => pad.Background = E.RackChainMeter(T, chain) > 0.02f ? hot : restBg);
pad.PointerPressed += (_, e) =>
@@ -368,7 +368,7 @@ internal sealed partial class RackCardView
var x = DrumCap(t); if (right) x.HorizontalAlignment = HorizontalAlignment.Right;
Grid.SetColumn(x, col); head.Children.Add(x);
}
- H("PAD", 0); H("NOTE", 1); H("VOLUME", 2); H("PAN", 3); H("M S CH", 4, right: true);
+ H("PAD", 0); H("NOTE", 1); H("VOLUME", 2); H("PAN", 3); H("M S ch", 4, right: true);
var headBar = new Border { BorderBrush = NotaPalette.GraphBorder, BorderThickness = new Thickness(0, 0, 0, 1), Child = head };
var rows = new StackPanel { Spacing = 1, Margin = new Thickness(0, 2, 0, 0) };
@@ -437,8 +437,8 @@ internal sealed partial class RackCardView
Grid.SetColumn(pan, 3); g.Children.Add(pan);
int choke = E.RackChainChoke(T, c);
- var mute = MixBtn("M", () => a.ChainMute(c), NotaPalette.AccentHover, () => a.SetChainMute(c, !a.ChainMute(c)));
- var solo = MixBtn("S", () => a.ChainSolo(c), Brass, () => a.SetChainSolo(c, !a.ChainSolo(c)));
+ var mute = MixBtn("M", () => a.ChainMute(c), NotaPalette.Mute, () => a.SetChainMute(c, !a.ChainMute(c)));
+ var solo = MixBtn("S", () => a.ChainSolo(c), NotaPalette.Solo, () => a.SetChainSolo(c, !a.ChainSolo(c)));
var chk = MixBtn(choke > 0 ? choke.ToString() : "·", () => E.RackChainChoke(T, c) > 0, NotaPalette.Teal,
() => { E.RackSetChainChoke(T, c, (E.RackChainChoke(T, c) + 1) % ChokeNames.Length); DeferRebuild(); }, choke: true);
ToolTip.SetTip(mute, "Mute the pad"); ToolTip.SetTip(solo, "Solo the pad"); ToolTip.SetTip(chk, "Choke group: click for the next");
@@ -480,9 +480,9 @@ internal sealed partial class RackCardView
// A mixer switch, 13 × 11: raised when off; when on, filled with its colour (mute, solo)
// or washed in teal (the choke group, which is a number, not a state).
- private Border MixBtn(string text, Func<bool> on, IBrush accent, Action toggle, bool choke = false)
+ private Border MixBtn(string text, Func<bool> on, SolidColorBrush accent, Action toggle, bool choke = false)
{
- var tb = new TextBlock { Text = text, FontSize = 7, FontWeight = FontWeight.Bold, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
+ var tb = new TextBlock { Text = text, FontSize = 7, FontWeight = FontWeight.Medium, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
if (choke) tb.FontFamily = NotaFonts.MonoFamily;
var b = new Border { Width = 13, Height = 11, CornerRadius = NotaRadius.Clip, BorderThickness = new Thickness(1), Cursor = new Cursor(StandardCursorType.Hand), Child = tb };
void Paint()
@@ -498,7 +498,7 @@ internal sealed partial class RackCardView
{
b.Background = v ? accent : NotaPalette.SurfaceRaised;
b.BorderBrush = v ? accent : BorderDef;
- tb.Foreground = v ? OnAccent : TextSecondary;
+ tb.Foreground = v ? NotaPalette.InkOn(accent) : TextSecondary;
}
}
b.PointerPressed += (_, e) =>
@@ -624,7 +624,7 @@ internal sealed partial class RackCardView
_irTick.Add(chokeSync);
ToolTip.SetTip(chokeSeg, "Pads in the same group cut each other off");
var chokeRow = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), ColumnSpacing = 6 };
- chokeRow.Children.Add(DrumCap("CHOKE"));
+ chokeRow.Children.Add(DrumCap("Choke"));
Grid.SetColumn(chokeSeg, 1); chokeRow.Children.Add(chokeSeg);
Border inst = null!;
@@ -657,7 +657,7 @@ internal sealed partial class RackCardView
var status = new TextBlock { FontSize = 8, Foreground = TextSecondary, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis };
var meta = DrumMono("", TextSecondary, 8);
int groups = pads.Select(c => E.RackChainChoke(T, c)).Where(g => g > 0).Distinct().Count();
- meta.Text = $"{pads.Count} PAD{(pads.Count == 1 ? "" : "S")} · {groups} CHOKE GROUP{(groups == 1 ? "" : "S")}"
+ meta.Text = $"{pads.Count} pad{(pads.Count == 1 ? "" : "s")} · {groups} choke group{(groups == 1 ? "" : "s")}"
+ (E.SampleRate > 0 ? " · " + NotaNum.Unit(E.SampleRate / 1000.0, "0.#", "kHz") : "");
string Timing() => $"swing {NotaNum.Pct(E.RackSwing(T))} · humanize {NotaNum.Pct(E.RackHumanize(T))}";
@@ -855,15 +855,11 @@ internal sealed partial class RackCardView
private static readonly IBrush TextStrongInk = NotaPalette.TextStrong;
// A device section: card ground, hairline, radius 6.
- private static Border DrumBox(Control child) => new()
- {
- Background = NotaPalette.SurfaceCard, BorderBrush = BorderDef, BorderThickness = new Thickness(1),
- CornerRadius = NotaRadius.Tile, ClipToBounds = true, Child = child,
- };
+ private static Decorator DrumBox(Control child) => DeviceCardKit.Section(child);
private static TextBlock DrumCap(string t) => new()
{
- Text = t, FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.KnobLabelTracking,
+ Text = NotaText.Label(t), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium,
Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center,
};
@@ -879,7 +875,7 @@ internal sealed partial class RackCardView
HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(8, 0),
};
- // A small raised toggle (Fold): brass edge and Brass Light text when on.
+ // A small raised toggle (Fold): accent edge and bright accent text when on.
private static Border DrumButton(string text, bool on, Action click)
{
var tb = new TextBlock { Text = text, FontSize = 7, FontWeight = FontWeight.SemiBold, Foreground = on ? AccentBright : TextStrongInk, VerticalAlignment = VerticalAlignment.Center };
diff --git a/src/managed/Nota.App/DeviceCards/Rack/RackCardView.cs b/src/managed/Nota.App/DeviceCards/Rack/RackCardView.cs
index 91414c08..a1a087c5 100644
--- a/src/managed/Nota.App/DeviceCards/Rack/RackCardView.cs
+++ b/src/managed/Nota.App/DeviceCards/Rack/RackCardView.cs
@@ -45,7 +45,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
private static readonly IBrush IrField = NotaPalette.GraphBorder;
private static readonly IBrush IrCard = NotaPalette.SurfaceRaised;
private static readonly IBrush IrAmber = NotaPalette.Accent;
- private static readonly IBrush IrAmberLit = NotaPalette.AccentBright;
+ private static readonly IBrush IrAmberLit = NotaPalette.AccentBright; // selection only
private static readonly IBrush IrTeal = NotaPalette.Teal;
private static readonly IBrush IrTxt = NotaPalette.TextPrimary;
private static readonly IBrush IrMuted = NotaPalette.TextTertiary;
@@ -65,20 +65,21 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
// Borders that outlive a theme change, and a snapshot would freeze the chain hues.
private static IBrush ChainHue(int c) => NotaPalette.TrackBrushes[((c % 8) + 8) % 8];
private static TextBlock IrMono(string t, IBrush c, double fs = 8) { var tb = new TextBlock { Text = t, FontSize = fs, Foreground = c, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
- private static TextBlock IrCap(string t, IBrush? c = null) => new() { Text = t, FontSize = 8, FontWeight = FontWeight.Bold, Foreground = c ?? IrMuted, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock IrCap(string t, IBrush? c = null) => new() { Text = NotaText.Label(t), FontSize = 8, FontWeight = FontWeight.Medium, Foreground = c ?? IrMuted, VerticalAlignment = VerticalAlignment.Center };
// ---- entry points -----------------------------------------------------
- // Instrument Rack card (the track's instrument), rebuilt to mockup 2p (700×260).
- public Control BuildInstrumentRackCard()
+ // Instrument Rack body (the track's instrument, mockup 2p, 700×260). The shared device
+ // shell draws the header (name, presets, "Rack · N chains"); this is everything below it.
+ public Control BuildInstrumentRackBody(out int chains)
{
var a = new InstrumentRackAccess(E, T);
- int chains = a.ChainCount();
+ chains = a.ChainCount();
Sel = chains > 0 ? Math.Clamp(Sel, 0, chains - 1) : 0;
_irTick.Clear();
Control content = _macroMapMode ? InstrumentRackMacroMap(a) : InstrumentRackMain(a);
if (_irTick.Count > 0) _ctx.AddDeviceRefresher(() => { for (int i = 0; i < _irTick.Count; i++) _irTick[i](); });
- return new Border { Width = 700, Height = 260, Background = NotaPalette.BgApp, BorderBrush = IrBorder, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Body, ClipToBounds = true, Child = content };
+ return new Border { Background = NotaPalette.BgApp, Child = content };
}
private Control InstrumentRackMain(IRackAccess a)
@@ -88,26 +89,8 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var rail = IrRackRail(a);
DockPanel.SetDock(chainList, Dock.Left); DockPanel.SetDock(rail, Dock.Right);
var body = new DockPanel { LastChildFill = true, Children = { chainList, rail, IrDeviceArea(a) } };
- var header = IrHeader(a, "MAIN");
- DockPanel.SetDock(header, Dock.Top); DockPanel.SetDock(strip, Dock.Top);
- return new DockPanel { LastChildFill = true, Children = { header, strip, body } };
- }
-
- // ---- header (22) ----
- // The almanac device header (22): name left; a mono caps badge right. Nothing else — the
- // rack's level is on the track meter, and its view switches live in its LIVE strip.
- private static Control RackHeader(string name, string badge)
- {
- var nameTb = new TextBlock { Text = name, FontSize = NotaType.DeviceName, FontWeight = FontWeight.SemiBold, Foreground = IrTxt, VerticalAlignment = VerticalAlignment.Center };
- var badgeTb = new TextBlock { Text = badge, FontFamily = NotaFonts.MonoFamily, FontSize = NotaType.Eyebrow, FontWeight = FontWeight.Medium, LetterSpacing = 1.2, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center, [DockPanel.DockProperty] = Dock.Right };
- var dp = new DockPanel { LastChildFill = false, Margin = new Thickness(NotaSpace.DeviceInsetWide, 0), Children = { badgeTb, nameTb } };
- return new Border { Height = DeviceCardKit.HeaderH, Background = IrHdr, BorderBrush = IrBorder, BorderThickness = new Thickness(0, 0, 0, 1), Child = dp };
- }
-
- private Control IrHeader(IRackAccess a, string mode)
- {
- int chains = a.ChainCount();
- return RackHeader("Nota Instrument Rack", $"RACK · {chains} CHAIN{(chains == 1 ? "" : "S")}");
+ DockPanel.SetDock(strip, Dock.Top);
+ return new DockPanel { LastChildFill = true, Children = { strip, body } };
}
// ---- macro strip (34): 8 named horizontal macro sliders ----
@@ -132,7 +115,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
for (int m = 0; m < a.MappingCount(); m++) if (a.TryGetMapping(m, out var mm) && mm.Macro == i) { mapped = true; break; }
var name = new TextBlock { Text = a.MacroName(i), FontSize = 8, Foreground = mapped ? IrTxt : IrMuted, TextTrimming = TextTrimming.CharacterEllipsis, VerticalAlignment = VerticalAlignment.Center };
var val = IrMono("0", IrMuted, 8); val.TextAlignment = TextAlignment.Right;
- var fill = new Border { Height = 3, Background = mapped ? IrAmber : NotaPalette.TextDisabled, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
+ var fill = new Border { Height = 3, Background = mapped ? NotaPalette.VizInk : NotaPalette.TextDisabled, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
var handle = new Border { Width = 6, Height = 8, Background = NotaPalette.TextSecondary, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
var slot = new Panel { Height = 10, Children = { new Border { Height = 3, Background = IrInset, CornerRadius = NotaRadius.Clip, VerticalAlignment = VerticalAlignment.Center }, fill, handle } };
void Vis(double v) { double W = slot.Bounds.Width; fill.Width = v * W; handle.Margin = new Thickness(Math.Clamp(v * W - 3, 0, Math.Max(0, W - 6)), 0, 0, 0); }
@@ -198,8 +181,8 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var meterFill = new Border { Background = Success, HorizontalAlignment = HorizontalAlignment.Left, CornerRadius = NotaRadius.Bar };
var meter = new Border { Width = 20, Height = 3, Background = IrInset, CornerRadius = NotaRadius.Bar, Child = meterFill, VerticalAlignment = VerticalAlignment.Center };
_irTick.Add(() => meterFill.Width = 20 * Math.Clamp(E.RackChainMeter(T, c), 0, 1));
- var m = IrMsBtn("M", a.ChainMute(c), IrRed, () => { a.SetChainMute(c, !a.ChainMute(c)); _ctx.RequestRebuild(); });
- var s = IrMsBtn("S", a.ChainSolo(c), IrAmber, () => { a.SetChainSolo(c, !a.ChainSolo(c)); _ctx.RequestRebuild(); });
+ var m = IrMsBtn("M", a.ChainMute(c), NotaPalette.Mute, () => { a.SetChainMute(c, !a.ChainMute(c)); _ctx.RequestRebuild(); });
+ var s = IrMsBtn("S", a.ChainSolo(c), NotaPalette.Solo, () => { a.SetChainSolo(c, !a.ChainSolo(c)); _ctx.RequestRebuild(); });
MidiLearn.Bind(m, MidiTarget.RackChainMute(T, a.AutomationDeviceIndex, c), "Chain Mute");
MidiLearn.Bind(s, MidiTarget.RackChainSolo(T, a.AutomationDeviceIndex, c), "Chain Solo");
var info = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, VerticalAlignment = VerticalAlignment.Center, Children = { zone, vel, WithRight(dbT), meter, m, s } };
@@ -250,7 +233,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
{
var head = new DockPanel { LastChildFill = true, Height = 18, Children = {
new Border { Width = 6, Height = 6, CornerRadius = NotaRadius.Badge, Background = dot, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, 4, 0), [DockPanel.DockProperty] = Dock.Left },
- WithRight(new TextBlock { Text = kind, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center }),
+ WithRight(new TextBlock { Text = kind, FontSize = 7, FontWeight = FontWeight.Medium, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center }),
new TextBlock { Text = name, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = IrTxt, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis } } };
if (onDelete != null) head.Children.Insert(1, WithRight(SlotDelBtn(onDelete)));
var headWrap = new Border { BorderBrush = IrBorder, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(6, 0), Child = head };
@@ -293,11 +276,11 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
private Control IrInstrumentSlot(IRackAccess a, int sc)
{
int mc = MacrosOnTarget(a, sc, -1);
- var footer = mc > 0 ? new TextBlock { Text = $"{mc} macro", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = IrTeal, VerticalAlignment = VerticalAlignment.Center }
- : (Control)new TextBlock { Text = "INSTR", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center };
+ var footer = mc > 0 ? new TextBlock { Text = $"{mc} macro", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = IrTeal, VerticalAlignment = VerticalAlignment.Center }
+ : (Control)new TextBlock { Text = "Instr", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center };
Border slot = null!;
slot = IrSlot(ChainHue(sc), string.IsNullOrEmpty(a.ChainInstrumentName(sc)) ? "Instrument" : a.ChainInstrumentName(sc),
- a.ChainInstrumentKind(sc) < 0 ? "PLUG" : "INST", false, () => OpenChainInstrumentGui(a, sc, slot), () => OpenChainInstrumentParams(a, sc, slot), footer);
+ a.ChainInstrumentKind(sc) < 0 ? "Plug" : "Inst", false, () => OpenChainInstrumentGui(a, sc, slot), () => OpenChainInstrumentParams(a, sc, slot), footer);
return slot;
}
@@ -305,10 +288,10 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
{
bool byp = a.ChainDeviceBypassed(sc, d);
int mc = MacrosOnTarget(a, sc, d);
- var footer = mc > 0 ? (Control)new TextBlock { Text = $"{mc} macro", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = IrTeal, VerticalAlignment = VerticalAlignment.Center }
- : IrMsBtn("BYP", byp, IrMuted, () => { a.SetChainDeviceBypassed(sc, d, !byp); _ctx.RequestRebuild(); });
+ var footer = mc > 0 ? (Control)new TextBlock { Text = $"{mc} macro", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = IrTeal, VerticalAlignment = VerticalAlignment.Center }
+ : IrMsBtn("Byp", byp, NotaPalette.TextTertiary, () => { a.SetChainDeviceBypassed(sc, d, !byp); _ctx.RequestRebuild(); });
Border slot = null!;
- slot = IrSlot(byp ? IrMuted : Success, a.ChainDeviceName(sc, d), a.ChainDeviceBuiltinKind(sc, d) < 0 ? "PLUG" : "FX", byp, () => OpenChainDeviceGui(a, sc, d, slot), () => OpenChainDeviceParams(a, sc, d, slot), footer,
+ slot = IrSlot(byp ? IrMuted : Success, a.ChainDeviceName(sc, d), a.ChainDeviceBuiltinKind(sc, d) < 0 ? "Plug" : "FX", byp, () => OpenChainDeviceGui(a, sc, d, slot), () => OpenChainDeviceParams(a, sc, d, slot), footer,
() => { a.RemoveChainDevice(sc, d); DeferRebuild(); });
return slot;
}
@@ -319,14 +302,16 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
{
var plus = new Glyph(GlyphKind.Plus, 10) { Foreground = IrMuted };
var lbl = new TextBlock { Text = "Device", FontSize = 8, Foreground = IrMuted, HorizontalAlignment = HorizontalAlignment.Center };
- var dash = new Avalonia.Controls.Shapes.Rectangle { Stroke = DashIdle, StrokeThickness = 1, StrokeDashArray = new Avalonia.Collections.AvaloniaList<double> { 3, 2.5 }, RadiusX = 6, RadiusY = 6 };
+ var dash = new Avalonia.Controls.Shapes.Rectangle { Stroke = DashIdle, StrokeThickness = 1, StrokeDashArray = new Avalonia.Collections.AvaloniaList<double> { 3, 2.5 }, RadiusX = NotaRadius.ControlValue, RadiusY = NotaRadius.ControlValue, IsVisible = false };
var box = new Panel { Width = 52, Cursor = new Cursor(StandardCursorType.Hand), Background = Brushes.Transparent,
Children = { dash, new StackPanel { VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center, Spacing = 2, Children = { plus, lbl } } } };
- void Idle() { dash.Stroke = DashIdle; dash.Fill = null; plus.Foreground = IrMuted; lbl.Foreground = IrMuted; }
+ // The dashed outline shows only while an effect is dragged over the slot (spec 012).
+ void Idle() { dash.IsVisible = false; dash.Stroke = DashIdle; dash.Fill = null; plus.Foreground = IrMuted; lbl.Foreground = IrMuted; }
void Hover() { dash.Stroke = NotaPalette.TextTertiary; plus.Foreground = IrTxt; lbl.Foreground = NotaPalette.TextSecondary; }
- void Drop() { dash.Stroke = IrTeal; dash.Fill = NotaPalette.Wash(NotaPalette.Teal, 0x22); plus.Foreground = IrTeal; lbl.Foreground = IrTeal; }
+ void Drop() { dash.IsVisible = true; dash.Stroke = IrTeal; dash.Fill = NotaPalette.Wash(NotaPalette.Teal, 0x22); plus.Foreground = IrTeal; lbl.Foreground = IrTeal; }
+ ToolTip.SetTip(box, "Add device — click for the list, or drop an effect here");
box.PointerEntered += (_, _) => Hover();
box.PointerExited += (_, _) => Idle();
box.PointerPressed += (_, _) => ShowAddDeviceMenu(a, sc, box);
@@ -395,7 +380,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var volCell = new StackPanel { HorizontalAlignment = HorizontalAlignment.Center, Children = { IrCap("VOLUME"), vol, volVal } };
var glideVal = IrMono("0\u2009ms", IrTxt, 8); glideVal.VerticalAlignment = VerticalAlignment.Center;
- var gFill = new Border { Height = 3, Background = IrAmber, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
+ var gFill = new Border { Height = 3, Background = NotaPalette.VizInk, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
var gSlot = new Panel { Height = 8, MinWidth = 30, Children = { new Border { Height = 3, Background = IrInset, CornerRadius = NotaRadius.Clip, VerticalAlignment = VerticalAlignment.Center }, gFill } };
string GlideMs(double v) => $"{v * 500:0}\u2009ms";
void GUpd() { double v = E.RackGlide(T); gFill.Width = v * gSlot.Bounds.Width; glideVal.Text = GlideMs(v); }
@@ -407,7 +392,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var glideRow = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), ColumnSpacing = 4, Children = { IrCap("GLIDE"), WithCol(gSlot, 1), WithCol(glideVal, 2) } };
var mapBtn = new Border { BorderBrush = IrTeal, BorderThickness = new Thickness(1), Background = NotaPalette.Wash(NotaPalette.Teal, 0x24), CornerRadius = NotaRadius.Control, Padding = new Thickness(0, 3), Cursor = new Cursor(StandardCursorType.Hand),
- Child = new TextBlock { Text = "MACRO MAP", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = IrTeal, HorizontalAlignment = HorizontalAlignment.Center, TextAlignment = TextAlignment.Center } };
+ Child = new TextBlock { Text = "Macro map", FontSize = 8, FontWeight = FontWeight.Medium, Foreground = IrTeal, HorizontalAlignment = HorizontalAlignment.Center, TextAlignment = TextAlignment.Center } };
mapBtn.PointerPressed += (_, _) => { _macroMapMode = true; _ctx.RequestRebuild(); };
var fold = IrRailBtn(_foldZone ? "Unfold" : "Fold", () => { _foldZone = !_foldZone; _ctx.RequestRebuild(); });
@@ -645,10 +630,10 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
return new Border { Background = IrInset, BorderBrush = IrBorder, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Badge, Padding = new Thickness(1), VerticalAlignment = VerticalAlignment.Center, Child = row };
}
- private Border IrMsBtn(string t, bool on, IBrush accent, Action onClick)
+ private Border IrMsBtn(string t, bool on, SolidColorBrush fill, Action onClick)
{
- var b = new Border { MinWidth = 13, Height = 12, CornerRadius = NotaRadius.Clip, BorderThickness = new Thickness(1), BorderBrush = on ? accent : NotaPalette.BorderStrong, Background = on ? accent : IrCard, Cursor = new Cursor(StandardCursorType.Hand),
- Child = new TextBlock { Text = t, FontSize = 7, FontWeight = FontWeight.Bold, Foreground = on ? NotaPalette.TextOnAccent : NotaPalette.TextSecondary, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Padding = new Thickness(3, 0) } };
+ var b = new Border { MinWidth = 13, Height = 12, CornerRadius = NotaRadius.Clip, BorderThickness = new Thickness(1), BorderBrush = on ? fill : NotaPalette.BorderStrong, Background = on ? fill : IrCard, Cursor = new Cursor(StandardCursorType.Hand),
+ Child = new TextBlock { Text = t, FontSize = 7, FontWeight = FontWeight.Medium, Foreground = on ? NotaPalette.InkOn(fill) : NotaPalette.TextSecondary, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Padding = new Thickness(3, 0) } };
b.PointerPressed += (_, e) => { e.Handled = true; onClick(); };
return b;
}
@@ -663,11 +648,10 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
// ---- second view: Macro map (mockup 2p card 2) ----
private static int _mapMacro;
- // withHeader=false + a custom onDone lets the Audio Effect Rack reuse this view
- // inside the shared device shell (no duplicate instrument header).
- private Control InstrumentRackMacroMap(IRackAccess a, bool withHeader = true, Action? onDone = null)
+ // Both racks show this view inside the shared device shell; a custom onDone lets the
+ // Audio Effect Rack leave it its own way.
+ private Control InstrumentRackMacroMap(IRackAccess a, Action? onDone = null)
{
- var header = withHeader ? IrHeader(a, "MAP") : null;
// MAPPING strip.
var done = new Border { BorderBrush = IrTeal, BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Control, Padding = new Thickness(10, 2), Cursor = new Cursor(StandardCursorType.Hand),
Child = new TextBlock { Text = "Done", FontSize = 9, Foreground = IrTeal, HorizontalAlignment = HorizontalAlignment.Center, TextAlignment = TextAlignment.Center }, [DockPanel.DockProperty] = Dock.Right };
@@ -686,7 +670,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
for (int m = 0; m < a.MappingCount(); m++) if (a.TryGetMapping(m, out var mm) && mm.Macro == i) tCount++;
bool cur = i == _mapMacro;
var nm = new TextBlock { Text = a.MacroName(i), FontSize = 9, Foreground = cur ? IrAmberLit : (tCount > 0 ? IrTxt : IrMuted), Width = 60, TextTrimming = TextTrimming.CharacterEllipsis, VerticalAlignment = VerticalAlignment.Center };
- var fill = new Border { Height = 3, Background = IrAmber, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
+ var fill = new Border { Height = 3, Background = NotaPalette.VizInk, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
var slot = new Panel { Height = 6, Children = { new Border { Height = 3, Background = IrInset, CornerRadius = NotaRadius.Clip, VerticalAlignment = VerticalAlignment.Center }, fill } };
_irTick.Add(() => fill.Width = E.PluginParamGet(T, a.AutomationDeviceIndex, iv) * slot.Bounds.Width);
var cnt = IrMono(tCount.ToString(), cur ? IrTeal : IrMuted);
@@ -700,7 +684,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var targetStack = new StackPanel { Spacing = 4 };
int nTargets = 0;
for (int m = 0; m < a.MappingCount(); m++) if (a.TryGetMapping(m, out var mm) && mm.Macro == _mapMacro) nTargets++;
- targetStack.Children.Add(new DockPanel { LastChildFill = false, Children = { IrCap($"{a.MacroName(_mapMacro).ToUpperInvariant()} → {nTargets} TARGET{(nTargets == 1 ? "" : "S")}"), WithRight(new TextBlock { Text = "min — max", FontSize = 8, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center }) } });
+ targetStack.Children.Add(new DockPanel { LastChildFill = false, Children = { IrCap($"{a.MacroName(_mapMacro)} → {nTargets} target{(nTargets == 1 ? "" : "s")}"), WithRight(new TextBlock { Text = "min — max", FontSize = 8, Foreground = IrMuted, VerticalAlignment = VerticalAlignment.Center }) } });
for (int m = 0; m < a.MappingCount(); m++)
{
if (!a.TryGetMapping(m, out var mm) || mm.Macro != _mapMacro) continue;
@@ -722,7 +706,6 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var body = new DockPanel { LastChildFill = true, Children = { macCol, targets } };
DockPanel.SetDock(strip, Dock.Top);
var root = new DockPanel { LastChildFill = true };
- if (header != null) { DockPanel.SetDock(header, Dock.Top); root.Children.Add(header); }
root.Children.Add(strip); root.Children.Add(body);
return root;
}
@@ -772,7 +755,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
Control root;
if (_aeMacroMap)
{
- root = InstrumentRackMacroMap(a, false, () => { _aeMacroMap = false; DeferRebuild(); });
+ root = InstrumentRackMacroMap(a, () => { _aeMacroMap = false; DeferRebuild(); });
}
else
{
@@ -828,8 +811,8 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var meterFill = new Border { Background = Success, HorizontalAlignment = HorizontalAlignment.Left, CornerRadius = NotaRadius.Bar };
var meter = new Border { Height = 3, Background = IrInset, CornerRadius = NotaRadius.Bar, Child = meterFill, VerticalAlignment = VerticalAlignment.Center };
_irTick.Add(() => meterFill.Width = meter.Bounds.Width * Math.Clamp(a.ChainMeter(c), 0, 1));
- var m = IrMsBtn("M", a.ChainMute(c), IrRed, () => { a.SetChainMute(c, !a.ChainMute(c)); _ctx.RequestRebuild(); });
- var s = IrMsBtn("S", a.ChainSolo(c), IrAmber, () => { a.SetChainSolo(c, !a.ChainSolo(c)); _ctx.RequestRebuild(); });
+ var m = IrMsBtn("M", a.ChainMute(c), NotaPalette.Mute, () => { a.SetChainMute(c, !a.ChainMute(c)); _ctx.RequestRebuild(); });
+ var s = IrMsBtn("S", a.ChainSolo(c), NotaPalette.Solo, () => { a.SetChainSolo(c, !a.ChainSolo(c)); _ctx.RequestRebuild(); });
MidiLearn.Bind(m, MidiTarget.RackChainMute(T, a.AutomationDeviceIndex, c), "Chain Mute");
MidiLearn.Bind(s, MidiTarget.RackChainSolo(T, a.AutomationDeviceIndex, c), "Chain Solo");
var meterGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto,Auto"), ColumnSpacing = 4, VerticalAlignment = VerticalAlignment.Center };
@@ -934,7 +917,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
if (!follow)
mapHost.PointerPressed += (_, e) => { if (e.GetCurrentPoint(mapHost).Properties.IsRightButtonPressed) { double x = e.GetPosition(mapHost).X; E.RackDevSetChainSelect(T, di, (float)Math.Clamp(x / Math.Max(1, mapHost.Bounds.Width), 0, 1)); } };
- var readout = IrMono("", IrAmberLit);
+ var readout = IrMono("", NotaPalette.TextSecondary);
_irTick.Add(() => readout.Text = $"in {(int)Math.Round(E.RackDevLiveSelector(T, di) * 48 - 48)}\u2009dB → {AeActiveCount(a, di)} chain{(AeActiveCount(a, di) == 1 ? "" : "s")}");
var head = new DockPanel { LastChildFill = false, Children = { IrCap("CHAIN SELECTOR"),
WithRight(DrumChip(follow ? "Follow" : "Manual", follow, () => { E.RackDevSetSelFollow(T, di, !follow); DeferRebuild(); })),
@@ -958,7 +941,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
string GainDb(double lin) => lin <= 0.001 ? "−∞" : $"{20 * Math.Log10(lin):+0.0;−0.0;0.0}";
var gainVal = IrMono(GainDb(E.RackDevVolume(T, di)), IrTxt, 8); gainVal.VerticalAlignment = VerticalAlignment.Center;
- var gFill = new Border { Height = 3, Background = IrAmber, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
+ var gFill = new Border { Height = 3, Background = NotaPalette.VizInk, CornerRadius = NotaRadius.Clip, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Center };
var gSlot = new Panel { Height = 8, MinWidth = 26, Cursor = new Cursor(StandardCursorType.Hand), Background = Brushes.Transparent, Children = { new Border { Height = 3, Background = IrInset, CornerRadius = NotaRadius.Clip, VerticalAlignment = VerticalAlignment.Center }, gFill } };
void GUpd() { double v = Math.Clamp(E.RackDevVolume(T, di) / 2.0, 0, 1); gFill.Width = v * gSlot.Bounds.Width; gainVal.Text = GainDb(E.RackDevVolume(T, di)); }
bool gd = false; void GSet(double x) { double v = Math.Clamp(x / Math.Max(1, gSlot.Bounds.Width), 0, 1); E.RackDevSetVolume(T, di, (float)(v * 2.0)); GUpd(); }
@@ -970,7 +953,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var gainRow = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), ColumnSpacing = 4, VerticalAlignment = VerticalAlignment.Center, Children = { IrCap("GAIN"), WithCol(gSlot, 1), WithCol(gainVal, 2) } };
var macroMap = new Border { BorderBrush = IrTeal, BorderThickness = new Thickness(1), Background = NotaPalette.Wash(NotaPalette.Teal, 0x24), CornerRadius = NotaRadius.Control, Padding = new Thickness(0, 3), Cursor = new Cursor(StandardCursorType.Hand),
- Child = new TextBlock { Text = "MACRO MAP", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = IrTeal, HorizontalAlignment = HorizontalAlignment.Center, TextAlignment = TextAlignment.Center } };
+ Child = new TextBlock { Text = "Macro map", FontSize = 8, FontWeight = FontWeight.Medium, Foreground = IrTeal, HorizontalAlignment = HorizontalAlignment.Center, TextAlignment = TextAlignment.Center } };
macroMap.PointerPressed += (_, _) => { _aeMacroMap = true; DeferRebuild(); };
var pdc = AeRailToggle("PDC", E.RackDevPdc(T, di), () => { E.RackDevSetPdc(T, di, !E.RackDevPdc(T, di)); DeferRebuild(); });
@@ -1050,7 +1033,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var rowInner = new DockPanel { LastChildFill = true, Children = {
WithRight(SlotDelBtn(() => { a.RemoveChainDevice(c, d); DeferRebuild(); })),
WithRight(new Glyph(GlyphKind.Grip, 8) { Foreground = IrMuted }),
- WithRight(mc > 0 ? new TextBlock { Text = $"{mc}M", FontSize = 7, FontWeight = FontWeight.Bold, Foreground = IrTeal, VerticalAlignment = VerticalAlignment.Center } : (Control)new Border()),
+ WithRight(mc > 0 ? new TextBlock { Text = $"{mc}M", FontSize = 7, FontWeight = FontWeight.Medium, Foreground = IrTeal, VerticalAlignment = VerticalAlignment.Center } : (Control)new Border()),
new StackPanel { Orientation = Orientation.Horizontal, Spacing = 5, VerticalAlignment = VerticalAlignment.Center, Children = {
new Border { Width = 5, Height = 5, CornerRadius = NotaRadius.Badge, Background = byp ? IrMuted : Success, VerticalAlignment = VerticalAlignment.Center },
new TextBlock { Text = a.ChainDeviceName(c, d), FontSize = 9, Foreground = IrTxt, VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis } } } } };
@@ -1128,8 +1111,8 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
gain.ValueChanged += v => a.SetChainGain(c, (float)v);
var pan = new MiniFader(a.ChainPan(c) * 0.5 + 0.5, 1.0) { Width = 40 };
pan.ValueChanged += v => a.SetChainPan(c, (float)(v * 2.0 - 1.0));
- var m = Toggle("M", a.ChainMute(c), Danger, () => { a.SetChainMute(c, !a.ChainMute(c)); _ctx.RequestRebuild(); });
- var s = Toggle("S", a.ChainSolo(c), Brass, () => { a.SetChainSolo(c, !a.ChainSolo(c)); _ctx.RequestRebuild(); });
+ var m = Toggle("M", a.ChainMute(c), NotaPalette.Mute, () => { a.SetChainMute(c, !a.ChainMute(c)); _ctx.RequestRebuild(); });
+ var s = Toggle("S", a.ChainSolo(c), NotaPalette.Solo, () => { a.SetChainSolo(c, !a.ChainSolo(c)); _ctx.RequestRebuild(); });
var ctrls = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 4, VerticalAlignment = VerticalAlignment.Center, Children = { gain, pan, m, s } };
var row = new Border
@@ -1224,7 +1207,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
// Every param as knobs, in the device window (no presets or sizes: it is not the card).
private void OpenParamWindow(Control anchor, string name, int count, Func<int, Control> row, Func<string> status, DeviceWindowBypass? bypass = null)
{
- var win = new DeviceWindow(name, E.GetTrackName(T), "PARAMS",
+ var win = new DeviceWindow(name, E.GetTrackName(T), "Params",
_ => new DeviceWindowPage(ParamGridContent(count, row), 476, double.NaN), bypass,
() => $"{status()} · {count} parameter{(count == 1 ? "" : "s")}") { ContextTrackId = T };
win.ShowFrom(anchor);
@@ -1253,7 +1236,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
ctrls.Children.Add(Glyph(GlyphKind.Close, true, () => { a.RemoveChainDevice(sc, d); _ctx.RequestRebuild(); }));
var body = new StackPanel { Spacing = 7 };
- body.Children.Add(Toggle(byp ? "BYPASSED" : "ACTIVE", !byp, Success, () => { a.SetChainDeviceBypassed(sc, d, !byp); _ctx.RequestRebuild(); }));
+ body.Children.Add(Toggle(byp ? "Bypassed" : "Active", !byp, NotaPalette.Success, () => { a.SetChainDeviceBypassed(sc, d, !byp); _ctx.RequestRebuild(); }));
int pc = a.ChainDeviceParamCount(sc, d);
for (int p = 0; p < pc; p++) body.Children.Add(RackDeviceParamRow(a, sc, d, p));
var card = DeviceCardShell(a.ChainDeviceName(sc, d), ctrls, body, 180);
@@ -1261,20 +1244,21 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
return card;
}
+ // The end of a chain: a slim "+" key (spec 012). Its dashed outline shows only while an
+ // effect is dragged over it.
private Control ChainAddDeviceCard(IRackAccess a, int sc)
{
- var content = new StackPanel
+ var dash = new Rectangle
{
- Spacing = 4, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center,
- Children =
- {
- new Glyph(GlyphKind.Plus, 12) { Foreground = TextTertiary },
- new TextBlock { Text = "Add device", FontSize = 9, Foreground = TextTertiary, HorizontalAlignment = HorizontalAlignment.Center },
- new TextBlock { Text = "or drop a plug-in", FontSize = 8, Foreground = TextDisabled, HorizontalAlignment = HorizontalAlignment.Center },
- },
+ Stroke = BorderStrong, StrokeThickness = 1, StrokeDashArray = new AvaloniaList<double>(4, 3),
+ RadiusX = NotaRadius.ControlValue, RadiusY = NotaRadius.ControlValue, IsVisible = false,
};
- var dash = new Rectangle { Stroke = BorderStrong, StrokeThickness = 1, StrokeDashArray = new AvaloniaList<double>(4, 3), RadiusX = 6, RadiusY = 6 };
- var host = new Grid { Width = 116, Children = { dash, content }, Cursor = new Cursor(StandardCursorType.Hand) };
+ var host = new Grid
+ {
+ Width = 28, Background = Brushes.Transparent, Cursor = new Cursor(StandardCursorType.Hand),
+ Children = { dash, new Glyph(GlyphKind.Plus, 12) { Foreground = TextTertiary } },
+ };
+ ToolTip.SetTip(host, "Add device — click for the list, or drop an effect here");
host.PointerPressed += (_, _) => ShowAddDeviceMenu(a, sc, host);
// Also a drop target for effects (built-in / plug-in) → append to this chain.
DragDrop.SetAllowDrop(host, true);
@@ -1282,12 +1266,12 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
{
if (!BrowserView.IsBrowserDrag || !IsEffect(BrowserView.CurrentDrag)) { e.DragEffects = DragDropEffects.None; return; }
e.DragEffects = DragDropEffects.Copy; e.Handled = true; _ctx.HideDropGlow();
- dash.Stroke = AccentBright;
+ dash.Stroke = AccentBright; dash.IsVisible = true;
});
- DragDrop.AddDragLeaveHandler(host, (_, _) => dash.Stroke = BorderStrong);
+ DragDrop.AddDragLeaveHandler(host, (_, _) => dash.IsVisible = false);
DragDrop.AddDropHandler(host, (_, e) =>
{
- dash.Stroke = BorderStrong;
+ dash.IsVisible = false;
if (BrowserView.CurrentDrag is { } it && IsEffect(it)) { DropEffectOnChain(a, sc, it); e.Handled = true; }
});
return host;
@@ -1377,7 +1361,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
text = $"→ C{lastChain + 1} {pn}";
}
else if (count > 1) text = $"→ {count} params";
- return new TextBlock { Text = text, FontSize = 8, Foreground = Brass, TextTrimming = TextTrimming.CharacterEllipsis };
+ return new TextBlock { Text = text, FontSize = 8, Foreground = NotaPalette.TealBright, TextTrimming = TextTrimming.CharacterEllipsis };
}
private void ShowMacroMenu(IRackAccess a, Control anchor, int m)
@@ -1512,7 +1496,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var value = new TextBlock { Text = DeviceParamControls.Fmt(val), FontSize = 9, Foreground = TextPrimary, HorizontalAlignment = HorizontalAlignment.Right, Margin = new Thickness(0, 0, 4, 0) };
value.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var top = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto,Auto") };
- top.Children.Add(new TextBlock { Text = name.ToUpperInvariant(), FontSize = 9, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
+ top.Children.Add(new TextBlock { Text = NotaText.Label(name), FontSize = 9, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
Grid.SetColumn(value, 1); top.Children.Add(value);
var map = MapButton(a, c, d, p, min, max); Grid.SetColumn(map, 2); top.Children.Add(map);
var bar = new Knob((val - min) / span, 1.0) { Accent = true, HorizontalAlignment = HorizontalAlignment.Center };
@@ -1534,7 +1518,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
var value = new TextBlock { Text = Pct(val), FontSize = 9, Foreground = TextPrimary, HorizontalAlignment = HorizontalAlignment.Right, Margin = new Thickness(0, 0, 4, 0) };
value.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var top = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto,Auto") };
- top.Children.Add(new TextBlock { Text = name.ToUpperInvariant(), FontSize = 9, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
+ top.Children.Add(new TextBlock { Text = NotaText.Label(name), FontSize = 9, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center });
Grid.SetColumn(value, 1); top.Children.Add(value);
var map = MapButton(a, c, -1, p, 0f, 1f); Grid.SetColumn(map, 2); top.Children.Add(map);
var bar = new Knob(val, 1.0) { Accent = true, HorizontalAlignment = HorizontalAlignment.Center };
@@ -1598,7 +1582,7 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
// ---- small shared bits ------------------------------------------------
private static Control SectionLabel(string text) => new TextBlock
- { Text = text, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextTertiary };
+ { Text = NotaText.Label(text), FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextTertiary };
// A teal on/off chip (the Effect Rack's Follow / Manual selector).
private static Border DrumChip(string text, bool on, Action onClick)
@@ -1622,36 +1606,17 @@ internal sealed partial class RackCardView(DeviceCardContext ctx)
return b;
}
- private static Border Toggle(string text, bool active, IBrush activeBrush, Action onClick)
+ private static Border Toggle(string text, bool active, SolidColorBrush activeBrush, Action onClick)
{
var b = new Border
{
Background = active ? activeBrush : Card2, BorderBrush = BorderStrong, BorderThickness = new Thickness(1),
CornerRadius = NotaRadius.Control, Padding = new Thickness(6, 2), Cursor = new Cursor(StandardCursorType.Hand),
- Child = new TextBlock { Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = active ? OnAccent : TextSecondary },
+ Child = new TextBlock { Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = active ? NotaPalette.InkOn(activeBrush) : TextSecondary },
};
b.PointerPressed += (_, e) => { e.Handled = true; onClick(); };
return b;
}
-
- private static Border RackShell(string title, double width, Control body)
- {
- var headerBar = new Border
- {
- Height = DeviceCardKit.HeaderH, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1), Padding = new Thickness(8, 0),
- Child = new TextBlock { Text = title, FontSize = NotaType.DeviceName, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center },
- };
- var stack = new Grid { RowDefinitions = new RowDefinitions("Auto,*") };
- stack.Children.Add(headerBar);
- var bodyHost = new Border { Padding = new Thickness(10), Child = body };
- Grid.SetRow(bodyHost, 1);
- stack.Children.Add(bodyHost);
- return new Border
- {
- Width = width, Height = CardH, Background = Raised, BorderBrush = BorderDef,
- BorderThickness = new Thickness(1), CornerRadius = NotaRadius.Body, ClipToBounds = true, Child = stack,
- };
- }
}
// Instrument-Rack key/velocity zone map: each chain's range drawn as a coloured bar over
diff --git a/src/managed/Nota.App/DeviceCards/Sampler/SamplerViews.cs b/src/managed/Nota.App/DeviceCards/Sampler/SamplerViews.cs
index 45a037f2..be3e666a 100644
--- a/src/managed/Nota.App/DeviceCards/Sampler/SamplerViews.cs
+++ b/src/managed/Nota.App/DeviceCards/Sampler/SamplerViews.cs
@@ -3,10 +3,11 @@
//
// Nota Sampler's windows — one per tab, each a control, not a picture:
//
-// SamplerWaveView the sample: brass peaks (the lower half a deeper brass), the played
-// window washed, Start / End as bright brass lines, the loop and its
-// crossfade when looping, the live playhead. Drag a line to move it.
-// SamplerKeysView the keyboard C2 … C6 (it follows the root): the root key in brass,
+// SamplerWaveView the sample: neutral-ink peaks (the lower half a fainter ink), the played
+// window washed, Start / End as neutral lines (accent while dragged), the
+// loop and its crossfade in accent when looping, the live playhead. Drag a
+// line to move it.
+// SamplerKeysView the keyboard C2 … C6 (it follows the root): the chosen root key in accent,
// the key that plays the sample at its own pitch outlined, the note
// sounding now in teal. Click a key to make it the root.
// SamplerEnvView the amp envelope: drag Attack / Decay (and Sustain vertically) /
@@ -130,7 +131,7 @@ internal sealed class SamplerWaveView : Control
double top = 2, bot = h - 2, cy = (top + bot) / 2, amp = (bot - top) / 2 - 1;
// The played window, washed; outside it the peaks go quiet.
- ctx.FillRectangle(NotaPalette.Wash(NotaPalette.Accent, 0x14), new Rect(_start * w, 0, (_end - _start) * w, h));
+ ctx.FillRectangle(NotaPalette.Wash(NotaPalette.VizInk, 0x14), new Rect(_start * w, 0, (_end - _start) * w, h));
var grid = NotaGraph.GridPen;
ctx.DrawLine(grid, new Point(0, cy), new Point(w, cy));
for (int i = 1; i < 4; i++) ctx.DrawLine(grid, new Point(w * i / 4, 0), new Point(w * i / 4, h));
@@ -147,8 +148,8 @@ internal sealed class SamplerWaveView : Control
}
int n = _peaks.Length / 2;
- var upIn = new Pen(NotaPalette.Accent, 1.2); var downIn = new Pen(NotaPalette.AccentDim, 1.2);
- var outPen = new Pen(NotaPalette.Wash(NotaPalette.Accent, 0x40), 1);
+ var upIn = new Pen(NotaPalette.VizInk, 1.2); var downIn = new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0xA0), 1.2);
+ var outPen = new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0x40), 1);
int step = Math.Max(1, (int)Math.Floor(n / Math.Max(1.0, w / 1.5)));
for (int i = 0; i < n; i += step)
{
@@ -166,15 +167,15 @@ internal sealed class SamplerWaveView : Control
ctx.DrawLine(lp, new Point(_ls * w, 0), new Point(_ls * w, h));
ctx.DrawLine(lp, new Point(_le * w, 0), new Point(_le * w, h));
}
- var edge = new Pen(NotaPalette.AccentBright, 1.5);
- ctx.DrawLine(edge, new Point(_start * w, 0), new Point(_start * w, h));
- ctx.DrawLine(edge, new Point(_end * w, 0), new Point(_end * w, h));
+ var edge = new Pen(NotaPalette.TextSecondary, 1.5); var edgeHot = new Pen(NotaPalette.AccentBright, 1.5);
+ ctx.DrawLine(_drag == 0 ? edgeHot : edge, new Point(_start * w, 0), new Point(_start * w, h));
+ ctx.DrawLine(_drag == 1 ? edgeHot : edge, new Point(_end * w, 0), new Point(_end * w, h));
if (_play >= 0 && _play <= 1) ctx.DrawLine(new Pen(NotaPalette.TextPrimary, 1), new Point(_play * w, 0), new Point(_play * w, h));
SamplerInk.Corner(ctx, r, NotaGraph.Corner.TopLeft, _info, NotaPalette.TextTertiary);
SamplerInk.Corner(ctx, r, NotaGraph.Corner.TopRight, _loopText, _loop > 0 ? NotaPalette.AccentBright : NotaPalette.TextTertiary);
- SamplerInk.Corner(ctx, r, NotaGraph.Corner.BottomLeft, "start " + NotaNum.Str(_start * _dur, "0.00"), NotaPalette.AccentBright);
- SamplerInk.Corner(ctx, r, NotaGraph.Corner.BottomRight, "end " + NotaNum.Str(_end * _dur, "0.00"), NotaPalette.AccentBright);
+ SamplerInk.Corner(ctx, r, NotaGraph.Corner.BottomLeft, "start " + NotaNum.Str(_start * _dur, "0.00"), _drag == 0 ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
+ SamplerInk.Corner(ctx, r, NotaGraph.Corner.BottomRight, "end " + NotaNum.Str(_end * _dur, "0.00"), _drag == 1 ? NotaPalette.AccentBright : NotaPalette.TextSecondary);
}
}
@@ -243,7 +244,7 @@ internal sealed class SamplerKeysView : Control
: black ? NotaPalette.SurfaceAbyss : NotaPalette.SurfaceRaised;
ctx.DrawRectangle(fill, note == _root ? null : hair, new RoundedRect(rect, 0, 0, 2, 2));
if (note == _natural && note != _root)
- ctx.DrawRectangle(null, new Pen(NotaPalette.AccentBright, 1), new RoundedRect(rect.Deflate(0.5), 0, 0, 2, 2));
+ ctx.DrawRectangle(null, new Pen(NotaPalette.TextSecondary, 1), new RoundedRect(rect.Deflate(0.5), 0, 0, 2, 2));
if (pc == 0 && note != _root)
{
var c = SamplerInk.Mono(SamplerModel.NoteName(note), NotaPalette.TextAxis);
@@ -377,7 +378,7 @@ internal sealed class SamplerEnvView : Control
g.LineTo(n.A); g.LineTo(n.D); g.LineTo(n.S); g.LineTo(n.R);
g.EndFigure(true);
}
- ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.Accent, 0x14), null, geo);
+ ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.VizInk, 0x14), null, geo);
var line = new StreamGeometry();
using (var g = line.Open())
{
@@ -386,10 +387,10 @@ internal sealed class SamplerEnvView : Control
g.EndFigure(false);
}
ctx.DrawGeometry(null, NotaGraph.PrimaryPen, line);
- NotaGraph.Node(ctx, n.A, _drag == 0, NotaPalette.AccentBright);
- NotaGraph.Node(ctx, n.D, _drag == 1, NotaPalette.AccentBright);
- NotaGraph.Node(ctx, n.S, false, NotaPalette.AccentBright);
- NotaGraph.Node(ctx, n.R, _drag == 2, NotaPalette.AccentBright);
+ NotaGraph.Node(ctx, n.A, _drag == 0);
+ NotaGraph.Node(ctx, n.D, _drag == 1);
+ NotaGraph.Node(ctx, n.S, false);
+ NotaGraph.Node(ctx, n.R, _drag == 2);
// The loudest voice on the curve, in teal.
if (_live is { Live: true, Stage: >= 0 } lv)
@@ -514,14 +515,14 @@ internal sealed class SamplerFilterView : Control
for (int i = 1; i < pts.Count; i++) g.LineTo(pts[i]);
g.EndFigure(false);
}
- if (_type > 0) ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.Accent, 0x14), null, fill);
+ if (_type > 0) ctx.DrawGeometry(NotaPalette.Wash(NotaPalette.VizInk, 0x14), null, fill);
ctx.DrawGeometry(null, _type > 0 ? NotaGraph.PrimaryPen : new Pen(NotaPalette.TextTertiary, 1.2), line);
if (_type > 0)
{
double cx = XOf(fc, w);
- ctx.DrawLine(new Pen(NotaPalette.AccentDim, 1, new DashStyle(new double[] { 3, 3 }, 0)), new Point(cx, 0), new Point(cx, h));
- NotaGraph.Node(ctx, new Point(cx, Y(MagDb(_type, fc, fc, _reso))), _drag, NotaPalette.AccentBright);
+ ctx.DrawLine(new Pen(NotaPalette.TextTertiary, 1, new DashStyle(new double[] { 3, 3 }, 0)), new Point(cx, 0), new Point(cx, h));
+ NotaGraph.Node(ctx, new Point(cx, Y(MagDb(_type, fc, fc, _reso))), _drag);
if (_liveHz > 0 && Math.Abs(Math.Log2(_liveHz / fc)) > 0.05)
{
double lx = XOf(_liveHz, w);
diff --git a/src/managed/Nota.App/DeviceChainView.Drop.cs b/src/managed/Nota.App/DeviceChainView.Drop.cs
index 50737153..2a89b0d0 100644
--- a/src/managed/Nota.App/DeviceChainView.Drop.cs
+++ b/src/managed/Nota.App/DeviceChainView.Drop.cs
@@ -57,6 +57,7 @@ public sealed partial class DeviceChainView
{
var (ok, _) = DropTargetAt(e, showHints: true);
e.DragEffects = ok ? DragDropEffects.Copy : DragDropEffects.None;
+ if (_addDash is not null) _addDash.IsVisible = ok; // the add target shows its outline while a drag is over the chain
});
DragDrop.AddDragLeaveHandler(this, (_, _) => ClearDropHints());
DragDrop.AddDropHandler(this, (_, e) =>
@@ -76,6 +77,7 @@ public sealed partial class DeviceChainView
_dropGlow.IsVisible = false;
_dropInsertBar.IsVisible = false;
_dropReplaceRing.IsVisible = false;
+ if (_addDash is not null) _addDash.IsVisible = false;
}
// Resolves the drop target under the pointer and (optionally) shows its hint.
diff --git a/src/managed/Nota.App/DeviceChainView.Instruments.cs b/src/managed/Nota.App/DeviceChainView.Instruments.cs
index ad3b59a7..4a497ba2 100644
--- a/src/managed/Nota.App/DeviceChainView.Instruments.cs
+++ b/src/managed/Nota.App/DeviceChainView.Instruments.cs
@@ -16,7 +16,7 @@ public sealed partial class DeviceChainView
private Control InstrumentCard()
{
int kind = _engine.TrackInstrumentKind(_trackId);
- if (kind == 3) return new RackCardView(NewCardContext()).BuildInstrumentRackCard(); // Instrument Rack
+ if (kind == 3) return InstrumentRackCard();
if (kind == 4) return DrumRackCard();
if (kind == -1) return PluginCardFor(ChainKind.Instrument, -1, 1); // hosted VST3 / AU
// Built-in Sampler + synths (Synth/Physical/Aurora/Volt) → their strategy; anything
@@ -82,6 +82,17 @@ public sealed partial class DeviceChainView
});
}
+ // The Instrument Rack in the shared shell; the badge counts its chains.
+ private Control InstrumentRackCard()
+ {
+ var body = new RackCardView(NewCardContext()).BuildInstrumentRackBody(out int chains);
+ var spec = new ShellSpec(
+ Name: _engine.DeviceName(_trackId, -1), Subtitle: $"Rack · {chains} chain{(chains == 1 ? "" : "s")}", DeviceIndex: -1, Count: 1,
+ Bypassed: false, Bypassable: false, CanMove: false, CanDelete: false,
+ PresetKind: 3, IsInstrument: true, Width: 700, Kind: ChainKind.Instrument);
+ return BuildCardShell(spec, body);
+ }
+
// The Drum Rack in the shared shell: its presets are the factory kits, which replace the
// rack's pads, and the badge counts the loaded pads.
private Control DrumRackCard()
@@ -89,7 +100,7 @@ public sealed partial class DeviceChainView
var body = new RackCardView(NewCardContext()).BuildDrumRackBody(out int pads);
var kits = KitPresets();
var spec = new ShellSpec(
- Name: _engine.DeviceName(_trackId, -1), Subtitle: $"DRUMS · {pads} PAD{(pads == 1 ? "" : "S")}", DeviceIndex: -1, Count: 1,
+ Name: _engine.DeviceName(_trackId, -1), Subtitle: $"Drums · {pads} pad{(pads == 1 ? "" : "s")}", DeviceIndex: -1, Count: 1,
Bypassed: false, Bypassable: false, CanMove: false, CanDelete: false,
PresetKind: 4, IsInstrument: true, Width: 700, Kind: ChainKind.Instrument, Presets: kits);
return BuildCardShell(spec, body);
diff --git a/src/managed/Nota.App/DeviceChainView.Shell.cs b/src/managed/Nota.App/DeviceChainView.Shell.cs
index 0088bee4..bdb33ee0 100644
--- a/src/managed/Nota.App/DeviceChainView.Shell.cs
+++ b/src/managed/Nota.App/DeviceChainView.Shell.cs
@@ -3,10 +3,10 @@
//
// Detail · Devices — the ONE shared card shell (mockup 2f header) used by every
// built-in instrument and effect editor, so the chain reads as one family. It draws
-// the 26px chrome bar over a body host: power dot (bypass / status), name, subtitle,
-// preset picker, A/B compare (full param snapshots), a small stereo meter with a
-// pinned dB readout, per-instrument voice count, reorder ◀▶, remove ✕ and a drag
-// handle — each shown only where it applies. Card bodies (IInstrumentCard / IDeviceBody)
+// the 22px chrome bar over a body host. The header has fixed slots, left to right:
+// name · preset picker · badges (type, live voice count, the card's own accessories) ·
+// power (bypass). The power slot is reserved on every card, so right edges line up down a
+// chain. A/B compare, move and delete live in the header's context menu. Card bodies (IInstrumentCard / IDeviceBody)
// return content only; this wraps them.
using System;
@@ -26,8 +26,8 @@ namespace Nota.App;
public sealed partial class DeviceChainView
{
- private static readonly IBrush ShellBg = NotaPalette.BgApp;
- private static readonly IBrush ShellHdr = NotaPalette.SurfaceCard;
+ private static readonly IBrush ShellBg = NotaPalette.SurfaceCard; // card body: the panel tone
+ private static readonly IBrush ShellHdr = NotaPalette.SurfaceRaised; // header: raised, with a bevel
private static readonly IBrush ShellInset = NotaPalette.BgSunken;
// The three device chains the one shell serves — each has its own param / bypass /
@@ -96,7 +96,8 @@ public sealed partial class DeviceChainView
string Name, string Subtitle, int DeviceIndex, int Count, bool Bypassed, bool Bypassable,
bool CanMove, bool CanDelete, int PresetKind, bool IsInstrument, double Width, ChainKind Kind,
Func<Nota.Application.IAudioEngine, int, int, string?>? VoiceLabel = null,
- CardPresets? Presets = null, Control? HeaderExtra = null, bool Compact = false); // Compact: a mini card — no type badge, a narrower preset picker
+ CardPresets? Presets = null, Control? HeaderExtra = null, bool Compact = false, // Compact: a mini card — no type badge, a narrower preset picker
+ bool Utility = false); // Utility: not a device (Sends) — the same header, without the device menu, selection or presets
/// <summary>A card's own preset list, in place of the factory presets for its kind — the
/// Drum Rack's kits, which load pads rather than set parameters. <paramref name="Current"/>
@@ -106,18 +107,20 @@ public sealed partial class DeviceChainView
IReadOnlyList<(string Id, string Name)> Items, Func<string> Current, Func<string, string> Apply);
// Small tertiary caption / mono readout helpers.
- private static TextBlock Caps(string t, double fs = 9) => new() { Text = t, FontSize = fs, FontWeight = FontWeight.Bold, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ private static TextBlock Caps(string t, double fs = 9) => new() { Text = NotaText.Label(t), FontSize = fs, FontWeight = FontWeight.Medium, Foreground = TextSecondary, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string t, double w) { var tb = new TextBlock { Text = t, FontSize = 9, Foreground = TextSecondary, Width = w, TextAlignment = TextAlignment.Right, VerticalAlignment = VerticalAlignment.Center }; tb.BindResource(TextBlock.FontFamilyProperty, "Font.Mono"); return tb; }
private Border BuildCardShell(ShellSpec s, Control body)
{
int di = s.DeviceIndex;
- var extra = Extra(s.Kind, di);
+ var extra = s.Utility ? new CardExtra() : Extra(s.Kind, di);
- // ---- header (22): name on the left; on the right the preset picker, the processing
- // type as a mono badge and the bypass switch. A/B, move and delete live in the
- // header's context menu (with the presets again); the whole header drags the card to
- // a new slot; Delete removes the selected card.
+ // ---- header (22), in fixed slots: name · preset · badges · power. The preset picker
+ // sits in the centre of the header, between two equal halves: the name on the left
+ // (trimmed if it runs into the picker), the badges right-aligned before the power slot
+ // on the right; the power slot is reserved (empty) on a card that can't be bypassed. A/B, move and delete live in
+ // the header's context menu (with the presets again); the whole header drags the card
+ // to a new slot; Delete removes the selected card.
var name = new TextBlock
{
// A compact card drops the family prefix ("Nota Arp" → "Arp") to leave room for the presets.
@@ -125,15 +128,15 @@ public sealed partial class DeviceChainView
VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis,
};
- var right = new StackPanel { Orientation = Orientation.Horizontal, Spacing = s.Compact ? 6 : 8, HorizontalAlignment = HorizontalAlignment.Right, VerticalAlignment = VerticalAlignment.Center };
+ var badges = new StackPanel { Orientation = Orientation.Horizontal, Spacing = s.Compact ? 6 : 8, HorizontalAlignment = HorizontalAlignment.Right, VerticalAlignment = VerticalAlignment.Center };
- // Type badge (mono caps). An instrument that reports its voices shows them here, live,
- // as the badge's value — e.g. "SYNTH · 3/16".
- string type = (s.Subtitle ?? "").ToUpperInvariant();
+ // Type badge (mono, muted, sentence case). An instrument that reports its voices shows
+ // them here, live, as the badge's value — e.g. "Synth · 3/16".
+ string type = NotaText.Label(s.Subtitle ?? "");
var badge = new TextBlock
{
- Text = type, FontFamily = NotaFonts.MonoFamily, FontSize = NotaType.Eyebrow, FontWeight = FontWeight.Medium,
- LetterSpacing = 1.2, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center,
+ Text = type, FontFamily = NotaFonts.MonoFamily, FontSize = NotaType.Eyebrow,
+ Foreground = NotaPalette.TextMuted, VerticalAlignment = VerticalAlignment.Center,
};
if (s.IsInstrument && _engine.InstrumentVoiceCount(_trackId) >= 0)
{
@@ -141,12 +144,15 @@ public sealed partial class DeviceChainView
{
int v = _engine.InstrumentVoiceCount(_trackId);
string voices = s.VoiceLabel?.Invoke(_engine, _trackId, v)
- ?? (_engine.PluginParamGet(_trackId, -1, IndexOfId("mono")) > 0.5f ? "MONO" : $"{Math.Max(0, v)}/16");
+ ?? (_engine.PluginParamGet(_trackId, -1, IndexOfId("mono")) > 0.5f ? "Mono" : $"{Math.Max(0, v)}/16");
badge.Text = type.Length > 0 ? $"{type} · {voices}" : voices;
});
}
- if ((badge.Text.Length > 0 || s.IsInstrument) && !s.Compact) right.Children.Add(badge);
- if (s.HeaderExtra is { } headerExtra) right.Children.Add(headerExtra);
+ if ((badge.Text.Length > 0 || s.IsInstrument) && !s.Compact) badges.Children.Add(badge);
+ if (s.HeaderExtra is { } headerExtra) badges.Children.Add(headerExtra);
+
+ // The power slot: the bypass switch, or the same width left empty.
+ var power = new Border { Width = SwitchTrack.W, VerticalAlignment = VerticalAlignment.Center };
if (s.Bypassable)
{
@@ -160,19 +166,30 @@ public sealed partial class DeviceChainView
else _engine.SetDeviceBypassed(_trackId, di, !s.Bypassed);
Rebuild(); Changed?.Invoke();
};
- right.Children.Add(bypass);
+ power.Child = bypass;
}
- var headerGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto"), ColumnSpacing = 8 };
+ // Two equal halves around the picker keep it centred whatever the name or the badges
+ // (a live voice count changes width) are doing.
+ var right = new Grid { ColumnSpacing = 8 };
+ right.ColumnDefinitions.Add(new ColumnDefinition(GridLength.Star));
+ right.ColumnDefinitions.Add(new ColumnDefinition(GridLength.Auto));
+ right.Children.Add(badges);
+ Grid.SetColumn(power, 1); right.Children.Add(power);
+ var headerGrid = new Grid { ColumnSpacing = 8 };
+ headerGrid.ColumnDefinitions.Add(new ColumnDefinition(GridLength.Star));
+ headerGrid.ColumnDefinitions.Add(new ColumnDefinition(GridLength.Auto));
+ headerGrid.ColumnDefinitions.Add(new ColumnDefinition(GridLength.Star));
headerGrid.Children.Add(name);
- Grid.SetColumn(right, 1); headerGrid.Children.Add(right);
+ Grid.SetColumn(right, 2); headerGrid.Children.Add(right);
var headerBar = new Border
{
Height = DeviceCardKit.HeaderH, Background = ShellHdr, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1),
Padding = new Thickness(NotaSpace.DeviceInsetWide, 0), Child = headerGrid,
Cursor = s.CanMove && SelectableKind(s.Kind) ? new Cursor(StandardCursorType.SizeAll) : null,
};
- ToolTip.SetTip(headerBar, s.CanMove ? "Drag to reorder · right-click for A/B, move and delete" : "Right-click for more");
+ headerBar.BindResource(Border.BoxShadowProperty, "Shadow.Raised"); // the raised strip's top bevel
+ if (!s.Utility) ToolTip.SetTip(headerBar, s.CanMove ? "Drag to reorder · right-click for A/B, move and delete" : "Right-click for more");
// Factory presets for this device (or the card's own list), and applying one in place.
List<(string Id, string Name)> presets;
@@ -193,7 +210,7 @@ public sealed partial class DeviceChainView
}
else
{
- presets = s.PresetKind >= 0 || s.IsInstrument || s.Kind == ChainKind.Midi
+ presets = !s.Utility && (s.PresetKind >= 0 || s.IsInstrument || s.Kind == ChainKind.Midi)
? _factory.All().Where(p => p.BuiltinKind == s.PresetKind
&& (s.Kind == ChainKind.Midi ? p.IsMidiEffect : (p.IsInstrument == s.IsInstrument && !p.IsMidiEffect)))
.Select(p => (p.Id, p.DisplayName)).ToList()
@@ -209,10 +226,14 @@ public sealed partial class DeviceChainView
}
// A compact (mini) card keeps the same picker — same list, same current preset — only narrower:
// the preset belongs to the device, not to the card size.
- // The picker sits right of the type badge: the badge's live voice count changes width
- // (Consort's "DUO 1/2" → "POLY 12/16"), and on the left it would push the picker around.
- if (presets.Count > 0) right.Children.Insert(right.Children.IndexOf(badge) + 1, PresetPicker(presets.Select(p => p.Name).ToList(), curPreset, extra.Preset, ApplyPreset, StepPreset,
- nameWidth: s.Compact ? 74 : 132));
+ // The picker has its own centre slot: the badges' live voice count changes width
+ // (Consort's "Duo 1/2" → "Poly 12/16") without moving it.
+ if (presets.Count > 0)
+ {
+ var picker = PresetPicker(presets.Select(p => p.Name).ToList(), curPreset, extra.Preset, ApplyPreset, StepPreset,
+ nameWidth: s.Compact ? 74 : 132);
+ Grid.SetColumn(picker, 1); headerGrid.Children.Add(picker);
+ }
void Move(int to) { if (s.Kind == ChainKind.Midi) _engine.MoveMidiEffect(_trackId, di, to); else _engine.MoveDevice(_trackId, di, to); ExtrasMoved(s.Kind, di, to); Rebuild(); Changed?.Invoke(); }
@@ -275,7 +296,7 @@ public sealed partial class DeviceChainView
}
// Click selects the device (accent ring + keyboard target); right-click opens the menu.
- headerBar.PointerPressed += (_, e) =>
+ if (!s.Utility) headerBar.PointerPressed += (_, e) =>
{
var pt = e.GetCurrentPoint(headerBar).Properties;
if (pt.IsRightButtonPressed) { ShowDeviceContextMenu(headerBar, s.Kind, di, HeaderMenu); return; }
@@ -285,7 +306,7 @@ public sealed partial class DeviceChainView
DockPanel.SetDock(headerBar, Dock.Top);
var bodyHost = new Border { Child = body };
var root = new DockPanel { LastChildFill = true, Children = { headerBar, bodyHost } };
- bool sel = IsSelected(s.Kind, di);
+ bool sel = !s.Utility && IsSelected(s.Kind, di);
// Selection is drawn as a focus ring outside the card, with a small gap (not by
// thickening the card's own edge border, nor as an inset overlay): drawn on or inside
// the edge it crowds the header — the title and the preset picker read as touching it.
@@ -293,7 +314,7 @@ public sealed partial class DeviceChainView
const double RingGap = 3;
var selRing = new Border
{
- BorderBrush = AccentBright, BorderThickness = new Thickness(1.5),
+ BorderBrush = Brass, BorderThickness = new Thickness(1.5),
CornerRadius = new CornerRadius(NotaRadius.BodyValue + RingGap), Margin = new Thickness(-RingGap),
IsHitTestVisible = false, IsVisible = sel,
};
@@ -308,7 +329,7 @@ public sealed partial class DeviceChainView
Width = s.Width, Height = CardH,
Child = new Panel { Children = { shell, selRing } },
};
- // Bypassed: the body loses its brass but stays playable (almanac: no opacity for state).
+ // Bypassed: the body takes the inactive look but stays playable (no opacity for state).
if (s.Bypassed) card.AttachedToVisualTree += (_, _) => Inactive.Set(bodyHost, true, interactive: true);
// The whole header drags the card to a new slot within its domain (audio FX / MIDI FX).
if (s.CanMove && SelectableKind(s.Kind)) HookDeviceDrag(headerBar, card, s.Kind, di);
diff --git a/src/managed/Nota.App/DeviceChainView.cs b/src/managed/Nota.App/DeviceChainView.cs
index 56cfe1ce..19d8ccef 100644
--- a/src/managed/Nota.App/DeviceChainView.cs
+++ b/src/managed/Nota.App/DeviceChainView.cs
@@ -48,7 +48,11 @@ public sealed partial class DeviceChainView : UserControl
private readonly DeviceCardFactory _cardFactory = new();
private readonly InstrumentCardFactory _instrumentFactory = new();
private readonly MidiDeviceCardFactory _midiFactory = new();
- private readonly StackPanel _row = new() { Orientation = Orientation.Horizontal, Spacing = 8, Margin = new Thickness(10) };
+ // The chain sits close to the panel edges: a 6px inset all round and 6px between cards —
+ // just room for the selected card's focus ring (3px gap + 1.5px ring) — so the cards fill
+ // the Devices panel instead of floating in it.
+ internal const double ChainInset = 6;
+ private readonly StackPanel _row = new() { Orientation = Orientation.Horizontal, Spacing = ChainInset, Margin = new Thickness(ChainInset) };
private int _trackId = -1;
/// <summary>Raised after a change that affects track headers (remove/reorder).</summary>
@@ -236,29 +240,29 @@ public sealed partial class DeviceChainView : UserControl
shown++;
}
Control body = shown > 0 ? knobs : new TextBlock { Text = "No return tracks", FontSize = 9, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
- return SimpleCard("Sends", shown > 2 ? 200 : 140, body);
+ var spec = new ShellSpec(
+ Name: "Sends", Subtitle: "", DeviceIndex: -2, Count: 0, Bypassed: false, Bypassable: false,
+ CanMove: false, CanDelete: false, PresetKind: -1, IsInstrument: false, Width: shown > 2 ? 200 : 140,
+ Kind: ChainKind.Effect, Compact: true, Utility: true);
+ return BuildCardShell(spec, new Border { Padding = new Thickness(10), Child = body });
}
+ // The end of the chain: a slim "+" key. Its dashed outline shows only while a browser
+ // drag is over the chain, so an empty dock stays quiet (spec 012).
+ private Rectangle? _addDash;
+
private Control AddDeviceCard()
{
- var content = new StackPanel
- {
- Spacing = 4, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center,
- Children =
- {
- new Glyph(GlyphKind.Plus, 12) { Foreground = TextTertiary },
- new TextBlock { Text = "Add device", FontSize = 9, Foreground = TextTertiary, HorizontalAlignment = HorizontalAlignment.Center },
- new TextBlock { Text = "double-click in browser\nor drop here", FontSize = 8, Foreground = TextDisabled, TextAlignment = TextAlignment.Center },
- },
- };
// Avalonia Border can't dash its own stroke; overlay a dashed rectangle.
- var dash = new Rectangle
+ _addDash = new Rectangle
{
- Stroke = BorderStrong, StrokeThickness = 1,
- StrokeDashArray = new AvaloniaList<double>(4, 3), RadiusX = 7, RadiusY = 7,
+ Stroke = BorderStrong, StrokeThickness = 1, IsVisible = false,
+ StrokeDashArray = new AvaloniaList<double>(4, 3), RadiusX = NotaRadius.ControlValue, RadiusY = NotaRadius.ControlValue,
};
- var host = new Grid { Children = { dash, content } };
- return new Border { Width = 140, Height = CardH, Child = host };
+ var host = new Grid { Children = { _addDash, new Glyph(GlyphKind.Plus, 12) { Foreground = TextTertiary } } };
+ var card = new Border { Width = 28, Height = CardH, Background = Brushes.Transparent, Child = host };
+ ToolTip.SetTip(card, "Add device — double-click in the browser or drop here");
+ return card;
}
}
diff --git a/src/managed/Nota.App/DeviceWindow.cs b/src/managed/Nota.App/DeviceWindow.cs
index e2b31cb3..293c0de9 100644
--- a/src/managed/Nota.App/DeviceWindow.cs
+++ b/src/managed/Nota.App/DeviceWindow.cs
@@ -73,7 +73,7 @@ internal sealed class DeviceWindow : NotaWindow
public DeviceWindow(string name, string context, string badge, Func<Action<Action>, DeviceWindowPage> build,
DeviceWindowBypass? bypass = null, Func<string>? status = null) : base(BarH)
{
- _name = name; _context = context; _badge = badge.ToUpperInvariant();
+ _name = name; _context = context; _badge = NotaText.Label(badge);
_build = build; _bypass = bypass; _status = status;
Title = context.Length > 0 ? $"{name} · {context}" : name;
SizeToContent = SizeToContent.WidthAndHeight;
@@ -253,10 +253,10 @@ internal sealed class DeviceWindow : NotaWindow
var tag = new Border
{
Height = 18, Padding = new Thickness(7, 0), CornerRadius = NotaRadius.Badge, BorderThickness = new Thickness(1),
- Background = NotaPalette.AccentSubtle, BorderBrush = NotaPalette.BorderBrass,
+ Background = NotaPalette.SurfaceRaised, BorderBrush = NotaPalette.Rule,
HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top, Margin = new Thickness(8),
IsHitTestVisible = false, IsVisible = false,
- Child = Caps(MonoText(9, NotaPalette.AccentHover), "BYPASSED"),
+ Child = Caps(MonoText(9, NotaPalette.TextSecondary), "Bypassed"),
};
_bypassTag = tag;
return new Border
@@ -325,8 +325,7 @@ internal sealed class DeviceWindow : NotaWindow
private static TextBlock Caps(TextBlock tb, string text)
{
- tb.Text = text;
- tb.LetterSpacing = tb.FontSize * 0.14;
+ tb.Text = NotaText.Label(text);
return tb;
}
}
diff --git a/src/managed/Nota.App/DrumPatternView.cs b/src/managed/Nota.App/DrumPatternView.cs
index 07e1d8ca..8a95f581 100644
--- a/src/managed/Nota.App/DrumPatternView.cs
+++ b/src/managed/Nota.App/DrumPatternView.cs
@@ -318,7 +318,7 @@ public sealed class DrumPatternView : UserControl
Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center,
Children =
{
- Cap("PATTERN"),
+ Cap("Pattern"),
new TextBlock { Text = _title, FontSize = 11, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center },
Mono($"{_pads.Count} pad{(_pads.Count == 1 ? "" : "s")} · {_steps} steps", TextTertiary),
Mono("click to place · shift-click accents · drag to paint", NotaPalette.TextDisabled),
@@ -326,7 +326,7 @@ public sealed class DrumPatternView : UserControl
};
var right = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center, [DockPanel.DockProperty] = Dock.Right };
- right.Children.Add(Cap("GRID"));
+ right.Children.Add(Cap("Grid"));
right.Children.Add(Seg(ResNames, Array.IndexOf(Resolutions, _res), i =>
{
_res = _resPersist = Resolutions[i];
@@ -344,7 +344,7 @@ public sealed class DrumPatternView : UserControl
int lastBar = (int)Math.Ceiling(Math.Min(_steps, (p + 1) * MaxCells) / barSteps);
names[p] = firstBar == lastBar ? $"{firstBar}" : $"{firstBar}–{lastBar}";
}
- right.Children.Add(Cap("BARS"));
+ right.Children.Add(Cap("Bars"));
right.Children.Add(Seg(names, _winStart / MaxCells, p => { _winStart = p * MaxCells; Rebuild(); }));
}
right.Children.Add(Chip("Clear", ClearPattern));
@@ -364,7 +364,7 @@ public sealed class DrumPatternView : UserControl
int beat = (_winStart + g * _res) / _res;
bool bar = beat % BeatsPerBar == 0;
var tb = Mono(bar ? $"{beat / BeatsPerBar + 1}" : $"{beat / BeatsPerBar + 1}.{beat % BeatsPerBar + 1}",
- bar ? NotaPalette.AccentBright : NotaPalette.TextDisabled, 7);
+ bar ? NotaPalette.TextSecondary : NotaPalette.TextDisabled, 7);
tb.HorizontalAlignment = HorizontalAlignment.Left;
Grid.SetColumn(tb, g);
outer.Children.Add(tb);
@@ -453,7 +453,7 @@ public sealed class DrumPatternView : UserControl
var label = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 6, VerticalAlignment = VerticalAlignment.Center,
- Children = { Cap("VELOCITY"), _velLabel },
+ Children = { Cap("Velocity"), _velLabel },
};
var lane = BeatGrid(VelocityCell);
var grid = new Grid { ColumnDefinitions = new ColumnDefinitions($"{NameW},*"), ColumnSpacing = 8, Height = VelH, Margin = new Thickness(10, 0, 10, 0) };
@@ -470,7 +470,7 @@ public sealed class DrumPatternView : UserControl
private Control VelocityCell(int step)
{
int local = step - _winStart;
- var fill = new Border { VerticalAlignment = VerticalAlignment.Bottom, Background = NotaPalette.Accent, CornerRadius = NotaRadius.Clip };
+ var fill = new Border { VerticalAlignment = VerticalAlignment.Bottom, Background = NotaPalette.VizInk, CornerRadius = NotaRadius.Clip };
var slot = new Panel { Background = NotaPalette.SurfaceAbyss, Cursor = new Cursor(StandardCursorType.SizeNorthSouth), ClipToBounds = true, Children = { fill } };
_velFills[local] = fill;
_velSlots[local] = slot;
@@ -563,9 +563,9 @@ public sealed class DrumPatternView : UserControl
var cell = _nameCells[r];
if (cell is null) return;
bool sel = r == _selRow;
- cell.Background = sel ? NotaPalette.AccentSubtle : NotaPalette.SurfaceInset;
- cell.BorderBrush = sel ? NotaPalette.BorderBrass : NotaPalette.BorderDefault;
- _nameLabels[r].Foreground = sel ? NotaPalette.AccentBright : NotaPalette.TextPrimary;
+ cell.Background = sel ? NotaPalette.SurfaceHover : NotaPalette.SurfaceInset;
+ cell.BorderBrush = sel ? NotaPalette.Accent : NotaPalette.Seam;
+ _nameLabels[r].Foreground = NotaPalette.TextPrimary;
}
private void StyleCell(int r, int step, bool force = false)
@@ -629,7 +629,7 @@ public sealed class DrumPatternView : UserControl
private static SolidColorBrush Hue(int chain) => NotaPalette.TrackBrushes[((chain % 8) + 8) % 8];
private static TextBlock Cap(string text)
- => new() { Text = text, FontSize = 8, FontWeight = FontWeight.Bold, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ => new() { Text = text, FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
private static TextBlock Mono(string text, IBrush colour, double size = 8)
{
diff --git a/src/managed/Nota.App/ExportWindow.cs b/src/managed/Nota.App/ExportWindow.cs
index 3a807d12..15240590 100644
--- a/src/managed/Nota.App/ExportWindow.cs
+++ b/src/managed/Nota.App/ExportWindow.cs
@@ -63,12 +63,14 @@ public sealed class ExportWindow : NotaWindow
{
_bpm = bpm;
_rangeBeats = loopBeats > 0 ? loopBeats : fullBeats;
- Title = "Export Audio";
+ Title = "Export audio";
Width = 560;
SizeToContent = SizeToContent.Height;
CanResize = false;
WindowStartupLocation = WindowStartupLocation.CenterOwner;
Background = Panel;
+ // Escape is Cancel (an open drop-down handles its own Escape first).
+ KeyDown += (_, e) => { if (e.Key == Key.Escape && !e.Handled) { e.Handled = true; Close(null); } };
var body = new StackPanel { Margin = new Thickness(18, 16), Spacing = 14 };
@@ -84,7 +86,7 @@ public sealed class ExportWindow : NotaWindow
var customNa = new NaBadge { Kind = NaBadgeKind.Future, VerticalAlignment = VerticalAlignment.Center };
rangeRow.Children.Add(customNa);
rangeRow.Children.Add(_rangeReadout);
- body.Children.Add(Section("RANGE", rangeRow));
+ body.Children.Add(Section("Range", rangeRow));
// Format / SR / bit-depth-or-quality. The third column swaps its control
// (and title) with the format: depth for WAV/FLAC, bitrate for MP3.
@@ -109,9 +111,9 @@ public sealed class ExportWindow : NotaWindow
depthOrQuality.Children.Add(_depth);
depthOrQuality.Children.Add(_quality);
var fmtGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("*,*,*"), ColumnSpacing = 12 };
- var f0 = Section("FORMAT", _format); fmtGrid.Children.Add(f0);
- var f1 = Section("SAMPLE RATE", _rate); Grid.SetColumn(f1, 1); fmtGrid.Children.Add(f1);
- var f2 = Section("BIT DEPTH", depthOrQuality); Grid.SetColumn(f2, 2); fmtGrid.Children.Add(f2);
+ var f0 = Section("Format", _format); fmtGrid.Children.Add(f0);
+ var f1 = Section("Sample rate", _rate); Grid.SetColumn(f1, 1); fmtGrid.Children.Add(f1);
+ var f2 = Section("Bit depth", depthOrQuality); Grid.SetColumn(f2, 2); fmtGrid.Children.Add(f2);
_depthTitle = (TextBlock)((StackPanel)f2).Children[0];
body.Children.Add(fmtGrid);
_depth.SelectionChanged += (_, _) => { RefreshEstimate(); _refreshDitherEnabled?.Invoke(); };
@@ -130,12 +132,16 @@ public sealed class ExportWindow : NotaWindow
// Footer.
_estimate = new TextBlock { FontSize = 10, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ // The dialog's primary action: set apart by weight and one tone step, not by colour
+ // (orange is for what is live or chosen).
var export = new Border
{
- Background = Brass, CornerRadius = NotaRadius.Tile, Padding = new Thickness(18, 0), Height = 30,
+ Background = NotaPalette.SurfaceHover, BorderBrush = NotaPalette.Seam, BorderThickness = new Thickness(1),
+ CornerRadius = NotaRadius.Control, Padding = new Thickness(18, 0), Height = 28,
Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center,
- Child = (_exportLabel = new TextBlock { Text = "Export WAV", FontSize = 12, FontWeight = FontWeight.SemiBold, Foreground = OnAccent, VerticalAlignment = VerticalAlignment.Center }),
+ Child = (_exportLabel = new TextBlock { Text = "Export WAV", FontSize = 12, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextHeading, VerticalAlignment = VerticalAlignment.Center }),
};
+ export.BindResource(Border.BoxShadowProperty, "Shadow.Raised");
export.PointerPressed += (_, _) =>
{
var fmt = SelectedFormat;
@@ -186,7 +192,7 @@ public sealed class ExportWindow : NotaWindow
bool mp3 = fmt == ExportFormat.Mp3;
_depth.IsVisible = !mp3;
_quality.IsVisible = mp3;
- _depthTitle.Text = mp3 ? "QUALITY" : "BIT DEPTH";
+ _depthTitle.Text = mp3 ? "Quality" : "Bit depth";
// MP3 tops out at 48 kHz (MPEG-1): grey 96 kHz out, and move an existing
// 96 kHz selection down to 48 kHz so no invalid pair is reachable.
@@ -237,7 +243,7 @@ public sealed class ExportWindow : NotaWindow
private Control Section(string title, Control content) => new StackPanel
{
Spacing = 6,
- Children = { new TextBlock { Text = title, FontSize = 10, FontWeight = FontWeight.Bold, Foreground = TextTertiary }, content },
+ Children = { new TextBlock { Text = title, FontSize = 10, FontWeight = FontWeight.SemiBold, Foreground = TextTertiary }, content },
};
private ComboBox Combo(string[] items, int selected)
diff --git a/src/managed/Nota.App/HistoryView.cs b/src/managed/Nota.App/HistoryView.cs
index 2c7019d0..7223dbfc 100644
--- a/src/managed/Nota.App/HistoryView.cs
+++ b/src/managed/Nota.App/HistoryView.cs
@@ -38,7 +38,6 @@ internal sealed class HistoryView : UserControl
{
private const double RowH = 26;
private const double LaneW = 12;
- private const string IconStar = "M12 3 L14.5 9 L21 9.3 L16 13.5 L17.7 20 L12 16.2 L6.3 20 L8 13.5 L3 9.3 L9.5 9 Z";
private readonly IProjectHistory _history;
private readonly IHistoryHost _host;
@@ -54,7 +53,7 @@ internal sealed class HistoryView : UserControl
private readonly Button _options = new()
{
Classes = { "ghost" }, Width = 22, Height = 22, Padding = new Thickness(0), Margin = new Thickness(6, 0, 0, 0),
- Content = new Path { Data = Geometry.Parse("M4 7 H20 M7 12 H17 M10 17 H14"), Stretch = Stretch.Uniform, Width = 12, Height = 10, StrokeThickness = 1.6, StrokeLineCap = PenLineCap.Round },
+ Content = new Glyph(GlyphKind.Options, 16),
};
private ProjectHistoryState _state = ProjectHistoryState.Empty;
private Dictionary<string, int> _numbers = new(); // version id -> 1-based number in save order
@@ -65,7 +64,7 @@ internal sealed class HistoryView : UserControl
_history = history;
_host = host;
- var caption = new TextBlock { Text = "VERSIONS", Classes = { "GroupLabel" }, VerticalAlignment = VerticalAlignment.Center };
+ var caption = new TextBlock { Text = "Versions", Classes = { "GroupLabel" }, VerticalAlignment = VerticalAlignment.Center };
_summary.BindResource(TextBlock.ForegroundProperty, "Brush.TextTertiary");
var header = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto,Auto"), Height = RowH, Margin = new Thickness(10, 8, 6, 4) };
header.Children.Add(caption);
@@ -74,7 +73,7 @@ internal sealed class HistoryView : UserControl
Grid.SetColumn(_options, 2);
header.Children.Add(_options);
_options.Click += (_, _) => BuildOptionsMenu().ShowAt(_options);
- ((Path)_options.Content!).BindResource(Shape.StrokeProperty, "Brush.TextTertiary");
+ ((Glyph)_options.Content!).BindResource(Glyph.ForegroundProperty, "Brush.TextTertiary");
ToolTip.SetTip(_options, "Clean up the history");
_empty.BindResource(TextBlock.ForegroundProperty, "Brush.TextTertiary");
@@ -167,8 +166,8 @@ internal sealed class HistoryView : UserControl
grid.Children.Add(name);
if (v.Starred)
{
- var star = new Path { Data = Geometry.Parse(IconStar), Stretch = Stretch.Uniform, Width = 9, Height = 9, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(6, 0, 0, 0) };
- star.BindResource(Shape.FillProperty, "Brush.Accent");
+ var star = new Glyph(GlyphKind.StarFilled, 12) { Margin = new Thickness(6, 0, 0, 0) };
+ star.BindResource(Glyph.ForegroundProperty, "Brush.Accent");
Grid.SetColumn(star, 3);
grid.Children.Add(star);
}
diff --git a/src/managed/Nota.App/MainWindow.Detail.cs b/src/managed/Nota.App/MainWindow.Detail.cs
index 2a89de27..fc1ecfd5 100644
--- a/src/managed/Nota.App/MainWindow.Detail.cs
+++ b/src/managed/Nota.App/MainWindow.Detail.cs
@@ -110,7 +110,7 @@ public partial class MainWindow
int src = Engine.GetTrackRecordInput(trackId);
parts.Add("In " + (src == 0 ? "Ext" : src == -1 ? "Master" : ChipTrackName(src)));
// A Master source stays silent while monitored (it would feed back).
- if (src != -1 && Engine.GetTrackMonitor(trackId)) parts.Add("Monitor In");
+ if (src != -1 && Engine.GetTrackMonitor(trackId)) parts.Add("Monitor in");
}
}
double ms = Engine.SampleRate > 0 ? Engine.TrackLatencySamples(trackId) / Engine.SampleRate * 1000.0 : 0;
@@ -345,7 +345,9 @@ public partial class MainWindow
DetailDevicesBtn.IsChecked = true;
DetailPatternBtn.IsChecked = false;
DetailClipBtn.IsChecked = false;
- ShowDetail(338, honorPersist: false); // Devices: natural card-fitting height (island: +12 gutter under it, +6 header top inset)
+ // Devices: exactly the cards' height — the 1px seam, the 32px toolbar, the chain inset
+ // above and below a card. Nothing floats under the chain.
+ ShowDetail(1 + 32 + 2 * DeviceChainView.ChainInset + DeviceCardKit.CardH, honorPersist: false);
}
private void OpenClipEditor(int trackId, int clipIndex)
diff --git a/src/managed/Nota.App/MainWindow.Dnd.cs b/src/managed/Nota.App/MainWindow.Dnd.cs
index d8eeec04..670ca3c8 100644
--- a/src/managed/Nota.App/MainWindow.Dnd.cs
+++ b/src/managed/Nota.App/MainWindow.Dnd.cs
@@ -149,6 +149,7 @@ public partial class MainWindow
_ => DeviceChainView.ChainKind.Effect,
}, pl.Index, pl.Name, pl.FactoryId);
Timeline.Refresh();
+ if (r.CreatedTrack && t > 0) Timeline.RevealTrack(t); // a new track lands in view (F1)
_session?.Refresh();
if (_modular?.IsVisible == true) _modular.Refresh();
if (revealDevices && r.ShowDevices && t > 0) ShowDevices(t);
diff --git a/src/managed/Nota.App/MainWindow.Freeze.cs b/src/managed/Nota.App/MainWindow.Freeze.cs
index ae8efd5a..bbb20a00 100644
--- a/src/managed/Nota.App/MainWindow.Freeze.cs
+++ b/src/managed/Nota.App/MainWindow.Freeze.cs
@@ -180,7 +180,7 @@ public partial class MainWindow
{
items.Add(FreezeMenuItem("Freeze track", SnowflakeIcon(),
async () => { Timeline.Select(trackId, -1); await FreezeTrackAsync(trackId); }));
- items.Add(FreezeMenuItem("Live Freeze", ChainLinkIcon(),
+ items.Add(FreezeMenuItem("Live freeze", ChainLinkIcon(),
async () => { Timeline.Select(trackId, -1); await LiveFreezeAsync(trackId); }));
}
return items;
@@ -269,14 +269,10 @@ public partial class MainWindow
=> new Glyph(GlyphKind.Freeze, 11) { Foreground = IceBrush };
private static Control ChainLinkIcon()
- => new Avalonia.Controls.Shapes.Path
- {
- Data = NotaIcons.ChainLink, Stretch = Stretch.None, Stroke = IceBrush, StrokeThickness = 1.4,
- Width = 14, Height = 14, VerticalAlignment = Avalonia.Layout.VerticalAlignment.Center,
- };
+ => new Glyph(GlyphKind.ChainLink, 14) { Foreground = IceBrush };
private Control GlyphIcon(GlyphKind glyph, bool accent)
- => new Glyph(glyph, 11) { Foreground = accent ? NotaPalette.AccentBright : NotaPalette.TextTertiary };
+ => new Glyph(glyph, 11) { Foreground = accent ? NotaPalette.TextPrimary : NotaPalette.TextTertiary };
// --- Flatten -----------------------------------------------------------
diff --git a/src/managed/Nota.App/MainWindow.LiveFreeze.cs b/src/managed/Nota.App/MainWindow.LiveFreeze.cs
index dd670e3a..5ba65c68 100644
--- a/src/managed/Nota.App/MainWindow.LiveFreeze.cs
+++ b/src/managed/Nota.App/MainWindow.LiveFreeze.cs
@@ -114,7 +114,7 @@ public partial class MainWindow
double endBeats = ProjectEndBeats();
if (endBeats <= 0.0) { _vm.StatusText = "Nothing to freeze — the arrangement is empty."; return; }
- string? wav = await RenderSourceToWavAsync(sourceId, "Live Freeze");
+ string? wav = await RenderSourceToWavAsync(sourceId, "Live freeze");
if (wav is null) { _vm.StatusText = "Couldn't freeze this track."; return; }
try
@@ -143,7 +143,7 @@ public partial class MainWindow
_links[sourceId] = new FreezeLink { SourceId = sourceId, FrozenId = frozenId };
_vm.StatusText = "Track live-frozen — press Edit to change it, then Done.";
}
- catch (Exception ex) { _vm.StatusText = $"Live Freeze failed: {ex.Message}"; }
+ catch (Exception ex) { _vm.StatusText = $"Live freeze failed: {ex.Message}"; }
finally { try { File.Delete(wav); } catch { } }
Timeline.Refresh();
diff --git a/src/managed/Nota.App/MainWindow.Mixer.cs b/src/managed/Nota.App/MainWindow.Mixer.cs
index b98c5cf4..06872be7 100644
--- a/src/managed/Nota.App/MainWindow.Mixer.cs
+++ b/src/managed/Nota.App/MainWindow.Mixer.cs
@@ -27,18 +27,23 @@ public partial class MainWindow
var view = settings.Current.MixerView == "map" ? MixerViewMode.StereoMap : MixerViewMode.Strips;
_mixer.View = view;
var win = new MixerWindow(this, view);
+ var mixer = _mixer;
+ // The window is as wide as its strips; the Stereo Map keeps whatever width it has.
+ void Fit() { if (mixer.View == MixerViewMode.Strips) win.FitWidth(mixer.StripsWidth); }
win.ViewPicked += v =>
{
if (_mixer is not null) _mixer.View = v;
settings.Current.MixerView = v == MixerViewMode.StereoMap ? "map" : "strips";
settings.Save();
+ Fit();
};
win.EnableMidiLearn(_learn); // faders/knobs stay MIDI-mappable in the window
- win.WindowClosed += () => { if (_mixer is not null) _mixer.IsVisible = false; _mixerWindow = null; };
+ win.WindowClosed += () => { mixer.StripsChanged -= Fit; mixer.IsVisible = false; _mixerWindow = null; };
_mixerWindow = win;
_mixer.IsVisible = true; // so the tick loop updates its meters
SetHost(win.Host, _mixer);
+ _mixer.StripsChanged += Fit;
_mixer.Refresh();
win.Show(this);
}
diff --git a/src/managed/Nota.App/MainWindow.PasteBounced.cs b/src/managed/Nota.App/MainWindow.PasteBounced.cs
index bee616ab..ac8734b0 100644
--- a/src/managed/Nota.App/MainWindow.PasteBounced.cs
+++ b/src/managed/Nota.App/MainWindow.PasteBounced.cs
@@ -32,7 +32,7 @@ public partial class MainWindow
// Only clip tracks render content (groups/returns have no chain of their own to bounce).
var sources = src.TrackIds.Where(id => TrackTypeOf(id) is 0 or 1).ToArray();
if (sources.Length == 0) { _vm.StatusText = "The selected range has no audio or instrument track to bounce."; return; }
- if (sources.Length > 1) { _vm.StatusText = "Paste Bounced Audio takes a range on a single track."; return; }
+ if (sources.Length > 1) { _vm.StatusText = "Paste bounced audio takes a range on a single track."; return; }
int sourceId = sources[0];
if (targetId <= 0) targetId = Timeline.FocusTrackId;
@@ -46,14 +46,14 @@ public partial class MainWindow
float[]? pcm = null;
try
{
- await RunBlockingAsync("Paste Bounced Audio", "Rendering…", async prog =>
+ await RunBlockingAsync("Paste bounced audio", "Rendering…", async prog =>
{
var frac = new Progress<double>(f => prog.Report(ProgressReport.At(f, $"Rendering… {f * 100:0} %")));
pcm = await Task.Run(() => _freezer.BounceRange(Engine, sourceId, src.Start, src.End,
_vm.Transport.LoopOn, _vm.Transport.MetronomeOn, frac));
});
}
- catch (Exception ex) { _vm.StatusText = $"Paste Bounced Audio failed: {ex.Message}"; return; }
+ catch (Exception ex) { _vm.StatusText = $"Paste bounced audio failed: {ex.Message}"; return; }
finally { _vm.SuspendEnginePolling = false; _bounceBusy = false; }
if (pcm is null) { _vm.StatusText = "Couldn't render this track."; return; }
diff --git a/src/managed/Nota.App/MainWindow.Remote.cs b/src/managed/Nota.App/MainWindow.Remote.cs
index ff757bc8..a947827b 100644
--- a/src/managed/Nota.App/MainWindow.Remote.cs
+++ b/src/managed/Nota.App/MainWindow.Remote.cs
@@ -77,7 +77,7 @@ public partial class MainWindow : IRemoteHost
if (a != _remoteSeenActivity) { _remoteSeenActivity = a; _remoteLastActivity = DateTime.UtcNow; }
bool connected = _remote.Running && _remote.Hub.Devices.Count > 0;
bool lit = connected && (DateTime.UtcNow - _remoteLastActivity).TotalMilliseconds < 150;
- var want = lit ? NotaPalette.AccentBright : connected ? NotaPalette.AccentEdge : NotaPalette.BorderStrong;
+ var want = lit ? NotaPalette.AccentBright : connected ? NotaPalette.Success : NotaPalette.BorderStrong;
if (!ReferenceEquals(RemoteDot.Fill, want)) RemoteDot.Fill = want;
}
diff --git a/src/managed/Nota.App/MainWindow.axaml b/src/managed/Nota.App/MainWindow.axaml
index 0440e726..81de5552 100644
--- a/src/managed/Nota.App/MainWindow.axaml
+++ b/src/managed/Nota.App/MainWindow.axaml
@@ -24,8 +24,8 @@
<NativeMenuItem Header="New" app:Commands.Id="file.new"/>
<NativeMenuItem Header="Open…" app:Commands.Id="file.open"/>
<NativeMenuItem Header="Save" app:Commands.Id="file.save"/>
- <NativeMenuItem Header="Save As…" app:Commands.Id="file.saveAs"/>
- <NativeMenuItem Header="Save Version with Note…" app:Commands.Id="file.saveVersion"/>
+ <NativeMenuItem Header="Save as…" app:Commands.Id="file.saveAs"/>
+ <NativeMenuItem Header="Save version with note…" app:Commands.Id="file.saveVersion"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="Import audio…" app:Commands.Id="file.import"/>
<NativeMenuItem Header="Export audio…" app:Commands.Id="file.export"/>
@@ -47,23 +47,23 @@
<NativeMenuItem Header="Duplicate time" app:Commands.Id="edit.duplicateTime"/>
<NativeMenuItem Header="Insert silence" app:Commands.Id="edit.insertSilence"/>
<NativeMenuItemSeparator/>
- <NativeMenuItem Header="Lock Envelopes" app:Commands.Id="edit.lockEnvelopes" ToggleType="CheckBox"/>
+ <NativeMenuItem Header="Lock envelopes" app:Commands.Id="edit.lockEnvelopes" ToggleType="CheckBox"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="Cut" app:Commands.Id="edit.cut"/>
<NativeMenuItem Header="Copy" app:Commands.Id="edit.copy"/>
<NativeMenuItem Header="Paste" app:Commands.Id="edit.paste"/>
- <NativeMenuItem Header="Paste Bounced Audio" app:Commands.Id="edit.pasteBounced"/>
- <NativeMenuItem Header="Copy Clips to Session / Arrangement" app:Commands.Id="edit.copyToOtherView"/>
+ <NativeMenuItem Header="Paste bounced audio" app:Commands.Id="edit.pasteBounced"/>
+ <NativeMenuItem Header="Copy clips to Session / Arrangement" app:Commands.Id="edit.copyToOtherView"/>
<NativeMenuItem Header="Delete" app:Commands.Id="edit.delete"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="Grid">
<NativeMenuItem.Menu>
<NativeMenu>
- <NativeMenuItem Header="Narrow Grid" app:Commands.Id="grid.narrower"/>
- <NativeMenuItem Header="Widen Grid" app:Commands.Id="grid.wider"/>
- <NativeMenuItem Header="Triplet Grid" app:Commands.Id="grid.triplets"/>
- <NativeMenuItem Header="Snap to Grid" app:Commands.Id="grid.snap"/>
- <NativeMenuItem Header="Adaptive Grid" app:Commands.Id="grid.adaptive"/>
+ <NativeMenuItem Header="Narrow grid" app:Commands.Id="grid.narrower"/>
+ <NativeMenuItem Header="Widen grid" app:Commands.Id="grid.wider"/>
+ <NativeMenuItem Header="Triplet grid" app:Commands.Id="grid.triplets"/>
+ <NativeMenuItem Header="Snap to grid" app:Commands.Id="grid.snap"/>
+ <NativeMenuItem Header="Adaptive grid" app:Commands.Id="grid.adaptive"/>
</NativeMenu>
</NativeMenuItem.Menu>
</NativeMenuItem>
@@ -73,16 +73,16 @@
<NativeMenuItem Header="View">
<NativeMenuItem.Menu>
<NativeMenu>
- <NativeMenuItem Header="Command Palette…" app:Commands.Id="view.palette"/>
+ <NativeMenuItem Header="Command palette…" app:Commands.Id="view.palette"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="Mixer" app:Commands.Id="view.mixer"/>
- <NativeMenuItem Header="Connect Phone…" app:Commands.Id="view.connectPhone"/>
+ <NativeMenuItem Header="Connect phone…" app:Commands.Id="view.connectPhone"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="Toggle browser" app:Commands.Id="view.toggleBrowser"/>
<NativeMenuItem Header="Toggle detail panel" app:Commands.Id="view.toggleDetail"/>
<NativeMenuItem Header="Toggle overview" app:Commands.Id="view.toggleOverview"/>
<NativeMenuItem Header="Toggle sections" app:Commands.Id="view.toggleSections"/>
- <NativeMenuItem Header="Toggle Full Screen" app:Commands.Id="view.fullscreen"/>
+ <NativeMenuItem Header="Toggle full screen" app:Commands.Id="view.fullscreen"/>
<NativeMenuItemSeparator/>
<!-- Header text is matched from code to keep this checkmark in step with the
transport bar's Follow button — see MainWindow.SetFollowPlayhead. -->
@@ -95,7 +95,7 @@
<NativeMenuItem Header="Transport">
<NativeMenuItem.Menu>
<NativeMenu>
- <NativeMenuItem Header="Play / Stop" app:Commands.Id="transport.playStop"/>
+ <NativeMenuItem Header="Play / stop" app:Commands.Id="transport.playStop"/>
<NativeMenuItem Header="Record" app:Commands.Id="transport.record"/>
<NativeMenuItem Header="Loop" app:Commands.Id="transport.loop"/>
<NativeMenuItem Header="Metronome" app:Commands.Id="transport.metronome"/>
@@ -106,7 +106,7 @@
<NativeMenuItem.Menu>
<NativeMenu>
<NativeMenuItem Header="Documentation" app:Commands.Id="help.docs"/>
- <NativeMenuItem Header="What's New" app:Commands.Id="help.whatsNew"/>
+ <NativeMenuItem Header="What's new" app:Commands.Id="help.whatsNew"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="About Nota" app:Commands.Id="help.about"/>
</NativeMenu>
@@ -116,12 +116,12 @@
</NativeMenu.Menu>
<Panel>
- <DockPanel Background="{DynamicResource Brush.Gutter}">
- <!-- Header (36) — custom frameless: macOS traffic lights sit in the left inset;
- the project name is centred on the window. Draggable.
+ <DockPanel Background="{DynamicResource Brush.Seam}">
+ <!-- Header (32) on the ground, a seam under it — custom frameless: macOS traffic lights
+ sit in the left inset; the project name is centred on the window. Draggable.
(Transport sits right under it, at the top of the window.) -->
- <Border x:Name="TitleBar" DockPanel.Dock="Top" Height="36"
- Background="{DynamicResource Brush.ChromeBg}"
+ <Border x:Name="TitleBar" DockPanel.Dock="Top" Height="32"
+ Background="{DynamicResource Brush.BgApp}"
BorderBrush="{DynamicResource Brush.BorderDefault}" BorderThickness="0,0,0,1"
PointerPressed="OnTitleBarPressed">
<Grid x:Name="TitleBarRow" ColumnDefinitions="78,*,Auto" Margin="0,0,12,0">
@@ -132,41 +132,54 @@
</Grid>
</Border>
- <!-- In-window menu bar for Windows/Linux (empty on macOS: menus go to the system bar) -->
- <NativeMenuBar DockPanel.Dock="Top"/>
+ <!-- In-window menu bar for Windows/Linux (empty on macOS: menus go to the system bar):
+ a menubar-style row — the ground, with a seam under it. -->
+ <Border DockPanel.Dock="Top" Background="{DynamicResource Brush.BgApp}">
+ <NativeMenuBar/>
+ </Border>
- <!-- Transport (60) under the header, above the work area — an island on the gutter like
- the browser and the arrangement. Stop / play / record, position and loop share one
- 42px recess on Void inside it, so playback reads as one object rather than a row of
- buttons. Reads left to right as: which view · what plays · the numbers you set ·
+ <!-- Transport (44) under the header, above the work area — a flat docked row on the
+ panel tone with a seam under it. Stop / play / record, position and loop share one
+ 30px recessed group inside it, so playback reads as one object rather than a row of
+ keys. Reads left to right as: which view · what plays · the numbers you set ·
the switches you flip · then, pinned right, what the machine is doing. Launch
quantize shows only in Session, where it applies. The view switch leads the row.
When the window is too narrow the row sheds its least-needed parts first —
see MainWindow.TransportFit.cs for the order. -->
- <Border x:Name="TransportBar" DockPanel.Dock="Top" Classes="transport" Height="{StaticResource Control.TransportBar}"
- Margin="12,12,12,0">
+ <Border x:Name="TransportBar" DockPanel.Dock="Top" Classes="transport" Height="{StaticResource Control.TransportBar}">
<Grid x:Name="TransportGrid" ColumnDefinitions="Auto,Auto,Auto,Auto,Auto,*,Auto,Auto,Auto,Auto,Auto">
<!-- Project name, then the view switch -->
- <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="12" Margin="2,0,14,0" VerticalAlignment="Center">
+ <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="10" Margin="2,0,10,0" VerticalAlignment="Center">
<TextBlock x:Name="ProjectNameText" Text="Untitled" FontSize="13" FontWeight="SemiBold"
MaxWidth="220" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"
Foreground="{DynamicResource Brush.TextPrimary}"/>
<Border Classes="segmented" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" Spacing="2">
- <ToggleButton x:Name="ArrangeBtn" Classes="seg" Content="Arrangement" IsChecked="True" Click="OnShowArrangement"/>
- <ToggleButton x:Name="SessionBtn" Classes="seg" Content="Session" Click="OnShowSession"/>
- <ToggleButton x:Name="ModularBtn" Classes="seg" Content="Modular" Click="OnShowModular"/>
+ <StackPanel Orientation="Horizontal" Spacing="1">
+ <!-- The views as icon keys (spec 012): the tooltip and the accessible name carry
+ the view name. View → Arrangement / Session / Modular do the same. -->
+ <ToggleButton x:Name="ArrangeBtn" Classes="seg view" IsChecked="True" Click="OnShowArrangement"
+ ToolTip.Tip="Arrangement" AutomationProperties.Name="Arrangement">
+ <app:Glyph Kind="Arrangement" Size="16"/>
+ </ToggleButton>
+ <ToggleButton x:Name="SessionBtn" Classes="seg view" Click="OnShowSession"
+ ToolTip.Tip="Session" AutomationProperties.Name="Session">
+ <app:Glyph Kind="Session" Size="16"/>
+ </ToggleButton>
+ <ToggleButton x:Name="ModularBtn" Classes="seg view" Click="OnShowModular"
+ ToolTip.Tip="Modular" AutomationProperties.Name="Modular">
+ <app:Glyph Kind="Modular" Size="16"/>
+ </ToggleButton>
</StackPanel>
</Border>
</StackPanel>
<!-- The console: transport · position · loop in one recess -->
<Border Grid.Column="1" Classes="console">
- <StackPanel Orientation="Horizontal" Spacing="12" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
- <!-- Shapes built from geometry (almanac): stop a 10px square r1, play an 11×14
- triangle, record an 11px disc. No glyph font. -->
+ <StackPanel Orientation="Horizontal" Spacing="10" VerticalAlignment="Center">
+ <StackPanel Orientation="Horizontal" Spacing="1" VerticalAlignment="Center">
+ <!-- Shapes built from geometry: stop a square, play a filled triangle, record a
+ filled disc. No glyph font. Keys butt against each other on 1px seams. -->
<Button x:Name="StopBtn" Classes="tp-icon" ToolTip.Tip="Stop"
Foreground="{DynamicResource Brush.TextStrong}" Command="{Binding Transport.StopCommand}">
<app:Glyph x:Name="StopGlyph" Kind="Stop" Width="9" Height="9"/>
@@ -181,24 +194,24 @@
</ToggleButton>
</StackPanel>
- <Border Width="1" Height="24" Background="{DynamicResource Brush.Hairline}"/>
+ <Border Width="1" Height="18" Background="{DynamicResource Brush.Rule}"/>
- <!-- Position — click to flip bars.beats ↔ minutes:seconds; the unit below says which -->
- <StackPanel Spacing="1" VerticalAlignment="Center" Cursor="Hand" Background="Transparent"
+ <!-- Position — click to flip bars.beats ↔ minutes:seconds; the unit beside says which -->
+ <StackPanel Orientation="Horizontal" Spacing="6" VerticalAlignment="Center" Cursor="Hand" Background="Transparent"
PointerPressed="OnTogglePositionDisplay"
ToolTip.Tip="Switch between bars and time">
- <TextBlock Classes="Readout" Text="{Binding Transport.PositionText}" FontSize="19" LineHeight="20"
- MinWidth="96" Foreground="{DynamicResource Brush.TextPrimary}"/>
- <TextBlock Classes="CellLabel" Text="{Binding Transport.PositionUnitText}"/>
+ <TextBlock Classes="Readout" Text="{Binding Transport.PositionText}" FontSize="14" LetterSpacing="0.28"
+ MinWidth="72" VerticalAlignment="Center" Foreground="{DynamicResource Brush.TextPrimary}"/>
+ <TextBlock Classes="CellLabel" Text="{Binding Transport.PositionUnitText}" VerticalAlignment="Center"/>
</StackPanel>
- <Border x:Name="LoopSep" Width="1" Height="24" Background="{DynamicResource Brush.Hairline}"/>
+ <Border x:Name="LoopSep" Width="1" Height="18" Background="{DynamicResource Brush.Rule}"/>
- <!-- Loop: the range is the button -->
- <ToggleButton x:Name="LoopCell" Classes="cell" IsChecked="{Binding Transport.LoopOn}" ToolTip.Tip="Loop the range set on the ruler">
- <StackPanel Spacing="2">
- <TextBlock Classes="CellLabel" Text="LOOP" Foreground="{Binding $parent[ToggleButton].Foreground}"/>
- <TextBlock Classes="Mono" FontSize="11" LineHeight="12" MinWidth="58"
+ <!-- Loop: the range is the key -->
+ <ToggleButton x:Name="LoopCell" Classes="cell" Height="22" IsChecked="{Binding Transport.LoopOn}" ToolTip.Tip="Loop the range set on the ruler">
+ <StackPanel Orientation="Horizontal" Spacing="6">
+ <TextBlock Classes="CellLabel" Text="Loop" VerticalAlignment="Center" Foreground="{Binding $parent[ToggleButton].Foreground}"/>
+ <TextBlock Classes="Mono" FontSize="11" MinWidth="58" VerticalAlignment="Center"
Text="{Binding Transport.LoopRangeText}"
Foreground="{Binding $parent[ToggleButton].Foreground}"/>
</StackPanel>
@@ -206,75 +219,68 @@
</StackPanel>
</Border>
- <!-- Readouts: value over label, one shape for all of them -->
- <StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="2" VerticalAlignment="Center" Margin="14,0,0,0">
+ <!-- Readouts: one 26px well each, a mono value and its muted unit on one line -->
+ <StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="6" VerticalAlignment="Center" Margin="10,0,0,0">
<!-- Tempo (drag ↕ or double-click to type) -->
- <StackPanel Spacing="2" VerticalAlignment="Center" Margin="7,0" ToolTip.Tip="Set the tempo — drag, or double-click to type">
- <Panel x:Name="BpmHost" Width="52" Height="18"/>
- <TextBlock Classes="CellLabel" Text="BPM" HorizontalAlignment="Center"/>
- </StackPanel>
+ <Border Classes="well" ToolTip.Tip="Set the tempo — drag, or double-click to type">
+ <StackPanel Orientation="Horizontal" Spacing="4" VerticalAlignment="Center">
+ <Panel x:Name="BpmHost" Width="52" Height="18" VerticalAlignment="Center"/>
+ <TextBlock Classes="CellLabel" Text="BPM" VerticalAlignment="Center"/>
+ </StackPanel>
+ </Border>
<!-- Tap tempo: fires on press (a release lags the beat). The dots count the beats
of the current series, brass as each one lands; they clear when it times out. -->
<Button x:Name="TapChip" Classes="cell" ClickMode="Press" Click="OnTapTempo"
ToolTip.Tip="Tap the beat to set the tempo">
- <StackPanel Spacing="2">
- <StackPanel x:Name="TapDots" Orientation="Horizontal" Spacing="3" Height="16"
+ <StackPanel Orientation="Horizontal" Spacing="6">
+ <StackPanel x:Name="TapDots" Orientation="Horizontal" Spacing="3"
HorizontalAlignment="Center" VerticalAlignment="Center">
<Ellipse Width="4" Height="4" Fill="{DynamicResource Brush.BorderStrong}"/>
<Ellipse Width="4" Height="4" Fill="{DynamicResource Brush.BorderStrong}"/>
<Ellipse Width="4" Height="4" Fill="{DynamicResource Brush.BorderStrong}"/>
<Ellipse Width="4" Height="4" Fill="{DynamicResource Brush.BorderStrong}"/>
</StackPanel>
- <TextBlock Classes="CellLabel" Text="TAP" HorizontalAlignment="Center"/>
+ <TextBlock Classes="CellLabel" Text="Tap" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<!-- Time signature (drag ↕ each field) -->
- <StackPanel x:Name="TimeSigCell" Spacing="2" VerticalAlignment="Center" Margin="7,0" ToolTip.Tip="Set the time signature — drag each field">
- <StackPanel Orientation="Horizontal" Spacing="1" Height="18">
+ <Border x:Name="TimeSigCell" Classes="well" ToolTip.Tip="Set the time signature — drag each field">
+ <StackPanel Orientation="Horizontal" Spacing="1" Height="18" VerticalAlignment="Center">
<Panel x:Name="TimeSigNumHost" Width="16"/>
- <TextBlock Classes="Mono" Text="/" FontSize="14" VerticalAlignment="Center"
- Foreground="{DynamicResource Brush.TextTertiary}"/>
+ <TextBlock Classes="Mono" Text="/" FontSize="13" VerticalAlignment="Center"
+ Foreground="{DynamicResource Brush.TextMuted}"/>
<Panel x:Name="TimeSigDenHost" Width="16"/>
</StackPanel>
- <TextBlock Classes="CellLabel" Text="SIG" HorizontalAlignment="Center"/>
- </StackPanel>
+ </Border>
<!-- Project key: loops dropped in can be transposed to it -->
<Button x:Name="KeyChip" Classes="cell" Click="OnPickProjectKey" ToolTip.Tip="Set the project key — samples can be transposed to it">
- <StackPanel Spacing="2">
- <TextBlock x:Name="KeyLabel" Classes="Mono" Text="—" FontSize="14" LineHeight="16"
- MinWidth="30" TextAlignment="Center" HorizontalAlignment="Center" Foreground="{DynamicResource Brush.TextTertiary}"/>
- <TextBlock Classes="CellLabel" Text="KEY" HorizontalAlignment="Center"/>
+ <StackPanel Orientation="Horizontal" Spacing="6">
+ <TextBlock x:Name="KeyLabel" Classes="Mono" Text="—" FontSize="13"
+ MinWidth="30" TextAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource Brush.TextMuted}"/>
+ <TextBlock Classes="CellLabel" Text="Key" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<!-- Clip snap grid (SnapChip.cs): the step in effect, live with the zoom in Auto;
click for the grid menu. SnapChip sizes the value to its widest label. -->
<Button x:Name="SnapChip" Classes="cell">
- <StackPanel Spacing="2">
- <TextBlock x:Name="SnapLabel" Classes="Mono" Text="1/4" FontSize="14" LineHeight="16"
- MinWidth="36" TextAlignment="Center" HorizontalAlignment="Center" Foreground="{DynamicResource Brush.TextPrimary}"/>
- <TextBlock x:Name="SnapCaption" Classes="CellLabel" Text="GRID" HorizontalAlignment="Center"/>
+ <StackPanel Orientation="Horizontal" Spacing="6">
+ <TextBlock x:Name="SnapLabel" Classes="Mono" Text="1/4" FontSize="13"
+ MinWidth="36" TextAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource Brush.TextPrimary}"/>
+ <TextBlock x:Name="SnapCaption" Classes="CellLabel" Text="Grid" VerticalAlignment="Center"/>
</StackPanel>
</Button>
</StackPanel>
<!-- Switches. Each draws the thing it does, so the row carries no prose: a
metronome, a magnet, a breakpoint envelope. None sets Foreground, so the
- engaged state turns the glyph brass through the base ToggleButton:checked. -->
- <StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center" Margin="14,0,0,0">
+ engaged state fills the key with the accent and the glyph takes the derived ink
+ through the base ToggleButton:checked. -->
+ <StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center" Margin="10,0,0,0">
<!-- Metronome: body, pendulum rod, weight -->
<ToggleButton x:Name="MetronomeBtn" Classes="tp-icon" IsChecked="{Binding Transport.MetronomeOn}"
ContextRequested="OnMetronomeContext"
ToolTip.Tip="Turn the metronome on or off (M) · right-click for count-in">
- <Viewbox Width="15" Height="15">
- <Canvas Width="24" Height="24">
- <Path Stroke="{Binding $parent[ToggleButton].Foreground}" StrokeThickness="1.7"
- StrokeJoin="Round" Data="M9.8 5.5 H14.2 L19 20 H5 Z"/>
- <Path Stroke="{Binding $parent[ToggleButton].Foreground}" StrokeThickness="1.7"
- StrokeLineCap="Round" Data="M12 19 L13.9 3.2"/>
- <Ellipse Canvas.Left="11.33" Canvas.Top="9.4" Width="3.2" Height="3.2"
- Fill="{Binding $parent[ToggleButton].Foreground}"/>
- </Canvas>
- </Viewbox>
+ <app:Glyph Kind="Metronome" Size="15"/>
</ToggleButton>
<!-- Follow playhead: keep the arrangement scrolling with the cursor. The
playhead marker standing on its ruler. A flag (block + point) rather than a
@@ -283,50 +289,23 @@
which shares one code path. -->
<ToggleButton x:Name="FollowBtn" Classes="tp-icon" Click="OnToggleFollow"
ToolTip.Tip="Scroll the arrangement to keep the playhead in view">
- <Viewbox Width="15" Height="15">
- <Canvas Width="24" Height="24">
- <Path Stroke="{Binding $parent[ToggleButton].Foreground}" StrokeThickness="1.7"
- StrokeLineCap="Round" Data="M3.5 17.8 H20.5"/>
- <Path Fill="{Binding $parent[ToggleButton].Foreground}" Data="M6.5 5 H12.5 V9 L9.5 12.5 L6.5 9 Z"/>
- <Path Stroke="{Binding $parent[ToggleButton].Foreground}" StrokeThickness="1.7"
- StrokeLineCap="Round" Data="M9.5 12.5 V17.8"/>
- </Canvas>
- </Viewbox>
+ <app:Glyph Kind="Follow" Size="15"/>
</ToggleButton>
<!-- Snapping on/off, independent of which grid the GRID cell shows. Off is the
same as holding Alt, but latched. A horseshoe magnet: the poles are banded
off the body by a transparent gap, so the shape reads on any button state. -->
<ToggleButton x:Name="SnapToggle" Classes="tp-icon" IsChecked="True" Click="OnToggleSnapEnabled"
ToolTip.Tip="Snap clips to the grid (hold Alt to drag freely)">
- <Viewbox Width="15" Height="15">
- <Canvas Width="24" Height="24">
- <Path Fill="{Binding $parent[ToggleButton].Foreground}"
- Data="M4 17 V12.5 A8 8 0 0 1 20 12.5 V17 H15.5 V12.5 A3.5 3.5 0 0 0 8.5 12.5 V17 Z"/>
- <Rectangle Canvas.Left="4" Canvas.Top="19" Width="4.5" Height="2.5"
- Fill="{Binding $parent[ToggleButton].Foreground}"/>
- <Rectangle Canvas.Left="15.5" Canvas.Top="19" Width="4.5" Height="2.5"
- Fill="{Binding $parent[ToggleButton].Foreground}"/>
- </Canvas>
- </Viewbox>
+ <app:Glyph Kind="Snap" Size="15"/>
</ToggleButton>
<!-- Automation: a breakpoint envelope — the ramp and handles the lanes draw -->
<ToggleButton x:Name="AutomationToggle" Classes="tp-icon" Click="OnToggleAutomation">
- <Viewbox Width="15" Height="15">
- <Canvas Width="24" Height="24">
- <Path Stroke="{Binding $parent[ToggleButton].Foreground}" StrokeThickness="1.8"
- StrokeLineCap="Round" StrokeJoin="Round" Data="M3 17.5 H9 L14.5 7.5 H21"/>
- <Ellipse Canvas.Left="7.1" Canvas.Top="15.6" Width="3.8" Height="3.8"
- Fill="{Binding $parent[ToggleButton].Foreground}"/>
- <Ellipse Canvas.Left="12.6" Canvas.Top="5.6" Width="3.8" Height="3.8"
- Fill="{Binding $parent[ToggleButton].Foreground}"/>
- </Canvas>
- </Viewbox>
+ <app:Glyph Kind="Automation" Size="15"/>
</ToggleButton>
<!-- Shown only while a hand-moved control has taken a lane over from
playback (M9-C); one click hands every overridden lane back. -->
<Button x:Name="ReenableAutoBtn" Classes="chip" Content="Re-enable"
IsVisible="False" Click="OnReenableAutomation"
- Foreground="{DynamicResource Brush.AccentBright}"
ToolTip.Tip="Hand overridden controls back to their automation"/>
</StackPanel>
@@ -334,7 +313,7 @@
<!-- <Button Grid.Column="5" Classes="chip" Margin="12,0,0,0" ToolTip.Tip="Add a track"> -->
<!-- <StackPanel Orientation="Horizontal" Spacing="7" VerticalAlignment="Center"> -->
<!-- <TextBlock Text="+ Track" VerticalAlignment="Center"/> -->
- <!-- <Path Data="M0,0 L3.5,4 L7,0 Z" Fill="{DynamicResource Brush.TextTertiary}" VerticalAlignment="Center"/> -->
+ <!-- <app:Glyph Kind="CaretDown" Size="9" Foreground="{DynamicResource Brush.TextTertiary}"/> -->
<!-- </StackPanel> -->
<!-- <Button.Flyout> -->
<!-- <MenuFlyout Placement="BottomEdgeAlignedLeft"> -->
@@ -362,7 +341,7 @@
<Button x:Name="RemoteBtn" Classes="chip" Click="OnRemoteClick"
ToolTip.Tip="Play and control Nota from a phone">
<StackPanel Orientation="Horizontal" Spacing="7" VerticalAlignment="Center">
- <Border x:Name="RemoteGlyph" Width="8" Height="12" CornerRadius="2" BorderThickness="1.5"
+ <Border x:Name="RemoteGlyph" Width="8" Height="12" CornerRadius="{StaticResource Radius.Clip}" BorderThickness="1.5"
BorderBrush="{Binding $parent[Button].Foreground}" VerticalAlignment="Center"/>
<TextBlock x:Name="RemoteLabel" Text="Remote" VerticalAlignment="Center"
Foreground="{Binding $parent[Button].Foreground}"/>
@@ -374,38 +353,39 @@
</Button>
</StackPanel>
- <Border x:Name="CpuSep" Grid.Column="7" Width="1" Height="26" Margin="14,0"
- Background="{DynamicResource Brush.Hairline}"/>
+ <Border x:Name="CpuSep" Grid.Column="7" Width="1" Height="18" Margin="10,0"
+ Background="{DynamicResource Brush.Rule}"/>
<!-- CPU: live DSP load -->
<StackPanel x:Name="CpuMeter" Grid.Column="8" Spacing="3" VerticalAlignment="Center">
- <Border Width="52" Height="4" Background="{DynamicResource Brush.SurfaceAbyss}"
- CornerRadius="2" ClipToBounds="True">
- <Border x:Name="CpuFill" Width="0" HorizontalAlignment="Left" CornerRadius="2"
+ <Border Width="52" Height="4" Background="{DynamicResource Brush.BgSunken}"
+ CornerRadius="{StaticResource Radius.Clip}" ClipToBounds="True">
+ <Border x:Name="CpuFill" Width="0" HorizontalAlignment="Left" CornerRadius="{StaticResource Radius.Clip}"
Background="{DynamicResource Brush.Success}"/>
</Border>
<TextBlock x:Name="CpuText" Classes="Mono CellLabel" Text="CPU 0%" FontWeight="Normal"/>
</StackPanel>
<!-- Master: fader over its meter, with the gain in dB -->
- <Border x:Name="MasterWell" Grid.Column="9" Classes="tp-well" Margin="14,0,0,0">
- <StackPanel Orientation="Horizontal" Spacing="9" VerticalAlignment="Center">
- <TextBlock Classes="CellLabel" Text="MST" VerticalAlignment="Center"/>
+ <Border x:Name="MasterWell" Grid.Column="9" Classes="tp-well" Margin="10,0,0,0">
+ <StackPanel Orientation="Horizontal" Spacing="8" VerticalAlignment="Center">
+ <TextBlock Classes="CellLabel" Text="Master" VerticalAlignment="Center"/>
<StackPanel Spacing="3" VerticalAlignment="Center">
- <Panel x:Name="MasterVolHost" Width="88" Height="12"/>
- <Panel x:Name="MasterMeterHost" Width="88" Height="5"/>
+ <Panel x:Name="MasterVolHost" Width="88" Height="10"/>
+ <Panel x:Name="MasterMeterHost" Width="88" Height="4"/>
</StackPanel>
- <TextBlock Classes="Mono" FontSize="10" MinWidth="46" TextAlignment="Right"
+ <TextBlock Classes="Mono" FontSize="11" MinWidth="46" TextAlignment="Right"
VerticalAlignment="Center" Text="{Binding Transport.MasterDbText}"
- Foreground="{DynamicResource Brush.TextSecondary}"/>
+ Foreground="{DynamicResource Brush.TextPrimary}"/>
</StackPanel>
</Border>
</Grid>
</Border>
- <!-- Status bar (22): plain text on the gutter under the islands — no bar, no rule. -->
- <Border DockPanel.Dock="Bottom" Background="Transparent"
- Height="22" Padding="16,0,16,4">
+ <!-- Status line (22): caption text on the ground, a seam above it. -->
+ <Border DockPanel.Dock="Bottom" Background="{DynamicResource Brush.BgApp}"
+ BorderBrush="{DynamicResource Brush.Seam}" BorderThickness="0,1,0,0"
+ Height="22" Padding="16,0">
<Grid ColumnDefinitions="*,Auto,Auto,Auto">
<TextBlock Classes="Caption" VerticalAlignment="Center" Text="{Binding StatusText}"/>
<!-- Settings → Downloads job (MainWindow.Downloads.cs): it keeps running after Settings closes. -->
@@ -420,7 +400,7 @@
Value="{Binding BackgroundProgress}"
IsIndeterminate="{Binding BackgroundIndeterminate}"
Foreground="{DynamicResource Brush.Accent}"
- Background="{DynamicResource Brush.BorderDefault}"/>
+ Background="{DynamicResource Brush.BgSunken}"/>
</StackPanel>
<TextBlock Grid.Column="3" Classes="Caption Mono"
VerticalAlignment="Center" Text="{Binding EngineInfo}"/>
@@ -430,52 +410,53 @@
<!-- Main area (fills) over a resizable bottom Detail panel, split by a
draggable horizontal GridSplitter. -->
- <Grid x:Name="BodyGrid" Background="{DynamicResource Brush.Gutter}">
+ <Grid x:Name="BodyGrid" Background="{DynamicResource Brush.Seam}">
<Grid.RowDefinitions>
<RowDefinition Height="*" MinHeight="120"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="0"/>
</Grid.RowDefinitions>
- <!-- Left browser + main area (fills). Browser and arrangement are both islands:
- they float on the app ground with an even 12px gutter, so the splitter between them
- carries no line and takes no space of its own — it is a transparent grab strip laid
- over that gutter (negative margin; MinWidth=0 overrides the theme's 6px floor). -->
+ <!-- Left browser + main area (fills). Both are docked panels that meet on a 1px seam
+ (the grid's seam-coloured ground showing through a 1px margin). The splitter takes
+ no space of its own — it is a transparent 6px grab strip laid over the seam
+ (negative margins; MinWidth=0 overrides the theme's 6px floor). -->
<Grid x:Name="BrowserGrid" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="344" MinWidth="160" MaxWidth="480"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
- <app:BrowserView x:Name="Browser" Grid.Column="0" Margin="12,12,12,12"/>
- <GridSplitter x:Name="BrowserSplitter" Grid.Column="1" Width="12" MinWidth="0" Margin="-12,0,0,0"
+ <app:BrowserView x:Name="Browser" Grid.Column="0" Margin="0,0,1,0"/>
+ <GridSplitter x:Name="BrowserSplitter" Grid.Column="1" Width="6" MinWidth="0" Margin="-4,0,-2,0"
Background="Transparent" ResizeDirection="Columns"/>
<Panel x:Name="MainContent" Grid.Column="2">
- <app:ArrangementView x:Name="Timeline" Margin="0,12,12,12"/>
+ <app:ArrangementView x:Name="Timeline"/>
</Panel>
</Grid>
<!-- Drag handle to resize the Detail panel (only shown when it is open). Like the
- browser splitter it lies over the arrangement's 12px bottom gutter instead of
- adding its own height. -->
+ browser splitter it is a 6px strip laid over the seam instead of adding height. -->
<GridSplitter x:Name="DetailSplitter"
Grid.Row="1"
- Height="12" MinHeight="0" Margin="0,-12,0,0"
+ Height="6" MinHeight="0" Margin="0,-3,0,-3"
IsVisible="False"
HorizontalAlignment="Stretch" ResizeDirection="Rows"
Background="Transparent"/>
<!-- Detail panel: Devices chain / Clip (piano roll) / Mixer for the selected track.
- An island like the browser and the arrangement: it floats on the gutter with the
- same even margin and rounded edge, so the window reads as three panels. -->
- <Border x:Name="DetailPanel" Grid.Row="2" Margin="12,0,12,12" IsVisible="False" ClipToBounds="True"
- Background="{DynamicResource Brush.Panel}" BorderBrush="{DynamicResource Brush.BorderDefault}"
- BorderThickness="1" CornerRadius="{StaticResource Radius.Panel}">
+ Docked under the canvas on a seam, like the browser beside it. -->
+ <Border x:Name="DetailPanel" Grid.Row="2" Margin="0,1,0,0" IsVisible="False" ClipToBounds="True"
+ Background="{DynamicResource Brush.BgApp}" BorderThickness="0"
+ CornerRadius="{StaticResource Radius.Docked}">
<DockPanel>
- <!-- Header: mode tabs · track chip (routing/PDC) · Freeze · | · pop out · close -->
- <Grid DockPanel.Dock="Top" Height="32" Margin="8,6,10,0" ColumnDefinitions="Auto,*,Auto,Auto,Auto,Auto">
+ <!-- Panel toolbar (32, seam under it): mode tabs · track chip (routing/PDC) ·
+ Freeze · | · pop out · close -->
+ <Border DockPanel.Dock="Top" Height="32" Background="{DynamicResource Brush.Panel}"
+ BorderBrush="{DynamicResource Brush.Seam}" BorderThickness="0,0,0,1">
+ <Grid Margin="8,0,6,0" ColumnDefinitions="Auto,*,Auto,Auto,Auto,Auto">
<Border Classes="segmented" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" Spacing="2">
+ <StackPanel Orientation="Horizontal" Spacing="1">
<ToggleButton x:Name="DetailDevicesBtn" Classes="seg" Content="Devices" Click="OnDetailDevices"/>
<ToggleButton x:Name="DetailPatternBtn" Classes="seg" Content="Pattern" IsEnabled="False"
ToolTip.Tip="Step the selected MIDI clip on a Drum Rack track"
@@ -486,40 +467,38 @@
</Border>
<ContentControl x:Name="DetailChipHost" Grid.Column="1" Margin="14,0,0,0" VerticalAlignment="Center"/>
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center">
- <Button x:Name="FreezeBtn" Classes="ghost" Height="22" Padding="9,0" BorderThickness="1" BorderBrush="{DynamicResource Brush.BorderDefault}" VerticalAlignment="Center"
+ <Button x:Name="FreezeBtn" Height="22" Padding="9,0" VerticalAlignment="Center"
Click="OnFreezeClick"
ToolTip.Tip="Freeze the track to audio to free CPU (right-click to flatten)">
<StackPanel Orientation="Horizontal" Spacing="6" VerticalAlignment="Center">
<app:Glyph x:Name="FreezeIcon" Kind="Freeze" Foreground="{DynamicResource Brush.TextSecondary}"/>
- <TextBlock x:Name="FreezeLabel" Text="Freeze" FontSize="11" VerticalAlignment="Center"
+ <TextBlock x:Name="FreezeLabel" Text="Freeze" FontSize="12" VerticalAlignment="Center"
Foreground="{DynamicResource Brush.TextSecondary}"/>
</StackPanel>
</Button>
- <Button x:Name="LiveFreezeBtn" Classes="ghost" Height="22" Padding="9,0" BorderThickness="1" BorderBrush="{DynamicResource Brush.BorderDefault}" VerticalAlignment="Center"
+ <Button x:Name="LiveFreezeBtn" Height="22" Padding="9,0" VerticalAlignment="Center"
IsVisible="False" Click="OnLiveFreezeClick"
ToolTip.Tip="Bounce to a linked audio track below and put the source to sleep">
<StackPanel Orientation="Horizontal" Spacing="6" VerticalAlignment="Center">
- <Path Width="14" Height="14" Stretch="None" StrokeThickness="1.4"
- Stroke="{DynamicResource Brush.TextSecondary}" VerticalAlignment="Center"
- Data="{x:Static app:NotaIcons.ChainLink}"/>
- <TextBlock Text="Live Freeze" FontSize="11" VerticalAlignment="Center"
+ <app:Glyph Kind="ChainLink" Size="14" Foreground="{DynamicResource Brush.TextSecondary}"/>
+ <TextBlock Text="Live freeze" FontSize="12" VerticalAlignment="Center"
Foreground="{DynamicResource Brush.TextSecondary}"/>
</StackPanel>
</Button>
- <Button x:Name="EditBtn" Classes="ghost" Height="22" Padding="9,0" BorderThickness="1" BorderBrush="{DynamicResource Brush.BorderDefault}" VerticalAlignment="Center"
+ <Button x:Name="EditBtn" Height="22" Padding="9,0" VerticalAlignment="Center"
IsVisible="False" Click="OnEditClick"
ToolTip.Tip="Wake the frozen source to edit it (right-click to unfreeze or flatten)">
<StackPanel Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
<app:Glyph x:Name="EditGlyph" Kind="Edit" Foreground="{DynamicResource Brush.AccentBright}"/>
- <TextBlock Text="Edit" FontSize="11" VerticalAlignment="Center" Foreground="{DynamicResource Brush.AccentBright}"/>
+ <TextBlock Text="Edit" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource Brush.AccentBright}"/>
</StackPanel>
</Button>
- <Button x:Name="DoneBtn" Classes="ghost" Height="22" Padding="9,0" BorderThickness="1" BorderBrush="{DynamicResource Brush.BorderDefault}" VerticalAlignment="Center"
+ <Button x:Name="DoneBtn" Height="22" Padding="9,0" VerticalAlignment="Center"
IsVisible="False" Click="OnDoneClick"
ToolTip.Tip="Re-freeze the source and put it back to sleep">
<StackPanel Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
<app:Glyph x:Name="DoneGlyph" Kind="Check" Foreground="{DynamicResource Brush.AccentBright}"/>
- <TextBlock Text="Done" FontSize="11" VerticalAlignment="Center" Foreground="{DynamicResource Brush.AccentBright}"/>
+ <TextBlock Text="Done" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource Brush.AccentBright}"/>
</StackPanel>
</Button>
<Button x:Name="DiscardBtn" Classes="ghost" Height="22" Padding="6,0" VerticalAlignment="Center"
@@ -528,8 +507,8 @@
<app:Glyph x:Name="DiscardGlyph" Kind="Cross" Foreground="{DynamicResource Brush.TextTertiary}"/>
</Button>
</StackPanel>
- <Border Grid.Column="3" Width="1" Height="16" Margin="12,0,6,0" VerticalAlignment="Center"
- Background="{DynamicResource Brush.Hairline}"/>
+ <Border Grid.Column="3" Width="1" Height="16" Margin="10,0,6,0" VerticalAlignment="Center"
+ Background="{DynamicResource Brush.Rule}"/>
<Button x:Name="DetailPopOut" Grid.Column="4" Classes="ghost" Height="22" Padding="6,0"
Foreground="{DynamicResource Brush.TextTertiary}" Click="OnToggleDetailWindow"
ToolTip.Tip="Open devices and clip in a separate window">
@@ -540,6 +519,7 @@
<app:Glyph x:Name="CloseDetailGlyph" Kind="Close"/>
</Button>
</Grid>
+ </Border>
<ContentControl x:Name="DetailBody"/>
</DockPanel>
</Border>
diff --git a/src/managed/Nota.App/MainWindow.axaml.cs b/src/managed/Nota.App/MainWindow.axaml.cs
index 4de48d27..ce897cf6 100644
--- a/src/managed/Nota.App/MainWindow.axaml.cs
+++ b/src/managed/Nota.App/MainWindow.axaml.cs
@@ -99,7 +99,7 @@ public partial class MainWindow : Window
else
{
ExtendClientAreaToDecorationsHint = true;
- ExtendClientAreaTitleBarHeightHint = 36;
+ ExtendClientAreaTitleBarHeightHint = 32;
}
DataContextChanged += OnDataContextChanged;
BuildDownloadIndicator();
@@ -120,7 +120,7 @@ public partial class MainWindow : Window
}
}
- // Fullscreen hides the custom bar: the 36-px band and its separator vanish and the
+ // Fullscreen hides the custom bar: the 32-px band and its separator vanish and the
// workspace fills the top edge; leaving fullscreen restores them. A pure function
// of the current state — never of transitions — so rapid toggles converge. Maximized
// keeps the bar (the app launches maximized); Linux never shows it (native frame).
@@ -389,8 +389,8 @@ public partial class MainWindow : Window
// Modular: signal-graph view of the selected track (mockup 1a). Follows track
// selection like the Detail device chain does.
- // Same island gutter as the arrangement it replaces in MainContent.
- _modular = new ModularView(vm.Engine) { IsVisible = false, Margin = new Thickness(0, NotaSpace.Gutter, NotaSpace.Gutter, NotaSpace.Gutter) };
+ // Docked like the arrangement it replaces in MainContent: no margin, it meets the browser on the seam.
+ _modular = new ModularView(vm.Engine) { IsVisible = false };
_modular.Changed += () => { Timeline.Refresh(); if (_deviceChain is { } dc && dc.TrackId > 0) dc.Refresh(); };
_modular.TrackActivated += OnTrackSelected; // Global-view island → select that track
_modular.ItemDropped += OnModularDrop; // browser drag onto the modular canvas
@@ -581,7 +581,8 @@ public partial class MainWindow : Window
if (modular)
{
int t = Timeline.SelectedTrackId > 0 ? Timeline.SelectedTrackId : LastInstrumentTrack();
- if (t > 0) _modular.Show(t);
+ if (t <= 0) t = _modular.FirstPatchableTrack(); // after opening a project nothing is selected (F3)
+ _modular.Show(t); // Show(-1) still builds the sidebar and its empty state
}
SyncClipTab(); // Clip tab availability is per-context (arrangement vs session)
}
diff --git a/src/managed/Nota.App/MidiMapView.cs b/src/managed/Nota.App/MidiMapView.cs
index ad373b9e..d26f241a 100644
--- a/src/managed/Nota.App/MidiMapView.cs
+++ b/src/managed/Nota.App/MidiMapView.cs
@@ -24,7 +24,7 @@ public sealed class MidiMapView : UserControl
var header = new TextBlock
{
- Text = "MIDI MAPPINGS", FontSize = 10, Margin = new Avalonia.Thickness(12, 12, 12, 2),
+ Text = "MIDI mappings", FontSize = 10, Margin = new Avalonia.Thickness(12, 12, 12, 2),
Foreground = NotaPalette.TextTertiary,
};
var body = new StackPanel { Margin = new Avalonia.Thickness(8, 4), Children = { _rows } };
@@ -69,7 +69,7 @@ public sealed class MidiMapView : UserControl
Grid.SetColumn(del, 1);
top.Children.Add(del);
- var src = new TextBlock { Text = _learn.SourceLabel(m), FontSize = 10, Foreground = NotaPalette.Accent, VerticalAlignment = VerticalAlignment.Center };
+ var src = new TextBlock { Text = _learn.SourceLabel(m), FontSize = 10, Foreground = NotaPalette.TextSecondary, VerticalAlignment = VerticalAlignment.Center };
src.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
// Source on the left; the invert toggle rides the right of the same line so the
// range row below has room for just MIN / MAX.
@@ -80,7 +80,7 @@ public sealed class MidiMapView : UserControl
var phone = new Border
{
Width = 7, Height = 11, CornerRadius = NotaRadius.Bar, BorderThickness = new Avalonia.Thickness(1.3),
- BorderBrush = NotaPalette.AccentBright, VerticalAlignment = VerticalAlignment.Center,
+ BorderBrush = NotaPalette.TextSecondary, VerticalAlignment = VerticalAlignment.Center,
};
srcRow.Children.Add(new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, Children = { phone, src } });
}
@@ -103,8 +103,8 @@ public sealed class MidiMapView : UserControl
Orientation = Orientation.Horizontal, Spacing = 16,
VerticalAlignment = VerticalAlignment.Center,
};
- range.Children.Add(RangeField("MIN", m.RangeMin, v => m.RangeMin = v));
- range.Children.Add(RangeField("MAX", m.RangeMax, v => m.RangeMax = v));
+ range.Children.Add(RangeField("Min", m.RangeMin, v => m.RangeMin = v));
+ range.Children.Add(RangeField("Max", m.RangeMax, v => m.RangeMax = v));
body.Children.Add(range);
}
diff --git a/src/managed/Nota.App/MidiToolsView.cs b/src/managed/Nota.App/MidiToolsView.cs
index 584f2933..0f2ab858 100644
--- a/src/managed/Nota.App/MidiToolsView.cs
+++ b/src/managed/Nota.App/MidiToolsView.cs
@@ -71,7 +71,7 @@ public sealed class MidiToolsView : UserControl
var seedBox = Field(new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 8,
- Children = { CapsLabel("SEED"), _seedText },
+ Children = { CapsLabel("Seed"), _seedText },
});
var reroll = ClipEditorKit.Button("Reroll", () =>
{
@@ -85,7 +85,7 @@ public sealed class MidiToolsView : UserControl
Grid.SetColumn(reroll, 1); seedRow.Children.Add(reroll);
var parameters = Section(title, 9, _paramList, seedRow);
- var output = Section(SectionTitle("OUTPUT", _scopeText), 8,
+ var output = Section(SectionTitle("Output", _scopeText), 8,
Segments(new[] { "Replace", "Add" }, 0, i =>
{
_blend = i == 0 ? MidiToolBlend.Replace : MidiToolBlend.Add;
@@ -271,7 +271,7 @@ public sealed class MidiToolsView : UserControl
var row = new Border
{
Height = 26, CornerRadius = NotaRadius.Badge, Padding = new Thickness(10, 0),
- Background = active ? NotaPalette.AccentSubtle : Brushes.Transparent,
+ Background = active ? NotaPalette.SurfaceHover : Brushes.Transparent,
Cursor = new Cursor(StandardCursorType.Hand),
Child = new Grid
{
@@ -308,7 +308,7 @@ public sealed class MidiToolsView : UserControl
private void RebuildParams()
{
_paramList.Children.Clear();
- _paramTitle.Text = _tool is null ? "PARAMETERS" : _tool.Name.ToUpperInvariant();
+ _paramTitle.Text = _tool is null ? "Parameters" : _tool.Name;
if (_tool is null)
{
_paramList.Children.Add(new TextBlock { Text = "Pick a tool to see its parameters", FontSize = NotaType.Body, Foreground = NotaPalette.TextTertiary });
@@ -346,7 +346,7 @@ public sealed class MidiToolsView : UserControl
default:
{
double span = Math.Max(1e-9, p.Max - p.Min);
- return SliderRow(p.Name.ToUpperInvariant(), 62,
+ return SliderRow(NotaText.Label(p.Name), 62,
() => (settings[p.Id] - p.Min) / span,
v =>
{
@@ -362,18 +362,18 @@ public sealed class MidiToolsView : UserControl
}
}
- // A caps label in the slider-label column, then a control filling the rest.
+ // A label in the slider-label column, then a control filling the rest.
private static Control Labelled(string label, Control control)
{
var grid = new Grid { ColumnDefinitions = new ColumnDefinitions("62,*"), ColumnSpacing = 10 };
- grid.Children.Add(CapsLabel(label.ToUpperInvariant()));
+ grid.Children.Add(CapsLabel(NotaText.Label(label)));
Grid.SetColumn(control, 1); grid.Children.Add(control);
return grid;
}
private static TextBlock CapsLabel(string text) => new()
{
- Text = text, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 0.9, Foreground = NotaPalette.TextTertiary,
+ Text = text, FontSize = 9, FontWeight = FontWeight.Medium, Foreground = NotaPalette.TextTertiary,
VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis,
};
}
diff --git a/src/managed/Nota.App/MixerView.cs b/src/managed/Nota.App/MixerView.cs
index 1bb84880..558b7d5b 100644
--- a/src/managed/Nota.App/MixerView.cs
+++ b/src/managed/Nota.App/MixerView.cs
@@ -28,10 +28,10 @@ public enum MixerViewMode { Strips, StereoMap }
public sealed class MixerView : UserControl
{
private static readonly IBrush Card = NotaPalette.SurfaceCard;
- private static readonly IBrush MasterBg = NotaPalette.SurfaceRaised;
+ private static readonly IBrush MasterBg = NotaPalette.SurfaceCard; // every strip is the panel tone
private static readonly IBrush Sunken = NotaPalette.BgSunken;
private static readonly IBrush BorderDef = NotaPalette.BorderDefault;
- private static readonly IBrush BorderInner = NotaPalette.SurfaceRaised;
+ private static readonly IBrush BorderInner = NotaPalette.Rule; // the rule that divides inside a strip
private static readonly IBrush BorderStrong = NotaPalette.BorderStrong;
private static readonly IBrush Brass = NotaPalette.Accent;
private static readonly IBrush Danger = NotaPalette.Danger;
@@ -55,7 +55,7 @@ public sealed class MixerView : UserControl
public Action<float>? SetMasterVolume { get; set; }
private VFader? _masterFader;
private DragNumber? _masterDb;
- // Project pan law (specs/006): the footer's PAN LAW control, its hint, the OLDER PROJECT
+ // Project pan law (specs/006): the footer's Pan law control, its hint, the Older project
// badge and a BAL badge on every group strip — all re-synced from the engine, so undo/redo
// and project load show up without a rebuild.
public Func<bool>? IsOlderProject { get; set; }
@@ -76,6 +76,18 @@ public sealed class MixerView : UserControl
/// <summary>Called once when the map is created, to wire its callbacks.</summary>
public Action<StereoMapView>? MapCreated { get; set; }
+ private int _builtTrackCount = -1;
+
+ /// <summary>Raised after <see cref="Refresh"/> rebuilds the strips, so a host window can
+ /// fit its width to them.</summary>
+ public event Action? StripsChanged;
+
+ /// <summary>The width the strip row wants (all strips + master + margin), unclipped.</summary>
+ public double StripsWidth
+ {
+ get { _row.Measure(Size.Infinity); return _row.DesiredSize.Width; }
+ }
+
public MixerView(IAudioEngine engine)
{
_engine = engine;
@@ -141,11 +153,15 @@ public sealed class MixerView : UserControl
_row.Children.Add(MasterStrip());
_shownLaw = null; // the strips are new: repaint the law state onto them
SyncPanLaw();
+ _builtTrackCount = n;
+ StripsChanged?.Invoke();
}
/// <summary>Pushes fresh meter readings to every strip (called at the UI clock).</summary>
public void UpdateMeters()
{
+ // A track added or removed while the mixer is open gets (or loses) its strip.
+ if (_builtTrackCount >= 0 && _engine.TrackCount != _builtTrackCount) Refresh();
foreach (var (id, meter) in _meters)
{
if (id < 0) meter.Push(_engine.MasterMeter());
@@ -173,7 +189,7 @@ public sealed class MixerView : UserControl
string io1 = isReturn ? "Return in" : ti.IsGroup ? "Group in" : ti.IsInstrument ? "MIDI in" : "In 1";
string io2 = isReturn ? "→ Master"
: ti.IsGroup ? "→ " + (ti.GroupId >= 0 ? TrackNames.Of(_engine, ti.GroupId) : "Master")
- : ti.IsInstrument ? "Monitor Auto" : "Monitor In";
+ : ti.IsInstrument ? "Monitor auto" : "Monitor in";
// Instrument tracks get a live "MIDI To" selector in place of the static I/O text.
var ioRow = ti.IsInstrument ? MidiIoRow(id) : IoRow(io1, io2);
ioRow.IsVisible = _ioVisible;
@@ -204,14 +220,14 @@ public sealed class MixerView : UserControl
private Control MasterStrip()
{
var col = new StackPanel();
- col.Children.Add(Header("Master", NotaPalette.Accent, MasterBg));
+ col.Children.Add(Header("Master", NotaPalette.Master, MasterBg));
var ioRow = IoRow("Sum bus", "→ Output");
ioRow.IsVisible = _ioVisible;
_ioSections.Add(ioRow);
col.Children.Add(ioRow);
Control db;
- var faderRow = FaderRow(-1, GetMasterVolume?.Invoke() ?? 1f, NotaPalette.Accent, out db, out var meter);
+ var faderRow = FaderRow(-1, GetMasterVolume?.Invoke() ?? 1f, NotaPalette.Master, out db, out var meter);
_meters.Add((-1, meter));
col.Children.Add(faderRow);
col.Children.Add(db);
@@ -250,26 +266,26 @@ public sealed class MixerView : UserControl
var xf = Crossfader();
Grid.SetColumn(xf, 2);
grid.Children.Add(xf);
- return new Border { Height = 44, Background = MasterBg, BorderBrush = BorderDef, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(12, 0), Child = grid };
+ return new Border { Height = 44, Background = MasterBg, BorderBrush = NotaPalette.Seam, BorderThickness = new Thickness(0, 1, 0, 0), Padding = new Thickness(12, 0), Child = grid };
}
private Border SectionToggle(string label, bool initial, Action<bool> set)
{
bool on = initial;
var t = new TextBlock { Text = label, FontSize = 10, FontWeight = FontWeight.SemiBold, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
- var b = new Border { Height = 20, Padding = new Thickness(8, 0), CornerRadius = NotaRadius.Tile, BorderThickness = new Thickness(1), VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.Hand), Child = t };
- // Engaged, not the primary action: Brass Wash + brass border + Brass Hover text (solid brass is for one action only).
- void Paint() { b.Background = on ? NotaPalette.AccentSubtle : MasterBg; b.BorderBrush = on ? NotaPalette.BorderBrass : BorderStrong; t.Foreground = on ? NotaPalette.AccentHover : TextSecondary; }
+ var b = new Border { Height = 22, Padding = new Thickness(8, 0), CornerRadius = NotaRadius.Control, BorderThickness = new Thickness(1), VerticalAlignment = VerticalAlignment.Center, Cursor = new Cursor(StandardCursorType.Hand), Child = t };
+ // Toggled on: a solid accent key with derived ink; off: a raised key.
+ void Paint() { b.Background = on ? Brass : NotaPalette.SurfaceRaised; b.BorderBrush = on ? Brass : NotaPalette.Seam; t.Foreground = on ? OnAccent : TextSecondary; }
b.PointerPressed += (_, e) => { e.Handled = true; on = !on; set(on); Paint(); };
Paint();
return b;
}
- // PAN LAW: the project's pan law as shell segments, a one-line hint, and the OLDER PROJECT
+ // Pan law: the project's pan law as shell segments, a one-line hint, and the Older project
// badge for projects made before the law existed (they keep Balance until switched).
private Control PanLawGroup()
{
- var label = new TextBlock { Text = "PAN LAW", FontSize = 10, FontWeight = FontWeight.Bold, LetterSpacing = 1.4, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
+ var label = new TextBlock { Text = "Pan law", FontSize = 10, FontWeight = FontWeight.SemiBold, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
var seg = ClipEditorKit.Segments(new[] { "Stereo", "Balance" }, _engine.PanLaw == PanLaw.Stereo ? 0 : 1, i =>
{
var law = i == 0 ? PanLaw.Stereo : PanLaw.Balance;
@@ -284,7 +300,7 @@ public sealed class MixerView : UserControl
for (int i = 0; i < buttons.Children.Count && i < tips.Length; i++) ToolTip.SetTip(buttons.Children[i], tips[i]);
}
_lawHint = new TextBlock { FontSize = 11, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
- _olderBadge = Tag("OLDER PROJECT", 9, 1.6, 18, "Projects saved before stereo pan law open with Balance so existing mixes do not change");
+ _olderBadge = Tag("Older project", 9, 0, 18, "Projects saved before stereo pan law open with Balance so existing mixes do not change");
return new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 10, VerticalAlignment = VerticalAlignment.Center,
@@ -310,7 +326,7 @@ public sealed class MixerView : UserControl
foreach (var b in _balBadges) b.IsVisible = stereo;
}
- // A small mono tag in a hairline frame (OLDER PROJECT, BAL), with a tooltip.
+ // A small mono tag in a hairline frame (Older project, BAL), with a tooltip.
private static Border Tag(string text, double size, double tracking, double height, string tip)
{
var t = new TextBlock { Text = text, FontSize = size, LetterSpacing = tracking, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center };
@@ -349,8 +365,9 @@ public sealed class MixerView : UserControl
private Control Header(string name, IBrush topColor, IBrush bg)
{
- var grid = new Grid { RowDefinitions = new RowDefinitions("2,*") };
- grid.Children.Add(new Border { Background = topColor, Height = 2, VerticalAlignment = VerticalAlignment.Top });
+ // The strip header: a 3px bar in the track colour on top (muted grey for master).
+ var grid = new Grid { RowDefinitions = new RowDefinitions("3,*") };
+ grid.Children.Add(new Border { Background = topColor, Height = 3, VerticalAlignment = VerticalAlignment.Top });
var label = new TextBlock { Text = name, FontSize = 10, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(7, 0, 7, 0), TextTrimming = TextTrimming.CharacterEllipsis };
Grid.SetRow(label, 1);
grid.Children.Add(label);
@@ -455,7 +472,7 @@ public sealed class MixerView : UserControl
MidiLearn.Bind(knob, MidiTarget.TrackPan(id), "Track Pan");
}
knob.GestureEnd += undo.End;
- Control label = Mono("PAN", TextTertiary);
+ Control label = Mono("Pan", TextTertiary);
if (isGroup) // groups keep their unity-centre balance whatever the project law (specs/006)
{
var bal = Tag("BAL", 7, 0.84, 11, "Groups keep a unity-centre balance so grouping stays level-transparent");
@@ -506,7 +523,7 @@ public sealed class MixerView : UserControl
meter = new MeterBar(); // the almanac stereo meter: 11 + 5 + 11
var scaleGrid = new Grid { Width = 16, RowDefinitions = new RowDefinitions("*,*,*,*") };
- string[] marks = { "+6", "0", "-12", "-48" };
+ string[] marks = { "+6", "0", "−12", "−48" };
for (int i = 0; i < 4; i++)
{
var t = new TextBlock { Text = marks[i], FontSize = 7, Foreground = TextDisabled, HorizontalAlignment = HorizontalAlignment.Right, VerticalAlignment = i == 0 ? VerticalAlignment.Top : i == 3 ? VerticalAlignment.Bottom : VerticalAlignment.Center };
@@ -553,7 +570,7 @@ public sealed class MixerView : UserControl
void Paint()
{
b.Background = on ? NotaPalette.Record : MasterBg;
- b.BorderBrush = on ? NotaPalette.Record : BorderStrong;
+ b.BorderBrush = on ? NotaPalette.Record : NotaPalette.Seam;
disc.Foreground = on ? NotaPalette.RecordInk : NotaPalette.Record;
}
b.PointerPressed += (_, e) => { if (!e.GetCurrentPoint(b).Properties.IsLeftButtonPressed) return; e.Handled = true; on = !on; set(on); Paint(); };
@@ -564,14 +581,15 @@ public sealed class MixerView : UserControl
private Border Toggle(string label, bool danger, bool initial, Action<bool> set)
{
bool on = initial;
- var t = new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.Bold, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
+ var t = new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.SemiBold, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
var b = new Border { Width = 20, Height = 17, CornerRadius = NotaRadius.Control, BorderThickness = new Thickness(1), Child = t };
void Paint()
{
- var accent = danger ? Danger : Brass;
- b.Background = on ? accent : MasterBg;
- b.BorderBrush = on ? accent : BorderStrong;
- t.Foreground = on ? OnAccent : TextSecondary;
+ // On: mute amber, solo blue, with derived ink.
+ var fill = danger ? NotaPalette.Danger : label == "S" ? NotaPalette.Solo : NotaPalette.Mute;
+ b.Background = on ? fill : NotaPalette.SurfaceRaised;
+ b.BorderBrush = on ? fill : NotaPalette.Seam;
+ t.Foreground = on ? NotaPalette.InkOn(fill) : TextSecondary;
}
b.PointerPressed += (_, e) => { e.Handled = true; on = !on; set(on); Paint(); };
Paint();
diff --git a/src/managed/Nota.App/MixerWindow.cs b/src/managed/Nota.App/MixerWindow.cs
index 38733540..4a682bf5 100644
--- a/src/managed/Nota.App/MixerWindow.cs
+++ b/src/managed/Nota.App/MixerWindow.cs
@@ -37,6 +37,13 @@ internal sealed class MixerWindow : NotaWindow
// Route transport keys (Space/Return) in the tunnel phase so a focused control here
// can't steal them, exactly like the main window does.
AddHandler(KeyDownEvent, (_, e) => _owner.HandleTransportKeyTunnel(e), RoutingStrategies.Tunnel);
+ // Escape closes the mixer, unless a text field is being edited (it owns Escape then).
+ KeyDown += (_, e) =>
+ {
+ if (e.Key != Key.Escape || e.Handled || FocusManager?.GetFocusedElement() is TextBox) return;
+ e.Handled = true;
+ Close();
+ };
Title = "Mixer";
Width = 1040;
@@ -54,7 +61,7 @@ internal sealed class MixerWindow : NotaWindow
Text = "Mixer", FontSize = NotaType.Name, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextPrimary,
VerticalAlignment = VerticalAlignment.Center,
};
- var seg = ClipEditorKit.Segments(new[] { "Strips", "Stereo Map" }, view == MixerViewMode.StereoMap ? 1 : 0,
+ var seg = ClipEditorKit.Segments(new[] { "Strips", "Stereo map" }, view == MixerViewMode.StereoMap ? 1 : 0,
i => ViewPicked?.Invoke(i == 1 ? MixerViewMode.StereoMap : MixerViewMode.Strips), out _setViewSegment);
seg.HorizontalAlignment = HorizontalAlignment.Center;
seg.VerticalAlignment = VerticalAlignment.Center;
@@ -79,6 +86,23 @@ internal sealed class MixerWindow : NotaWindow
/// <summary>Repaints the title-bar switch (the view changed elsewhere).</summary>
public void ShowView(MixerViewMode view) => _setViewSegment(view == MixerViewMode.StereoMap ? 1 : 0);
+ /// <summary>Fits the window to <paramref name="stripsWidth"/> (the mixer's strip row), so
+ /// strips fill it with no dead area: clamped to [MinWidth, the screen's working width].
+ /// A window that grows past the screen's right edge is moved back onto it.</summary>
+ public void FitWidth(double stripsWidth)
+ {
+ var screen = Screens.ScreenFromWindow(this) ?? Screens.Primary;
+ double max = screen is null ? double.PositiveInfinity : screen.WorkingArea.Width / screen.Scaling;
+ double w = Math.Clamp(Math.Ceiling(stripsWidth), MinWidth, Math.Max(MinWidth, max));
+ if (Math.Abs(w - Width) < 0.5) return;
+ Width = w;
+ if (screen is not null && IsVisible)
+ {
+ int right = screen.WorkingArea.Right, px = (int)Math.Ceiling(w * screen.Scaling);
+ if (Position.X + px > right) Position = new PixelPoint(Math.Max(screen.WorkingArea.X, right - px), Position.Y);
+ }
+ }
+
protected override void OnClosing(WindowClosingEventArgs e)
{
base.OnClosing(e);
diff --git a/src/managed/Nota.App/ModularView.cs b/src/managed/Nota.App/ModularView.cs
index 03474193..bb0caa24 100644
--- a/src/managed/Nota.App/ModularView.cs
+++ b/src/managed/Nota.App/ModularView.cs
@@ -85,6 +85,12 @@ public sealed class ModularView : UserControl
private readonly EdgeLayer _edges;
private readonly MiniMap _mini;
private readonly Panel _viewport = new() { ClipToBounds = true, Background = CanvasBg };
+ // Shown on the canvas in Track view while no track is picked (an empty project).
+ private readonly TextBlock _emptyHint = new()
+ {
+ Text = "Pick a track to see its signal graph", Classes = { "Caption" }, IsVisible = false,
+ HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center,
+ };
// view transform: screen = world * _scale + _pan
private double _scale = 1.0;
@@ -115,6 +121,7 @@ public sealed class ModularView : UserControl
_viewport.Children.Add(_grid);
_viewport.Children.Add(_edges);
_viewport.Children.Add(_world);
+ _viewport.Children.Add(_emptyHint);
// hint + minimap overlays (screen-space, not transformed)
var hint = new TextBlock
@@ -151,7 +158,7 @@ public sealed class ModularView : UserControl
// Middle row: track-list sidebar (Track view) + the canvas.
var header = new Border
{
- Height = 26, Child = new TextBlock { Text = "TRACKS", FontSize = 10, FontWeight = FontWeight.Bold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(10, 0) },
+ Height = 26, Child = new TextBlock { Text = "Tracks", FontSize = 10, FontWeight = FontWeight.SemiBold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(10, 0) },
BorderBrush = BorderDef, BorderThickness = new Thickness(0, 0, 0, 1),
};
var listCol = new DockPanel { LastChildFill = true };
@@ -170,16 +177,15 @@ public sealed class ModularView : UserControl
Children = { Toolbar(), Row(body, 1), StatusBar() },
};
- // The island: like the browser and the arrangement, the modular canvas is a rounded
- // card floating on the app ground. ClipToBounds keeps the toolbar, the track rail and
- // the status line inside the rounded corners.
+ // A docked panel like the browser and the arrangement: square, no frame of its own.
+ // ClipToBounds keeps the toolbar, the track rail and the status line inside it.
var island = new Border
{
- BorderThickness = new Thickness(1),
+ BorderThickness = new Thickness(0),
ClipToBounds = true,
Child = root,
};
- island.BindResource(Border.CornerRadiusProperty, "Radius.Panel");
+ island.BindResource(Border.CornerRadiusProperty, "Radius.Docked");
island.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");
island.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");
Content = island;
@@ -213,7 +219,17 @@ public sealed class ModularView : UserControl
if (changed) FitToScreen();
}
- public void Refresh() { if (_global || _trackId > 0) { Rebuild(); RefreshSidebar(); } }
+ // The sidebar is the way in, so it refreshes even with no track picked yet (critique F3).
+ public void Refresh() { if (_global || _trackId > 0) Rebuild(); RefreshSidebar(); }
+
+ /// <summary>The track Modular opens on when nothing is selected: the first track that is
+ /// neither a group nor a return, or -1 for a project with none.</summary>
+ public int FirstPatchableTrack()
+ {
+ for (int i = 0; i < _engine.TrackCount; i++)
+ if (_engine.TryGetTrackInfo(i, out var ti) && !ti.IsGroup && !ti.IsReturn) return ti.Id;
+ return -1;
+ }
/// <summary>Raised when an island is opened in the Global view, so the host can select
/// the track in the arrangement.</summary>
@@ -250,6 +266,9 @@ public sealed class ModularView : UserControl
for (int i = 0; i < n; i++)
if (_engine.TryGetTrackInfo(i, out var ti) && !ti.IsGroup)
_sidebar.Children.Add(TrackRow(ti.Id, ti));
+ if (_sidebar.Children.Count == 0)
+ _sidebar.Children.Add(new TextBlock { Text = "No tracks yet", Classes = { "Caption" }, Margin = new Thickness(10, 8) });
+ _emptyHint.IsVisible = !_global && _trackId <= 0;
}
private Control TrackRow(int trackId, NotaTrackInfo ti)
@@ -260,7 +279,7 @@ public sealed class ModularView : UserControl
var color = ArrangementView.TrackBrush(ArrangementView.EffectiveColorIndex(_engine, trackId));
var row = new Border
{
- Height = 34, Background = active ? NotaPalette.AccentSubtle : Brushes.Transparent,
+ Height = 34, Background = active ? NotaPalette.SurfaceHover : Brushes.Transparent,
BorderBrush = color, BorderThickness = new Thickness(3, 0, 0, 0),
Cursor = new Cursor(StandardCursorType.Hand), Tag = trackId, // Tag → cross-track CV drop target
Child = new TextBlock { Text = name, FontSize = 11, FontWeight = active ? FontWeight.SemiBold : FontWeight.Normal, Foreground = active ? Text1 : Text2, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(10, 0) },
@@ -604,11 +623,11 @@ public sealed class ModularView : UserControl
var meta = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center };
DockPanel.SetDock(meta, Dock.Left);
meta.Children.Add(new TextBlock { Text = n.Title, FontSize = 11, FontWeight = FontWeight.SemiBold, Foreground = Text1, VerticalAlignment = VerticalAlignment.Center });
- meta.Children.Add(new TextBlock { Text = $"{nodeCount} NODES", FontSize = 9, FontWeight = FontWeight.Bold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center });
+ meta.Children.Add(new TextBlock { Text = $"{nodeCount} NODES", FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center });
head.Children.Add(meta);
if (cv > 0)
{
- var cvLabel = new TextBlock { Text = $"{cv} CV", FontSize = 9, FontWeight = FontWeight.Bold, Foreground = Brass, VerticalAlignment = VerticalAlignment.Center };
+ var cvLabel = new TextBlock { Text = $"{cv} CV", FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = Brass, VerticalAlignment = VerticalAlignment.Center };
cvLabel.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
DockPanel.SetDock(cvLabel, Dock.Right);
head.Children.Add(cvLabel);
@@ -936,38 +955,38 @@ public sealed class ModularView : UserControl
Grid grid;
if (kind == 4) // Macro: one manual knob (its value is the CV output)
{
- grid = KnobGrid(ModFieldCell("MACRO", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
+ grid = KnobGrid(ModFieldCell("Macro", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
}
else if (kind == 3) // ADSR: Attack / Decay / Sustain / Release (+ Depth)
{
grid = KnobGrid(
- ModFieldCell("ATTACK", modId, 6, 0.1f, 2000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
- ModFieldCell("DECAY", modId, 8, 1f, 2000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
- ModFieldCell("SUSTAIN", modId, 9, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"),
- ModFieldCell("RELEASE", modId, 7, 1f, 4000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
- ModFieldCell("DEPTH", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
+ ModFieldCell("Attack", modId, 6, 0.1f, 2000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
+ ModFieldCell("Decay", modId, 8, 1f, 2000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
+ ModFieldCell("Sustain", modId, 9, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"),
+ ModFieldCell("Release", modId, 7, 1f, 4000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
+ ModFieldCell("Depth", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
}
else if (kind == 1) // envelope follower: Attack / Release / Depth
{
grid = KnobGrid(
- ModFieldCell("ATTACK", modId, 6, 0.1f, 500f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
- ModFieldCell("RELEASE", modId, 7, 1f, 2000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
- ModFieldCell("DEPTH", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
+ ModFieldCell("Attack", modId, 6, 0.1f, 500f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
+ ModFieldCell("Release", modId, 7, 1f, 2000f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
+ ModFieldCell("Depth", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
}
else if (kind == 2) // MIDI→CV: source select + Smooth / Depth
{
col.Children.Add(Row(MidiSourceRow(modId), 2));
grid = KnobGrid(
- ModFieldCell("SMOOTH", modId, 6, 0.1f, 500f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
- ModFieldCell("DEPTH", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
+ ModFieldCell("Smooth", modId, 6, 0.1f, 500f, v => v.ToString("0", NotaNum.Culture) + "\u2009ms"),
+ ModFieldCell("Depth", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"));
}
else // LFO: waveform + sync, then Rate / Depth / Phase
{
col.Children.Add(Row(WaveSyncRow(modId), 2));
grid = KnobGrid(
ModRateCell(modId),
- ModFieldCell("DEPTH", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"),
- ModFieldCell("PHASE", modId, 5, 0f, 1f, v => (v * 360).ToString("0", NotaNum.Culture) + "°"));
+ ModFieldCell("Depth", modId, 4, 0f, 1f, v => (v * 100).ToString("0", NotaNum.Culture) + "\u2009%"),
+ ModFieldCell("Phase", modId, 5, 0f, 1f, v => (v * 360).ToString("0", NotaNum.Culture) + "°"));
}
col.Children.Add(Row(grid, gridRow));
col.Children.Add(Row(PortsBlock(n), gridRow + 1));
@@ -984,10 +1003,10 @@ public sealed class ModularView : UserControl
col.Children.Add(Row(headBorder, 1));
var body = new StackPanel { Spacing = 4, Margin = new Thickness(9, 6) };
- body.Children.Add(MathLabeledRow("OP", MathOpCombo(modId)));
+ body.Children.Add(MathLabeledRow("Op", MathOpCombo(modId)));
body.Children.Add(KnobGrid(
- ModFieldCell("GAIN", modId, 4, 0f, 2f, v => v.ToString("0.00", NotaNum.Culture)),
- ModFieldCell("OFFSET", modId, 12, -1f, 1f, v => v.ToString("0.00", NotaNum.Culture))));
+ ModFieldCell("Gain", modId, 4, 0f, 2f, v => v.ToString("0.00", NotaNum.Culture)),
+ ModFieldCell("Offset", modId, 12, -1f, 1f, v => v.ToString("0.00", NotaNum.Culture))));
col.Children.Add(Row(body, 2));
col.Children.Add(Row(MathPortsBlock(n), 3)); // A/B CV inputs (drag a cable in) + CV out
WrapFrame(n, col, headBorder);
@@ -1028,7 +1047,7 @@ public sealed class ModularView : UserControl
private static Control MathLabeledRow(string label, Control field)
{
var dock = new DockPanel { LastChildFill = true };
- var lbl = new TextBlock { Text = label, FontSize = 8, FontWeight = FontWeight.Bold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Width = 24 };
+ var lbl = new TextBlock { Text = label, FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Width = 24 };
DockPanel.SetDock(lbl, Dock.Left);
dock.Children.Add(lbl);
dock.Children.Add(field);
@@ -1102,9 +1121,9 @@ public sealed class ModularView : UserControl
var b = new Border
{
Height = 13, CornerRadius = NotaRadius.Badge, Padding = new Thickness(5, 0),
- Background = NotaPalette.AccentSubtle, BorderBrush = NotaPalette.Accent, BorderThickness = new Thickness(1),
+ Background = NotaPalette.SurfaceRaised, BorderBrush = NotaPalette.Seam, BorderThickness = new Thickness(1),
Cursor = new Cursor(StandardCursorType.Hand), VerticalAlignment = VerticalAlignment.Center,
- Child = new TextBlock { Text = synced ? "SYNC" : "FREE", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = BrassBright, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center },
+ Child = new TextBlock { Text = synced ? "Sync" : "Free", FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextPrimary, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center },
};
b.PointerPressed += (_, e) => { _engine.ModulatorSet(_trackId, modId, 1, synced ? 0f : 1f); Rebuild(); e.Handled = true; };
return b;
@@ -1115,10 +1134,10 @@ public sealed class ModularView : UserControl
var b = new Border
{
Height = 20, MinWidth = 30, CornerRadius = NotaRadius.Badge,
- BorderBrush = active ? NotaPalette.Accent : BorderStrong, BorderThickness = new Thickness(1),
- Background = active ? NotaPalette.AccentSubtle : Brushes.Transparent,
+ BorderBrush = active ? NotaPalette.Accent : NotaPalette.Seam, BorderThickness = new Thickness(1),
+ Background = active ? NotaPalette.Accent : NotaPalette.SurfaceRaised,
Padding = new Thickness(6, 0), Cursor = new Cursor(StandardCursorType.Hand),
- Child = new TextBlock { Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = active ? BrassBright : Text2, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center },
+ Child = new TextBlock { Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = active ? NotaPalette.TextOnAccent : Text2, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center },
};
b.PointerPressed += (_, e) => { onClick(); e.Handled = true; };
return b;
@@ -1304,7 +1323,7 @@ public sealed class ModularView : UserControl
// depth/mode to tune, just a disconnect button (clears the target's input field).
private void ShowModInputEditor(GEdge e)
{
- var title = new TextBlock { Text = e.Tip, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = Text3, TextWrapping = TextWrapping.Wrap };
+ var title = new TextBlock { Text = e.Tip, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = Text3, TextWrapping = TextWrapping.Wrap };
var flyout = new Flyout { Placement = Avalonia.Controls.PlacementMode.Pointer };
var remove = new Button { Content = "Remove connection", FontSize = 10, HorizontalAlignment = HorizontalAlignment.Stretch, HorizontalContentAlignment = HorizontalAlignment.Center };
remove.Click += (_, _) => { flyout.Hide(); RemoveModInputEdge(e); };
@@ -1322,13 +1341,13 @@ public sealed class ModularView : UserControl
{
int t = ownerTrack; var e = _engine;
int modId = e.CvLinkSource(t, linkIndex);
- var title = new TextBlock { Text = $"CV LINK · LFO {modId}", FontSize = 9, FontWeight = FontWeight.Bold, Foreground = Text3 };
+ var title = new TextBlock { Text = $"CV LINK · LFO {modId}", FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = Text3 };
var depth = new Slider { Minimum = -1, Maximum = 1, Value = e.CvLinkDepth(t, linkIndex), Width = 180, SmallChange = 0.05, LargeChange = 0.2 };
var depthVal = MonoValue(((int)Math.Round(e.CvLinkDepth(t, linkIndex) * 100)) + "\u2009%");
depth.PropertyChanged += (_, ev) => { if (ev.Property == Slider.ValueProperty) { e.SetCvLinkDepth(t, linkIndex, (float)depth.Value); depthVal.Text = ((int)Math.Round(depth.Value * 100)) + "\u2009%"; } };
var depthRow = new DockPanel { LastChildFill = true };
- var dl = new TextBlock { Text = "DEPTH", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, 8, 0) };
+ var dl = new TextBlock { Text = "Depth", FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, 8, 0) };
DockPanel.SetDock(dl, Dock.Left); DockPanel.SetDock(depthVal, Dock.Right);
depthRow.Children.Add(dl); depthRow.Children.Add(depthVal); depthRow.Children.Add(depth);
@@ -1348,7 +1367,7 @@ public sealed class ModularView : UserControl
var remove = new Button { Content = "Remove modulation", FontSize = 10, HorizontalAlignment = HorizontalAlignment.Stretch, HorizontalContentAlignment = HorizontalAlignment.Center };
remove.Click += (_, _) => { flyout.Hide(); e.CvLinkRemove(t, linkIndex); Rebuild(); Changed?.Invoke(); };
- var panel = new StackPanel { Spacing = 8, Width = 220, Children = { title, depthRow, new TextBlock { Text = "MODE", FontSize = 8, FontWeight = FontWeight.Bold, Foreground = Text3 }, modeRow, remove } };
+ var panel = new StackPanel { Spacing = 8, Width = 220, Children = { title, depthRow, new TextBlock { Text = "Mode", FontSize = 8, FontWeight = FontWeight.SemiBold, Foreground = Text3 }, modeRow, remove } };
flyout.Content = panel;
flyout.ShowAt(anchor);
}
@@ -1408,14 +1427,14 @@ public sealed class ModularView : UserControl
else if (n.Slot == Slot.Modulator)
{
var actions = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, VerticalAlignment = VerticalAlignment.Center };
- actions.Children.Add(new TextBlock { Text = string.IsNullOrEmpty(n.Badge) ? "LFO" : n.Badge, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center });
+ actions.Children.Add(new TextBlock { Text = string.IsNullOrEmpty(n.Badge) ? "LFO" : NotaText.Label(n.Badge), FontSize = 9, FontWeight = FontWeight.Medium, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center });
actions.Children.Add(HeaderGlyph(GlyphKind.Close, Text3, "Delete", () => RemoveModulatorNode(n)));
DockPanel.SetDock(actions, Dock.Right);
head.Children.Add(actions);
}
else if (!string.IsNullOrEmpty(n.Badge))
{
- var badge = new TextBlock { Text = n.Badge, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(8, 0, 0, 0) };
+ var badge = new TextBlock { Text = NotaText.Label(n.Badge), FontSize = 9, FontWeight = FontWeight.Medium, Foreground = Text3, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(8, 0, 0, 0) };
DockPanel.SetDock(badge, Dock.Right);
head.Children.Add(badge);
}
diff --git a/src/managed/Nota.App/MosaicCreateWindow.cs b/src/managed/Nota.App/MosaicCreateWindow.cs
index ec214fac..5477d784 100644
--- a/src/managed/Nota.App/MosaicCreateWindow.cs
+++ b/src/managed/Nota.App/MosaicCreateWindow.cs
@@ -92,7 +92,7 @@ public sealed class MosaicCreateWindow : NotaWindow
Grid.SetColumn(_instSub, 1); instHead.Children.Add(_instSub);
Grid.SetColumn(legend, 3); instHead.Children.Add(legend);
_map.Height = 150;
- var tableHead = TableRow("FILE", "NOTE", "LAYER", "RR", "RELEASE", "CONF", "", TextTertiary, caps: true);
+ var tableHead = TableRow("File", "NOTE", "LAYER", "RR", "RELEASE", "CONF", "", TextTertiary, caps: true);
var table = new Grid { RowDefinitions = new RowDefinitions("Auto,*") };
table.Children.Add(tableHead);
var scroll = new ScrollViewer { Content = _rows };
@@ -181,7 +181,7 @@ public sealed class MosaicCreateWindow : NotaWindow
var b = new Border
{
Padding = new Thickness(6, 4), CornerRadius = NotaRadius.Badge, BorderThickness = new Thickness(1), Cursor = new Cursor(StandardCursorType.Hand),
- BorderBrush = sel ? NotaPalette.BorderBrass : Brushes.Transparent, Background = sel ? NotaPalette.AccentSubtle : Brushes.Transparent, Child = g,
+ BorderBrush = sel ? NotaPalette.BorderBrass : Brushes.Transparent, Background = sel ? NotaPalette.SurfaceHover : Brushes.Transparent, Child = g,
};
b.PointerPressed += (_, e) => { if (e.Source is CheckBox) return; _sel = iv; Paint(); };
_instList.Children.Add(b);
@@ -238,7 +238,7 @@ public sealed class MosaicCreateWindow : NotaWindow
var prog = MultisampleMapper.Build(inst, _opt);
var (lo, hi) = inst.Span;
_instTitle.Text = inst.Stem;
- _instSub.Text = $"{MosaicNames.NoteName(lo)} – {MosaicNames.NoteName(hi)} · {prog.Zones.Count} zones";
+ _instSub.Text = $"{MosaicNames.NoteName(lo)}–{MosaicNames.NoteName(hi)} · {prog.Zones.Count} zones";
foreach (var g in inst.Gaps) _map.Flagged.Add(g);
_map.Set(prog.Zones, false, -1);
@@ -309,7 +309,7 @@ public sealed class MosaicCreateWindow : NotaWindow
private static Border Panel(string title, Control body, string? note = null)
{
var head = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto"), Margin = new Thickness(0, 0, 0, 5) };
- head.Children.Add(new TextBlock { Text = title.ToUpperInvariant(), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.SectionLabelTracking, Foreground = TextTertiary });
+ head.Children.Add(new TextBlock { Text = NotaText.Label(title), FontSize = NotaType.DeviceSection, FontWeight = FontWeight.SemiBold, Foreground = TextTertiary });
if (note is not null) { var n = Mono(note, TextTertiary, 7.5); Grid.SetColumn(n, 1); head.Children.Add(n); }
return Box(new StackPanel { Children = { head, body } });
}
@@ -353,7 +353,7 @@ public sealed class MosaicCreateWindow : NotaWindow
for (int i = 0; i < cells.Length; i++)
{
var tb = caps
- ? new TextBlock { Text = cells[i], FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Bold, LetterSpacing = NotaType.KnobLabelTracking, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center }
+ ? new TextBlock { Text = NotaText.Label(cells[i]), FontSize = NotaType.KnobLabel, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center }
: Mono(cells[i], i == 5 && confInk is not null ? confInk : i == 6 ? actionInk ?? TextTertiary : ink, 8.5);
tb.TextTrimming = TextTrimming.CharacterEllipsis;
if (strike && i == 0) tb.TextDecorations = TextDecorations.Strikethrough;
diff --git a/src/managed/Nota.App/Nota.App.csproj b/src/managed/Nota.App/Nota.App.csproj
index b9e2c567..19d1a136 100644
--- a/src/managed/Nota.App/Nota.App.csproj
+++ b/src/managed/Nota.App/Nota.App.csproj
@@ -41,6 +41,13 @@
<AvaloniaResource Include="..\..\..\assets\fonts\*.ttf" Link="Assets/Fonts/%(Filename)%(Extension)" />
</ItemGroup>
+ <!-- The built-in colour themes (spec 011): one JSON file per theme, the only place a
+ colour value lives. Read by NotaThemes at startup; the smoke test reads the same
+ files from disk. -->
+ <ItemGroup>
+ <EmbeddedResource Include="Theme\Themes\*.json" LogicalName="Nota.Themes.%(Filename)%(Extension)" />
+ </ItemGroup>
+
<ItemGroup>
<ProjectReference Include="..\Nota.Presentation\Nota.Presentation.csproj" />
<ProjectReference Include="..\Nota.Infrastructure\Nota.Infrastructure.csproj" />
diff --git a/src/managed/Nota.App/NotaIcons.cs b/src/managed/Nota.App/NotaIcons.cs
deleted file mode 100644
index d31cd606..00000000
--- a/src/managed/Nota.App/NotaIcons.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// SPDX-License-Identifier: AGPL-3.0-only
-// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
-//
-// Hand-drawn vector glyphs shared by XAML (via {x:Static}) and code-behind. Kept as
-// Geometry so they render crisp at any size and follow the theme brush they're stroked with.
-
-using Avalonia;
-using Avalonia.Media;
-
-namespace Nota.App;
-
-public static class NotaIcons
-{
- /// <summary>A two-link chain (live-freeze "linked" marker): two rounded capsule rings laid
- /// along a 45° diagonal and overlapped so they read as interlocked. Drawn in a 14×14 box;
- /// stroke it (no fill) so each capsule shows as a ring. Used on the Live Freeze button and
- /// the arrangement header badge of a linked source.</summary>
- public static Geometry ChainLink { get; } = BuildChainLink();
-
- private static Geometry BuildChainLink()
- {
- var group = new GeometryGroup();
- group.Children.Add(Capsule(-1.8, -1.8)); // upper-left link
- group.Children.Add(Capsule(1.8, 1.8)); // lower-right link (overlaps the first)
- return group;
- }
-
- // One rounded capsule (long axis 8, thickness 3.6), rotated 45° and centred at
- // (7+dx, 7+dy) within the 14×14 box.
- private static Geometry Capsule(double dx, double dy)
- {
- var rect = new RectangleGeometry(new Rect(-4.0, -1.8, 8.0, 3.6))
- {
- RadiusX = 1.8,
- RadiusY = 1.8,
- Transform = new TransformGroup
- {
- Children =
- {
- new RotateTransform(45),
- new TranslateTransform(7.0 + dx, 7.0 + dy),
- },
- },
- };
- return rect;
- }
-}
diff --git a/src/managed/Nota.App/NotaWindow.cs b/src/managed/Nota.App/NotaWindow.cs
index 015d302e..7698a828 100644
--- a/src/managed/Nota.App/NotaWindow.cs
+++ b/src/managed/Nota.App/NotaWindow.cs
@@ -37,7 +37,7 @@ public abstract class NotaWindow : Window
/// Linux keeps the native frame either way.</summary>
protected NotaWindow(double ownTitleBarHeight)
{
- Background = NotaPalette.BgApp;
+ Background = NotaPalette.Panel; // a dialog body is the panel tone
// Body + learn glass share the space below the title bar (glass on top).
var bodyLayer = new Panel();
@@ -50,7 +50,7 @@ public abstract class NotaWindow : Window
// Linux: keep the native OS window frame (GNOME/KDE draw their own title bar with
// the window Title) — no extended client area, no custom bar. Matches MainWindow's
// Linux treatment. macOS/Windows get the frameless modern chrome with a slim custom
- // title bar (extend the client area, 36px band), so every window reads as one family.
+ // title bar (extend the client area, a 32px raised band), so every window reads as one family.
if (!OperatingSystem.IsLinux() && ownTitleBarHeight > 0)
{
ExtendClientAreaToDecorationsHint = true;
@@ -59,14 +59,14 @@ public abstract class NotaWindow : Window
else if (!OperatingSystem.IsLinux())
{
ExtendClientAreaToDecorationsHint = true;
- ExtendClientAreaTitleBarHeightHint = 36;
+ ExtendClientAreaTitleBarHeightHint = 32;
var titleText = _chromeTitle = new TextBlock
{
- Classes = { "Caption" },
+ Classes = { "Heading" },
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
- Foreground = Res("Brush.TextSecondary"),
+ Foreground = Res("Brush.TextPrimary"),
};
titleText[!TextBlock.TextProperty] = this[!TitleProperty]; // mirror the window Title
@@ -84,12 +84,13 @@ public abstract class NotaWindow : Window
var bar = _chromeBar = new Border
{
- Height = 36,
- Background = Res("Brush.ChromeBg"),
- BorderBrush = Res("Brush.BorderDefault"),
+ Height = 32,
+ Background = Res("Brush.SurfaceRaised"),
+ BorderBrush = Res("Brush.Seam"),
BorderThickness = new Thickness(0, 0, 0, 1),
Child = row,
};
+ bar.BindResource(Border.BoxShadowProperty, "Shadow.Raised"); // the raised header's bevel
bar.PointerPressed += OnChromePressed;
DockPanel.SetDock(bar, Dock.Top);
diff --git a/src/managed/Nota.App/PianoRollView.Expression.cs b/src/managed/Nota.App/PianoRollView.Expression.cs
index 93427bca..09e803db 100644
--- a/src/managed/Nota.App/PianoRollView.Expression.cs
+++ b/src/managed/Nota.App/PianoRollView.Expression.cs
@@ -38,12 +38,13 @@ public sealed partial class PianoRollView
private readonly Grid _laneRow;
private LaneMode _laneMode;
- private static readonly IPen CurvePen = new Pen(NotaPalette.AccentBright, 1.5, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
- private static readonly IPen NeutralPen = new Pen(NotaPalette.Wash(NotaPalette.AccentBright, 0x70), 1, new DashStyle(new double[] { 3, 3 }, 0));
+ // The expression curve at rest is neutral viz ink; only the point under the pointer is the accent.
+ private static readonly IPen CurvePen = new Pen(NotaPalette.VizInk, 1.5, lineCap: PenLineCap.Round, lineJoin: PenLineJoin.Round);
+ private static readonly IPen NeutralPen = new Pen(NotaPalette.Wash(NotaPalette.VizInk, 0x70), 1, new DashStyle(new double[] { 3, 3 }, 0));
private static readonly IPen ZeroPen = new Pen(NotaPalette.BorderStrong, 1);
- private static readonly IBrush SpanWash = NotaPalette.Wash(NotaPalette.AccentBright, 0x14);
- private static readonly IBrush PointFill = NotaPalette.AccentBright;
- private static readonly IBrush PointHot = NotaPalette.AccentPale;
+ private static readonly IBrush SpanWash = NotaPalette.Wash(NotaPalette.VizInk, 0x14);
+ private static readonly IBrush PointFill = NotaPalette.VizInk;
+ private static readonly IBrush PointHot = NotaPalette.Accent;
private static readonly IBrush TabActive = NotaPalette.AccentBright;
internal LaneMode Lane => _laneMode;
@@ -135,7 +136,7 @@ public sealed partial class PianoRollView
private sealed class LaneTabs : Control
{
private static readonly (LaneMode Mode, string Label)[] Tabs =
- { (LaneMode.Velocity, "VEL"), (LaneMode.Bend, "BEND"), (LaneMode.Pressure, "PRES"), (LaneMode.Slide, "SLIDE") };
+ { (LaneMode.Velocity, "Vel"), (LaneMode.Bend, "Bend"), (LaneMode.Pressure, "Pres"), (LaneMode.Slide, "Slide") };
private const double Top = 6, RowStep = 15;
private readonly PianoRollView _o;
private int _hover = -1;
diff --git a/src/managed/Nota.App/PianoRollView.cs b/src/managed/Nota.App/PianoRollView.cs
index 6a1a1de8..64afb4e4 100644
--- a/src/managed/Nota.App/PianoRollView.cs
+++ b/src/managed/Nota.App/PianoRollView.cs
@@ -207,9 +207,10 @@ public sealed partial class PianoRollView : UserControl
// Scale overlay: out-of-scale rows/keys get a translucent dark wash (they read
// dimmed / semi-transparent), in-scale rows a faint accent, the root a stronger one.
private static readonly IBrush OutScaleWash = NotaPalette.Wash(NotaPalette.BgSunken, 0xB4);
- private static readonly IBrush InScaleTint = NotaPalette.Wash(NotaPalette.AccentBright, 0x1E);
- private static readonly IBrush RootTint = NotaPalette.Wash(NotaPalette.AccentBright, 0x40);
- private static readonly IPen PlayheadPen = new Pen(NotaPalette.Accent, 1); // almanac playhead: 1px brass
+ // Scale rows are a neutral lift, not the accent: a key at rest is neither live nor chosen.
+ private static readonly IBrush InScaleTint = NotaPalette.Wash(NotaPalette.VizInk, 0x0C);
+ private static readonly IBrush RootTint = NotaPalette.Wash(NotaPalette.VizInk, 0x1E);
+ private static readonly IPen PlayheadPen = new Pen(NotaPalette.Accent, 1); // the playhead: 1px accent
private static readonly IBrush KeyHover = NotaPalette.Wash(NotaPalette.AccentBright, 0x66);
// Played-key highlight (currently-pressed keyboard / MIDI note): a solid key tint + a faint row wash.
private static readonly IBrush HeldKeyFill = NotaPalette.Accent;
diff --git a/src/managed/Nota.App/PreferencesWindow.Downloads.cs b/src/managed/Nota.App/PreferencesWindow.Downloads.cs
index 9d67d6c8..f0b2a519 100644
--- a/src/managed/Nota.App/PreferencesWindow.Downloads.cs
+++ b/src/managed/Nota.App/PreferencesWindow.Downloads.cs
@@ -20,7 +20,7 @@ namespace Nota.App;
public sealed partial class PreferencesWindow
{
private const int DownloadsIndex = 5;
- private static readonly string[] DownloadSources = { "Plug-ins", "Sample Packs", "AI Models" };
+ private static readonly string[] DownloadSources = { "Plug-ins", "Sample packs", "AI models" };
private int _downloadSource; // 0 = plug-ins, 1 = sample packs, 2 = AI models; kept for the window's life
private Control DownloadsPane(Control header)
diff --git a/src/managed/Nota.App/PreferencesWindow.Models.cs b/src/managed/Nota.App/PreferencesWindow.Models.cs
index 0a06cd5c..255ee4dc 100644
--- a/src/managed/Nota.App/PreferencesWindow.Models.cs
+++ b/src/managed/Nota.App/PreferencesWindow.Models.cs
@@ -65,7 +65,7 @@ public sealed partial class PreferencesWindow
Children =
{
new TextBlock { Text = m.Name, FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, Margin = new Thickness(0, 0, 8, 0), VerticalAlignment = VerticalAlignment.Center },
- new TextBlock { Text = m.Feature.ToUpperInvariant(), FontSize = 9, LetterSpacing = 0.7, FontFamily = NotaFonts.MonoFamily, Foreground = TextMuted, VerticalAlignment = VerticalAlignment.Center },
+ new TextBlock { Text = m.Feature, FontSize = 10, FontFamily = NotaFonts.MonoFamily, Foreground = TextMuted, VerticalAlignment = VerticalAlignment.Center },
},
},
new TextBlock { Text = $"{m.Author} · {m.License}", FontSize = 10, FontFamily = NotaFonts.MonoFamily, Foreground = TextTertiary },
diff --git a/src/managed/Nota.App/PreferencesWindow.Remote.cs b/src/managed/Nota.App/PreferencesWindow.Remote.cs
index fffcf127..ceab036f 100644
--- a/src/managed/Nota.App/PreferencesWindow.Remote.cs
+++ b/src/managed/Nota.App/PreferencesWindow.Remote.cs
@@ -89,7 +89,7 @@ public sealed partial class PreferencesWindow
{
var connected = remote.Hub.Devices.Select(d => d.DeviceId).ToHashSet();
var list = remote.Pairing.Trusted.OrderByDescending(d => d.LastSeen).ToList();
- if (list.Count == 0) { trustedHost.Content = EmptyBox("No phone has paired yet. Turn Remote on and scan the code in Connect Phone."); return; }
+ if (list.Count == 0) { trustedHost.Content = EmptyBox("No phone has paired yet. Turn Remote on and scan the code in Connect phone."); return; }
var rows = new List<Control>();
foreach (var d in list)
{
@@ -166,8 +166,8 @@ public sealed partial class PreferencesWindow
};
return Sections(
- Section("NOTA REMOTE", 10, enable, details),
- Section("TRUSTED DEVICES", 8, trustedHost,
+ Section("Nota Remote", 10, enable, details),
+ Section("Trusted devices", 8, trustedHost,
Caption("A trusted phone reconnects from its Home Screen icon without a code. Forget it and it has to scan again. Turning Remote off disconnects everyone.", muted: true)),
warn);
}
diff --git a/src/managed/Nota.App/PreferencesWindow.Samples.cs b/src/managed/Nota.App/PreferencesWindow.Samples.cs
index 47645229..9ff6d63a 100644
--- a/src/managed/Nota.App/PreferencesWindow.Samples.cs
+++ b/src/managed/Nota.App/PreferencesWindow.Samples.cs
@@ -224,17 +224,17 @@ public sealed partial class PreferencesWindow
for (int i = 0; i < _packCounts.Length; i++)
{
_packCounts[i].Text = _packs is null || installed is null ? "" : _packs.Count(p => MatchesPackFilter(p, i, installed)).ToString();
- _packCounts[i].Foreground = i == _packFilter ? NotaPalette.AccentEdge : TextDisabled;
+ _packCounts[i].Foreground = i == _packFilter ? NotaPalette.TextPrimary : TextDisabled;
}
}
private static string PackKindLabel(string kind) => kind switch
{
- "one-shots" => "ONE-SHOTS",
- "loops" => "LOOPS",
- "multisample" => "INSTRUMENT",
- "mixed" => "MIXED",
- _ => kind.ToUpperInvariant(),
+ "one-shots" => "One-shots",
+ "loops" => "Loops",
+ "multisample" => "Instrument",
+ "mixed" => "Mixed",
+ _ => NotaText.Label(kind.ToUpperInvariant()),
};
private static string Megabytes(long bytes)
@@ -252,7 +252,7 @@ public sealed partial class PreferencesWindow
Children =
{
new TextBlock { Text = p.Name, FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = TextPrimary, Margin = new Thickness(0, 0, 8, 0), VerticalAlignment = VerticalAlignment.Center },
- new TextBlock { Text = PackKindLabel(p.Kind), FontSize = 9, LetterSpacing = 0.7, FontFamily = NotaFonts.MonoFamily, Foreground = TextMuted, VerticalAlignment = VerticalAlignment.Center },
+ new TextBlock { Text = PackKindLabel(p.Kind), FontSize = 9, FontFamily = NotaFonts.MonoFamily, Foreground = TextMuted, VerticalAlignment = VerticalAlignment.Center },
},
},
new TextBlock { Text = $"{p.Author} · {p.Version} · {p.License}", FontSize = 10, FontFamily = NotaFonts.MonoFamily, Foreground = TextTertiary },
diff --git a/src/managed/Nota.App/PreferencesWindow.Store.cs b/src/managed/Nota.App/PreferencesWindow.Store.cs
index 41840e21..49e94932 100644
--- a/src/managed/Nota.App/PreferencesWindow.Store.cs
+++ b/src/managed/Nota.App/PreferencesWindow.Store.cs
@@ -181,7 +181,7 @@ public sealed partial class PreferencesWindow
Orientation = Orientation.Horizontal, Spacing = 8,
Children =
{
- new TextBlock { Text = h.Title, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 1.1, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center },
+ new TextBlock { Text = h.Title, FontSize = 9, FontWeight = FontWeight.Medium, Foreground = TextTertiary, VerticalAlignment = VerticalAlignment.Center },
new TextBlock { Text = h.Count.ToString(), FontSize = 9, FontFamily = NotaFonts.MonoFamily, Foreground = TextDisabled, VerticalAlignment = VerticalAlignment.Center },
},
},
@@ -254,7 +254,7 @@ public sealed partial class PreferencesWindow
if (unavailable.Count > 0)
{
// The heading sits at the very top when nothing else matched — no rule above it then.
- if (available.Count > 0) items.Add(new StoreSection("NOT AVAILABLE FOR THIS COMPUTER", unavailable.Count));
+ if (available.Count > 0) items.Add(new StoreSection("Not available for this computer", unavailable.Count));
items.AddRange(unavailable.Select(p => new StoreEntry(p, installed.GetValueOrDefault(p.Id), First: false)));
}
if (available.Count == 0 && items[0] is StoreEntry first) items[0] = first with { First = true };
@@ -283,7 +283,7 @@ public sealed partial class PreferencesWindow
{
_storeCounts[i].Text = _storePlugins is null || installed is null ? "" : _storePlugins.Count(p => MatchesFilter(p, i, installed)).ToString();
// On the brass segment the count drops to the brass edge; off it, Ink 6.
- _storeCounts[i].Foreground = i == _storeFilter ? NotaPalette.AccentEdge : TextDisabled;
+ _storeCounts[i].Foreground = i == _storeFilter ? NotaPalette.TextPrimary : TextDisabled;
}
}
@@ -379,7 +379,7 @@ public sealed partial class PreferencesWindow
Children =
{
new TextBlock { Text = p.Name, FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = here ? TextPrimary : TextSecondary, Margin = new Thickness(0, 0, 8, 0), VerticalAlignment = VerticalAlignment.Center },
- new TextBlock { Text = KindLabel(p.Kind), FontSize = 9, LetterSpacing = 0.7, FontFamily = NotaFonts.MonoFamily, Foreground = TextMuted, VerticalAlignment = VerticalAlignment.Center },
+ new TextBlock { Text = KindLabel(p.Kind), FontSize = 9, FontFamily = NotaFonts.MonoFamily, Foreground = TextMuted, VerticalAlignment = VerticalAlignment.Center },
PlatformIcons(p.Platforms),
},
},
@@ -463,10 +463,6 @@ public sealed partial class PreferencesWindow
return row;
}
- // 24×24 filled marks for the three systems registry assets target.
- private const string AppleIcon = "M12 7.2 C9.6 5.6 4.5 5.8 4.5 11.8 C4.5 16.6 7.4 21 9.3 21 C10.6 21 11 20.3 12 20.3 C13 20.3 13.4 21 14.7 21 C16.2 21 18.4 18.2 19.3 15.4 C17.6 14.7 16.6 13.2 16.6 11.5 C16.6 9.9 17.5 8.6 18.8 7.9 C17.2 6 14 5.9 12 7.2 Z M12.2 6.3 C12.2 4.3 13.6 2.8 15.6 2.7 C15.6 4.7 14.2 6.2 12.2 6.3 Z";
- private const string WindowsIcon = "M3.5 3.5 H11 V11 H3.5 Z M13 3.5 H20.5 V11 H13 Z M3.5 13 H11 V20.5 H3.5 Z M13 13 H20.5 V20.5 H13 Z";
- private const string LinuxIcon = "M12 2 C14 2 15.2 3.6 15.2 5.8 C15.2 7.4 14.5 8.2 15 9.4 C16.6 11.6 19 14.4 18.4 17.8 L19.8 21 H4.2 L5.6 17.8 C5 14.4 7.4 11.6 9 9.4 C9.5 8.2 8.8 7.4 8.8 5.8 C8.8 3.6 10 2 12 2 Z M12 10.2 C10.1 10.2 8.8 13 8.8 15.8 C8.8 18.3 10.2 19.8 12 19.8 C13.8 19.8 15.2 18.3 15.2 15.8 C15.2 13 13.9 10.2 12 10.2 Z";
// The systems a plugin ships for, as small marks with the architectures in the tooltip.
// This computer's system reads a step brighter than the others.
@@ -475,15 +471,14 @@ public sealed partial class PreferencesWindow
var row = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, Margin = new Thickness(10, 0, 0, 0), VerticalAlignment = VerticalAlignment.Center };
foreach (var (prefix, name, icon, current) in new[]
{
- ("macos-", "macOS", AppleIcon, OperatingSystem.IsMacOS()),
- ("windows-", "Windows", WindowsIcon, OperatingSystem.IsWindows()),
- ("linux-", "Linux", LinuxIcon, OperatingSystem.IsLinux()),
+ ("macos-", "macOS", GlyphKind.Apple, OperatingSystem.IsMacOS()),
+ ("windows-", "Windows", GlyphKind.Windows, OperatingSystem.IsWindows()),
+ ("linux-", "Linux", GlyphKind.Linux, OperatingSystem.IsLinux()),
})
{
var archs = keys.Where(k => k.StartsWith(prefix, StringComparison.Ordinal)).Select(k => ArchLabel(k[prefix.Length..])).Distinct().ToList();
if (archs.Count == 0) continue;
- // "F1": even-odd fill, so the penguin's belly is a hole.
- var mark = IconBox(new Path { Data = Geometry.Parse("F1 " + icon), Fill = current ? TextSecondary : TextTertiary }, 12);
+ var mark = new Glyph(icon, 12) { Foreground = current ? TextSecondary : TextTertiary };
var box = new Border { Background = Brushes.Transparent, Child = mark }; // hit-testable for the tooltip
ToolTip.SetTip(box, $"{name} · {string.Join(", ", archs)}");
row.Children.Add(box);
@@ -511,11 +506,11 @@ public sealed partial class PreferencesWindow
private static string KindLabel(string kind) => kind switch
{
- "instrument" => "INSTRUMENT",
- "effect" => "EFFECT",
+ "instrument" => "Instrument",
+ "effect" => "Effect",
"midi" => "MIDI",
- "bundle" => "COLLECTION",
- _ => kind.ToUpperInvariant(),
+ "bundle" => "Collection",
+ _ => NotaText.Label(kind.ToUpperInvariant()),
};
private void InstallFromStore(StorePlugin p)
diff --git a/src/managed/Nota.App/PreferencesWindow.cs b/src/managed/Nota.App/PreferencesWindow.cs
index 5c962ff1..07e66f72 100644
--- a/src/managed/Nota.App/PreferencesWindow.cs
+++ b/src/managed/Nota.App/PreferencesWindow.cs
@@ -18,6 +18,7 @@ using Avalonia.Collections;
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.Controls.Shapes;
+using Avalonia.Controls.Templates;
using Avalonia.Input;
using Avalonia.Input.Platform;
using Avalonia.Layout;
@@ -54,32 +55,31 @@ public sealed partial class PreferencesWindow : NotaWindow
private const double LabelCol = 150; // the label column every form row shares
- // Sidebar: group heading, then its pages. Icons are 24×24 stroke paths drawn at 14px.
- private sealed record Page(string Title, string Subtitle, string Icon);
+ // Sidebar: group heading, then its pages. Icons are Glyph kinds drawn at 14px.
+ private sealed record Page(string Title, string Subtitle, GlyphKind Icon);
private static readonly (string Group, Page[] Pages)[] Nav =
{
- ("DEVICES", new[]
+ ("Devices", new[]
{
- new Page("Audio", "Device, sample rate and buffer", "M4 10 V14 M8 7 V17 M12 4 V20 M16 8 V16 M20 11 V13"),
- new Page("MIDI", "Controllers Nota listens to", "M4 5 H20 V19 H4 Z M8 5 V13 M12 5 V13 M16 5 V13"),
- new Page("Gamepads", "Play notes or drive mapped controls", "M7 8 H17 A4 4 0 0 1 21 12 V13 A4 4 0 0 1 14 16 H10 A4 4 0 0 1 3 13 V12 A4 4 0 0 1 7 8 Z M7 11 V13 M6 12 H8 M16 11.5 H16.01 M18 12.5 H18.01"),
- new Page("Remote", "Phones and tablets on this network", "M8 3 H16 A1.5 1.5 0 0 1 17.5 4.5 V19.5 A1.5 1.5 0 0 1 16 21 H8 A1.5 1.5 0 0 1 6.5 19.5 V4.5 A1.5 1.5 0 0 1 8 3 Z M11 18 H13"),
+ new Page("Audio", "Device, sample rate and buffer", GlyphKind.Levels),
+ new Page("MIDI", "Controllers Nota listens to", GlyphKind.MidiPort),
+ new Page("Gamepads", "Play notes or drive mapped controls", GlyphKind.Gamepad),
+ new Page("Remote", "Phones and tablets on this network", GlyphKind.Phone),
}),
- ("PLUG-INS", new[]
+ ("Plug-ins", new[]
{
- new Page("Plug-ins", "Where Nota looks for VST3", "M9 3 V7 M15 3 V7 M6 7 H18 V11 A6 6 0 0 1 6 11 Z M12 17 V21"),
- new Page("Downloads", "Plug-ins, sample packs and AI models", "M12 4 V15 M7 10 L12 15 L17 10 M5 19 H19"),
+ new Page("Plug-ins", "Where Nota looks for VST3", GlyphKind.Plug),
+ new Page("Downloads", "Plug-ins, sample packs and AI models", GlyphKind.Downloads),
}),
- ("GENERAL", new[]
+ ("General", new[]
{
- new Page("Library", "Content folders and version history", "M3 7 A1 1 0 0 1 4 6 H9 L11 8 H20 A1 1 0 0 1 21 9 V18 A1 1 0 0 1 20 19 H4 A1 1 0 0 1 3 18 Z"),
- new Page("Appearance", "Theme, waveforms and AI control", "M12 4 A8 8 0 1 0 12 20 Z M12 4 A8 8 0 0 1 12 20"),
- new Page("Shortcuts", "Keyboard reference", "M3 7 H21 V17 H3 Z M7 11 H7.01 M11 11 H11.01 M15 11 H15.01 M8 14 H16"),
+ new Page("Library", "Content folders and version history", GlyphKind.Library),
+ new Page("Appearance", "Theme, waveforms and AI control", GlyphKind.Appearance),
+ new Page("Shortcuts", "Keyboard reference", GlyphKind.Shortcuts),
}),
};
- private const string SearchIcon = "M4 10.5 A6.5 6.5 0 1 0 17 10.5 A6.5 6.5 0 1 0 4 10.5 Z M15.5 15.5 L21 21";
private readonly MainWindowViewModel? _main;
@@ -112,7 +112,7 @@ public sealed partial class PreferencesWindow : NotaWindow
{
public required Border Root;
public required Border Edge;
- public required Path Icon;
+ public required Glyph Icon;
public required TextBlock Label;
public required TextBlock Badge;
}
@@ -132,7 +132,7 @@ public sealed partial class PreferencesWindow : NotaWindow
{
nav.Children.Add(new TextBlock
{
- Text = group, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 1.1,
+ Text = group, FontSize = 9, FontWeight = FontWeight.Medium,
Foreground = TextDisabled, Margin = new Thickness(10, 12, 10, 5),
});
foreach (var page in pages) nav.Children.Add(BuildNavItem(page, index++));
@@ -189,7 +189,7 @@ public sealed partial class PreferencesWindow : NotaWindow
Width = 2, CornerRadius = NotaRadius.Bar, Margin = new Thickness(0, 7),
HorizontalAlignment = HorizontalAlignment.Left, Background = Brushes.Transparent,
};
- var icon = new Path { Data = Geometry.Parse(page.Icon), StrokeThickness = 1.6, StrokeLineCap = PenLineCap.Round, StrokeJoin = PenLineJoin.Round };
+ var icon = new Glyph(page.Icon, 14);
var label = new TextBlock { Text = page.Title, FontSize = 12, VerticalAlignment = VerticalAlignment.Center };
var badge = new TextBlock
{
@@ -197,8 +197,7 @@ public sealed partial class PreferencesWindow : NotaWindow
VerticalAlignment = VerticalAlignment.Center, IsVisible = false,
};
var row = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), ColumnSpacing = 8, Margin = new Thickness(10, 0) };
- var iconBox = IconBox(icon, 14);
- row.Children.Add(iconBox);
+ row.Children.Add(icon);
Grid.SetColumn(label, 1); row.Children.Add(label);
Grid.SetColumn(badge, 2); row.Children.Add(badge);
@@ -215,10 +214,6 @@ public sealed partial class PreferencesWindow : NotaWindow
return root;
}
- // A 24×24 stroke path scaled into a square box — the sidebar and search icons.
- private static Control IconBox(Path path, double size)
- => new Viewbox { Width = size, Height = size, VerticalAlignment = VerticalAlignment.Center, Child = new Canvas { Width = 24, Height = 24, Children = { path } } };
-
private void Select(int index)
{
StopTests(); // the Audio pane is rebuilt on every visit — don't leave a tone / check orphaned
@@ -227,10 +222,10 @@ public sealed partial class PreferencesWindow : NotaWindow
{
bool on = i == index;
var n = _navItems[i];
- n.Root.Background = on ? AccentSubtle : Brushes.Transparent;
+ n.Root.Background = on ? NotaPalette.SurfaceHover : Brushes.Transparent;
n.Edge.Background = on ? Brass : Brushes.Transparent;
- n.Icon.Stroke = on ? Brass : TextTertiary;
- n.Label.Foreground = on ? AccentHover : TextSecondary;
+ n.Icon.Foreground = on ? Brass : TextTertiary;
+ n.Label.Foreground = on ? TextPrimary : TextSecondary;
n.Label.FontWeight = on ? FontWeight.SemiBold : FontWeight.Normal;
}
@@ -328,8 +323,8 @@ public sealed partial class PreferencesWindow : NotaWindow
device.Add(Row("Latency", latency));
var body = Sections(
- Section("AUDIO DEVICE", 6, device.ToArray()),
- Section("TEST", 8, TestToneRow(), CpuCheckRow(engine)));
+ Section("Audio device", 6, device.ToArray()),
+ Section("Test", 8, TestToneRow(), CpuCheckRow(engine)));
_loading = false;
return body;
}
@@ -460,7 +455,7 @@ public sealed partial class PreferencesWindow : NotaWindow
{
string uid = dev.Uid;
bool on = engine.IsMidiInputEnabled(uid);
- var dot = Dot(on ? Brass : BorderStrong);
+ var dot = Dot(on ? NotaPalette.Success : BorderStrong); // enabled: positive status
var name = new TextBlock
{
Text = dev.Name, FontSize = 12, Foreground = on ? TextPrimary : TextTertiary,
@@ -469,7 +464,7 @@ public sealed partial class PreferencesWindow : NotaWindow
var sw = new ToggleSwitch(on, large: true) { VerticalAlignment = VerticalAlignment.Center };
sw.Changed += v =>
{
- dot.Fill = v ? Brass : BorderStrong;
+ dot.Fill = v ? NotaPalette.Success : BorderStrong;
name.Foreground = v ? TextPrimary : TextTertiary;
engine.SetMidiInputEnabled(uid, v);
_main.ApplyMidiSettings();
@@ -482,7 +477,7 @@ public sealed partial class PreferencesWindow : NotaWindow
items.Add(Table(rows));
}
items.Add(Caption("Switch a controller off to stop Nota listening to it. New devices are on by default."));
- return Sections(Section("MIDI INPUTS", 8, items.ToArray()), MpeSection(engine));
+ return Sections(Section("MIDI inputs", 8, items.ToArray()), MpeSection(engine));
}
private static readonly int[] MpeBendRanges = [12, 24, 48, 96];
@@ -621,8 +616,8 @@ public sealed partial class PreferencesWindow : NotaWindow
}
return Sections(
- Section("GAMEPAD INPUT", 10, enable, padHost),
- Section("LAYOUT", 10,
+ Section("Gamepad input", 10, enable, padHost),
+ Section("Layout", 10,
Table(map),
Caption("Notes go to the armed (record-enabled) instrument track — enable Record to capture them, or use the audition track to just play.", muted: true),
Caption("Any button can be mapped to a control instead: click MIDI in the top-right, click the control, then press the button. A mapped button drives that control and stops playing its note; the rest of the pad keeps the layout above. The sticks and the trigger travel map the same way and are continuous, so they suit a knob or a fader — they play no notes, and do nothing until mapped. Mappings are listed in the browser's MIDI Map tab and travel with the project.")));
@@ -713,11 +708,11 @@ public sealed partial class PreferencesWindow : NotaWindow
};
return Sections(
- Section("PLUGIN SCAN FOLDERS", 10,
+ Section("Plugin scan folders", 10,
well,
new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, Children = { addBtn, removeBtn } },
Caption("Extra folders are searched for VST3 plugins on the next rescan (AU uses the system registry).")),
- Section("SCAN", 10,
+ Section("Scan", 10,
new StackPanel { Orientation = Orientation.Horizontal, Spacing = 14, Children = { rescan, rescanStatus } }));
}
@@ -727,7 +722,7 @@ public sealed partial class PreferencesWindow : NotaWindow
{
if (_main is null) return Caption("Content folders are unavailable in this window.");
var settings = _main.Settings;
- return Sections(Section("CONTENT FOLDERS", 10, Table(new List<Control>
+ return Sections(Section("Content folders", 10, Table(new List<Control>
{
FolderRow("Samples",
() => settings.Current.SamplesFolder, () => settings.ResolvedSamplesFolder(),
@@ -752,7 +747,7 @@ public sealed partial class PreferencesWindow : NotaWindow
if (ok) main.SetKeepVersionHistory(false);
else sw.IsOn = true;
};
- return Section("VERSION HISTORY", 10, row,
+ return Section("Version history", 10, row,
Caption("Every save records a version, listed in the browser's History tab. Versions share their audio, so each one costs only what it adds."));
}
@@ -787,47 +782,166 @@ public sealed partial class PreferencesWindow : NotaWindow
// ---- Appearance -------------------------------------------------------
- // Graphite / Paper / System as a segmented control, each with a swatch of its ground. The
- // choice applies immediately — NotaThemeService re-tints the palette and repaints every
- // open window — and is persisted so the next launch starts in the same variant.
+ // The colour themes (spec 011), mode first: a Dark · Light · Follow system segmented
+ // control over two rows of cards, dark themes and light themes, each card a miniature
+ // Nota window drawn in its own colours. Both rows always show, so the page never changes
+ // height: the mode only decides which cards are chosen — one while wearing a single
+ // theme, one per row while following the system. Picking a card of the other kind
+ // switches mode. Every pick applies at once (NotaThemeService re-tints the palette and
+ // repaints every open window) and is saved.
private static Control ThemePicker()
{
var settings = App.Services.GetRequiredService<ISettingsService>();
+ var darkCards = ThemeCards(NotaThemeKind.Dark);
+ var lightCards = ThemeCards(NotaThemeKind.Light);
+ var darkLabel = ModeLabel();
+ var lightLabel = ModeLabel();
+
+ var modes = new List<ToggleButton>();
var strip = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 2 };
- var buttons = new List<(AppTheme Mode, ToggleButton Btn)>();
+ foreach (var label in new[] { "Dark", "Light", "Follow system" })
+ {
+ var btn = new ToggleButton { Classes = { "seg" }, FontSize = 12, Content = label };
+ modes.Add(btn);
+ strip.Children.Add(btn);
+ }
+ var segmented = new Border { Classes = { "segmented" }, HorizontalAlignment = HorizontalAlignment.Left, Child = strip };
+
+ bool loading = true;
+ void Show()
+ {
+ loading = true;
+ var c = NotaThemeService.Choice;
+ var mode = Appearance.ModeOf(c, (NotaThemes.Find(c.Single) ?? NotaThemes.Default).IsDark);
+ for (int i = 0; i < modes.Count; i++) modes[i].IsChecked = i == (int)mode;
+ bool follow = mode == AppearanceMode.FollowSystem;
+ // The labels change text and ink, never size: the row in use reads one step up.
+ darkLabel.Text = follow ? "In dark mode" : "Dark";
+ lightLabel.Text = follow ? "In light mode" : "Light";
+ darkLabel.Foreground = mode != AppearanceMode.Light ? TextSecondary : TextMuted;
+ lightLabel.Foreground = mode != AppearanceMode.Dark ? TextSecondary : TextMuted;
+ darkCards.SelectedItem = follow ? NotaThemes.Find(c.Dark) : mode == AppearanceMode.Dark ? NotaThemes.Find(c.Single) : null;
+ lightCards.SelectedItem = follow ? NotaThemes.Find(c.Light) : mode == AppearanceMode.Light ? NotaThemes.Find(c.Single) : null;
+ loading = false;
+ }
- foreach (var (mode, label) in new[]
- {
- (AppTheme.Dark, "Ember Graphite"),
- (AppTheme.Light, "Ember Paper"),
- (AppTheme.System, "System"),
- })
+ void Commit(AppearanceChoice choice)
+ {
+ var single = NotaThemes.Find(choice.Single) ?? NotaThemes.Default;
+ Appearance.Store(settings.Current, choice, single.IsDark);
+ settings.Save();
+ NotaThemeService.Set(choice);
+ Show();
+ }
+
+ for (int i = 0; i < modes.Count; i++)
+ {
+ var mode = (AppearanceMode)i; // the keys are in AppearanceMode order
+ modes[i].Click += (_, _) => Commit(Appearance.WithMode(NotaThemeService.Choice, mode));
+ }
+ darkCards.SelectionChanged += (_, _) =>
{
- var m = mode;
- var btn = new ToggleButton
+ if (!loading && darkCards.SelectedItem is NotaColourTheme t) Commit(Appearance.WithPick(NotaThemeService.Choice, t.Id, isDark: true));
+ };
+ lightCards.SelectionChanged += (_, _) =>
+ {
+ if (!loading && lightCards.SelectedItem is NotaColourTheme t) Commit(Appearance.WithPick(NotaThemeService.Choice, t.Id, isDark: false));
+ };
+
+ Show();
+ return new StackPanel
+ {
+ Spacing = 10,
+ Children = { segmented, darkLabel, darkCards, lightLabel, lightCards },
+ };
+ }
+
+ // The themes of one kind as cards in a row: the preview in a frame that takes the
+ // accent when chosen (colour only; the frame is always 2 px), the name under it.
+ private static ListBox ThemeCards(NotaThemeKind kind)
+ {
+ var list = new ListBox
+ {
+ Classes = { "themes" }, SelectionMode = SelectionMode.Single,
+ HorizontalAlignment = HorizontalAlignment.Left,
+ ItemsPanel = new FuncTemplate<Panel?>(() => new StackPanel { Orientation = Orientation.Horizontal, Spacing = 12 }),
+ ItemsSource = NotaThemes.OfKind(kind).ToList(),
+ };
+ list.ItemTemplate = new FuncDataTemplate<NotaColourTheme>((t, _) => t is null ? new TextBlock() : new StackPanel
+ {
+ Spacing = 6,
+ Children =
{
- Classes = { "seg" }, FontSize = 12,
- Content = new StackPanel
- {
- Orientation = Orientation.Horizontal, Spacing = 7,
- Children = { new ThemeSwatch(m), new TextBlock { Text = label, VerticalAlignment = VerticalAlignment.Center } },
- },
- IsChecked = settings.Current.Theme == m,
- };
- btn.Click += (_, _) =>
+ new Border { Classes = { "ThemeFrame" }, Child = new ThemePreview(t) },
+ new TextBlock { Text = t.Name, Classes = { "RowName" } },
+ },
+ });
+ return list;
+ }
+
+ private static TextBlock ModeLabel() => new() { FontSize = 11, Margin = new Thickness(0, 4, 0, -4) };
+
+ // A miniature Nota window in one theme's own colours, whichever theme is live, so each
+ // card previews itself: title bar, transport with the view keys, browser, arrangement
+ // lanes with clips in the first track colours and the playhead, and the device panel.
+ private sealed class ThemePreview : Control
+ {
+ public const double W = 184, H = 112;
+ private readonly NotaColourTheme _theme;
+ public ThemePreview(NotaColourTheme theme) { _theme = theme; Width = W; Height = H; }
+
+ private IBrush B(SolidColorBrush slot) => new ImmutableSolidColorBrush(NotaPalette.ColorIn(slot, _theme));
+
+ public override void Render(DrawingContext ctx)
+ {
+ var seam = new Pen(B(NotaPalette.Seam), 1);
+ void Fill(SolidColorBrush slot, double x, double y, double w, double h) => ctx.FillRectangle(B(slot), new Rect(x, y, w, h));
+ void Key(SolidColorBrush slot, double x, double y, double w, double h) =>
+ ctx.DrawRectangle(B(slot), seam, new RoundedRect(new Rect(x + 0.5, y + 0.5, w - 1, h - 1), NotaRadius.ClipValue));
+ void HLine(double y, double x0, double x1) => ctx.DrawLine(seam, new Point(x0, y + 0.5), new Point(x1, y + 0.5));
+ void VLine(double x, double y0, double y1) => ctx.DrawLine(seam, new Point(x + 0.5, y0), new Point(x + 0.5, y1));
+
+ // Ground, title bar and transport.
+ Fill(NotaPalette.BgApp, 0, 0, W, H);
+ HLine(8, 0, W);
+ Fill(NotaPalette.Panel, 0, 9, W, 13);
+ HLine(22, 0, W);
+ Key(NotaPalette.Accent, 4, 12, 9, 7);
+ Key(NotaPalette.SurfaceRaised, 14, 12, 9, 7);
+ Key(NotaPalette.SurfaceRaised, 24, 12, 9, 7);
+ Key(NotaPalette.BgSunken, 40, 12, 34, 7);
+ Key(NotaPalette.BgSunken, W - 42, 12, 38, 7);
+
+ // Browser column: a list of names.
+ const double top = 23, detailTop = 82, browserW = 44;
+ Fill(NotaPalette.Panel, 0, top, browserW, detailTop - top);
+ VLine(browserW, top, detailTop);
+ double[] names = { 30, 22, 26, 18, 24, 20 };
+ for (int i = 0; i < names.Length; i++)
+ Fill(i == 1 ? NotaPalette.TextPrimary : NotaPalette.TextMuted, 5, top + 5 + i * 8, names[i], 2);
+
+ // Arrangement: four lanes, a clip per lane in the first track colours, the playhead.
+ double laneH = (detailTop - top) / 4, x0 = browserW + 1;
+ (double At, double Len)[] clips = { (0.08, 0.42), (0.30, 0.55), (0.04, 0.30), (0.52, 0.36) };
+ for (int i = 0; i < 4; i++)
{
- // A segment can only be turned on: clicking the live one must not clear it.
- foreach (var (bm, b) in buttons) b.IsChecked = bm == m;
- if (settings.Current.Theme == m) return;
- settings.Current.Theme = m;
- settings.Save();
- NotaThemeService.Set(m);
- };
- buttons.Add((m, btn));
- strip.Children.Add(btn);
- }
+ double y = top + i * laneH, span = W - x0;
+ var track = NotaPalette.TrackBrushes[i % NotaPalette.TrackBrushes.Length];
+ var r = new Rect(x0 + span * clips[i].At, y + 2, span * clips[i].Len, laneH - 4);
+ ctx.FillRectangle(B(track), r, (float)NotaRadius.ClipValue);
+ if (i < 3) HLine(y + laneH - 1, x0, W);
+ }
+ ctx.FillRectangle(B(NotaPalette.Accent), new Rect(x0 + (W - x0) * 0.46, top, 1, detailTop - top));
- return new Border { Classes = { "segmented" }, HorizontalAlignment = HorizontalAlignment.Left, Child = strip };
+ // Device panel: two cards with their header strips.
+ HLine(detailTop, 0, W);
+ Fill(NotaPalette.Panel, 0, detailTop + 1, W, H - detailTop - 1);
+ foreach (var (x, w) in new[] { (5.0, 84.0), (93.0, 86.0) })
+ {
+ Key(NotaPalette.SurfaceCard, x, detailTop + 5, w, H - detailTop - 10);
+ Fill(NotaPalette.SurfaceRaised, x + 1, detailTop + 6, w - 2, 5);
+ }
+ }
}
// Bars / Solid for the arrangement's audio-clip waveforms. Saving fires Settings.Changed,
@@ -854,39 +968,6 @@ public sealed partial class PreferencesWindow : NotaWindow
return new Border { Classes = { "segmented" }, HorizontalAlignment = HorizontalAlignment.Left, Child = strip };
}
- // A 10px chip of a variant's ground — both variants at once, whichever one is live.
- // System is split corner to corner, Paper over Graphite.
- private sealed class ThemeSwatch : Control
- {
- private readonly AppTheme _mode;
- public ThemeSwatch(AppTheme mode) { _mode = mode; Width = 10; Height = 10; VerticalAlignment = VerticalAlignment.Center; }
-
- public override void Render(DrawingContext ctx)
- {
- var dark = new ImmutableSolidColorBrush(NotaPalette.ColorIn(NotaPalette.SurfaceCard, NotaThemeVariant.Dark));
- var light = new ImmutableSolidColorBrush(NotaPalette.ColorIn(NotaPalette.SurfaceCard, NotaThemeVariant.Light));
- var r = new Rect(0, 0, Width, Height);
- var box = new RoundedRect(r, NotaRadius.ClipValue);
- using (ctx.PushClip(box))
- {
- ctx.FillRectangle(_mode == AppTheme.Dark ? dark : light, r);
- if (_mode == AppTheme.System)
- {
- var g = new StreamGeometry();
- using (var c = g.Open())
- {
- c.BeginFigure(new Point(r.Right, r.Top), true);
- c.LineTo(r.BottomRight);
- c.LineTo(r.BottomLeft);
- c.EndFigure(true);
- }
- ctx.DrawGeometry(dark, null, g);
- }
- }
- ctx.DrawRectangle(null, new Pen(BorderStrong, 1), new RoundedRect(r.Deflate(0.5), NotaRadius.ClipValue));
- }
- }
-
private Control AppearancePane()
{
var settings = App.Services.GetService<ISettingsService>();
@@ -971,11 +1052,11 @@ public sealed partial class PreferencesWindow : NotaWindow
return Sections(
Section("UI", 10,
- Row("Theme", ThemePicker()),
- Row("", Caption("Ember Graphite is the warm dark palette; Ember Paper is the same system on a light ground. System follows the OS appearance and switches with it.")),
+ TopRow("Colour theme", ThemePicker()),
+ Row("", Caption("Themes change colours only. Follow system switches between your dark-mode and light-mode theme with the OS appearance.")),
Row("Waveform", WaveformPicker()),
Row("", Caption("How audio clips draw on the arrangement: Bars spaces the peaks out so the rhythm reads; Solid draws every pixel."))),
- Section("AI CONTROL (MCP)", 12, enable, details));
+ Section("AI control (MCP)", 12, enable, details));
}
// ---- Shortcuts --------------------------------------------------------
@@ -988,7 +1069,7 @@ public sealed partial class PreferencesWindow : NotaWindow
// keys (see IsKeyToken) is drawn as one key-cap per token; a gesture is plain text.
private static readonly (string Title, (string Key, string Action)[] Rows)[] ShortcutGroups =
{
- ("FILE", new[]
+ ("File", new[]
{
("⌘N ⌘O", "New project / open a project"),
("⌘S ⌘⇧S", "Save (records a version) / save as"),
@@ -996,11 +1077,11 @@ public sealed partial class PreferencesWindow : NotaWindow
("⌘⇧E", "Export audio"),
("⌘,", "Settings"),
}),
- ("WINDOW", new[]
+ ("Window", new[]
{
("F11", "Enter / leave full screen — the title bar hides in full screen"),
}),
- ("COMMAND PALETTE", new[]
+ ("Command palette", new[]
{
("⌘⇧P", "Open / close the command palette — from any window, even while typing"),
("↑ ↓ PgUp PgDn", "Move through the results"),
@@ -1012,7 +1093,7 @@ public sealed partial class PreferencesWindow : NotaWindow
("> @ + # ~", "Type first to filter: actions, tracks, devices, presets, Modular nodes"),
("Esc", "Close and go back where you were"),
}),
- ("TRANSPORT", new[]
+ ("Transport", new[]
{
("Space", "Play / Stop"),
("Return", "Stop (again → back to the start) · in the Session grid it launches the selection"),
@@ -1020,7 +1101,7 @@ public sealed partial class PreferencesWindow : NotaWindow
("⌘M", "Metronome"),
("⌘L", "Loop on / off · loop the selected clips or time range"),
}),
- ("ARRANGEMENT & EDITING", new[]
+ ("Arrangement & editing", new[]
{
("⌘Z ⌘⇧Z", "Undo / redo"),
("⌘A", "Select all clips"),
@@ -1040,7 +1121,7 @@ public sealed partial class PreferencesWindow : NotaWindow
("0", "Deactivate / activate the selected clip(s)"),
("Delete", "Delete the selected clip / range"),
}),
- ("GRID (ARRANGEMENT OR CLIP EDITOR — WHICHEVER YOU USED LAST)", new[]
+ ("Grid (Arrangement or clip editor — whichever you used last)", new[]
{
("⌘1 ⌘2", "Narrow / widen the grid · in Auto, change the density"),
("⌘3", "Triplet grid on / off"),
@@ -1048,14 +1129,14 @@ public sealed partial class PreferencesWindow : NotaWindow
("⌘5", "Switch between the adaptive (Auto) and a fixed grid"),
("⌥ while dragging", "Move freely, ignoring the grid"),
}),
- ("TRACKS (AFTER A CLICK IN THE TRACK HEADERS)", new[]
+ ("Tracks (after a click in the track headers)", new[]
{
("⌘A", "Select all tracks"),
("⌘C ⌘X ⌘V", "Copy / cut / paste the selected tracks · paste lands after the last one"),
("⌘D", "Duplicate the selected tracks"),
("Delete", "Delete the selected tracks · a group goes with its tracks"),
}),
- ("SESSION (AFTER A CLICK IN THE GRID)", new[]
+ ("Session (after a click in the grid)", new[]
{
("← → ↑ ↓", "Move the selection between slots and scenes"),
("Return", "Launch the selected clip or scene"),
@@ -1071,7 +1152,7 @@ public sealed partial class PreferencesWindow : NotaWindow
("Double-click header", "Rename the track"),
("Right-click header or grid", "Add an instrument, audio or return track · rename or delete one"),
}),
- ("PIANO ROLL", new[]
+ ("Piano roll", new[]
{
("← →", "Move notes by the grid"),
("↑ ↓", "Transpose by a semitone"),
@@ -1088,14 +1169,14 @@ public sealed partial class PreferencesWindow : NotaWindow
("Drag in the Bend / Pres / Slide lane", "Draw the selected note's MPE curve · ⌥ draws a straight line · drag a point to move it"),
("Double-click in an MPE lane", "Add a point · on a point, delete it · right-click to clear the curve"),
}),
- ("PLAY NOTES (COMPUTER KEYBOARD)", new[]
+ ("Play notes (computer keyboard)", new[]
{
("A S D F G H J K", "White keys, from C4"),
("W E · T Y U", "Black keys (sharps)"),
("Z / X", "Shift octave down / up"),
("C / V", "Lower / raise velocity"),
}),
- ("BROWSER · PREVIEW", new[]
+ ("Browser · preview", new[]
{
("↑ ↓", "Move through samples, presets and devices · with Auto on, each one plays as it is selected"),
("Click play button", "Play / stop the selected sample, preset or device"),
@@ -1104,7 +1185,7 @@ public sealed partial class PreferencesWindow : NotaWindow
("Scroll on the track button", "Step through the demo tracks an effect preset is heard through"),
("Double-click volume", "Reset the preview volume to 0\u2009dB"),
}),
- ("GAMEPAD (MACOS)", new[]
+ ("Gamepad (macOS)", new[]
{
("Face buttons", "Play C4 D4 E4 F4"),
("Shoulder buttons", "Play G4 A4 B4 C5"),
@@ -1113,7 +1194,7 @@ public sealed partial class PreferencesWindow : NotaWindow
("Any button", "Mappable through MIDI Learn — a mapped button drives the control instead"),
("Sticks · triggers", "Mappable as continuous controls (a knob, a fader); they play no notes"),
}),
- ("MOUSE", new[]
+ ("Mouse", new[]
{
("Double-click clip", "Open in the clip editor"),
("Right-click the metronome", "Count-in before Play / Record: off · 1 · 2 · 4 bars"),
@@ -1311,9 +1392,8 @@ public sealed partial class PreferencesWindow : NotaWindow
// A search / filter box: the sunken field with a magnifier, the borderless TextBox inside.
private static Control SearchField(TextBox box, double maxWidth)
{
- var icon = new Path { Data = Geometry.Parse(SearchIcon), Stroke = TextTertiary, StrokeThickness = 2, StrokeLineCap = PenLineCap.Round };
var grid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*"), ColumnSpacing = 7 };
- grid.Children.Add(IconBox(icon, 11));
+ grid.Children.Add(new Glyph(GlyphKind.Search, 11) { Foreground = TextTertiary });
box.VerticalAlignment = VerticalAlignment.Center;
Grid.SetColumn(box, 1);
grid.Children.Add(box);
@@ -1351,7 +1431,7 @@ public sealed partial class PreferencesWindow : NotaWindow
private static TextBlock SectionLabel(string text) => new()
{
- Text = text, Classes = { "SectionLabel" }, LetterSpacing = 1.2, Margin = new Thickness(0, 0, 0, 4),
+ Text = text, Classes = { "SectionLabel" }, Margin = new Thickness(0, 0, 0, 4),
};
private static TextBlock RowLabel(string text) => new()
@@ -1377,10 +1457,25 @@ public sealed partial class PreferencesWindow : NotaWindow
return grid;
}
+ // A row whose control is taller than one line: the label sits beside the control's
+ // first line (a 26px key) instead of floating at its middle.
+ private static Control TopRow(string label, Control control)
+ {
+ var grid = new Grid { ColumnDefinitions = new ColumnDefinitions($"{LabelCol},*"), MinHeight = 34 };
+ var l = RowLabel(label);
+ l.VerticalAlignment = VerticalAlignment.Top;
+ l.Margin = new Thickness(0, 5, 0, 0);
+ grid.Children.Add(l);
+ control.VerticalAlignment = VerticalAlignment.Top;
+ Grid.SetColumn(control, 1);
+ grid.Children.Add(control);
+ return grid;
+ }
+
private static void FillDeviceCombo(ComboBox combo, List<string> uids, IReadOnlyList<AudioDevice> devices, string savedUid)
{
uids.Clear();
- combo.Items.Add("System Default");
+ combo.Items.Add("System default");
uids.Add("");
int selected = 0;
for (int i = 0; i < devices.Count; i++)
diff --git a/src/managed/Nota.App/PreviewPlayer.cs b/src/managed/Nota.App/PreviewPlayer.cs
index 36c76c90..f0bfc9d2 100644
--- a/src/managed/Nota.App/PreviewPlayer.cs
+++ b/src/managed/Nota.App/PreviewPlayer.cs
@@ -38,17 +38,12 @@ namespace Nota.App;
public sealed class PreviewPlayer : UserControl
{
- private const string IconLoop = "M17 3 l3 3 l-3 3 M20 6 H8 a4 4 0 0 0 -4 4 v1 M7 21 l-3 -3 l3 -3 M4 18 h12 a4 4 0 0 0 4 -4 v-1";
- private const string IconSpeaker = "M4 9 h4 l5 -4 v14 l-5 -4 h-4 z";
- private const string WavesMute = "M16 9 l5 6 M21 9 l-5 6";
- private const string WavesLow = "M16 9.5 a3.5 3.5 0 0 1 0 5";
- private const string WavesHigh = "M16 9.5 a3.5 3.5 0 0 1 0 5 M18.5 7 a7 7 0 0 1 0 10";
private const double DefaultVolume = 0.7;
private readonly TextBlock _name, _meta, _timeNow, _timeTotal;
private readonly PreviewWaveform _wave;
private readonly Border _playBtn, _loopBtn, _autoBtn, _sourceBtn;
- private readonly Path _playGlyph, _stopGlyph, _loopIcon, _volWaves;
+ private readonly Glyph _playGlyph, _stopGlyph, _loopIcon, _volWaves;
private readonly Ellipse _autoDot;
private readonly TextBlock _autoText, _sourceText;
private readonly PreviewVolume _volume, _volumePop;
@@ -128,20 +123,10 @@ public sealed class PreviewPlayer : UserControl
_wave.ViewToggled += () => SetSpectrum(!_spectrum, persist: true);
// Row 3: transport.
- _playGlyph = new Path
- {
- Data = Geometry.Parse("M1.5 1 L10 6 L1.5 11 Z"), Width = 11, Height = 12,
- StrokeThickness = 1, StrokeJoin = PenLineJoin.Round,
- HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center,
- };
- _stopGlyph = new Path
- {
- Data = new RectangleGeometry(new Rect(1, 1, 8, 8), 1, 1), Width = 10, Height = 10,
- Fill = NotaPalette.TextOnAccent, IsVisible = false,
- HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center,
- };
+ _playGlyph = new Glyph(GlyphKind.Play, 11);
+ _stopGlyph = new Glyph(GlyphKind.Stop, 8) { Foreground = NotaPalette.TextOnAccent, IsVisible = false };
_playBtn = Chip(new Panel { Children = { _playGlyph, _stopGlyph } }, 28, 28, 5);
- ToolTip.SetTip(_playBtn, "Play / Stop");
+ ToolTip.SetTip(_playBtn, "Play / stop");
_playBtn.PointerPressed += (_, e) => { if (IsLeft(e)) { Toggle(); e.Handled = true; } };
_timeNow = new TextBlock { FontSize = 10, FontFamily = NotaFonts.MonoFamily, VerticalAlignment = VerticalAlignment.Center };
@@ -158,11 +143,7 @@ public sealed class PreviewPlayer : UserControl
FontSize = 10, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextSecondary,
VerticalAlignment = VerticalAlignment.Center,
};
- var caret = new Path
- {
- Data = Geometry.Parse("M0 0 L6 0 L3 3.5 Z"), Width = 6, Height = 4, Fill = NotaPalette.TextTertiary,
- VerticalAlignment = VerticalAlignment.Center,
- };
+ var caret = new Glyph(GlyphKind.CaretDown, 9) { Foreground = NotaPalette.TextTertiary };
_sourceBtn = Chip(new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 5, VerticalAlignment = VerticalAlignment.Center,
@@ -176,8 +157,8 @@ public sealed class PreviewPlayer : UserControl
// The wheel steps through the tracks without opening the menu (quick A / B).
_sourceBtn.PointerWheelChanged += (_, e) => { StepTrack(e.Delta.Y < 0 ? 1 : -1); e.Handled = true; };
- _loopIcon = IconPath(IconLoop);
- _loopBtn = Chip(Icon12(_loopIcon), 22, 22, 4);
+ _loopIcon = new Glyph(GlyphKind.Loop, 12);
+ _loopBtn = Chip(_loopIcon, 22, 22, 4);
ToolTip.SetTip(_loopBtn, "Loop");
_loopBtn.PointerPressed += (_, e) => { if (IsLeft(e)) { SetLoop(!_loop, persist: true); e.Handled = true; } };
@@ -192,10 +173,8 @@ public sealed class PreviewPlayer : UserControl
ToolTip.SetTip(_autoBtn, "Auto-audition: play on select");
_autoBtn.PointerPressed += (_, e) => { if (IsLeft(e)) { SetAuto(!_auto, persist: true); e.Handled = true; } };
- var speaker = IconPath(IconSpeaker);
- speaker.Stroke = NotaPalette.TextMuted;
- _volWaves = IconPath(WavesHigh);
- _volWaves.Stroke = NotaPalette.TextMuted;
+ var speaker = new Glyph(GlyphKind.Speaker, 12) { Foreground = NotaPalette.TextMuted };
+ _volWaves = new Glyph(GlyphKind.SpeakerHigh, 12) { Foreground = NotaPalette.TextMuted };
_volume = new PreviewVolume { Width = 46, Height = 16, VerticalAlignment = VerticalAlignment.Center };
_volume.ValueChanged += (v, done) => ApplyVolume(v, persist: done);
// Folded (narrow browser) the speaker alone stays; a click pops the fader up.
@@ -205,7 +184,7 @@ public sealed class PreviewPlayer : UserControl
_volIconBtn = new Border
{
Width = 12, Height = 22, Background = Brushes.Transparent,
- Child = Icon12(new Panel { Children = { speaker, _volWaves } }),
+ Child = new Panel { Width = 12, Height = 12, Children = { speaker, _volWaves } },
};
_volIconBtn.PointerPressed += (_, e) =>
{
@@ -453,19 +432,19 @@ public sealed class PreviewPlayer : UserControl
{
_loop = on;
try { _engine?.SetPreviewLoop(on); } catch { }
- _loopBtn.Background = on ? NotaPalette.AccentSubtle : Brushes.Transparent;
- _loopBtn.BorderBrush = on ? NotaPalette.AccentEdge : NotaPalette.BorderDefault;
- _loopIcon.Stroke = on ? NotaPalette.Accent : NotaPalette.TextTertiary;
+ _loopBtn.Background = on ? NotaPalette.Accent : Brushes.Transparent;
+ _loopBtn.BorderBrush = on ? NotaPalette.Accent : NotaPalette.Seam;
+ _loopIcon.Foreground = on ? NotaPalette.TextOnAccent : NotaPalette.TextTertiary;
if (persist && _settings is not null) { _settings.Current.BrowserPreviewLoop = on; _settings.Save(); }
}
private void SetAuto(bool on, bool persist)
{
if (_filesContext) _autoFiles = on; else _autoPresets = on;
- _autoBtn.Background = on ? NotaPalette.AccentSubtle : Brushes.Transparent;
- _autoBtn.BorderBrush = on ? NotaPalette.AccentEdge : NotaPalette.BorderDefault;
- _autoDot.Fill = on ? NotaPalette.Accent : NotaPalette.BorderStrong;
- _autoText.Foreground = on ? NotaPalette.AccentHover : NotaPalette.TextMuted;
+ _autoBtn.Background = on ? NotaPalette.Accent : Brushes.Transparent;
+ _autoBtn.BorderBrush = on ? NotaPalette.Accent : NotaPalette.Seam;
+ _autoDot.Fill = on ? NotaPalette.TextOnAccent : NotaPalette.BorderStrong;
+ _autoText.Foreground = on ? NotaPalette.TextOnAccent : NotaPalette.TextMuted;
ToolTip.SetTip(_autoBtn, _filesContext ? "Auto-audition: play a sample on select" : "Auto-audition: play a preset or device on select");
if (persist && _settings is not null)
{
@@ -498,7 +477,7 @@ public sealed class PreviewPlayer : UserControl
_volume.Value = v;
_volumePop.Value = v;
try { _engine?.SetPreviewGain((float)(v * v)); } catch { }
- _volWaves.Data = Geometry.Parse(v <= 0.001 ? WavesMute : v < 0.5 ? WavesLow : WavesHigh);
+ _volWaves.Kind = v <= 0.001 ? GlyphKind.SpeakerMute : v < 0.5 ? GlyphKind.SpeakerLow : GlyphKind.SpeakerHigh;
var db = NotaNum.Db(v <= 0.001 ? double.NegativeInfinity : 40 * Math.Log10(v));
ToolTip.SetTip(_volumeBox, $"Preview volume {db} · double-click for 0{NotaNum.Thin}dB");
ToolTip.SetTip(_volumePop, $"Preview volume {db} · double-click for 0{NotaNum.Thin}dB");
@@ -539,7 +518,7 @@ public sealed class PreviewPlayer : UserControl
if (t.Group != group)
{
flyout.Items.Add(new Separator());
- flyout.Items.Add(new MenuItem { Header = t.Group.ToUpperInvariant(), IsEnabled = false, FontSize = 9 });
+ flyout.Items.Add(new MenuItem { Header = NotaText.Label(t.Group), IsEnabled = false, FontSize = 11 });
group = t.Group;
}
Add(t.Name, t.Id, t.Blurb);
@@ -581,10 +560,9 @@ public sealed class PreviewPlayer : UserControl
_playGlyph.IsVisible = !_playing;
_stopGlyph.IsVisible = _playing;
_playBtn.Background = _playing ? NotaPalette.Accent : NotaPalette.SurfaceRaised;
- _playBtn.BorderBrush = _playing ? NotaPalette.Accent : NotaPalette.BorderStrong;
- var glyph = has ? NotaPalette.Accent : NotaPalette.TextDisabled;
- _playGlyph.Fill = glyph;
- _playGlyph.Stroke = glyph;
+ _playBtn.BorderBrush = _playing ? NotaPalette.Accent : NotaPalette.BorderDefault;
+ var glyph = _playing ? NotaPalette.TextOnAccent : has ? NotaPalette.TextPrimary : NotaPalette.TextDisabled;
+ _playGlyph.Foreground = glyph;
_playBtn.Cursor = has ? new Cursor(StandardCursorType.Hand) : Cursor.Default;
_timeNow.Text = Fmt(_pos);
_timeNow.Foreground = _playing ? NotaPalette.TextPrimary : NotaPalette.TextMuted;
@@ -901,19 +879,6 @@ public sealed class PreviewPlayer : UserControl
VerticalAlignment = VerticalAlignment.Center,
Child = new Panel { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Children = { child } },
};
-
- // A stroke glyph on the design's 24-unit grid (stroke 2 → 1px at 12px).
- private static Path IconPath(string data) => new()
- {
- Data = Geometry.Parse(data), Width = 24, Height = 24, Stretch = Stretch.None,
- StrokeThickness = 2, StrokeJoin = PenLineJoin.Round, StrokeLineCap = PenLineCap.Round,
- };
-
- private static Viewbox Icon12(Control grid24) => new()
- {
- Width = 12, Height = 12, Stretch = Stretch.Uniform,
- Child = new Panel { Width = 24, Height = 24, Children = { grid24 } },
- };
}
/// <summary>The player's well. WAVE: peak bars (played part in brass), a hover line with its
@@ -1080,10 +1045,12 @@ public sealed class PreviewWaveform : Control
for (int i = s0; i < s1 && i < peaks.Length; i++) m = Math.Max(m, peaks[i]);
double amp = Math.Max(0.04, Math.Pow(Math.Min(1, m), 0.55));
double x = (b + 0.5) / n;
+ // Played: the accent (live). Ahead of the pointer: secondary ink. At rest:
+ // neutral — a sample that is not playing carries no orange.
IBrush c = started && x <= p ? NotaPalette.Accent
- : _hover is { } hv && x <= hv && x > p ? NotaPalette.AccentMute
- : _playing ? NotaPalette.AccentEdge
- : NotaPalette.AccentMute;
+ : _hover is { } hv && x <= hv && x > p ? NotaPalette.TextSecondary
+ : _playing ? NotaPalette.TextMuted
+ : NotaPalette.TextFaint;
double bh = innerH * amp;
ctx.FillRectangle(c, new Rect(InsetX + b * (bw + 1), mid - bh / 2, bw, bh), 1);
}
@@ -1115,8 +1082,8 @@ public sealed class PreviewWaveform : Control
}
// WAVE · SPEC, the active one in brass, top-right.
- var wave = NotaGraph.AxisText("WAVE", _spectrum ? NotaPalette.TextTertiary : NotaPalette.Accent, 7);
- var spec = NotaGraph.AxisText("SPEC", _spectrum ? NotaPalette.Accent : NotaPalette.TextTertiary, 7);
+ var wave = NotaGraph.AxisText("Wave", _spectrum ? NotaPalette.TextTertiary : NotaPalette.Accent, 7);
+ var spec = NotaGraph.AxisText("Spec", _spectrum ? NotaPalette.Accent : NotaPalette.TextTertiary, 7);
double lw = wave.Width + 5 + spec.Width, lx = w - lw - 5, ly = 3;
_toggleRect = new Rect(lx - 4, 0, lw + 9, ly + wave.Height + 3);
ctx.FillRectangle(NotaPalette.BgSunken, new Rect(lx - 2, ly - 1, lw + 4, wave.Height + 2), 2);
diff --git a/src/managed/Nota.App/Remote/ConnectPhoneView.cs b/src/managed/Nota.App/Remote/ConnectPhoneView.cs
index 4653d2cd..1f8f3647 100644
--- a/src/managed/Nota.App/Remote/ConnectPhoneView.cs
+++ b/src/managed/Nota.App/Remote/ConnectPhoneView.cs
@@ -67,7 +67,7 @@ internal sealed class ConnectPhoneView : Border
_qr = null; _code = _left = null; _ring = null;
bool on = _settings.Current.RemoteEnabled;
- var title = new TextBlock { Text = "Connect Phone", FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextPrimary, VerticalAlignment = VerticalAlignment.Center };
+ var title = new TextBlock { Text = "Connect phone", FontSize = 13, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextPrimary, VerticalAlignment = VerticalAlignment.Center };
var sw = new ToggleSwitch(on) { VerticalAlignment = VerticalAlignment.Center };
sw.Changed += v => { _settings.Current.RemoteEnabled = v; _settings.Save(); _ = _remote.ApplyAsync(); };
var allow = new TextBlock { Text = "Allow", FontSize = 11, Foreground = NotaPalette.TextSecondary, VerticalAlignment = VerticalAlignment.Center };
@@ -100,13 +100,13 @@ internal sealed class ConnectPhoneView : Border
_qr = new QrView { Width = 150, Height = 150, Text = _remote.QrText };
var info = new StackPanel { Spacing = 10 };
- info.Children.Add(Field("ADDRESS", AddressRows()));
+ info.Children.Add(Field("Address", AddressRows()));
_code = new TextBlock { FontSize = 24, FontWeight = FontWeight.Medium, LetterSpacing = 4.8, FontFamily = NotaFonts.MonoFamily, Foreground = NotaPalette.TextHeading, VerticalAlignment = VerticalAlignment.Center };
- _ring = new Arc { Width = 20, Height = 20, StrokeThickness = 2.5, Stroke = NotaPalette.AccentDim, StartAngle = -90, VerticalAlignment = VerticalAlignment.Center };
+ _ring = new Arc { Width = 20, Height = 20, StrokeThickness = 2.5, Stroke = NotaPalette.VizInk, StartAngle = -90, VerticalAlignment = VerticalAlignment.Center };
var ringBack = new Ellipse { Width = 20, Height = 20, StrokeThickness = 2.5, Stroke = NotaPalette.TrackOff };
_left = new TextBlock { FontSize = 10, FontFamily = NotaFonts.MonoFamily, Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center };
var codeRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 10, Children = { _code, new Panel { Children = { ringBack, _ring } }, _left } };
- info.Children.Add(Field("CODE", codeRow));
+ info.Children.Add(Field("Code", codeRow));
bool usb = _remote.Links is { Count: > 0 } links && links[0].Usb;
info.Children.Add(Note(usb
? "Point the phone camera at the code. Over the cable the link is instant and needs no Wi-Fi; the code changes every 2 minutes and after each connection."
@@ -192,8 +192,8 @@ internal sealed class ConnectPhoneView : Border
first.Children.Add(new Border
{
Height = 16, Padding = new Thickness(5, 0), CornerRadius = NotaRadius.Bar, VerticalAlignment = VerticalAlignment.Center,
- Background = NotaPalette.TrackOff, BorderBrush = NotaPalette.BorderBrass, BorderThickness = new Thickness(1),
- Child = new TextBlock { Text = "USB", FontSize = 8, FontWeight = FontWeight.Bold, LetterSpacing = 1, Foreground = NotaPalette.AccentBright, VerticalAlignment = VerticalAlignment.Center },
+ Background = NotaPalette.SurfaceRaised, BorderBrush = NotaPalette.Seam, BorderThickness = new Thickness(1),
+ Child = new TextBlock { Text = "USB", FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextPrimary, VerticalAlignment = VerticalAlignment.Center },
});
var rows = new StackPanel { Spacing = links.Count > 1 ? 3 : 0, Children = { first } };
for (int i = 1; i < links.Count; i++)
@@ -208,7 +208,7 @@ internal sealed class ConnectPhoneView : Border
private static Control Field(string label, Control value)
{
var s = new StackPanel { Spacing = 3 };
- s.Children.Add(new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.Bold, LetterSpacing = 1.1, Foreground = NotaPalette.TextTertiary });
+ s.Children.Add(new TextBlock { Text = NotaText.Label(label), FontSize = 11, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextMuted });
s.Children.Add(value);
return s;
}
diff --git a/src/managed/Nota.App/Remote/QrView.cs b/src/managed/Nota.App/Remote/QrView.cs
index 507ec850..93248f34 100644
--- a/src/managed/Nota.App/Remote/QrView.cs
+++ b/src/managed/Nota.App/Remote/QrView.cs
@@ -2,8 +2,8 @@
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
// A QR code drawn as geometry. Phone cameras read dark modules on a light ground reliably and
-// an inverted code poorly, so the tile is light in both variants: Ink 0 under Graphite, Raised
-// under Paper, with the modules in the opposite ink. Colours are read at render time.
+// an inverted code poorly, so the tile is light in both variants: Ink 0 in Dark, Raised
+// in Light, with the modules in the opposite ink. Colours are read at render time.
using Avalonia;
using Avalonia.Controls;
diff --git a/src/managed/Nota.App/SaveChangesWindow.cs b/src/managed/Nota.App/SaveChangesWindow.cs
index 72367c93..1a1c9df7 100644
--- a/src/managed/Nota.App/SaveChangesWindow.cs
+++ b/src/managed/Nota.App/SaveChangesWindow.cs
@@ -64,7 +64,7 @@ public sealed class SaveChangesWindow : NotaWindow
_dontSave = new Button
{
- Content = "Don't Save",
+ Content = "Don't save",
Classes = { "ghost" },
Padding = new Thickness(12, 0),
Margin = new Thickness(-12, 0, 0, 0), // the label, not the hover wash, lines up with the text
diff --git a/src/managed/Nota.App/SessionView.Grid.cs b/src/managed/Nota.App/SessionView.Grid.cs
index 5caab8ed..2795a68e 100644
--- a/src/managed/Nota.App/SessionView.Grid.cs
+++ b/src/managed/Nota.App/SessionView.Grid.cs
@@ -49,7 +49,7 @@ public sealed partial class SessionView
Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center,
Children =
{
- Text("SCENES", 9, NotaPalette.TextTertiary, FontWeight.Bold),
+ Text("Scenes", 10, NotaPalette.TextMuted, FontWeight.SemiBold),
Mono(_sceneCount.ToString(CultureInfo.CurrentCulture), 9, NotaPalette.TextDisabled),
},
},
@@ -74,7 +74,7 @@ public sealed partial class SessionView
Content = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 7,
- Children = { new Glyph(GlyphKind.Stop, 7), new TextBlock { Text = "Stop All Clips", FontSize = 10, FontWeight = FontWeight.SemiBold } },
+ Children = { new Glyph(GlyphKind.Stop, 7), new TextBlock { Text = "Stop all clips", FontSize = 10, FontWeight = FontWeight.SemiBold } },
},
};
ToolTip.SetTip(stopAll, "Stop every session clip");
@@ -223,7 +223,7 @@ public sealed partial class SessionView
BorderThickness = new Thickness(1);
ClipToBounds = true;
- var stripe = new Border { Height = 3, VerticalAlignment = VerticalAlignment.Top, Background = c.Kind == ColKind.Master ? NotaPalette.Accent : c.Brush };
+ var stripe = new Border { Height = 3, VerticalAlignment = VerticalAlignment.Top, Background = c.Kind == ColKind.Master ? NotaPalette.Master : c.Brush };
var name = new TextBlock
{
Text = c.Name, FontSize = 12, FontWeight = FontWeight.SemiBold, TextTrimming = TextTrimming.CharacterEllipsis,
@@ -251,7 +251,7 @@ public sealed partial class SessionView
}
if (c.Kind == ColKind.Track)
{
- var arrText = new TextBlock { Text = "ARR", FontSize = 8, FontWeight = FontWeight.Medium, Foreground = NotaPalette.Accent };
+ var arrText = new TextBlock { Text = "Arr", FontSize = 8, FontWeight = FontWeight.Medium, Foreground = NotaPalette.Accent };
arrText.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
_arr = new Border
{
@@ -266,7 +266,7 @@ public sealed partial class SessionView
}
top.Children.Add(name);
- var kind = new TextBlock { Text = c.KindLabel, FontSize = 8, FontWeight = FontWeight.Medium, Foreground = NotaPalette.TextDisabled, TextTrimming = TextTrimming.CharacterEllipsis };
+ var kind = new TextBlock { Text = c.KindLabel, FontSize = 9, FontWeight = FontWeight.Medium, Foreground = NotaPalette.TextMuted, TextTrimming = TextTrimming.CharacterEllipsis };
kind.BindResource(TextBlock.FontFamilyProperty, "Font.Mono");
var stack = new StackPanel { Spacing = 4, VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(8, 3, 8, 0), Children = { top, kind } };
Child = new Panel { Children = { stripe, stack } };
diff --git a/src/managed/Nota.App/SessionView.Inspector.cs b/src/managed/Nota.App/SessionView.Inspector.cs
index b321162e..dfe05c20 100644
--- a/src/managed/Nota.App/SessionView.Inspector.cs
+++ b/src/managed/Nota.App/SessionView.Inspector.cs
@@ -87,7 +87,7 @@ public sealed partial class SessionView
private static TextBlock SectionHead(string text) => new()
{
- Text = text, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextMuted,
+ Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextMuted,
};
// A labelled value well (LENGTH, LOOP, START…): a click opens its choices when it has any.
@@ -116,7 +116,7 @@ public sealed partial class SessionView
return new StackPanel
{
Spacing = 4,
- Children = { new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextTertiary }, well },
+ Children = { new TextBlock { Text = label, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextTertiary }, well },
};
}
@@ -205,7 +205,7 @@ public sealed partial class SessionView
};
grid.Children.Add(sw);
}
- return new StackPanel { Spacing = 7, Children = { SectionHead("COLOR"), grid } };
+ return new StackPanel { Spacing = 7, Children = { SectionHead("Color"), grid } };
}
// ---- clip ---------------------------------------------------------------------------
@@ -222,8 +222,8 @@ public sealed partial class SessionView
}
var brush = ClipBrush(c, scene);
double len = _engine.SessionSlotLength(id, scene);
- string kind = c.IsInstrument ? "MIDI" : "AUDIO";
- s.Children.Add(Title(brush, ClipName(c, scene), $"{c.Name.ToUpperInvariant()} · {SceneName(scene).ToUpperInvariant()} · {kind}"));
+ string kind = c.IsInstrument ? "MIDI" : "Audio";
+ s.Children.Add(Title(brush, ClipName(c, scene), $"{c.Name} · {SceneName(scene)} · {NotaText.Label(kind)}"));
_inspPreview = new InspectorPreview(this, c, scene, brush);
s.Children.Add(new Border
@@ -234,14 +234,14 @@ public sealed partial class SessionView
bool loop = p.Loop != 0;
s.Children.Add(TwoUp(
- Field("LENGTH", FormatLength(len), NotaPalette.TextPrimary, a => Pick(a, LengthSteps, b => Math.Abs(b - len) < 1e-6,
+ Field("Length", FormatLength(len), NotaPalette.TextPrimary, a => Pick(a, LengthSteps, b => Math.Abs(b - len) < 1e-6,
b => { _engine.SetSessionSlotLength(id, scene, b); RefreshSlot(id, scene); })),
- Field("LOOP", loop ? "On" : "Off · one-shot", loop ? NotaPalette.TextPrimary : NotaPalette.Warning, _ => Set(x => { x.Loop = loop ? 0 : 1; return x; })),
- Field("START", "1.1.1", NotaPalette.TextSecondary, null),
- Field("LOOP END", FormatPosition(len), NotaPalette.TextSecondary, null)));
+ Field("Loop", loop ? "On" : "Off · one-shot", loop ? NotaPalette.TextPrimary : NotaPalette.Warning, _ => Set(x => { x.Loop = loop ? 0 : 1; return x; })),
+ Field("Start", "1.1.1", NotaPalette.TextSecondary, null),
+ Field("Loop end", FormatPosition(len), NotaPalette.TextSecondary, null)));
var launch = new StackPanel { Spacing = 10 };
- launch.Children.Add(SectionHead("LAUNCH"));
+ launch.Children.Add(SectionHead("Launch"));
var modes = Segmented(ModeLabels, Math.Clamp(p.LaunchMode, 0, 3), i => Set(x => { x.LaunchMode = i; return x; }));
ToolTip.SetTip(modes, "Trigger starts · Gate plays while held · Toggle starts and stops · Repeat retriggers while held");
launch.Children.Add(modes);
@@ -262,8 +262,8 @@ public sealed partial class SessionView
bool follow = _engine.SessionFollow;
var fa = new StackPanel { Spacing = 10 };
var faHead = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto") };
- faHead.Children.Add(SectionHead("FOLLOW ACTION"));
- if (!follow) { var off = Mono("OFF GLOBALLY", 9, NotaPalette.TextTertiary); Grid.SetColumn(off, 1); faHead.Children.Add(off); }
+ faHead.Children.Add(SectionHead("Follow action"));
+ if (!follow) { var off = Mono("Off globally", 9, NotaPalette.TextTertiary); Grid.SetColumn(off, 1); faHead.Children.Add(off); }
fa.Children.Add(faHead);
string ActionLabel(int a) => Array.Find(FollowActions, x => (int)x.Action == a).Label ?? "None";
Control ActionRow(string slot, int action, Action<int> setAction, Control chance)
@@ -369,17 +369,17 @@ public sealed partial class SessionView
Spacing = 4,
Children =
{
- new TextBlock { Text = "TEMPO", FontSize = 9, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextTertiary },
+ new TextBlock { Text = "Tempo", FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextTertiary },
new Border { Height = NotaSize.Shell, CornerRadius = NotaRadius.Badge, Background = NotaPalette.BgSunken, BorderBrush = NotaPalette.BorderDefault, BorderThickness = new Thickness(1), Child = row },
},
};
ToolTip.SetTip(tempo, "Tempo set when the scene launches · drag to change");
}
else
- tempo = Field("TEMPO", "—", NotaPalette.TextDisabled, _ =>
+ tempo = Field("Tempo", "—", NotaPalette.TextDisabled, _ =>
Set(x => { x.Tempo = GetTempo?.Invoke().Bpm ?? 120; return x; }));
string sig = p.SigNum > 0 && p.SigDen > 0 ? $"{p.SigNum}/{p.SigDen}" : "—";
- var sigField = Field("SIGNATURE", sig, p.SigNum > 0 ? NotaPalette.TextPrimary : NotaPalette.TextDisabled, a =>
+ var sigField = Field("Signature", sig, p.SigNum > 0 ? NotaPalette.TextPrimary : NotaPalette.TextDisabled, a =>
Pick(a, Array.ConvertAll(Signatures, x => ((x.Num, x.Den), x.Num == 0 ? "None" : $"{x.Num}/{x.Den}")),
v => v.Num == p.SigNum && v.Den == p.SigDen, v => Set(x => { x.SigNum = v.Num; x.SigDen = v.Den; return x; })));
s.Children.Add(TwoUp(tempo, sigField));
@@ -409,7 +409,7 @@ public sealed partial class SessionView
private void BuildEmptyInspector(StackPanel s, Column c, int scene)
{
bool rec = _recTrack == c.TrackId && _recScene == scene;
- s.Children.Add(Title(NotaPalette.BorderStrong, rec ? "Recording" : "Empty slot", $"{c.Name.ToUpperInvariant()} · {SceneName(scene).ToUpperInvariant()}"));
+ s.Children.Add(Title(NotaPalette.BorderStrong, rec ? "Recording" : "Empty slot", $"{c.Name} · {SceneName(scene)}"));
bool stop = _engine.GetSessionSlotStopButton(c.TrackId, scene);
var rows = new StackPanel { Spacing = 8 };
rows.Children.Add(Row("Stop button", Chip(stop ? "On" : "Removed", false, _ => { _engine.SetSessionSlotStopButton(c.TrackId, scene, !stop); RefreshSlot(c.TrackId, scene); })));
diff --git a/src/managed/Nota.App/SessionView.Mixer.cs b/src/managed/Nota.App/SessionView.Mixer.cs
index 4949a436..b352090f 100644
--- a/src/managed/Nota.App/SessionView.Mixer.cs
+++ b/src/managed/Nota.App/SessionView.Mixer.cs
@@ -52,19 +52,19 @@ public sealed partial class SessionView
var stack = new StackPanel { Spacing = Gap };
TextBlock Label(string text) => new()
{
- Text = text, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextDisabled,
+ Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextDisabled,
Margin = new Thickness(10, 0), VerticalAlignment = VerticalAlignment.Center, TextTrimming = TextTrimming.CharacterEllipsis,
};
Border Row(double h, string text) => new() { Height = h, Child = Label(text) };
if (_showIO)
- stack.Children.Add(Section(Row(IoRowH, "INPUT"), Row(IoRowH, "MONITOR"), Row(IoRowH, "OUTPUT")));
+ stack.Children.Add(Section(Row(IoRowH, "Input"), Row(IoRowH, "Monitor"), Row(IoRowH, "Output")));
if (_showSends && ReturnRows > 0)
{
- var rows = Returns().Take(ReturnRows).Select((r, i) => (Control)Row(FaderRowH, $"SEND {(char)('A' + i)} · {r.Name.ToUpperInvariant()}")).ToArray();
+ var rows = Returns().Take(ReturnRows).Select((r, i) => (Control)Row(FaderRowH, $"Send {(char)('A' + i)} · {r.Name}")).ToArray();
stack.Children.Add(Section(rows));
}
if (_showMixer)
- stack.Children.Add(Section(Row(FaderRowH, "PAN"), Row(FaderRowH, "VOLUME"), new Border { Height = MeterRowH }, new Border { Height = ButtonRowH }));
+ stack.Children.Add(Section(Row(FaderRowH, "Pan"), Row(FaderRowH, "Volume"), new Border { Height = MeterRowH }, new Border { Height = ButtonRowH }));
return stack;
}
@@ -185,8 +185,8 @@ public sealed partial class SessionView
return g;
}
- // M / S / record-arm: a 20px chip. Engaged mute is a raised neutral, solo the brass fill,
- // arm the record red with its pale disc (DESIGN.md § Controls).
+ // M / S / record-arm: a 20px key. Engaged mute fills amber, solo blue, arm the record red
+ // with its white disc (DESIGN.md § Controls), each with derived ink.
private static Control MixToggle(string? label, bool initial, bool arm, Action<bool> set)
{
bool on = initial;
@@ -195,21 +195,22 @@ public sealed partial class SessionView
var b = new Border
{
Height = 20, Margin = new Thickness(1.5, 0), CornerRadius = NotaRadius.Badge, BorderThickness = new Thickness(1),
- BorderBrush = NotaPalette.BorderDefault, Cursor = new Avalonia.Input.Cursor(Avalonia.Input.StandardCursorType.Hand),
+ BorderBrush = NotaPalette.Seam, Cursor = new Avalonia.Input.Cursor(Avalonia.Input.StandardCursorType.Hand),
Child = arm ? disc : text,
};
void Paint()
{
if (arm)
{
- b.Background = on ? NotaPalette.Record : NotaPalette.SurfaceCard;
- b.BorderBrush = on ? NotaPalette.Record : NotaPalette.BorderDefault;
- disc.Foreground = on ? NotaPalette.RecordInk : NotaPalette.TextDisabled;
+ b.Background = on ? NotaPalette.Record : NotaPalette.SurfaceRaised;
+ b.BorderBrush = on ? NotaPalette.Record : NotaPalette.Seam;
+ disc.Foreground = on ? NotaPalette.RecordInk : NotaPalette.Record;
return;
}
- bool solo = label == "S";
- b.Background = on ? (solo ? NotaPalette.Accent : NotaPalette.BorderStrong) : NotaPalette.SurfaceCard;
- text.Foreground = on ? (solo ? NotaPalette.TextOnAccent : NotaPalette.TextPrimary) : NotaPalette.TextMuted;
+ var fill = label == "S" ? NotaPalette.Solo : NotaPalette.Mute;
+ b.Background = on ? fill : NotaPalette.SurfaceRaised;
+ b.BorderBrush = on ? fill : NotaPalette.Seam;
+ text.Foreground = on ? NotaPalette.InkOn(fill) : NotaPalette.TextSecondary;
}
ToolTip.SetTip(b, arm ? "Arm for recording" : label == "M" ? "Mute" : "Solo");
b.PointerPressed += (_, e) =>
@@ -236,13 +237,13 @@ public sealed partial class SessionView
int cur;
if (c.IsInstrument)
{
- items.Add((-1, "All Ins"));
+ items.Add((-1, "All ins"));
foreach (var n in names.Where(n => n.Instrument)) items.Add((n.Id, n.Name));
cur = _engine.GetTrackMidiSource(c.TrackId);
}
else
{
- items.Add((0, "Ext In"));
+ items.Add((0, "Ext in"));
items.Add((-1, "Master"));
foreach (var n in names) items.Add((n.Id, n.Name));
cur = _engine.GetTrackRecordInput(c.TrackId);
diff --git a/src/managed/Nota.App/SessionView.Toolbar.cs b/src/managed/Nota.App/SessionView.Toolbar.cs
index ae9e866b..721446a1 100644
--- a/src/managed/Nota.App/SessionView.Toolbar.cs
+++ b/src/managed/Nota.App/SessionView.Toolbar.cs
@@ -34,6 +34,7 @@ public sealed partial class SessionView
private Border? _fixedSeg;
private TextBlock? _posText, _tempoText;
private Button? _backBtn;
+ private ToggleButton? _inspectorToggle;
private readonly List<ToggleButton> _sectionToggles = new();
/// <summary>Tempo and time signature for the toolbar readout.</summary>
@@ -42,7 +43,7 @@ public sealed partial class SessionView
private Control BuildToolbar()
{
_recDot = new Glyph(GlyphKind.Record, 8);
- _recText = new TextBlock { Text = "Session Rec", FontSize = 11, FontWeight = FontWeight.SemiBold };
+ _recText = new TextBlock { Text = "Session rec", FontSize = 11, FontWeight = FontWeight.SemiBold };
_recBtn = new Button
{
Height = NotaSize.Shell, Padding = new Thickness(10, 0),
@@ -51,7 +52,7 @@ public sealed partial class SessionView
ToolTip.SetTip(_recBtn, "Record into the armed track at the selected scene · click again to keep the take");
_recBtn.Click += (_, _) => SessionRec();
- var fixedLabel = Caps("FIXED");
+ var fixedLabel = Caps("Fixed");
_fixedSeg = new Border();
var fixedRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 6, VerticalAlignment = VerticalAlignment.Center, Children = { fixedLabel, _fixedSeg } };
ToolTip.SetTip(fixedRow, "Fixed record length in bars — the take stops by itself");
@@ -64,7 +65,7 @@ public sealed partial class SessionView
Content = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 8,
- Children = { Caps("QUANT"), _quantLabel, new Glyph(GlyphKind.ChevronDown, 7) { Foreground = NotaPalette.TextDisabled } },
+ Children = { Caps("Quant"), _quantLabel, new Glyph(GlyphKind.ChevronDown, 7) { Foreground = NotaPalette.TextDisabled } },
},
};
ToolTip.SetTip(quant, "Launch quantize: when clips and scenes start");
@@ -91,7 +92,7 @@ public sealed partial class SessionView
ToolTip.SetTip(follow, "Follow actions on or off for every clip and scene");
follow.Click += (_, _) => { _engine.SessionFollow = !_engine.SessionFollow; SyncToolbar(); RebuildInspector(); };
- var capture = new Button { Content = "Capture Scene", Height = NotaSize.Shell, Padding = new Thickness(10, 0), FontSize = 11 };
+ var capture = new Button { Content = "Capture scene", Height = NotaSize.Shell, Padding = new Thickness(10, 0), FontSize = 11 };
ToolTip.SetTip(capture, "Copy the clips playing now into a new scene");
capture.Click += (_, _) => CaptureScene();
@@ -125,17 +126,71 @@ public sealed partial class SessionView
Content = new StackPanel
{
Orientation = Orientation.Horizontal, Spacing = 7,
- Children = { new Glyph(GlyphKind.Stop, 7), new TextBlock { Text = "Stop All", FontSize = 11, FontWeight = FontWeight.SemiBold } },
+ Children = { new Glyph(GlyphKind.Stop, 7), new TextBlock { Text = "Stop all", FontSize = 11, FontWeight = FontWeight.SemiBold } },
},
};
ToolTip.SetTip(stopAll, "Stop every session clip");
stopAll.Click += (_, _) => { _engine.StopAllSession(); UpdateStates(); };
+ // The inspector column can be folded away to give the grid its width back (critique F2).
+ _inspectorToggle = new ToggleButton
+ {
+ Content = new Glyph(GlyphKind.Sidebar, 16), Width = NotaSize.Shell + 6, Height = NotaSize.Shell, Padding = new Thickness(0),
+ HorizontalContentAlignment = HorizontalAlignment.Center, VerticalContentAlignment = VerticalAlignment.Center, IsChecked = InspectorOpen,
+ };
+ ToolTip.SetTip(_inspectorToggle, "Inspector — show or hide it");
+ Avalonia.Automation.AutomationProperties.SetName(_inspectorToggle, "Inspector");
+ _inspectorToggle.Click += (_, _) => SetInspectorOpen(_inspectorToggle.IsChecked == true);
+
+ // Overflow: when the bar is too narrow, the least-used controls fold into "⋯" one by one
+ // (readout first, then Back to arrangement, Capture scene, the section toggles, Follow).
+ // Every control stays reachable — the menu offers whatever is hidden.
+ const double MoreW = 32;
+ var more = new Button { Content = "⋯", Width = MoreW, Height = NotaSize.Shell, Padding = new Thickness(0), FontSize = 12, HorizontalContentAlignment = HorizontalAlignment.Center, IsVisible = false };
+ ToolTip.SetTip(more, "More session controls");
+ more.Click += (_, _) =>
+ {
+ var f = new MenuFlyout();
+ void Add(string header, Action act) { var mi = new MenuItem { Header = header }; mi.Click += (_, _) => act(); f.Items.Add(mi); }
+ if (!_backBtn!.IsVisible) Add("Back to Arrangement", () => { _engine.BackToArrangement(); UpdateStates(); });
+ if (!capture.IsVisible) Add("Capture scene", CaptureScene);
+ if (!sectionsWell.IsVisible)
+ {
+ Add((_showIO ? "Hide" : "Show") + " I/O", () => { _showIO = !_showIO; Refresh(); });
+ Add((_showSends ? "Hide" : "Show") + " sends", () => { _showSends = !_showSends; Refresh(); });
+ Add((_showMixer ? "Hide" : "Show") + " mixer", () => { _showMixer = !_showMixer; Refresh(); });
+ }
+ if (!follow.IsVisible) Add(_engine.SessionFollow ? "Turn follow off" : "Turn follow on", () => { _engine.SessionFollow = !_engine.SessionFollow; SyncToolbar(); RebuildInspector(); });
+ f.ShowAt(more);
+ };
+
var left = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center, Children = { _recBtn, fixedRow, quant, follow, capture } };
- var right = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center, Children = { sectionsWell, readout, _backBtn, stopAll } };
+ var right = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, VerticalAlignment = VerticalAlignment.Center, Children = { sectionsWell, readout, _backBtn, stopAll, more, _inspectorToggle } };
var grid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*,Auto"), Margin = new Thickness(10, 0) };
grid.Children.Add(left);
Grid.SetColumn(right, 2); grid.Children.Add(right);
+
+ Control[] foldOrder = { readout, _backBtn, capture, sectionsWell, follow };
+ var width = new Dictionary<Control, double>();
+ grid.SizeChanged += (_, _) =>
+ {
+ // Widths are learnt while a control is shown (a hidden one measures 0).
+ foreach (var c in foldOrder) if (c.IsVisible && c.Bounds.Width > 0) width[c] = c.Bounds.Width;
+ double need(IEnumerable<Control> shown) { double w = 0; foreach (var c in shown) w += c.Bounds.Width > 0 ? c.Bounds.Width + 8 : 0; return w; }
+ double fixedW = need(new Control[] { _recBtn, fixedRow, quant, stopAll, _inspectorToggle }) + 20 + 24;
+ double avail = grid.Bounds.Width;
+ int hide = 0;
+ double total = fixedW;
+ foreach (var c in foldOrder) total += width.TryGetValue(c, out var w) ? w + 8 : 0;
+ // Folding a second control brings in "⋯", which needs its own room.
+ while (hide < foldOrder.Length && total + (hide > 1 ? MoreW + 8 : 0) > avail)
+ {
+ total -= width.TryGetValue(foldOrder[hide], out var w) ? w + 8 : 0;
+ hide++;
+ }
+ for (int i = 0; i < foldOrder.Length; i++) foldOrder[i].IsVisible = i >= hide;
+ more.IsVisible = hide > 1; // the readout alone is information, not a control
+ };
return new Border
{
Height = 44, Background = NotaPalette.BgSunken, BorderBrush = NotaPalette.BorderDefault,
@@ -145,7 +200,7 @@ public sealed partial class SessionView
private static TextBlock Caps(string text) => new()
{
- Text = text, FontSize = 9, FontWeight = FontWeight.Bold, Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center,
+ Text = text, FontSize = 9, FontWeight = FontWeight.SemiBold, Foreground = NotaPalette.TextTertiary, VerticalAlignment = VerticalAlignment.Center,
};
private void SessionRec()
diff --git a/src/managed/Nota.App/SessionView.cs b/src/managed/Nota.App/SessionView.cs
index afaa429e..b26fad12 100644
--- a/src/managed/Nota.App/SessionView.cs
+++ b/src/managed/Nota.App/SessionView.cs
@@ -37,7 +37,7 @@ public sealed partial class SessionView : UserControl
private const double HeaderH = 44;
private const double Gap = 3;
private const double GridPad = 10;
- private const double InspectorW = 300;
+ private const double InspectorW = 260;
private readonly IAudioEngine _engine;
@@ -49,6 +49,20 @@ public sealed partial class SessionView : UserControl
private readonly StackPanel _footerRow = new() { Orientation = Orientation.Horizontal, Spacing = Gap, Margin = new Thickness(GridPad, Gap, GridPad, GridPad) };
private readonly Border _inspectorHost = new() { Width = InspectorW };
+ // Whether the inspector column shows (Settings.SessionInspectorOpen, remembered per machine).
+ private static bool InspectorOpen =>
+ App.Services?.GetService(typeof(ISettingsService)) is ISettingsService s ? s.Current.SessionInspectorOpen : true;
+
+ private void SetInspectorOpen(bool open)
+ {
+ _inspectorHost.IsVisible = open;
+ if (App.Services?.GetService(typeof(ISettingsService)) is ISettingsService s && s.Current.SessionInspectorOpen != open)
+ {
+ s.Current.SessionInspectorOpen = open;
+ s.Save();
+ }
+ }
+
private readonly List<Column> _cols = new();
private readonly List<SceneCell> _sceneCells = new();
private int _sceneCount;
@@ -120,6 +134,8 @@ public sealed partial class SessionView : UserControl
_inspectorHost.BorderBrush = NotaPalette.BorderDefault;
_inspectorHost.BorderThickness = new Thickness(1, 0, 0, 0);
+ _inspectorHost.IsVisible = InspectorOpen;
+
var body = new Grid { ColumnDefinitions = new ColumnDefinitions("*,Auto") };
body.Children.Add(gridArea);
Grid.SetColumn(_inspectorHost, 1); body.Children.Add(_inspectorHost);
@@ -208,7 +224,7 @@ public sealed partial class SessionView : UserControl
return false;
}
string Parent(NotaTrackInfo t)
- => t.GroupId > 0 && byId.TryGetValue(t.GroupId, out var g) ? " · " + TrackNames.Of(_engine, g).ToUpperInvariant() : "";
+ => t.GroupId > 0 && byId.TryGetValue(t.GroupId, out var g) ? " · " + TrackNames.Of(_engine, g) : "";
foreach (var ti in infos)
{
@@ -225,14 +241,14 @@ public sealed partial class SessionView : UserControl
{
col.Kind = ColKind.Group;
col.Children = infos.Where(c => !c.IsGroup && !c.IsReturn && Under(c, ti.Id)).Select(c => c.Id).ToList();
- col.KindLabel = $"GROUP · {col.Children.Count}{Parent(ti)}";
+ col.KindLabel = $"Group · {col.Children.Count}{Parent(ti)}";
}
else
{
col.Kind = ColKind.Track;
col.IsInstrument = ti.IsInstrument;
col.IsAudio = ti.Type == 0;
- col.KindLabel = (ti.IsInstrument ? "MIDI" : "AUDIO") + Parent(ti);
+ col.KindLabel = (ti.IsInstrument ? "MIDI" : "Audio") + Parent(ti);
}
_cols.Add(col);
}
@@ -241,11 +257,11 @@ public sealed partial class SessionView : UserControl
{
_cols.Add(new Column
{
- Kind = ColKind.Return, TrackId = ti.Id, Name = TrackNames.Of(_engine, ti), KindLabel = "RETURN",
+ Kind = ColKind.Return, TrackId = ti.Id, Name = TrackNames.Of(_engine, ti), KindLabel = "Return",
ColorIndex = ArrangementView.ReturnColorIndex(r++), Width = ReturnColW,
});
}
- _cols.Add(new Column { Kind = ColKind.Master, TrackId = 0, Name = "Master", KindLabel = "OUT 1/2", ColorIndex = -1, Width = MasterColW });
+ _cols.Add(new Column { Kind = ColKind.Master, TrackId = 0, Name = "Master", KindLabel = "Out 1/2", ColorIndex = -1, Width = MasterColW });
}
// ---- live state ---------------------------------------------------------------
diff --git a/src/managed/Nota.App/SnapChip.cs b/src/managed/Nota.App/SnapChip.cs
index ceb8ca2a..4c3747df 100644
--- a/src/managed/Nota.App/SnapChip.cs
+++ b/src/managed/Nota.App/SnapChip.cs
@@ -99,7 +99,7 @@ internal sealed class SnapChip
_shown = key;
_value.Text = text;
- if (_caption is not null) _caption.Text = s.Adaptive ? "AUTO GRID" : "GRID";
+ if (_caption is not null) _caption.Text = s.Adaptive ? "Auto grid" : "Grid";
_value.TextDecorations = r.SnapOn ? null : TextDecorations.Strikethrough;
_value.Foreground = !r.SnapOn ? NotaPalette.TextDisabled
: r.FinerThanVisible ? NotaPalette.TextSecondary
@@ -118,7 +118,7 @@ internal sealed class SnapChip
void Item(string header, bool on, Func<GridSetting, GridSetting> apply, KeyGesture? gesture = null)
{
var mi = new MenuItem { Header = header, InputGesture = gesture };
- if (on) mi.Icon = new Glyph(GlyphKind.Dot, 6) { Foreground = NotaPalette.AccentBright };
+ if (on) mi.Icon = new Glyph(GlyphKind.Dot, 6) { Foreground = NotaPalette.TextPrimary };
mi.Click += (_, _) => Grids.Set(_kind, apply(Grids.Get(_kind)));
f.Items.Add(mi);
}
diff --git a/src/managed/Nota.App/StereoMapView.cs b/src/managed/Nota.App/StereoMapView.cs
index 6c78dbc4..2fd24286 100644
--- a/src/managed/Nota.App/StereoMapView.cs
+++ b/src/managed/Nota.App/StereoMapView.cs
@@ -190,7 +190,7 @@ public sealed class StereoMapView : Control
// Panel, header, well.
ctx.DrawRectangle(NotaPalette.SurfaceCard, new Pen(NotaPalette.BorderDefault, 1), new Rect(0.5, 0.5, b.Width - 1, b.Height - 1), Radius, Radius);
ctx.DrawLine(new Pen(NotaPalette.BorderDefault, 1), new Point(0, HeaderH), new Point(b.Width, HeaderH));
- DrawText(ctx, "STEREO MAP", NotaFonts.SansBold, 10, NotaPalette.TextPrimary, new Point(12, HeaderH / 2), vCenter: true, tracking: true);
+ DrawText(ctx, "Stereo map", NotaFonts.SansBold, 10, NotaPalette.TextPrimary, new Point(12, HeaderH / 2), vCenter: true);
var well = new Rect(Inset, HeaderH + Inset, b.Width - 2 * Inset, b.Height - HeaderH - BottomH - 2 * Inset);
ctx.DrawRectangle(NotaPalette.BgSunken, new Pen(NotaPalette.BorderDefault, 1), well, 4, 4);
DrawGrid(ctx, plot);
@@ -283,7 +283,7 @@ public sealed class StereoMapView : Control
double y0 = b.Height - BottomH, cy = y0 + BottomH / 2;
ctx.DrawLine(new Pen(NotaPalette.BorderDefault, 1), new Point(0, y0), new Point(b.Width, y0));
double x = 10;
- x += DrawText(ctx, "MASTER CORR", NotaFonts.SansBold, 8, NotaPalette.TextTertiary, new Point(x, cy), vCenter: true, tracking: true) + 10;
+ x += DrawText(ctx, "Correlation", NotaFonts.SansBold, 8, NotaPalette.TextTertiary, new Point(x, cy), vCenter: true) + 10;
x += DrawText(ctx, "−1", NotaFonts.Mono, 8, NotaPalette.TextTertiary, new Point(x, cy), vCenter: true) + 6;
var bar = new Rect(x, cy - 3, 180, 6);
ctx.DrawRectangle(NotaPalette.BgSunken, new Pen(NotaPalette.BorderDefault, 1), bar, 2, 2);
@@ -309,15 +309,15 @@ public sealed class StereoMapView : Control
var it = _items[idx];
var rows = new List<(string k, string v, IBrush ink)>
{
- ("PAN", it.Master ? "—" : PanText(it.Pan), NotaPalette.TextPrimary),
- ("VOLUME", DbText(it.Volume), NotaPalette.TextPrimary),
+ ("Pan", it.Master ? "—" : PanText(it.Pan), NotaPalette.TextPrimary),
+ ("Volume", DbText(it.Volume), NotaPalette.TextPrimary),
};
if (it.Has)
{
- rows.Add(("BALANCE", Signed(it.M.Balance, 2), NotaPalette.TextSecondary));
- rows.Add(("WIDTH", it.M.Width.ToString("0.00", NotaNum.Culture), NotaPalette.TextSecondary));
- rows.Add(("CORRELATION", Signed(it.M.Correlation, 2), it.M.Correlation < PhaseAlarm ? NotaPalette.Danger : NotaPalette.TextSecondary));
- rows.Add(("LEVEL", it.M.Silent ? "below −60 dBFS" : Signed(it.M.LevelDb, 1) + NotaNum.Thin + "dBFS", NotaPalette.TextSecondary));
+ rows.Add(("Balance", Signed(it.M.Balance, 2), NotaPalette.TextSecondary));
+ rows.Add(("Width", it.M.Width.ToString("0.00", NotaNum.Culture), NotaPalette.TextSecondary));
+ rows.Add(("Correlation", Signed(it.M.Correlation, 2), it.M.Correlation < PhaseAlarm ? NotaPalette.Danger : NotaPalette.TextSecondary));
+ rows.Add(("Level", it.M.Silent ? "below −60 dBFS" : Signed(it.M.LevelDb, 1) + NotaNum.Thin + "dBFS", NotaPalette.TextSecondary));
}
var notes = new List<(string title, string body, IBrush ink)>();
if (it.Has && !it.M.Silent && !it.Muted && !it.Master && Math.Abs(it.M.Balance - it.Pan) > OffPanNote)
@@ -351,7 +351,7 @@ public sealed class StereoMapView : Control
ty += 18;
foreach (var (k, v, ink) in rows)
{
- DrawText(ctx, k, NotaFonts.SansBold, 7, NotaPalette.TextTertiary, new Point(r.Left + Pad, ty + 6), vCenter: true, tracking: true);
+ DrawText(ctx, k, NotaFonts.SansBold, 7, NotaPalette.TextTertiary, new Point(r.Left + Pad, ty + 6), vCenter: true);
DrawText(ctx, v, NotaFonts.Mono, 9, ink, new Point(r.Left + Pad + 62, ty + 6), vCenter: true);
ty += RowH;
}
diff --git a/src/managed/Nota.App/TagEditorWindow.cs b/src/managed/Nota.App/TagEditorWindow.cs
index 5d904c04..51b9e5b8 100644
--- a/src/managed/Nota.App/TagEditorWindow.cs
+++ b/src/managed/Nota.App/TagEditorWindow.cs
@@ -37,7 +37,7 @@ public sealed class TagEditorWindow : NotaWindow
_lib = library;
_assignKey = assignToKey;
- Title = "Edit Tags";
+ Title = "Edit tags";
Width = 440;
SizeToContent = SizeToContent.Height;
CanResize = false;
@@ -76,7 +76,7 @@ public sealed class TagEditorWindow : NotaWindow
private void CreateTag()
{
- var tag = _lib.CreateTag("New Tag", Palette[0]);
+ var tag = _lib.CreateTag("New tag", Palette[0]);
if (_assignKey is not null) _lib.AssignTag(_assignKey, tag.Id, true);
}
diff --git a/src/managed/Nota.App/Theme/NotaColourTheme.cs b/src/managed/Nota.App/Theme/NotaColourTheme.cs
new file mode 100644
index 00000000..d456d72d
--- /dev/null
+++ b/src/managed/Nota.App/Theme/NotaColourTheme.cs
@@ -0,0 +1,148 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// Colour themes (spec 011). A theme is one fixed look — dark or light — that gives every
+// colour token one value. Theme/Themes/<id>.json is the only place a colour value lives:
+// NotaPalette re-tints its slot brushes from the active theme, and NotaThemeService
+// publishes those same brushes to XAML. The file shape is the one a user-made theme will
+// take later (specs/011-colour-themes/contracts/theme-file.md), so the loader validates
+// rather than trusts: a file that fails is left out of the list and noted in LoadErrors,
+// never thrown at the UI.
+
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text.Json;
+using System.Text.RegularExpressions;
+using Avalonia.Media;
+
+namespace Nota.App;
+
+internal enum NotaThemeKind { Dark, Light }
+
+internal sealed record NotaColourTheme(string Id, string Name, NotaThemeKind Kind, IReadOnlyDictionary<string, Color> Colors)
+{
+ public bool IsDark => Kind == NotaThemeKind.Dark;
+ public Color this[string token] => Colors[token];
+}
+
+internal static class NotaThemes
+{
+ /// <summary>The built-in themes, in the order Preferences lists them. Adding a built-in
+ /// theme is its JSON file plus one id here — nothing else names a theme.</summary>
+ public static readonly string[] BuiltInOrder = { "studio-dark", "studio-light", "ember-graphite", "ember-paper" };
+
+ /// <summary>Tokens a theme carries that are not palette slots: the shadow colours (their
+ /// geometry is Studio structure, built in NotaThemeService) and Fluent's accent ramp.</summary>
+ public static readonly string[] ExtraTokens =
+ {
+ "SystemAccent", "SystemAccentLight1", "SystemAccentLight2", "SystemAccentLight3",
+ "SystemAccentDark1", "SystemAccentDark2", "SystemAccentDark3",
+ "ShadowBevel", "ShadowPopover", "ShadowModal",
+ };
+
+ // Translucent by design; every other token must be opaque.
+ private static readonly HashSet<string> AlphaTokens = new() { "ShadowBevel", "ShadowPopover", "ShadowModal" };
+
+ private static readonly Regex IdPattern = new("^[a-z0-9]+(-[a-z0-9]+)*$", RegexOptions.Compiled);
+ private static readonly Regex HexPattern = new("^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$", RegexOptions.Compiled);
+
+ private static IReadOnlyList<NotaColourTheme>? _builtIn;
+ private static readonly List<string> _loadErrors = new();
+
+ /// <summary>Why a built-in theme file was left out, if any was. Logged at startup.</summary>
+ public static IReadOnlyList<string> LoadErrors { get { _ = BuiltIn; return _loadErrors; } }
+
+ /// <summary>Every built-in theme that loaded and validated, in <see cref="BuiltInOrder"/>.</summary>
+ public static IReadOnlyList<NotaColourTheme> BuiltIn => _builtIn ??= LoadBuiltIn();
+
+ public static NotaColourTheme? Find(string? id) => id is null ? null : BuiltIn.FirstOrDefault(t => t.Id == id);
+
+ public static IEnumerable<NotaColourTheme> OfKind(NotaThemeKind kind) => BuiltIn.Where(t => t.Kind == kind);
+
+ /// <summary>Studio Dark, the default and the last resort.</summary>
+ public static NotaColourTheme Default => Find("studio-dark") ?? BuiltIn[0];
+
+ /// <summary>The token catalogue every theme must match exactly.</summary>
+ public static IEnumerable<string> Catalogue => NotaPalette.TokenNames.Concat(ExtraTokens);
+
+ private static IReadOnlyList<NotaColourTheme> LoadBuiltIn()
+ {
+ var catalogue = new HashSet<string>(Catalogue);
+ var list = new List<NotaColourTheme>();
+ foreach (var id in BuiltInOrder)
+ {
+ var json = ReadResource(id);
+ if (json is null) { _loadErrors.Add($"{id}: no theme file"); continue; }
+ var theme = Parse(json, catalogue, out var error);
+ if (theme is null) { _loadErrors.Add($"{id}: {error}"); continue; }
+ if (theme.Id != id) { _loadErrors.Add($"{id}: file declares id '{theme.Id}'"); continue; }
+ list.Add(theme);
+ }
+ if (list.Count == 0) throw new InvalidOperationException("No colour theme could be loaded: " + string.Join("; ", _loadErrors));
+ return list;
+ }
+
+ /// <summary>The raw colour map of a built-in theme, unvalidated — only for NotaPalette to
+ /// seed its slots before the catalogue exists. Uses no static state of this class.</summary>
+ internal static Dictionary<string, string> ReadSeed(string id)
+ {
+ var json = ReadResource(id) ?? throw new InvalidOperationException($"Theme file '{id}' is not embedded.");
+ using var doc = JsonDocument.Parse(json);
+ return doc.RootElement.GetProperty("colors").EnumerateObject().ToDictionary(p => p.Name, p => p.Value.GetString() ?? "");
+ }
+
+ private static string? ReadResource(string id)
+ {
+ using var s = typeof(NotaThemes).Assembly.GetManifestResourceStream($"Nota.Themes.{id}.json");
+ if (s is null) return null;
+ using var r = new StreamReader(s);
+ return r.ReadToEnd();
+ }
+
+ /// <summary>Parse and validate one theme file (rules F1–F6). Returns null with a reason
+ /// on the first problem; reasons name the token so a broken file is easy to fix.</summary>
+ public static NotaColourTheme? Parse(string json, IReadOnlySet<string> catalogue, out string? error)
+ {
+ error = null;
+ try
+ {
+ using var doc = JsonDocument.Parse(json);
+ var root = doc.RootElement;
+ if (!root.TryGetProperty("formatVersion", out var fv) || fv.ValueKind != JsonValueKind.Number || fv.GetInt32() != 1)
+ return Fail("formatVersion must be 1", out error);
+ var id = root.TryGetProperty("id", out var i) ? i.GetString() ?? "" : "";
+ if (!IdPattern.IsMatch(id) || id == "system") return Fail($"invalid id '{id}'", out error);
+ var name = root.TryGetProperty("name", out var n) ? n.GetString() ?? "" : "";
+ if (name.Length is < 1 or > 40) return Fail("name must be 1–40 characters", out error);
+ var kindText = root.TryGetProperty("kind", out var k) ? k.GetString() : null;
+ NotaThemeKind kind;
+ if (kindText == "dark") kind = NotaThemeKind.Dark;
+ else if (kindText == "light") kind = NotaThemeKind.Light;
+ else return Fail($"kind must be dark or light, not '{kindText}'", out error);
+ if (!root.TryGetProperty("colors", out var colors) || colors.ValueKind != JsonValueKind.Object)
+ return Fail("colors missing", out error);
+
+ var map = new Dictionary<string, Color>();
+ foreach (var p in colors.EnumerateObject())
+ {
+ if (!catalogue.Contains(p.Name)) return Fail($"unknown token '{p.Name}'", out error);
+ var hex = p.Value.ValueKind == JsonValueKind.String ? p.Value.GetString() ?? "" : "";
+ if (!HexPattern.IsMatch(hex)) return Fail($"token '{p.Name}' has invalid colour '{hex}'", out error);
+ var c = Color.Parse(hex);
+ if (c.A != 0xFF && !AlphaTokens.Contains(p.Name)) return Fail($"token '{p.Name}' must be opaque", out error);
+ map[p.Name] = c;
+ }
+ var missing = catalogue.Where(t => !map.ContainsKey(t)).ToList();
+ if (missing.Count > 0) return Fail("missing token(s) " + string.Join(", ", missing), out error);
+ return new NotaColourTheme(id, name, kind, map);
+ }
+ catch (JsonException e)
+ {
+ return Fail("not valid JSON: " + e.Message, out error);
+ }
+ }
+
+ private static NotaColourTheme? Fail(string reason, out string? error) { error = reason; return null; }
+}
diff --git a/src/managed/Nota.App/Theme/NotaFonts.cs b/src/managed/Nota.App/Theme/NotaFonts.cs
index f782974b..167365ad 100644
--- a/src/managed/Nota.App/Theme/NotaFonts.cs
+++ b/src/managed/Nota.App/Theme/NotaFonts.cs
@@ -44,20 +44,21 @@ public static class NotaFonts
=> builder.With(new FontManagerOptions { DefaultFamilyName = UiUri });
}
-/// <summary>The type scales from the almanac, for views that set FontSize in code. Mirrors
-/// the TextBlock role classes in NotaTheme.axaml. Tracking is in px, already multiplied out
-/// from the em value at that size.</summary>
+/// <summary>The type scales (the shell hierarchy, and a device scale held to the 260px card), for
+/// views that set FontSize in code. Mirrors the TextBlock role classes in NotaTheme.axaml.
+/// Labels are sentence case with no tracking: the *Tracking constants are 0 and stay only
+/// so older call sites compile — new code should not set LetterSpacing at all.</summary>
internal static class NotaType
{
// Shell scale
- public const double Title = 26, Heading = 13, Name = 12, Body = 11, Caption = 11,
- SectionLabel = 10, Readout = 13, Value = 10, Eyebrow = 9;
- public const double SectionLabelTracking = 1.4, EyebrowTracking = 1.62;
-
- // Device scale — 7 is the floor, and only for a caps label or its value.
- public const double DeviceName = 12, DeviceSection = 9, RowLabel = 8, KnobLabel = 7,
- KnobValue = 7, Axis = 7;
- public const double DeviceSectionTracking = 1.08, RowLabelTracking = 0.8, KnobLabelTracking = 0.56;
+ public const double Title = 13, Heading = 13, Name = 12, Body = 12, Caption = 11,
+ SectionLabel = 11, Readout = 13, Value = 11, Eyebrow = 10;
+ public const double SectionLabelTracking = 0, EyebrowTracking = 0;
+
+ // Device scale — 7 is the floor (plot tick labels only); a label is 8 or more.
+ public const double DeviceName = 12, DeviceSection = 10.5, RowLabel = 9, KnobLabel = 8,
+ KnobValue = 8, Axis = 7.5;
+ public const double DeviceSectionTracking = 0, RowLabelTracking = 0, KnobLabelTracking = 0;
public const double Floor = 7;
}
diff --git a/src/managed/Nota.App/Theme/NotaGeometry.cs b/src/managed/Nota.App/Theme/NotaGeometry.cs
index d19912da..af7ebf8e 100644
--- a/src/managed/Nota.App/Theme/NotaGeometry.cs
+++ b/src/managed/Nota.App/Theme/NotaGeometry.cs
@@ -6,8 +6,8 @@
// change with the variant, so these are plain constants. The smoke test fails if a value
// here and its XAML key drift apart.
//
-// Radius follows the size of the object, not its role: a clip and a slider track are
-// both 2 because both are thin, not because they do the same job.
+// Radius follows one small scale: 2 for inner keys, rows, clips; 3 for controls, cards and
+// popovers; 4 only for modal windows; 0 for docked panels; 1 for bars inside a plot.
using Avalonia;
@@ -15,25 +15,29 @@ namespace Nota.App;
internal static class NotaRadius
{
- public const double BarValue = 1, ClipValue = 2, BadgeValue = 3, ControlValue = 4,
- TileValue = 5, PanelValue = 6, BodyValue = 8, PillValue = 999;
+ public const double DockedValue = 0, BarValue = 1, ClipValue = 2, BadgeValue = 2, ControlValue = 3,
+ TileValue = 3, PanelValue = 3, BodyValue = 3, PillValue = 3, ModalValue = 4;
- /// <summary>1 — spectrum and level bars.</summary>
+ /// <summary>0 — a docked panel; it meets its neighbours on a 1px seam.</summary>
+ public static readonly CornerRadius Docked = new(DockedValue);
+ /// <summary>1 — spectrum and level bars inside a plot.</summary>
public static readonly CornerRadius Bar = new(BarValue);
- /// <summary>2 — clip, indicator, slider track.</summary>
+ /// <summary>2 — clip, row highlight, menu item, slider track.</summary>
public static readonly CornerRadius Clip = new(ClipValue);
- /// <summary>3 — small segment, badge inside a device.</summary>
+ /// <summary>2 — inner key, badge inside a device.</summary>
public static readonly CornerRadius Badge = new(BadgeValue);
- /// <summary>4 — graph window, button, dropdown.</summary>
+ /// <summary>3 — button, field, dropdown, graph window, popover.</summary>
public static readonly CornerRadius Control = new(ControlValue);
- /// <summary>5 — transport button, search field, tile.</summary>
+ /// <summary>3 — transport key, search field, tile.</summary>
public static readonly CornerRadius Tile = new(TileValue);
- /// <summary>6 — panel, device section, transport module.</summary>
+ /// <summary>3 — device section, segmented group.</summary>
public static readonly CornerRadius Panel = new(PanelValue);
- /// <summary>8 — device body, outer window frame.</summary>
+ /// <summary>3 — device card.</summary>
public static readonly CornerRadius Body = new(BodyValue);
- /// <summary>Half the height, whatever the height is — Avalonia clamps an oversized radius.</summary>
+ /// <summary>3 — chip, switch. Studio has no pill shapes; the name stays for its callers.</summary>
public static readonly CornerRadius Pill = new(PillValue);
+ /// <summary>4 — modal window, command palette, splash.</summary>
+ public static readonly CornerRadius Modal = new(ModalValue);
/// <summary>Rounded top only — a header strip or a stripe sitting on a body.</summary>
public static CornerRadius Top(double r) => new(r, r, 0, 0);
@@ -45,10 +49,10 @@ internal static class NotaSize
public const double Seg = 24; // tab segment
public const double Shell = 26; // shell button, field, dropdown
public const double SegGroup = 30; // segment container
- public const double Transport = 28; // transport button
- public const double Play = 40; // Play is the one wide transport button
- public const double Console = 42; // transport module: the recess inside the bar
- public const double TransportBar = 60; // the transport island
+ public const double Transport = 26; // transport key
+ public const double Play = 36; // Play is the one wide transport key
+ public const double Console = 30; // the recessed transport group inside the row
+ public const double TransportBar = 44; // the docked transport row
public const double KnobSecondary = 34;
public const double KnobRegular = 36;
public const double KnobMain = 44;
@@ -65,6 +69,6 @@ internal static class NotaSpace
public const double DeviceInsetWide = 8;
// In the shell: 4px units.
public const double Tile = 8;
- public const double Gutter = 12;
+ public const double Gutter = 1; // between docked panels: the seam
public const double Inset = 20;
}
diff --git a/src/managed/Nota.App/Theme/NotaPalette.cs b/src/managed/Nota.App/Theme/NotaPalette.cs
index c76c1a0e..f9dba153 100644
--- a/src/managed/Nota.App/Theme/NotaPalette.cs
+++ b/src/managed/Nota.App/Theme/NotaPalette.cs
@@ -1,22 +1,25 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// The single source of truth for palette colours used by C# custom-drawn controls
-// (Render overrides can't cheaply resolve a XAML DynamicResource). Every slot here
-// MIRRORS a Brush.* key in Theme/NotaTheme.axaml — keep the two in sync.
+// The palette as the custom-drawn layer sees it: one long-lived SolidColorBrush per
+// colour token, re-tinted in place from the active colour theme (Theme/Themes/*.json —
+// the only place a colour value lives, see NotaColourTheme.cs). NotaThemeService also
+// publishes these same brushes to XAML under their Brush.* keys (KeyMap), so styles and
+// custom-drawn views can never disagree.
//
// Themable by construction: a slot hands out one long-lived SolidColorBrush whose
-// *Color* is re-pointed when the variant changes. Call sites (and the private static
+// *Color* is re-pointed when the theme changes. Call sites (and the private static
// readonly fields that alias them all over the view layer) keep the same brush object,
-// so switching Ember Graphite ↔ Ember Paper needs no rebuild — only a repaint, which
-// NotaThemeService triggers. Never wrap a slot in `new SolidColorBrush(slot.Color)`:
-// that snapshots the colour and freezes the view in one theme.
+// so switching themes needs no rebuild — only a repaint, which NotaThemeService
+// triggers. Never wrap a slot in `new SolidColorBrush(slot.Color)`: that snapshots the
+// colour and freezes the view in one theme.
//
// Three ways to get a colour:
-// • a named token — NotaPalette.SurfaceCard (explicit dark + light pair)
+// • a named token — NotaPalette.SurfaceCard (one value per theme)
// • a tinted wash — NotaPalette.Wash(Accent, 0x24) (tracks its source slot)
// • a device hue — NotaPalette.Ink("#D06FB0") (identity hue of one visualiser;
-// its light counterpart is derived, or pinned in InkOverrides)
+// follows the theme's kind: its light counterpart is derived, or
+// pinned in InkOverrides)
using System;
using System.Collections.Generic;
@@ -25,44 +28,57 @@ using Avalonia.Media;
namespace Nota.App;
-internal enum NotaThemeVariant { Dark, Light }
-
internal static class NotaPalette
{
// ---- slot machinery ---------------------------------------------------
- private sealed record Slot(Color Dark, Color Light, SolidColorBrush Brush);
+ // A token slot: its name in the theme files and the brush every view holds.
+ private sealed record Slot(string Name, SolidColorBrush Brush);
+ // A device hue (Ink): not a token — it follows the theme's kind, not its values.
+ private sealed record InkSlot(Color Dark, Color Light, SolidColorBrush Brush);
private static readonly List<Slot> Slots = new();
+ private static readonly List<InkSlot> InkSlots = new();
private static readonly List<(SolidColorBrush Src, byte Alpha, SolidColorBrush Out)> Washes = new();
private static readonly Dictionary<(SolidColorBrush, byte), SolidColorBrush> WashCache = new();
private static readonly List<(SolidColorBrush[] Slots, LinearGradientBrush Out)> Gradients = new();
private static readonly List<(Func<Color> Compute, SolidColorBrush Out)> Derivations = new();
private static readonly Dictionary<string, SolidColorBrush> InkCache = new();
- /// <summary>The variant every slot currently holds.</summary>
- public static NotaThemeVariant Variant { get; private set; } = NotaThemeVariant.Dark;
+ // Slots start in Studio Dark so anything read before the first Apply has a real value.
+ // Read raw: the validated theme list needs this class's token names to exist first.
+ private static readonly Dictionary<string, string> Seed = NotaThemes.ReadSeed("studio-dark");
+
+ /// <summary>The theme every slot currently holds.</summary>
+ public static NotaColourTheme? Theme { get; private set; }
+
+ /// <summary>Dark or light — the kind of the current theme (Studio Dark before the first Apply).</summary>
+ public static NotaThemeKind Kind => Theme?.Kind ?? NotaThemeKind.Dark;
/// <summary>Raised after <see cref="Apply"/> has re-tinted every slot, so views can
/// drop colour caches they derived themselves (per-index clip brushes, gradients…).</summary>
public static event Action? Changed;
- // A named token: the Ember Graphite value and its Ember Paper counterpart.
- private static SolidColorBrush T(string dark, string light)
+ // A named token, seeded with its Studio Dark value until a theme is applied.
+ private static SolidColorBrush T(string name)
{
- var d = Color.Parse(dark);
- var slot = new Slot(d, Color.Parse(light), new SolidColorBrush(Variant == NotaThemeVariant.Dark ? d : Color.Parse(light)));
+ var slot = new Slot(name, new SolidColorBrush(Color.Parse(Seed[name])));
Slots.Add(slot);
return slot.Brush;
}
- /// <summary>Re-tint every slot for <paramref name="variant"/>. Brush objects are kept;
+ /// <summary>Every token a palette slot carries, in declaration order — the slot half of
+ /// the theme catalogue (NotaThemes.Catalogue adds the non-slot tokens).</summary>
+ public static IEnumerable<string> TokenNames { get { foreach (var s in Slots) yield return s.Name; } }
+
+ /// <summary>Re-tint every slot from <paramref name="theme"/>. Brush objects are kept;
/// only their Color changes, so every existing reference follows along.</summary>
- public static void Apply(NotaThemeVariant variant)
+ public static void Apply(NotaColourTheme theme)
{
- Variant = variant;
- bool dark = variant == NotaThemeVariant.Dark;
- foreach (var s in Slots) s.Brush.Color = dark ? s.Dark : s.Light;
+ Theme = theme;
+ bool dark = theme.IsDark;
+ foreach (var s in Slots) s.Brush.Color = theme[s.Name];
+ foreach (var s in InkSlots) s.Brush.Color = dark ? s.Dark : s.Light;
foreach (var (src, alpha, outB) in Washes)
{
var c = src.Color;
@@ -77,13 +93,14 @@ internal static class NotaPalette
Changed?.Invoke();
}
- /// <summary>The colour <paramref name="slot"/> holds in <paramref name="variant"/>, whatever
- /// the current one is — for previews of a variant (the theme picker's swatches). Read it
- /// at draw time like any other colour.</summary>
- public static Color ColorIn(SolidColorBrush slot, NotaThemeVariant variant)
+ /// <summary>The colour <paramref name="slot"/> holds in <paramref name="theme"/>, whatever
+ /// the current one is — for previews of a theme (the theme picker's chips).</summary>
+ public static Color ColorIn(SolidColorBrush slot, NotaColourTheme theme)
{
foreach (var s in Slots)
- if (ReferenceEquals(s.Brush, slot)) return variant == NotaThemeVariant.Dark ? s.Dark : s.Light;
+ if (ReferenceEquals(s.Brush, slot)) return theme[s.Name];
+ foreach (var s in InkSlots)
+ if (ReferenceEquals(s.Brush, slot)) return theme.IsDark ? s.Dark : s.Light;
return slot.Color;
}
@@ -110,6 +127,41 @@ internal static class NotaPalette
return b;
}
+ /// <summary>Ink for text or a glyph on a solid <paramref name="fill"/> — dark ink or white,
+ /// whichever has the higher contrast on the fill's current colour, recomputed on a variant
+ /// change. Fills are tokens that differ per variant, so the ink on them is derived, never
+ /// fixed. Cached per fill.</summary>
+ public static SolidColorBrush InkOn(SolidColorBrush fill)
+ {
+ if (InkOnCache.TryGetValue(fill, out var b)) return b;
+ b = Derived(() => ReadableInkOn(fill.Color));
+ InkOnCache[fill] = b;
+ return b;
+ }
+
+ private static readonly Dictionary<SolidColorBrush, SolidColorBrush> InkOnCache = new();
+
+ /// <summary>Dark ink (#17181A) or white, whichever reads better on <paramref name="fill"/>
+ /// (WCAG contrast ratio). For views that compute a fill at draw time.</summary>
+ public static Color ReadableInkOn(Color fill)
+ {
+ var dark = Color.FromRgb(0x17, 0x18, 0x1A);
+ var white = Color.FromRgb(0xFF, 0xFF, 0xFF);
+ return Contrast(dark, fill) >= Contrast(white, fill) ? dark : white;
+ }
+
+ private static double Contrast(Color a, Color b)
+ {
+ double la = Luminance(a), lb = Luminance(b);
+ return (Math.Max(la, lb) + 0.05) / (Math.Min(la, lb) + 0.05);
+ }
+
+ private static double Luminance(Color c)
+ {
+ static double Ch(byte v) { double x = v / 255.0; return x <= 0.03928 ? x / 12.92 : Math.Pow((x + 0.055) / 1.055, 2.4); }
+ return 0.2126 * Ch(c.R) + 0.7152 * Ch(c.G) + 0.0722 * Ch(c.B);
+ }
+
/// <summary>A top-to-bottom gradient over palette slots. A LinearGradientBrush snapshots
/// its stop Colors, so unlike a fill it cannot ride a slot on its own — this registers it
/// for re-tinting. Registration is permanent: only ever assign the result to a static
@@ -128,38 +180,57 @@ internal static class NotaPalette
/// <summary>The identity hue of one visualiser or picker swatch — a colour that means
/// "this band / this quadrant / this tag", not a role in the design system. Give the
- /// Ember Graphite value; the Ember Paper counterpart is derived (same hue, darkened so
- /// it reads on paper) unless <see cref="InkOverrides"/> pins one.</summary>
+ /// dark value; the light counterpart is derived (same hue, darkened so it reads on the
+ /// light grey ground) unless <see cref="InkOverrides"/> pins one.</summary>
public static SolidColorBrush Ink(string darkHex)
{
var key = darkHex.ToUpperInvariant();
if (InkCache.TryGetValue(key, out var b)) return b;
- // A hex that already is a role token (brass, teal, rose, steel…) resolves to that token,
- // so it gets the designed light value instead of a derived one — never a second brass.
- var dark = Color.Parse(darkHex);
+ // A hex that already is a role token resolves to that token, so it gets the designed
+ // light value instead of a derived one. Hexes that were Ember role tokens (views still
+ // name a few) resolve to the role's current slot, so no Ember hue survives the switch.
+ if (LegacyRole(key) is { } role) { InkCache[key] = role; return role; }
+ // "Already a token" means the hex is that token's Studio Dark value — the palette the
+ // views' literal hues were written against.
foreach (var slot in Slots)
- if (slot.Dark == dark) { InkCache[key] = slot.Brush; return slot.Brush; }
- b = T(darkHex, InkOverrides.TryGetValue(key, out var pin) ? pin : DeriveLight(Color.Parse(darkHex)));
- InkCache[key] = b;
- return b;
+ if (string.Equals(Seed[slot.Name], key, StringComparison.OrdinalIgnoreCase)) { InkCache[key] = slot.Brush; return slot.Brush; }
+ var dark = Color.Parse(darkHex);
+ var light = Color.Parse(InkOverrides.TryGetValue(key, out var pin) ? pin : DeriveLight(dark));
+ var ink = new InkSlot(dark, light, new SolidColorBrush(Kind == NotaThemeKind.Dark ? dark : light));
+ InkSlots.Add(ink);
+ InkCache[key] = ink.Brush;
+ return ink.Brush;
}
+ // Ember role hexes that views pass to Ink() → the slot that plays that role now. A method,
+ // not a table: the slots it names are initialised further down this file.
+ private static SolidColorBrush? LegacyRole(string hex) => hex switch
+ {
+ "#D8A03D" => Accent, // brass
+ "#5B9E9C" => Teal,
+ "#B57286" => Rose,
+ "#6D8FB5" => Steel,
+ "#B8862E" => Threshold, // brass-adjacent data fill → amber
+ "#2A2317" => AccentSubtle, // brass wash band
+ _ => null,
+ };
+
/// <summary>The Color of an <see cref="Ink"/> hue, for the call sites that mix or
/// interpolate rather than fill. Read it at draw time — it changes with the theme.</summary>
public static Color InkColor(string darkHex) => Ink(darkHex).Color;
- // Ember Paper counterparts that the generic derivation gets wrong — a hue whose job
- // is to be *pale* on graphite (a highlight) or whose saturation collapses when darkened.
+ // Light counterparts that the generic derivation gets wrong — a hue whose job
+ // is to be *pale* on the dark ground (a highlight) or whose saturation collapses when darkened.
private static readonly Dictionary<string, string> InkOverrides = new()
{
["#8A8F98"] = "#5A6068", // tag "slate": derivation leaves it near-neutral mud
- ["#CDEEF8"] = "#0E5470", // resize-edge / bracket highlight: hottest ink on paper is darkest
+ ["#CDEEF8"] = "#0E5470", // resize-edge / bracket highlight: hottest ink on light is darkest
["#12181B"] = "#DCE6E8", // BPM chip ground — a surface, so it lightens rather than darkens
["#1A2B31"] = "#C8DEE4", // …and its hot state
};
- // Same hue and saturation, lightness reflected onto the paper ground: the brighter a
- // hue reads on graphite, the darker it must read on paper to carry the same emphasis.
+ // Same hue and saturation, lightness reflected onto the light ground: the brighter a
+ // hue reads on dark, the darker it must read on light to carry the same emphasis.
private static string DeriveLight(Color c)
{
var (h, s, l) = ToHsl(c);
@@ -191,140 +262,154 @@ internal static class NotaPalette
}
// =======================================================================
- // Tokens. dark = "Ember Graphite" light = "Ember Paper"
+ // Tokens — the Studio palette: neutral greys, one orange accent.
+ // dark = Studio Dark, light = Studio Light (same roles).
// =======================================================================
- // ---- Surfaces: the nine steps of the almanac, far to near -------------
- // Void · App · Gutter · Well · Panel · Card · Raised · Hover · Track off.
- // Depth is lightness plus a hairline, never a shadow, and three levels of
- // nesting is the limit — a fourth means the layout is wrong, not the palette.
- public static readonly SolidColorBrush SurfaceAbyss = T("#0A0908", "#D8D1BE"); // Brush.SurfaceAbyss — Void
- public static readonly SolidColorBrush BgApp = T("#0B0A09", "#DCD6C5"); // Brush.BgApp — window ground, plugin body
- public static readonly SolidColorBrush Gutter = T("#0C0B09", "#E0DAC9"); // Brush.Gutter — the gaps panels float in
- public static readonly SolidColorBrush BgSunken = T("#100F0D", "#E4DFD1"); // Brush.BgSunken / ChromeBg — Well
- public static readonly SolidColorBrush CanvasBg = T("#121110", "#E6E1D3"); // modular canvas, just above the well
- public static readonly SolidColorBrush SurfaceDeep = T("#131210", "#E7E2D4"); // step-sequencer ground
- public static readonly SolidColorBrush LaneB = T("#131210", "#E7E2D4"); // Brush.LaneB (alternating lane)
- public static readonly SolidColorBrush Panel = T("#141310", "#EAE5D7"); // Brush.Panel — browser, headers, inspector
- public static readonly SolidColorBrush SurfaceCard = T("#171613", "#EFEADE"); // Brush.SurfaceCard — a section inside a device
- public static readonly SolidColorBrush SurfaceInset = T("#1A1815", "#E9E4D6"); // rail / sunken chip
- public static readonly SolidColorBrush SurfaceRaised = T("#1C1A16", "#F8F5EC"); // Brush.SurfaceRaised — button at rest
- public static readonly SolidColorBrush SurfaceHover = T("#252219", "#E7E1D0"); // Brush.SurfaceHover
- public static readonly SolidColorBrush TrackOff = T("#26231E", "#DBD4C0"); // Brush.TrackOff — track of an off toggle
+ // ---- Surfaces: the grey ladder, far to near -----------------------
+ // Well (recess) · Ground (bg-base) · Panel · Raised · Raised hover. Ember's nine
+ // steps collapse onto these; the extra slots sit between two of them. Depth is
+ // tone plus a 1 px seam; only floating layers cast a shadow.
+ public static readonly SolidColorBrush SurfaceAbyss = T(nameof(SurfaceAbyss)); // Brush.SurfaceAbyss — well: the transport console recess
+ public static readonly SolidColorBrush BgApp = T(nameof(BgApp)); // Brush.BgApp — ground: window, arrangement, plugin body
+ public static readonly SolidColorBrush Gutter = T(nameof(Gutter)); // Brush.Gutter — the seam the docked panels meet on
+ public static readonly SolidColorBrush BgSunken = T(nameof(BgSunken)); // Brush.BgSunken / ChromeBg — Well
+ public static readonly SolidColorBrush CanvasBg = T(nameof(CanvasBg)); // modular canvas, just above the well
+ public static readonly SolidColorBrush SurfaceDeep = T(nameof(SurfaceDeep)); // step-sequencer ground
+ public static readonly SolidColorBrush LaneB = T(nameof(LaneB)); // Brush.LaneB (alternating lane)
+ public static readonly SolidColorBrush Panel = T(nameof(Panel)); // Brush.Panel — browser, headers, inspector
+ public static readonly SolidColorBrush SurfaceCard = T(nameof(SurfaceCard)); // Brush.SurfaceCard — a section inside a device (panel tone; divided by rules)
+ public static readonly SolidColorBrush SurfaceInset = T(nameof(SurfaceInset)); // Brush.SurfaceInset — rail, sunken chip, hovered well
+ public static readonly SolidColorBrush SurfaceRaised = T(nameof(SurfaceRaised)); // Brush.SurfaceRaised — button at rest
+ public static readonly SolidColorBrush SurfaceHover = T(nameof(SurfaceHover)); // Brush.SurfaceHover
+ public static readonly SolidColorBrush TrackOff = T(nameof(TrackOff)); // Brush.TrackOff — track of an off toggle
// Pressed goes *into* the recess rather than to a fourth raised step.
- public static readonly SolidColorBrush SurfaceActive = T("#100F0D", "#D5CEBB"); // Brush.SurfaceActive
+ public static readonly SolidColorBrush SurfaceActive = T(nameof(SurfaceActive)); // Brush.SurfaceActive
// ---- Grid + graph lines (kept under ~12% contrast against their lane) -
- public static readonly SolidColorBrush GridSubBeat = T("#191712", "#E5DFCE"); // finer than a beat
- public static readonly SolidColorBrush GridBeat = T("#1E1C18", "#DED8C8"); // Brush.GridBeat — grid inside graphs, zero axis
- public static readonly SolidColorBrush GridRow = T("#141311", "#E6E1D2"); // piano-roll row divider
- public static readonly SolidColorBrush GridBar = T("#2A2721", "#CFC8B4"); // Brush.GridBar
- public static readonly SolidColorBrush GraphBorder = T("#221F1A", "#D5CFBE"); // inner border of a visualiser well
- public static readonly SolidColorBrush WellGrid = T("#232019", "#DDD7C6"); // grid drawn inside a well
- public static readonly SolidColorBrush PadGrid = T("#1C1A16", "#DED8C7"); // XY-pad grid
+ public static readonly SolidColorBrush GridSubBeat = T(nameof(GridSubBeat)); // finer than a beat
+ public static readonly SolidColorBrush GridBeat = T(nameof(GridBeat)); // Brush.GridBeat — grid inside graphs, zero axis
+ public static readonly SolidColorBrush GridRow = T(nameof(GridRow)); // piano-roll row divider
+ public static readonly SolidColorBrush GridBar = T(nameof(GridBar)); // Brush.GridBar
+ public static readonly SolidColorBrush GraphBorder = T(nameof(GraphBorder)); // inner border of a visualiser well
+ public static readonly SolidColorBrush WellGrid = T(nameof(WellGrid)); // grid drawn inside a well
+ public static readonly SolidColorBrush PadGrid = T(nameof(PadGrid)); // XY-pad grid
// ---- Text: eight steps, strictly by descending importance ------------
- // Warm off-white on graphite, warm near-black on paper. Muted text takes the
+ // Cool off-white on dark, near-black on light. Muted text takes the
// next Ink step down — never opacity, which makes contrast unpredictable.
- public static readonly SolidColorBrush TextHeading = T("#F2EDE1", "#1A150E"); // Ink 0 — page titles, project name. Rare.
- public static readonly SolidColorBrush TextPrimary = T("#E9E4D8", "#241F17"); // Ink 1 — device/track/preset names, values
- public static readonly SolidColorBrush TextStrong = T("#C7C0B0", "#3E382C"); // Ink 2 — button text, transport readouts
- public static readonly SolidColorBrush TextSecondary = T("#A39D8F", "#5E5849"); // Ink 3 — inactive but readable, metadata
- public static readonly SolidColorBrush TextMuted = T("#8D8779", "#746D5C"); // Ink 4 — explanations, units, hints
- public static readonly SolidColorBrush TextTertiary = T("#6E6A5E", "#8A8474"); // Ink 5 — caps labels above parameters
- public static readonly SolidColorBrush TextDisabled = T("#55514A", "#9E9786"); // Ink 6 — placeholder, disabled action
- public static readonly SolidColorBrush TextAxis = T("#4A463D", "#ADA694"); // Ink 7 — axis labels inside graphs only
- public static readonly SolidColorBrush TextOnAccent = T("#171613", "#FFFBF2"); // Brush.TextOnAccent
+ public static readonly SolidColorBrush TextHeading = T(nameof(TextHeading)); // Ink 0 — page titles, project name. Rare.
+ public static readonly SolidColorBrush TextPrimary = T(nameof(TextPrimary)); // Ink 1 — device/track/preset names, values
+ public static readonly SolidColorBrush TextStrong = T(nameof(TextStrong)); // Ink 2 — button text, transport readouts
+ public static readonly SolidColorBrush TextSecondary = T(nameof(TextSecondary)); // Ink 3 — inactive but readable, metadata
+ public static readonly SolidColorBrush TextMuted = T(nameof(TextMuted)); // Ink 4 — explanations, units, hints
+ public static readonly SolidColorBrush TextTertiary = T(nameof(TextTertiary)); // Ink 5 — caps labels above parameters
+ public static readonly SolidColorBrush TextDisabled = T(nameof(TextDisabled)); // Ink 6 — placeholder, disabled action
+ public static readonly SolidColorBrush TextAxis = T(nameof(TextAxis)); // Ink 7 — axis labels inside graphs only
+ public static readonly SolidColorBrush TextOnAccent = T(nameof(TextOnAccent)); // Brush.TextOnAccent
+ public static readonly SolidColorBrush TextFaint = T(nameof(TextFaint)); // Brush.TextFaint — disabled controls only
+ // The neutral ink a value is drawn in at rest: knob arcs, fader fills, graph curves.
+ // The accent replaces it only while the control is live (dragged, hovered) or chosen.
+ public static readonly SolidColorBrush VizInk = T(nameof(VizInk)); // Brush.VizInk
+ public static readonly SolidColorBrush VizGrid = T(nameof(VizGrid)); // Brush.VizGrid — grid inside a well
// ---- Borders ----------------------------------------------------------
- public static readonly SolidColorBrush BorderDefault = T("#2C2923", "#D5CEBB"); // Brush.BorderDefault
- public static readonly SolidColorBrush BorderStrong = T("#3A362D", "#BDB5A0"); // Brush.BorderStrong — knob cap, hovered border
- public static readonly SolidColorBrush BorderBrass = T("#6B5326", "#C9A254"); // Brush.BorderBrass — engaged button: brass at 40%
-
- // ---- Accent (brass on graphite, bronze on paper: darker carries the
- // same emphasis against a light ground) ----------------------------
- public static readonly SolidColorBrush Accent = T("#D8A03D", "#A87415"); // Brush.Accent — arc, fill, playhead, solid button
- public static readonly SolidColorBrush AccentBright = T("#F0C060", "#744D07"); // Brush.AccentBright — Brass Light, the hottest mark
- public static readonly SolidColorBrush AccentHover = T("#E9BE6A", "#8F6110"); // Brush.AccentHover — hover on brass text
- public static readonly SolidColorBrush AccentDeep = T("#B08536", "#7A5008"); // Brush.AccentDeep — press, left half of the loop
- public static readonly SolidColorBrush AccentDim = T("#8A6B2E", "#9C8034"); // Brush.AccentDim — eyebrows, mono section marks
- public static readonly SolidColorBrush AccentEdge = T("#5E4A22", "#D3B173"); // Brush.AccentEdge — chip border, link underline
- public static readonly SolidColorBrush AccentMute = T("#7A6130", "#C39B4F"); // between Edge and Dim — a waveform at rest, the part ahead of the hover
- public static readonly SolidColorBrush AccentPale = T("#FCE5B8", "#5C3C04"); // hot edge highlight
- // Opaque, not an alpha tint: the almanac wants one predictable colour, and
- // alpha over two different grounds is not one.
- public static readonly SolidColorBrush AccentSubtle = T("#241F17", "#F2E4C4"); // Brush.AccentSubtle — Brass Wash, selected row
+ public static readonly SolidColorBrush BorderDefault = T(nameof(BorderDefault)); // Brush.BorderDefault
+ public static readonly SolidColorBrush BorderStrong = T(nameof(BorderStrong)); // Brush.BorderStrong — knob cap, hovered border
+ public static readonly SolidColorBrush BorderBrass = T(nameof(BorderBrass)); // Brush.BorderBrass — accent line: 70% accent over panel
+ // Two lines: the dark seam between panels and around controls, and the
+ // lighter rule that divides inside a panel (toolbar separators, field edges).
+ public static readonly SolidColorBrush Seam = T(nameof(Seam)); // Brush.Seam
+ public static readonly SolidColorBrush Rule = T(nameof(Rule)); // Brush.Rule
+
+ // ---- Accent: Studio orange. Live or chosen only — playing, selected, looping,
+ // toggled on, or a control while it is dragged. Never a resting value. ---
+ public static readonly SolidColorBrush Accent = T(nameof(Accent)); // Brush.Accent — playhead, selection, toggled-on fill
+ public static readonly SolidColorBrush AccentBright = T(nameof(AccentBright)); // Brush.AccentBright — accent glow: the line/ink variant
+ public static readonly SolidColorBrush AccentHover = T(nameof(AccentHover)); // Brush.AccentHover — accent text on hover
+ public static readonly SolidColorBrush AccentDeep = T(nameof(AccentDeep)); // Brush.AccentDeep — press, left half of the loop
+ public static readonly SolidColorBrush AccentDim = T(nameof(AccentDim)); // Brush.AccentDim — the soft/pressed accent
+ public static readonly SolidColorBrush AccentEdge = T(nameof(AccentEdge)); // Brush.AccentEdge — chip border, link underline
+ public static readonly SolidColorBrush AccentMute = T(nameof(AccentMute)); // a muted accent; nothing at rest uses it any more
+ public static readonly SolidColorBrush AccentPale = T(nameof(AccentPale)); // hot edge highlight
+ // Accent-soft: 16 % accent over the panel, opaque so it reads the same on any ground.
+ public static readonly SolidColorBrush AccentSubtle = T(nameof(AccentSubtle)); // Brush.AccentSubtle — accent-soft wash
// ---- Status -----------------------------------------------------------
// Red belongs to recording. Everything else red is an alert about level.
- public static readonly SolidColorBrush Record = T("#C25B44", "#B54A32"); // Brush.Record — active recording, the only claim on red
- public static readonly SolidColorBrush RecordInk = T("#F4E3DC", "#FFF4EE"); // Brush.RecordInk — disc on an engaged record button
- public static readonly SolidColorBrush Success = T("#58B368", "#2C7A3E"); // Brush.Success — Signal, working meter zone
- public static readonly SolidColorBrush SuccessDim = T("#7FB069", "#609548"); // Brush.SuccessDim — transport input, metronome
- public static readonly SolidColorBrush Warning = T("#D9C34C", "#837010"); // Brush.Warning — Caution, −6..0 dB
- public static readonly SolidColorBrush Danger = T("#C2554A", "#B13E33"); // Brush.Danger — Alert, overload / clipping
- public static readonly SolidColorBrush DangerHover = T("#D0685C", "#C64A36"); // Brush.DangerHover
- public static readonly SolidColorBrush DangerBright= T("#E08A72", "#A3391B"); // Brush.DangerBright — Alert Light, readout text
- public static readonly SolidColorBrush DangerDeep = T("#A8453B", "#9C3221"); // over-threshold fill, below Alert
- public static readonly SolidColorBrush DangerPale = T("#F0928A", "#8E2416"); // live-take waveform / label
+ public static readonly SolidColorBrush Record = T(nameof(Record)); // Brush.Record — active recording, the only claim on red
+ public static readonly SolidColorBrush RecordInk = T(nameof(RecordInk)); // Brush.RecordInk — disc on an engaged record button
+ public static readonly SolidColorBrush Success = T(nameof(Success)); // Brush.Success — Signal, working meter zone
+ public static readonly SolidColorBrush SuccessDim = T(nameof(SuccessDim)); // Brush.SuccessDim — transport input, metronome
+ public static readonly SolidColorBrush Warning = T(nameof(Warning)); // Brush.Warning — Caution, −6..0 dB
+ // Track toggles: mute is amber, solo is blue, arm is Record. Each fills solid when on.
+ public static readonly SolidColorBrush Mute = T(nameof(Mute)); // Brush.Mute
+ public static readonly SolidColorBrush Solo = T(nameof(Solo)); // Brush.Solo
+ public static readonly SolidColorBrush Danger = T(nameof(Danger)); // Brush.Danger — Alert, overload / clipping
+ public static readonly SolidColorBrush DangerHover = T(nameof(DangerHover)); // Brush.DangerHover
+ public static readonly SolidColorBrush DangerBright= T(nameof(DangerBright)); // Brush.DangerBright — Alert Light, readout text
+ public static readonly SolidColorBrush DangerDeep = T(nameof(DangerDeep)); // over-threshold fill, below Alert
+ public static readonly SolidColorBrush DangerPale = T(nameof(DangerPale)); // live-take waveform / label
// ---- Data + modulation ------------------------------------------------
// Role chromas live inside visualisers only. When two or three sources share
- // one graph, brass takes the primary and these follow in order. They never
+ // one graph, VizInk takes the primary and these follow in order. They never
// reach a button and they never mean state.
- public static readonly SolidColorBrush Teal = T("#5B9E9C", "#2F7472"); // Brush.ChromaTeal — 2nd layer; also the modulation accent
- public static readonly SolidColorBrush TealBright = T("#7FC0BE", "#3E8A88"); // Brush.ChromaTealLight
- public static readonly SolidColorBrush Rose = T("#B57286", "#86465B"); // Brush.ChromaRose — 3rd layer: right channel, highs, tail
- public static readonly SolidColorBrush RoseBright = T("#D79BAB", "#7F2D43"); // Brush.ChromaRoseLight
- public static readonly SolidColorBrush Steel = T("#6D8FB5", "#3E6288"); // Brush.ChromaSteel — 4th layer, used rarely
- public static readonly SolidColorBrush Sage = T("#6FA383", "#42765A"); // standalone hue (no longer a track slot)
- public static readonly SolidColorBrush Threshold = T("#C9884F", "#8A5218"); // threshold markers
- public static readonly SolidColorBrush Marker = T("#7FCCE1", "#1B6E8C"); // clip markers / brackets
- public static readonly SolidColorBrush MarkerHot = T("#CDEEF8", "#0E5470"); // resize-edge affordance
- public static readonly SolidColorBrush Frozen = T("#7FC7EC", "#1C6E96"); // frozen-track ice
- public static readonly SolidColorBrush SignalIn = T("#52604F", "#6E7C68"); // ghost "input" trace label
- public static readonly SolidColorBrush SignalInFill = T("#3E4A3C", "#D3DCCF");
- public static readonly SolidColorBrush HandleSel = T("#FFFFFF", "#1E1A14"); // selected graph handle
+ public static readonly SolidColorBrush Teal = T(nameof(Teal)); // Brush.ChromaTeal — 2nd layer; also the modulation accent
+ public static readonly SolidColorBrush TealBright = T(nameof(TealBright)); // Brush.ChromaTealLight
+ public static readonly SolidColorBrush Rose = T(nameof(Rose)); // Brush.ChromaRose — 3rd layer: right channel, highs, tail
+ public static readonly SolidColorBrush RoseBright = T(nameof(RoseBright)); // Brush.ChromaRoseLight
+ public static readonly SolidColorBrush Steel = T(nameof(Steel)); // Brush.ChromaSteel — 4th layer, used rarely
+ public static readonly SolidColorBrush Sage = T(nameof(Sage)); // standalone hue (no longer a track slot)
+ public static readonly SolidColorBrush Threshold = T(nameof(Threshold)); // threshold markers
+ public static readonly SolidColorBrush Marker = T(nameof(Marker)); // clip markers / brackets
+ public static readonly SolidColorBrush MarkerHot = T(nameof(MarkerHot)); // resize-edge affordance
+ public static readonly SolidColorBrush Frozen = T(nameof(Frozen)); // frozen-track ice
+ public static readonly SolidColorBrush SignalIn = T(nameof(SignalIn)); // ghost "input" trace label
+ public static readonly SolidColorBrush SignalInFill = T(nameof(SignalInFill));
+ public static readonly SolidColorBrush HandleSel = T(nameof(HandleSel)); // selected graph handle
// ---- Tinted chrome ----------------------------------------------------
- public static readonly SolidColorBrush SelHeaderBg = T("#241F17", "#F2E4C4"); // selected track header — Brass Wash
- public static readonly SolidColorBrush FrozenHeaderBg = T("#1B2A33", "#D8E8F0"); // frozen track header
- public static readonly SolidColorBrush MuteTint = T("#3A2320", "#F0D9D3"); // muted band
- public static readonly SolidColorBrush Veil = T("#121418", "#F2EFE6"); // deactivated-clip scrim base
- public static readonly SolidColorBrush TooltipBg = T("#18181E", "#2A251C"); // tooltips stay a dark pill
- public static readonly SolidColorBrush TooltipText = T("#F0E4C8", "#F5EEDC");
+ public static readonly SolidColorBrush SelHeaderBg = T(nameof(SelHeaderBg)); // selected track header — raised hover (the accent tick marks it)
+ public static readonly SolidColorBrush FrozenHeaderBg = T(nameof(FrozenHeaderBg)); // frozen track header
+ public static readonly SolidColorBrush MuteTint = T(nameof(MuteTint)); // muted band
+ public static readonly SolidColorBrush Veil = T(nameof(Veil)); // deactivated-clip scrim base
+ public static readonly SolidColorBrush TooltipBg = T(nameof(TooltipBg)); // tooltip: a raised popover
+ public static readonly SolidColorBrush TooltipText = T(nameof(TooltipText));
// ---- Piano keys (the clip editor keyboard is dark: keys recede, notes lead) ---
- public static readonly SolidColorBrush KeyWhite = T("#1C1A16", "#F3EFE4"); // piano-roll keys: dark, never the brightest thing
- public static readonly SolidColorBrush KeyBlack = T("#0E0D0B", "#DAD3C2"); // black keys and their lanes
- public static readonly SolidColorBrush MiniKeyWhite = T("#2A2721", "#F5F1E4"); // device-card mini keyboards
- public static readonly SolidColorBrush MiniKeyBlack = T("#151310", "#38332A");
+ public static readonly SolidColorBrush KeyWhite = T(nameof(KeyWhite)); // piano-roll keys: dark, never the brightest thing
+ public static readonly SolidColorBrush KeyBlack = T(nameof(KeyBlack)); // black keys and their lanes
+ public static readonly SolidColorBrush MiniKeyWhite = T(nameof(MiniKeyWhite)); // device-card mini keyboards
+ public static readonly SolidColorBrush MiniKeyBlack = T(nameof(MiniKeyBlack));
// ---- Track-shade mix targets (TrackColorForIndex) ---------------------
- public static readonly SolidColorBrush ShadeUp = T("#FFFFFF", "#FFFCF2"); // "lighter" shade
- public static readonly SolidColorBrush ShadeDown = T("#141210", "#3A3227"); // "darker" shade
+ public static readonly SolidColorBrush ShadeUp = T(nameof(ShadeUp)); // "lighter" shade
+ public static readonly SolidColorBrush ShadeDown = T(nameof(ShadeDown)); // "darker" shade
// ---- Track palette (Brush.Track1..8) + return buses --------------------
- // Nine roles at one lightness, so no track is louder than another. A group sets
- // the hue and its tracks take neighbouring shades of it. Paper darkens each by
- // the same ratio the previous eight pairs used (lightness ×0.67, saturation ×1.18).
+ // Nine muted clip-colour roles: five core hues (teal, blue,
+ // amber, violet, rose) plus four at matching chroma. A group sets the hue and its
+ // tracks take neighbouring shades of it. Light values are the Studio Light rendition.
//
// Saved projects are NOT migrated: a stored colour index keeps working but now
// points at the hue that sits at that place in this table.
private static readonly SolidColorBrush[] TrackSlots =
{
- T("#58B368", "#328140"), // Drums
- T("#4E9E7A", "#306F53"), // Perc
- T("#3E8E8E", "#256464"), // Bass
- T("#5AA0B8", "#317187"), // Keys
- T("#C77F55", "#985127"), // Texture
- T("#7A6FB0", "#4B4082"), // FX
- T("#B05A7A", "#7F3450"), // Brass
- T("#9AA64A", "#6C752C"), // Vox
- T("#7FA88E", "#4D7A5D"), // Return
+ T("Track1"), // Drums
+ T("Track2"), // Perc
+ T("Track3"), // Bass
+ T("Track4"), // Keys
+ T("Track5"), // Texture
+ T("Track6"), // FX
+ T("Track7"), // Brass
+ T("Track8"), // Vox
+ T("Track9"), // Return
};
+ // The master bus: a muted grey, not a hue — it is the sum, not a track.
+ public static readonly SolidColorBrush Master = T(nameof(Master)); // Brush.Master
// Return buses draw from the ninth role rather than a palette of their own.
- private static readonly SolidColorBrush[] ReturnSlots = { T("#7FA88E", "#4D7A5D"), T("#6B907B", "#3E6A4D") };
+ private static readonly SolidColorBrush[] ReturnSlots = { T("ReturnA"), T("ReturnB") };
/// <summary>Brush form of the 8-track cycle — index it for fills that follow the theme.</summary>
public static readonly SolidColorBrush[] TrackBrushes = TrackSlots;
@@ -340,7 +425,7 @@ internal static class NotaPalette
// Code-built views that read a token by its XAML key resolve it here instead of
// through TryFindResource: a resource read is a one-time snapshot, while the slot
- // brush follows the variant. (Bind-style reads — ControlExtensions.BindResource —
+ // brush follows the theme. (Bind-style reads — ControlExtensions.BindResource —
// are already live and should keep using the resource observable.)
private static readonly Dictionary<string, SolidColorBrush> KeyMap = new(StringComparer.OrdinalIgnoreCase)
{
@@ -349,8 +434,9 @@ internal static class NotaPalette
["Brush.BgApp"] = BgApp, ["Brush.LaneB"] = LaneB,
["Brush.Panel"] = Panel, ["Brush.TrackOff"] = TrackOff,
["Brush.SurfaceCard"] = SurfaceCard, ["Brush.SurfaceRaised"] = SurfaceRaised,
+ ["Brush.SurfaceInset"] = SurfaceInset,
["Brush.SurfaceHover"] = SurfaceHover, ["Brush.SurfaceActive"] = SurfaceActive,
- ["Brush.SurfaceSelected"] = AccentSubtle,
+ ["Brush.SurfaceSelected"] = SelHeaderBg,
["Brush.GridBeat"] = GridBeat, ["Brush.GridBar"] = GridBar,
["Brush.Hairline"] = GraphBorder,
["Brush.TextHeading"] = TextHeading, ["Brush.TextPrimary"] = TextPrimary,
@@ -372,8 +458,26 @@ internal static class NotaPalette
["Brush.ChromaTeal"] = Teal, ["Brush.ChromaTealLight"] = TealBright,
["Brush.ChromaRose"] = Rose, ["Brush.ChromaRoseLight"] = RoseBright,
["Brush.ChromaSteel"] = Steel,
+ ["Brush.Seam"] = Seam, ["Brush.Rule"] = Rule,
+ ["Brush.TextFaint"] = TextFaint, ["Brush.Mute"] = Mute,
+ ["Brush.Solo"] = Solo, ["Brush.VizInk"] = VizInk,
+ ["Brush.VizGrid"] = VizGrid,
+ ["Brush.Track1"] = TrackSlots[0], ["Brush.Track2"] = TrackSlots[1],
+ ["Brush.Track3"] = TrackSlots[2], ["Brush.Track4"] = TrackSlots[3],
+ ["Brush.Track5"] = TrackSlots[4], ["Brush.Track6"] = TrackSlots[5],
+ ["Brush.Track7"] = TrackSlots[6], ["Brush.Track8"] = TrackSlots[7],
+ ["Brush.Track9"] = TrackSlots[8],
+ ["Brush.ReturnA"] = ReturnSlots[0], ["Brush.ReturnB"] = ReturnSlots[1],
+ ["Brush.Master"] = Master,
+ // Washes, not tokens: they follow their source slot.
+ ["Brush.SurfaceHoverClear"] = Wash(SurfaceHover, 0x00),
+ ["Brush.DangerSubtle"] = Wash(Danger, 0x33),
};
+ /// <summary>Every <c>Brush.*</c> key with its slot — what NotaThemeService publishes to
+ /// XAML, so <c>{DynamicResource Brush.*}</c> resolves to the very brush the theme re-tints.</summary>
+ public static IEnumerable<KeyValuePair<string, SolidColorBrush>> AllKeys => KeyMap;
+
/// <summary>The slot behind a <c>Brush.*</c> XAML key, or null if the key is unknown.</summary>
public static SolidColorBrush? ByKey(string key) => KeyMap.GetValueOrDefault(key);
diff --git a/src/managed/Nota.App/Theme/NotaText.cs b/src/managed/Nota.App/Theme/NotaText.cs
new file mode 100644
index 00000000..3b5b23fa
--- /dev/null
+++ b/src/managed/Nota.App/Theme/NotaText.cs
@@ -0,0 +1,91 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// Labels are sentence case at letter-spacing 0 (no shouting). Views and device
+// bodies still pass many labels as caps literals ("PRE-DELAY", "FREQ") — the strings double
+// as names elsewhere — so every label builder routes them through Label(), which turns an
+// all-caps label into sentence case and keeps acronyms and units in their own case.
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Nota.App;
+
+internal static class NotaText
+{
+ // Words that stay as written whatever their position. Upper-case acronyms, and the
+ // units whose case carries meaning (dB, Hz, kHz, ms). Internal and kept as one
+ // ["KEY"] = "Value" table because the smoke test's label check (RunLabels) reads this
+ // file as text: a label made only of these words is not shouting.
+ internal static readonly Dictionary<string, string> Fixed = new(StringComparer.Ordinal)
+ {
+ ["DB"] = "dB", ["HZ"] = "Hz", ["KHZ"] = "kHz", ["MS"] = "ms", ["BPM"] = "BPM",
+ ["LFO"] = "LFO", ["EQ"] = "EQ", ["ADSR"] = "ADSR", ["AHDSR"] = "AHDSR", ["MIDI"] = "MIDI",
+ ["MPE"] = "MPE", ["CV"] = "CV", ["FM"] = "FM", ["AM"] = "AM", ["PM"] = "PM", ["RM"] = "RM",
+ ["HP"] = "HP", ["LP"] = "LP", ["BP"] = "BP", ["HPF"] = "HPF", ["LPF"] = "LPF", ["BPF"] = "BPF",
+ ["XY"] = "XY", ["VST"] = "VST", ["VST3"] = "VST3", ["AU"] = "AU", ["CLAP"] = "CLAP",
+ ["DC"] = "DC", ["RMS"] = "RMS", ["FX"] = "FX", ["AI"] = "AI", ["MCP"] = "MCP",
+ ["PDC"] = "PDC", ["DSP"] = "DSP", ["CPU"] = "CPU", ["ID"] = "ID", ["UI"] = "UI",
+ ["IR"] = "IR", ["FFT"] = "FFT", ["DJ"] = "DJ", ["OSC"] = "Osc", ["ENV"] = "Env",
+ ["WAV"] = "WAV", ["MP3"] = "MP3", ["FLAC"] = "FLAC", ["AIFF"] = "AIFF", ["OGG"] = "OGG",
+ ["ADT"] = "ADT", ["ST"] = "st", ["CT"] = "ct", ["LR"] = "LR", ["MS/LR"] = "MS/LR",
+ ["SC"] = "SC", ["PWM"] = "PWM", ["SR"] = "SR", ["BIT"] = "bit",
+ ["GR"] = "GR", ["OS"] = "OS", ["TP"] = "TP", ["AT"] = "AT", ["HF"] = "HF", ["LF"] = "LF",
+ ["PW"] = "PW", ["VCA"] = "VCA", ["VCF"] = "VCF", ["VCO"] = "VCO", ["THD"] = "THD",
+ ["BBD"] = "BBD", ["FET"] = "FET", ["RR"] = "RR", ["CC"] = "CC",
+ ["LUFS"] = "LUFS", ["USB"] = "USB", ["OK"] = "OK", ["DAW"] = "DAW",
+ };
+
+ /// <summary>A label in sentence case: "PRE-DELAY" → "Pre-delay", "LFO RATE" → "LFO rate",
+ /// "GAIN DB" → "Gain dB". A string that already has lower-case letters is returned as
+ /// written — it was typed in the case it wants.</summary>
+ public static string Label(string? text)
+ {
+ if (string.IsNullOrEmpty(text)) return text ?? "";
+ bool hasLetter = false;
+ foreach (var ch in text)
+ {
+ if (char.IsLower(ch)) return text;
+ if (char.IsLetter(ch)) hasLetter = true;
+ }
+ if (!hasLetter) return text;
+
+ var sb = new StringBuilder(text.Length);
+ bool first = true;
+ int i = 0;
+ while (i < text.Length)
+ {
+ if (!char.IsLetterOrDigit(text[i])) { sb.Append(text[i]); i++; continue; }
+ int j = i;
+ while (j < text.Length && (char.IsLetterOrDigit(text[j]) || text[j] == '#')) j++;
+ sb.Append(Word(text[i..j], first));
+ first = false;
+ i = j;
+ }
+ return sb.ToString();
+ }
+
+ private static string Word(string w, bool first)
+ {
+ if (Fixed.TryGetValue(w, out var f))
+ return first && char.IsLower(f[0]) && f is not ("dB" or "kHz" or "ms" or "st" or "ct") ? char.ToUpperInvariant(f[0]) + f[1..] : f;
+ // One letter (A/B, L/R, M/S, X), a note name (C#3) or a code with digits (LFO2, 4X)
+ // keeps its case: lower-casing it would change what it names.
+ if (w.Length == 1 || HasDigit(w) || w.Contains('#'))
+ {
+ // …except a known acronym with a trailing index: "LFO2" stays, "OSC2" → "Osc2".
+ var stem = w.TrimEnd('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
+ if (stem.Length > 1 && stem.Length < w.Length && Fixed.TryGetValue(stem, out var fs)) return fs + w[stem.Length..];
+ return w;
+ }
+ var lower = w.ToLowerInvariant();
+ return first ? char.ToUpperInvariant(lower[0]) + lower[1..] : lower;
+ }
+
+ private static bool HasDigit(string w)
+ {
+ foreach (var ch in w) if (char.IsDigit(ch)) return true;
+ return false;
+ }
+}
diff --git a/src/managed/Nota.App/Theme/NotaTheme.axaml b/src/managed/Nota.App/Theme/NotaTheme.axaml
index c7d92881..c2bc19a0 100644
--- a/src/managed/Nota.App/Theme/NotaTheme.axaml
+++ b/src/managed/Nota.App/Theme/NotaTheme.axaml
@@ -1,13 +1,15 @@
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
<!--
- Nota design tokens + control styles. Adaptation of the Lumenics desktop design
- system (see .claude/skills/nota-design), in two variants: "Ember Graphite" (dark,
- the default) and "Ember Paper" (light). This file is the concrete source of truth
- for colors/geometry — views reference these keys, never hardcoded values.
+ Nota design tokens + control styles — the Studio design language (see
+ DESIGN.md and .claude/skills/nota-design): neutral greys stepped on dark seams, one
+ orange accent for what is live or chosen, in a dark (default) and a light variant.
+ This file is the concrete source of truth for colors/geometry — views reference
+ these keys, never hardcoded values.
-->
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:sys="using:System">
+ xmlns:sys="using:System"
+ xmlns:app="using:Nota.App">
<Styles.Resources>
<ResourceDictionary>
<!-- Fonts: Geist for names and words, Geist Mono for every measurement.
@@ -20,24 +22,26 @@
keeps the two files equal.
Radius follows the size of the object, not its role. -->
- <CornerRadius x:Key="Radius.Bar">1</CornerRadius> <!-- spectrum / level bar -->
- <CornerRadius x:Key="Radius.Clip">2</CornerRadius> <!-- clip, indicator, slider track -->
- <CornerRadius x:Key="Radius.Badge">3</CornerRadius> <!-- small segment, badge inside a device -->
- <CornerRadius x:Key="Radius.Control">4</CornerRadius> <!-- graph window, button, dropdown -->
- <CornerRadius x:Key="Radius.Tile">5</CornerRadius> <!-- transport button, search field, tile -->
- <CornerRadius x:Key="Radius.Panel">6</CornerRadius> <!-- panel, device section, transport module -->
- <CornerRadius x:Key="Radius.Body">8</CornerRadius> <!-- device body, outer window frame -->
- <CornerRadius x:Key="Radius.Pill">999</CornerRadius> <!-- filter chip, toggle: half the height -->
+ <CornerRadius x:Key="Radius.Docked">0</CornerRadius> <!-- a docked panel: it meets its neighbours on a seam -->
+ <CornerRadius x:Key="Radius.Bar">1</CornerRadius> <!-- spectrum / level bar inside a plot -->
+ <CornerRadius x:Key="Radius.Clip">2</CornerRadius> <!-- clip, row highlight, menu item, slider track -->
+ <CornerRadius x:Key="Radius.Badge">2</CornerRadius> <!-- inner key, badge inside a device -->
+ <CornerRadius x:Key="Radius.Control">3</CornerRadius> <!-- button, field, dropdown, graph window, popover -->
+ <CornerRadius x:Key="Radius.Tile">3</CornerRadius> <!-- transport key, search field, tile -->
+ <CornerRadius x:Key="Radius.Panel">3</CornerRadius> <!-- device section, segmented group -->
+ <CornerRadius x:Key="Radius.Body">3</CornerRadius> <!-- device card -->
+ <CornerRadius x:Key="Radius.Pill">3</CornerRadius> <!-- chip, switch: Studio has no pills -->
+ <CornerRadius x:Key="Radius.Modal">4</CornerRadius> <!-- modal window, command palette, splash --> <!-- filter chip, toggle: half the height -->
<!-- Heights and fixed widths already settled in the designs -->
<sys:Double x:Key="Control.Chip">20</sys:Double> <!-- filter chip -->
<sys:Double x:Key="Control.Seg">24</sys:Double> <!-- tab segment -->
<sys:Double x:Key="Control.Shell">26</sys:Double> <!-- shell button, field, dropdown -->
<sys:Double x:Key="Control.SegGroup">30</sys:Double> <!-- segment container: 24 + 2 pad + 1 border -->
- <sys:Double x:Key="Control.Transport">28</sys:Double> <!-- transport button -->
- <sys:Double x:Key="Control.Play">40</sys:Double> <!-- Play is the one wide transport button -->
- <sys:Double x:Key="Control.Console">42</sys:Double> <!-- transport module: the recess inside the bar -->
- <sys:Double x:Key="Control.TransportBar">60</sys:Double> <!-- the transport island -->
+ <sys:Double x:Key="Control.Transport">26</sys:Double> <!-- transport key -->
+ <sys:Double x:Key="Control.Play">36</sys:Double> <!-- Play is the one wide transport key -->
+ <sys:Double x:Key="Control.Console">30</sys:Double> <!-- the recessed transport group inside the row -->
+ <sys:Double x:Key="Control.TransportBar">44</sys:Double> <!-- the docked transport row -->
<sys:Double x:Key="Control.KnobSecondary">34</sys:Double>
<sys:Double x:Key="Control.KnobRegular">36</sys:Double>
<sys:Double x:Key="Control.KnobMain">44</sys:Double>
@@ -50,219 +54,20 @@
<sys:Double x:Key="Space.DeviceInset">6</sys:Double> <!-- body padding, section inset -->
<sys:Double x:Key="Space.DeviceInsetWide">8</sys:Double>
<sys:Double x:Key="Space.Tile">8</sys:Double> <!-- between tiles -->
- <sys:Double x:Key="Space.Gutter">12</sys:Double> <!-- between shell panels -->
+ <sys:Double x:Key="Space.Gutter">1</sys:Double> <!-- between docked panels: the seam -->
<sys:Double x:Key="Space.Inset">20</sys:Double> <!-- inside a shell panel -->
<!-- ===== Palette =========================================================
- Two variants of one system. "Ember Graphite" (dark) is the default: warm
- graphite, hue ~40°, brass accent. "Ember Paper" (light) keeps the hue and
- the roles and reflects the lightness ramp — brass darkens to bronze so a
- mark carries the same emphasis against paper that it carried against
- graphite. Every value here MIRRORS a slot in Theme/NotaPalette.cs, which
- serves the custom-drawn layer; the two files must be edited together.
-
- These live in ThemeDictionaries, so views must reach them with
- {DynamicResource Brush.*} — a StaticResource cannot follow the variant. -->
- <ResourceDictionary.ThemeDictionaries>
-
- <ResourceDictionary x:Key="Dark">
- <!-- === Surfaces: the nine steps of the almanac, far to near ===
- Void · App · Gutter · Well · Panel · Card · Raised · Hover · Track off.
- Depth is lightness plus a hairline, never a shadow. Three levels of
- nesting is the limit; a fourth means the layout is wrong. -->
- <SolidColorBrush x:Key="Brush.SurfaceAbyss">#0A0908</SolidColorBrush> <!-- Void: deepest recess, under the transport -->
- <SolidColorBrush x:Key="Brush.BgApp">#0B0A09</SolidColorBrush> <!-- App: window ground and plugin body -->
- <SolidColorBrush x:Key="Brush.Gutter">#0C0B09</SolidColorBrush> <!-- Gutter: the gaps panels float in -->
- <SolidColorBrush x:Key="Brush.BgSunken">#100F0D</SolidColorBrush> <!-- Well: graph windows, inputs, slider tracks -->
- <SolidColorBrush x:Key="Brush.Panel">#141310</SolidColorBrush> <!-- Panel: browser, headers, inspector -->
- <SolidColorBrush x:Key="Brush.SurfaceCard">#171613</SolidColorBrush> <!-- Card: a section inside a device -->
- <SolidColorBrush x:Key="Brush.SurfaceRaised">#1C1A16</SolidColorBrush> <!-- Raised: button at rest -->
- <SolidColorBrush x:Key="Brush.SurfaceHover">#252219</SolidColorBrush> <!-- Hover: button or list row under the pointer -->
- <SolidColorBrush x:Key="Brush.SurfaceHoverClear">#00252219</SolidColorBrush> <!-- Hover at zero alpha: resting row, so the fade doesn't pass through white -->
- <SolidColorBrush x:Key="Brush.TrackOff">#26231E</SolidColorBrush> <!-- Track off: the track of an off toggle -->
- <!-- Pressed goes *into* the recess rather than to a fourth raised step. -->
- <SolidColorBrush x:Key="Brush.SurfaceActive">#100F0D</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.LaneB">#131210</SolidColorBrush> <!-- alternating lane, one hair above the well -->
- <SolidColorBrush x:Key="Brush.ChromeBg">#100F0D</SolidColorBrush> <!-- alias of Well -->
- <!-- Selected row: opaque brass wash, not an alpha tint — the almanac wants a
- predictable colour, and alpha over two different grounds is not one. -->
- <SolidColorBrush x:Key="Brush.SurfaceSelected">#241F17</SolidColorBrush>
-
- <!-- Lines and frames -->
- <SolidColorBrush x:Key="Brush.Hairline">#221F1A</SolidColorBrush> <!-- row dividers, graph-window frame -->
- <SolidColorBrush x:Key="Brush.BorderDefault">#2C2923</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.BorderStrong">#3A362D</SolidColorBrush> <!-- knob cap, hovered border -->
- <SolidColorBrush x:Key="Brush.BorderBrass">#6B5326</SolidColorBrush> <!-- border of an engaged button: brass at 40% -->
- <SolidColorBrush x:Key="Brush.GridBeat">#1E1C18</SolidColorBrush> <!-- grid inside graphs, zero axis -->
- <SolidColorBrush x:Key="Brush.GridBar">#2A2721</SolidColorBrush>
-
- <!-- === Text: eight steps, strictly by descending importance === -->
- <SolidColorBrush x:Key="Brush.TextHeading">#F2EDE1</SolidColorBrush> <!-- Ink 0: page titles, project name. Rare. -->
- <SolidColorBrush x:Key="Brush.TextPrimary">#E9E4D8</SolidColorBrush> <!-- Ink 1: device, track and preset names, values -->
- <SolidColorBrush x:Key="Brush.TextStrong">#C7C0B0</SolidColorBrush> <!-- Ink 2: button text, transport readouts -->
- <SolidColorBrush x:Key="Brush.TextSecondary">#A39D8F</SolidColorBrush> <!-- Ink 3: inactive but readable, metadata -->
- <SolidColorBrush x:Key="Brush.TextMuted">#8D8779</SolidColorBrush> <!-- Ink 4: explanations, units, hints -->
- <SolidColorBrush x:Key="Brush.TextTertiary">#6E6A5E</SolidColorBrush> <!-- Ink 5: caps labels above parameters -->
- <SolidColorBrush x:Key="Brush.TextDisabled">#55514A</SolidColorBrush> <!-- Ink 6: search placeholder, disabled action -->
- <SolidColorBrush x:Key="Brush.TextAxis">#4A463D</SolidColorBrush> <!-- Ink 7: axis labels inside graphs only, mono 7-8px -->
- <SolidColorBrush x:Key="Brush.TextOnAccent">#171613</SolidColorBrush>
-
- <!-- === Brass: the one accent. "Active, selected, changed" and nothing
- else. A second accent must never enter the system. === -->
- <SolidColorBrush x:Key="Brush.Accent">#D8A03D</SolidColorBrush> <!-- arc, fill, playhead, solid button -->
- <SolidColorBrush x:Key="Brush.AccentBright">#F0C060</SolidColorBrush> <!-- Brass Light: text and knob pointer on dark -->
- <SolidColorBrush x:Key="Brush.AccentHover">#E9BE6A</SolidColorBrush> <!-- hover on brass text and links -->
- <SolidColorBrush x:Key="Brush.AccentDeep">#B08536</SolidColorBrush> <!-- press, left half of the loop -->
- <SolidColorBrush x:Key="Brush.AccentDim">#8A6B2E</SolidColorBrush> <!-- Brass Dim: eyebrows, mono section marks -->
- <SolidColorBrush x:Key="Brush.AccentEdge">#5E4A22</SolidColorBrush> <!-- Brass Edge: chip border, link underline -->
- <SolidColorBrush x:Key="Brush.AccentSubtle">#241F17</SolidColorBrush> <!-- Brass Wash: selected-row ground -->
-
- <!-- === Semantic: by purpose only === -->
- <SolidColorBrush x:Key="Brush.Record">#C25B44</SolidColorBrush> <!-- active recording. The only claim on red. -->
- <SolidColorBrush x:Key="Brush.RecordInk">#F4E3DC</SolidColorBrush> <!-- the disc on an engaged record button -->
- <SolidColorBrush x:Key="Brush.Danger">#C2554A</SolidColorBrush> <!-- Alert: overload, clipping -->
- <SolidColorBrush x:Key="Brush.DangerHover">#D0685C</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.DangerBright">#E08A72</SolidColorBrush> <!-- Alert Light: overload readout text on dark -->
- <SolidColorBrush x:Key="Brush.DangerSubtle">#33C2554A</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Warning">#D9C34C</SolidColorBrush> <!-- Caution: meter -6..0 dB -->
- <SolidColorBrush x:Key="Brush.Success">#58B368</SolidColorBrush> <!-- Signal: working meter zone -->
- <SolidColorBrush x:Key="Brush.SuccessDim">#7FB069</SolidColorBrush> <!-- Signal Dim: transport input, metronome -->
-
- <!-- === Role chromas: inside visualisers only, never on a button ===
- When two or three sources share one graph they take these in order. -->
- <SolidColorBrush x:Key="Brush.ChromaTeal">#5B9E9C</SolidColorBrush> <!-- 2nd layer: lows, early reflections, input -->
- <SolidColorBrush x:Key="Brush.ChromaTealLight">#7FC0BE</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromaRose">#B57286</SolidColorBrush> <!-- 3rd layer: right channel, highs, tail -->
- <SolidColorBrush x:Key="Brush.ChromaRoseLight">#D79BAB</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromaSteel">#6D8FB5</SolidColorBrush> <!-- 4th layer, used rarely -->
-
- <!-- Retint Fluent's built-in accent (slider fills, checkboxes, focus) to
- brass so stock controls match the palette instead of the default blue. -->
- <Color x:Key="SystemAccentColor">#D8A03D</Color>
- <Color x:Key="SystemAccentColorLight1">#DEAB52</Color>
- <Color x:Key="SystemAccentColorLight2">#E4B667</Color>
- <Color x:Key="SystemAccentColorLight3">#EAC17C</Color>
- <Color x:Key="SystemAccentColorDark1">#C2902F</Color>
- <Color x:Key="SystemAccentColorDark2">#A87C28</Color>
- <Color x:Key="SystemAccentColorDark3">#8E6820</Color>
-
- <!-- === Track palette: nine roles, one lightness, no track louder than
- another. A group sets the hue; its tracks take neighbouring shades. -->
- <SolidColorBrush x:Key="Brush.Track1">#58B368</SolidColorBrush> <!-- Drums -->
- <SolidColorBrush x:Key="Brush.Track2">#4E9E7A</SolidColorBrush> <!-- Perc -->
- <SolidColorBrush x:Key="Brush.Track3">#3E8E8E</SolidColorBrush> <!-- Bass -->
- <SolidColorBrush x:Key="Brush.Track4">#5AA0B8</SolidColorBrush> <!-- Keys -->
- <SolidColorBrush x:Key="Brush.Track5">#C77F55</SolidColorBrush> <!-- Texture -->
- <SolidColorBrush x:Key="Brush.Track6">#7A6FB0</SolidColorBrush> <!-- FX -->
- <SolidColorBrush x:Key="Brush.Track7">#B05A7A</SolidColorBrush> <!-- Brass -->
- <SolidColorBrush x:Key="Brush.Track8">#9AA64A</SolidColorBrush> <!-- Vox -->
- <SolidColorBrush x:Key="Brush.Track9">#7FA88E</SolidColorBrush> <!-- Return -->
- <SolidColorBrush x:Key="Brush.ReturnA">#7FA88E</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ReturnB">#6B907B</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Master">#D8A03D</SolidColorBrush>
-
- <!-- Depth: an inner top line, never a drop shadow -->
- <BoxShadows x:Key="Shadow.Sunken">inset 0 1 0 0 #80000000</BoxShadows>
- <BoxShadows x:Key="Shadow.Raised">inset 0 1 0 0 #08FFFFFF</BoxShadows>
- </ResourceDictionary>
-
- <ResourceDictionary x:Key="Light">
- <!-- Ember Paper. Same hues, same roles, lightness reflected onto the paper
- ground; brass darkens to bronze so a mark carries the same emphasis.
- Derived with NotaPalette.DeriveLight where that reads true, authored by
- hand for the ramps it inverts (ink, brass structure, track hues). -->
- <SolidColorBrush x:Key="Brush.SurfaceAbyss">#D8D1BE</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.BgApp">#DCD6C5</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Gutter">#E0DAC9</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.BgSunken">#E4DFD1</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Panel">#EAE5D7</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SurfaceCard">#EFEADE</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SurfaceRaised">#F8F5EC</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SurfaceHover">#E7E1D0</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SurfaceHoverClear">#00E7E1D0</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TrackOff">#DBD4C0</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SurfaceActive">#D5CEBB</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.LaneB">#E7E2D4</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromeBg">#E4DFD1</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SurfaceSelected">#F2E4C4</SolidColorBrush>
-
- <!-- Lines and frames -->
- <SolidColorBrush x:Key="Brush.Hairline">#D5CFBE</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.BorderDefault">#D5CEBB</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.BorderStrong">#BDB5A0</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.BorderBrass">#C9A254</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.GridBeat">#DED8C8</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.GridBar">#CFC8B4</SolidColorBrush>
-
- <!-- Text: warm near-black, same eight steps -->
- <SolidColorBrush x:Key="Brush.TextHeading">#1A150E</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextPrimary">#241F17</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextStrong">#3E382C</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextSecondary">#5E5849</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextMuted">#746D5C</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextTertiary">#8A8474</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextDisabled">#9E9786</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextAxis">#ADA694</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.TextOnAccent">#FFFBF2</SolidColorBrush>
-
- <!-- Accent: bronze — brass darkened to hold its emphasis on paper -->
- <SolidColorBrush x:Key="Brush.Accent">#A87415</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.AccentBright">#744D07</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.AccentHover">#8F6110</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.AccentDeep">#7A5008</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.AccentDim">#9C8034</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.AccentEdge">#D3B173</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.AccentSubtle">#F2E4C4</SolidColorBrush>
-
- <!-- Semantic -->
- <SolidColorBrush x:Key="Brush.Record">#B54A32</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.RecordInk">#FFF4EE</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Danger">#B13E33</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.DangerHover">#C64A36</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.DangerBright">#A3391B</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.DangerSubtle">#33B13E33</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Warning">#837010</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Success">#2C7A3E</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.SuccessDim">#609548</SolidColorBrush>
-
- <!-- Role chromas -->
- <SolidColorBrush x:Key="Brush.ChromaTeal">#2F7472</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromaTealLight">#3E8A88</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromaRose">#86465B</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromaRoseLight">#7F2D43</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ChromaSteel">#3E6288</SolidColorBrush>
-
- <Color x:Key="SystemAccentColor">#A87415</Color>
- <Color x:Key="SystemAccentColorLight1">#B98219</Color>
- <Color x:Key="SystemAccentColorLight2">#CA901D</Color>
- <Color x:Key="SystemAccentColorLight3">#DB9E22</Color>
- <Color x:Key="SystemAccentColorDark1">#966611</Color>
- <Color x:Key="SystemAccentColorDark2">#83590E</Color>
- <Color x:Key="SystemAccentColorDark3">#6F4B0B</Color>
-
- <!-- Track palette — the same nine roles, darkened so a clip's content reads -->
- <SolidColorBrush x:Key="Brush.Track1">#328140</SolidColorBrush> <!-- Drums -->
- <SolidColorBrush x:Key="Brush.Track2">#306F53</SolidColorBrush> <!-- Perc -->
- <SolidColorBrush x:Key="Brush.Track3">#256464</SolidColorBrush> <!-- Bass -->
- <SolidColorBrush x:Key="Brush.Track4">#317187</SolidColorBrush> <!-- Keys -->
- <SolidColorBrush x:Key="Brush.Track5">#985127</SolidColorBrush> <!-- Texture -->
- <SolidColorBrush x:Key="Brush.Track6">#4B4082</SolidColorBrush> <!-- FX -->
- <SolidColorBrush x:Key="Brush.Track7">#7F3450</SolidColorBrush> <!-- Brass -->
- <SolidColorBrush x:Key="Brush.Track8">#6C752C</SolidColorBrush> <!-- Vox -->
- <SolidColorBrush x:Key="Brush.Track9">#4D7A5D</SolidColorBrush> <!-- Return -->
- <SolidColorBrush x:Key="Brush.ReturnA">#4D7A5D</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.ReturnB">#3E6A4D</SolidColorBrush>
- <SolidColorBrush x:Key="Brush.Master">#A87415</SolidColorBrush>
-
- <BoxShadows x:Key="Shadow.Sunken">inset 0 1 0 0 #1F000000</BoxShadows>
- <BoxShadows x:Key="Shadow.Raised">inset 0 1 0 0 #66FFFFFF</BoxShadows>
- </ResourceDictionary>
-
- </ResourceDictionary.ThemeDictionaries>
+ No colour lives in this file. Every colour is a token of the active colour
+ theme (Theme/Themes/*.json, see NotaColourTheme.cs): NotaThemeService puts the
+ NotaPalette slot brushes into Application.Resources under their Brush.* keys,
+ and sets the Shadow.* elevations and Fluent's SystemAccentColor ramp from the
+ theme on every switch. Views reach them with {DynamicResource Brush.*} /
+ {DynamicResource Shadow.*}; a StaticResource cannot follow a theme change. -->
</ResourceDictionary>
</Styles.Resources>
- <!-- ===== Motion (almanac § States) =====================================================
+ <!-- ===== Motion (knob dial: 120ms ease-out) =====================================================
Hover and colour change over 120ms ease-out; nothing moves or scales. Real-time views
(meters, playhead, spectra) are custom-drawn and never animate. -->
<Style Selector="Button /template/ ContentPresenter#PART_ContentPresenter, ToggleButton /template/ ContentPresenter#PART_ContentPresenter, ListBoxItem /template/ ContentPresenter#PART_ContentPresenter">
@@ -288,13 +93,13 @@
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
- <Setter Property="Padding" Value="14,0"/>
+ <Setter Property="Padding" Value="10,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextStrong}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="VerticalAlignment" Value="Center"/>
@@ -302,7 +107,7 @@
<Setter Property="VerticalContentAlignment" Value="Center"/>
<!-- A raised face carries a 1px inner highlight on top (Shadow.Raised). The presenter
paints the face, so the highlight rides an overlay above it; styles hide it
- wherever the face is not raised (pressed, solid brass, ghost, engaged). -->
+ wherever the face is not raised (pressed, solid accent, ghost, engaged). -->
<Setter Property="Template">
<ControlTemplate>
<Panel>
@@ -326,34 +131,36 @@
</Style>
<Style Selector="Button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<!-- Pressed goes into the recess: the ground changes, nothing moves. -->
<Style Selector="Button:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceActive}"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentDeep}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="Button:pressed /template/ Border#PART_Lift, Button:disabled /template/ Border#PART_Lift,
- Button.primary /template/ Border#PART_Lift, Button.ghost /template/ Border#PART_Lift,
+ Button.ghost /template/ Border#PART_Lift,
Button.tp-play.playing /template/ Border#PART_Lift, Button.cell /template/ Border#PART_Lift">
<Setter Property="IsVisible" Value="False"/>
</Style>
- <!-- Disabled: the ground drops to the panel colour and the text to Ink 6 — never opacity. -->
+ <!-- Disabled: the ground drops to the panel colour and the text to faint — never opacity. -->
<Style Selector="Button:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Panel}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.Hairline}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
+ <!-- The primary action of a context is set apart by weight and one tone step, not by
+ colour: orange is kept for what is live or chosen. -->
<Style Selector="Button.primary">
- <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
- <Setter Property="BorderThickness" Value="0"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextHeading}"/>
+ <Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style Selector="Button.primary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="Background" Value="{DynamicResource Brush.AccentHover}"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextHeading}"/>
</Style>
<Style Selector="Button.ghost">
@@ -366,7 +173,7 @@
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
</Style>
- <!-- .danger no longer paints red: the almanac gives red to recording alone. A destructive
+ <!-- .danger no longer paints red: red belongs to recording and errors. A destructive
action is an ordinary raised button; its label says what it does. -->
<!-- ===== Toggle buttons ===== -->
@@ -374,10 +181,10 @@
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
- <Setter Property="Padding" Value="12,0"/>
+ <Setter Property="Padding" Value="10,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextStrong}"/>
@@ -388,7 +195,7 @@
<Setter Property="VerticalContentAlignment" Value="Center"/>
<!-- A raised face carries a 1px inner highlight on top (Shadow.Raised). The presenter
paints the face, so the highlight rides an overlay above it; styles hide it
- wherever the face is not raised (pressed, solid brass, ghost, engaged). -->
+ wherever the face is not raised (pressed, solid accent, ghost, engaged). -->
<Setter Property="Template">
<ControlTemplate>
<Panel>
@@ -420,21 +227,23 @@
</Style>
<Style Selector="ToggleButton:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Panel}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.Hairline}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="ToggleButton:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
</Style>
- <!-- Engaged: brass edge and brass ink on the wash. Solid brass is kept for the one
- primary action in a context. -->
- <Style Selector="ToggleButton:checked /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="Background" Value="{DynamicResource Brush.AccentSubtle}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <!-- Toggled on: a solid accent key with derived dark ink ("active").
+ Hover keeps it: the state, not the pointer, owns the colour. -->
+ <Style Selector="ToggleButton:checked /template/ ContentPresenter#PART_ContentPresenter,
+ ToggleButton:checked:pointerover /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="ToggleButton:checked">
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentHover}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<!-- Record: danger tint when engaged -->
<Style Selector="ToggleButton.danger:checked /template/ ContentPresenter#PART_ContentPresenter">
@@ -442,22 +251,21 @@
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Danger}"/>
</Style>
<Style Selector="ToggleButton.danger:checked">
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.RecordInk}"/>
</Style>
- <!-- ===== Transport / toolbar chrome (mockup 1b) ===== -->
- <!-- 28px icon transport buttons on surface-1 -->
+ <!-- ===== Transport / toolbar chrome ===== -->
+ <!-- 26px transport keys: raised, seam edge, bevel -->
<Style Selector="Button.tp-icon, ToggleButton.tp-icon">
<Setter Property="Width" Value="{StaticResource Control.Transport}"/>
<Setter Property="Height" Value="{StaticResource Control.Transport}"/>
<Setter Property="Padding" Value="0"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Tile}"/>
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
- <!-- Record engaged: translucent danger box, red glyph stays visible -->
<!-- Record: at rest a neutral button with a red disc; engaged, solid record red with a
pale disc. The only place red fills a control. -->
<Style Selector="ToggleButton.tp-icon.rec">
@@ -470,15 +278,15 @@
<Style Selector="ToggleButton.tp-icon.rec:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.RecordInk}"/>
</Style>
- <!-- Play: a raised button like its neighbours at rest; while the transport runs it is
- the one solid brass control on the bar (brass means active). -->
+ <!-- Play: a raised key like its neighbours at rest, wider; while the transport runs it is
+ a solid accent key (live). -->
<Style Selector="Button.tp-play">
<Setter Property="Width" Value="{StaticResource Control.Play}"/>
<Setter Property="Height" Value="{StaticResource Control.Transport}"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Tile}"/>
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="Button.tp-play.playing">
@@ -501,53 +309,54 @@
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Success}"/>
</Style>
- <!-- Bordered pill chips (Metro / Snap / add-track etc.), 28px -->
+ <!-- Chips: raised keys like any button, a little tighter. -->
<Style Selector="Button.chip, ToggleButton.chip">
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
- <Setter Property="Padding" Value="9,0"/>
+ <Setter Property="Padding" Value="8,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
- <!-- Engaged chip (Click / Snap / Auto). The .chip Foreground above is a class
- selector declared after the generic ToggleButton:checked rule, so it wins on
- a checked chip and the brass ink never lands — most visible on Ember Paper,
- where secondary text on a brass wash is barely readable. State it here. -->
+ <!-- Engaged chip (MIDI learn…). The .chip Foreground above is a class selector declared
+ after the generic ToggleButton:checked rule, so it would win on a checked chip;
+ state the derived ink here. -->
<Style Selector="ToggleButton.chip:checked">
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style Selector="ToggleButton.chip:checked /template/ ContentPresenter#PART_ContentPresenter">
- <!-- Same reason as the seg switch below: Fluent's checked template paints the
- presenter itself, which beats the control-level Foreground above. -->
- <Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
+ <!-- Fluent's checked template paints the presenter itself, which beats the
+ control-level Foreground above. -->
+ <Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
- <!-- A chip lit by a running feature (Remote on): the engaged look, without being a toggle. -->
+ <!-- A chip lit by a running feature (Remote on): live, so a solid accent key. -->
<Style Selector="Button.chip.lit">
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
- <Setter Property="Background" Value="{DynamicResource Brush.AccentSubtle}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="Button.chip.lit /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="Background" Value="{DynamicResource Brush.AccentSubtle}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
- <Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
+ </Style>
+ <Style Selector="Button.chip.lit /template/ Border#PART_Lift">
+ <Setter Property="IsVisible" Value="False"/>
</Style>
- <!-- bg-sunken well (position / BPM / time-sig) -->
+ <!-- A readout well (BPM, signature): recessed, 26px, a 1px rule edge. -->
<Style Selector="Border.well">
- <Setter Property="BoxShadow" Value="{DynamicResource Shadow.Sunken}"/>
- <Setter Property="Height" Value="28"/>
+ <Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
- <Setter Property="Padding" Value="10,0"/>
+ <Setter Property="Padding" Value="8,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
@@ -574,128 +383,140 @@
<Setter Property="BorderThickness" Value="0"/>
</Style>
- <!-- Transport console (mockup 1b): a recess cut into the chrome holding the
- transport buttons, the position readout and the loop range, so playback reads
- as one object instead of three neighbours. -->
- <!-- The transport bar: an island like the browser and the arrangement — a 60px rounded
- strip on Well floating on the gutter, with the console cut into it. -->
+ <!-- The transport row: a flat, docked 44px strip on the panel tone with a seam under
+ it (the transport row of the top chrome). -->
<Style Selector="Border.transport">
<Setter Property="Height" Value="{StaticResource Control.TransportBar}"/>
- <Setter Property="Padding" Value="14,0"/>
- <Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Panel}"/>
+ <Setter Property="Padding" Value="8,0"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Panel}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
+ <Setter Property="BorderThickness" Value="0,0,0,1"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Docked}"/>
</Style>
- <!-- Transport · position · loop: one 42px recess on Void inside the bar. -->
+ <!-- Transport · position · loop: one 30px recessed group in the row, so playback reads
+ as one object instead of three neighbours. -->
<Style Selector="Border.console">
<Setter Property="Height" Value="{StaticResource Control.Console}"/>
- <Setter Property="Padding" Value="12,0,14,0"/>
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceAbyss}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="Padding" Value="2,0,8,0"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Panel}"/>
- <Setter Property="BoxShadow" Value="{DynamicResource Shadow.Sunken}"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
- <!-- Value-over-label readout cell (tempo / signature / grid / loop). No chrome of
- its own: the text carries the state, so the row scans as a strip of readouts
- rather than a queue of pills. -->
+ <!-- A clickable readout (tap / key / grid / loop): a 26px well holding a mono value and
+ its muted unit on one line, set as "120.0 BPM". -->
<Style Selector="Button.cell, ToggleButton.cell">
- <Setter Property="Height" Value="34"/>
- <Setter Property="Padding" Value="7,0"/>
+ <Setter Property="Height" Value="{StaticResource Control.Shell}"/>
+ <Setter Property="Padding" Value="8,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceHoverClear}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
+ <Setter Property="BorderThickness" Value="1"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Button.cell:pointerover /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton.cell:pointerover /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceInset}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
+ </Style>
+ <Style Selector="Button.cell:pressed /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
</Style>
- <!-- Checked keeps the flat ground; only the ink changes. -->
+ <!-- On (loop): a solid accent key with derived ink, like any toggled-on key. -->
<Style Selector="ToggleButton.cell:checked /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="ToggleButton.cell:checked">
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
- <!-- Segmented control (Arrangement / Session view switch) -->
+ <!-- Segmented group (view switch, mode tabs): raised keys butted square against 1px
+ seams; only the group's outer corners round. The group's ground is
+ the seam, so the spacing between keys draws the seams. -->
<Style Selector="Border.segmented">
- <Setter Property="BoxShadow" Value="{DynamicResource Shadow.Sunken}"/>
- <Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Seam}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Tile}"/>
- <Setter Property="Padding" Value="2"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
+ <Setter Property="ClipToBounds" Value="True"/>
+ <Setter Property="Padding" Value="0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
- <!-- On the bar, the view switch and the master well sit one step up, on Card: the bar
- itself is already Well, so a Well-coloured group would vanish into it. -->
- <Style Selector="Border.transport Border.segmented">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceCard}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="BoxShadow" Value="none"/>
- <Setter Property="Padding" Value="3"/>
+ <Style Selector="Border.segmented StackPanel">
+ <Setter Property="Spacing" Value="1"/>
</Style>
+ <!-- The master well in the transport row: recessed like the console. -->
<Style Selector="Border.transport Border.tp-well">
- <Setter Property="Height" Value="36"/>
- <Setter Property="Padding" Value="10,0"/>
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceCard}"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Tile}"/>
+ <Setter Property="Height" Value="{StaticResource Control.Console}"/>
+ <Setter Property="Padding" Value="8,0"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
+ <Setter Property="BorderThickness" Value="1"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="ToggleButton.seg">
<Setter Property="Height" Value="{StaticResource Control.Seg}"/>
<Setter Property="Padding" Value="10,0"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Badge}"/>
- <Setter Property="FontSize" Value="11"/>
- <Setter Property="Background" Value="Transparent"/>
+ <Setter Property="CornerRadius" Value="0"/>
+ <Setter Property="FontSize" Value="12"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
+ <!-- The view switcher: icon keys, 28 × 24, the glyph centred. -->
+ <Style Selector="ToggleButton.seg.view">
+ <Setter Property="Width" Value="28"/>
+ <Setter Property="Height" Value="24"/>
+ <Setter Property="Padding" Value="0"/>
+ <Setter Property="HorizontalContentAlignment" Value="Center"/>
+ <Setter Property="VerticalContentAlignment" Value="Center"/>
+ </Style>
+ <Style Selector="ToggleButton.seg:pointerover /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
+ </Style>
<Style Selector="ToggleButton.seg:checked /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
- <!-- Dark ink on the brass fill (mockup); set on the presenter so Fluent's checked
+ <!-- Derived ink on the accent fill; set on the presenter so Fluent's checked
foreground doesn't win over the control-level Foreground. -->
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
+ <!-- The weight stays: shell keys size to their text, so a bolder chosen key would widen
+ and push its neighbours. The solid accent fill marks the choice. -->
<Style Selector="ToggleButton.seg:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
- <Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style Selector="ToggleButton.seg:disabled">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
- <!-- ===== ComboBox — bg-sunken well (mockup 1h/1i fields) ===== -->
+ <!-- ===== ComboBox — a recessed field ===== -->
<Style Selector="ComboBox">
- <Setter Property="Height" Value="28"/>
+ <Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="MinHeight" Value="0"/>
- <Setter Property="Padding" Value="9,0"/>
+ <Setter Property="Padding" Value="8,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="PlaceholderForeground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="ComboBox /template/ Border#Background">
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
</Style>
<Style Selector="ComboBox:pointerover /template/ Border#Background">
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
</Style>
<Style Selector="ComboBox:focus /template/ Border#Background">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
@@ -707,29 +528,32 @@
</Style>
<!-- dropdown flyout + items -->
<Style Selector="ComboBox /template/ Popup Border">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceCard}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
</Style>
<Style Selector="ComboBoxItem">
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
- <Setter Property="Padding" Value="9,5"/>
+ <Setter Property="Padding" Value="8,4"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Clip}"/>
</Style>
- <Style Selector="ComboBoxItem:pointerover /template/ ContentPresenter">
+ <Style Selector="ComboBoxItem:selected /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
</Style>
- <Style Selector="ComboBoxItem:selected /template/ ContentPresenter">
- <Setter Property="Background" Value="{DynamicResource Brush.AccentSubtle}"/>
+ <!-- Hover is a full accent fill with derived ink, like a menu item. -->
+ <Style Selector="ComboBoxItem:pointerover /template/ ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
- <!-- ===== CheckBox — drawn as the almanac switch ==============================
- The almanac has no checkbox: an on/off choice is an 18×10 pill with a 7px knob
- inset 1.5, and its word sits to the right — 11px regular in the shell. State reads
- from colour and from the knob's position. Disabled takes the next ink step and the
- panel ground, never opacity. -->
+ <!-- ===== CheckBox — drawn as a latching switch ================================
+ An on/off choice is an 18×10 track with a 7px knob inset 1.5, its word to the
+ right — 12px in the shell. Square-cornered like every key; on is the accent
+ (chosen). Disabled takes the faint ink and the panel ground, never opacity. -->
<Style Selector="CheckBox">
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="MinHeight" Value="0"/>
@@ -741,9 +565,9 @@
CornerRadius="{StaticResource Radius.Pill}"
Background="{DynamicResource Brush.TrackOff}"
BorderBrush="Transparent" BorderThickness="1">
- <Ellipse x:Name="Knob" Width="7" Height="7" HorizontalAlignment="Left"
- VerticalAlignment="Center" Margin="0.5,0,0,0"
- Fill="{DynamicResource Brush.TextTertiary}"/>
+ <Rectangle x:Name="Knob" Width="7" Height="7" HorizontalAlignment="Left"
+ VerticalAlignment="Center" Margin="0.5,0,0,0" RadiusX="2" RadiusY="2"
+ Fill="{DynamicResource Brush.TextTertiary}"/>
</Border>
<ContentPresenter x:Name="PART_ContentPresenter" Grid.Column="1"
Margin="8,0,0,0" VerticalAlignment="Center"
@@ -758,7 +582,7 @@
<Style Selector="CheckBox:checked /template/ Border#Track">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
- <Style Selector="CheckBox:checked /template/ Ellipse#Knob">
+ <Style Selector="CheckBox:checked /template/ Rectangle#Knob">
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="0,0,0.5,0"/>
<Setter Property="Fill" Value="{DynamicResource Brush.Panel}"/>
@@ -766,7 +590,7 @@
<Style Selector="CheckBox:indeterminate /template/ Border#Track">
<Setter Property="Background" Value="{DynamicResource Brush.BorderStrong}"/>
</Style>
- <Style Selector="CheckBox:indeterminate /template/ Ellipse#Knob">
+ <Style Selector="CheckBox:indeterminate /template/ Rectangle#Knob">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0"/>
</Style>
@@ -781,74 +605,72 @@
</Style>
<Style Selector="CheckBox:disabled /template/ Border#Track">
<Setter Property="Background" Value="{DynamicResource Brush.Panel}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.Hairline}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
</Style>
- <Style Selector="CheckBox:disabled /template/ Ellipse#Knob">
+ <Style Selector="CheckBox:disabled /template/ Rectangle#Knob">
<Setter Property="Fill" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
- <!-- ===== Form text field (bg-sunken well, matches the ComboBox field) =====
+ <!-- ===== Form text field (recessed, matches the ComboBox field) =====
Opt-in via Classes="field" — the plain TextBox stays the Fluent default so
inline editors (rename popups, macro names) keep their flat look. -->
<Style Selector="TextBox.field">
- <Setter Property="Height" Value="28"/>
+ <Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="MinHeight" Value="0"/>
- <Setter Property="Padding" Value="9,0"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="Padding" Value="8,0"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
- <Setter Property="CaretBrush" Value="{DynamicResource Brush.AccentBright}"/>
+ <Setter Property="CaretBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="TextBox.field /template/ Border#PART_BorderElement">
- <Setter Property="BoxShadow" Value="{DynamicResource Shadow.Sunken}"/>
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="MinHeight" Value="0"/>
</Style>
<Style Selector="TextBox.field:pointerover /template/ Border#PART_BorderElement">
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
</Style>
<Style Selector="TextBox.field:focus /template/ Border#PART_BorderElement">
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
- <!-- ===== Keyboard focus: a brass edge, no ring and no glow (almanac § States) ===== -->
+ <!-- ===== Keyboard focus: a 1px accent edge, no ring and no glow ===== -->
<Style Selector="Button:focus-visible /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="ToggleButton:focus-visible /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="ComboBox:focus-visible /template/ Border#Background">
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="CheckBox:focus-visible /template/ Border#Track">
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderBrass}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<!-- ===== Text roles ===== -->
<!-- ===== Type ============================================================
- Two scales. The shell scale runs 26 · 13 · 12 · 11 · 10; a device lives in 260px,
- so its scale sits two or three steps lower (12 · 9 · 8 · 7). 7px is the floor and
- only for a caps label — if a caption does not fit, the layout shrinks, not the type.
- Mono means measurement; prose never takes it. Caps and tracking are part of the
- role: the strings are uppercased at the call site, the tracking lives here.
+ The hierarchy: nothing in the shell is larger than 13 except the position
+ readout; chrome text is 11–12. Device text sits lower (8–10.5) because a card keeps
+ Nota's 260px frame. Labels are sentence case at letter-spacing 0 — no uppercase
+ tracked labels anywhere; NotaText.Label turns the caps
+ strings views still pass into sentence case. Mono means a number you read.
Mirrored as constants in Theme/NotaFonts.cs (NotaType). -->
<!-- Shell scale -->
- <Style Selector="TextBlock.Title"> <!-- section title: 26 / 600 / −.015em -->
- <Setter Property="FontSize" Value="26"/>
+ <Style Selector="TextBlock.Title"> <!-- modal / section heading: 13 / 600 -->
+ <Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
- <Setter Property="LetterSpacing" Value="-0.39"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextHeading}"/>
</Style>
- <Style Selector="TextBlock.Heading"> <!-- project name in the header: 13 / 600 -->
+ <Style Selector="TextBlock.Heading"> <!-- project name: 13 / 600 -->
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
@@ -858,49 +680,44 @@
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
- <Style Selector="TextBlock.Caption"> <!-- explanation, hint: 11 / 400 / 1.65 -->
+ <Style Selector="TextBlock.Caption"> <!-- supporting copy, hint: 11 / 400 / 1.5, secondary -->
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="Normal"/>
- <Setter Property="LineHeight" Value="18"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
+ <Setter Property="LineHeight" Value="16"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="TextBlock.SectionLabel"> <!-- panel group heading: 10 / 700 / .14em caps -->
- <Setter Property="FontSize" Value="10"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="LetterSpacing" Value="1.4"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Style Selector="TextBlock.SectionLabel"> <!-- panel group heading: 11 / 600, muted, sentence case -->
+ <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontWeight" Value="SemiBold"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
- <!-- The caption under a transport readout (BPM / SIG / GRID / LOOP). It labels a
- parameter, so it takes the device label role rather than the shell group heading:
- smaller and dimmer so the value above it leads. -->
- <Style Selector="TextBlock.CellLabel"> <!-- 8 / 700 / .1em caps -->
+ <!-- The unit beside a readout (BPM, Loop, Grid): set in Geist 500 10px muted. -->
+ <Style Selector="TextBlock.CellLabel"> <!-- 10 / 500, muted -->
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
- <Setter Property="FontSize" Value="8"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="LetterSpacing" Value="0.8"/>
- <Setter Property="LineHeight" Value="10"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Setter Property="FontSize" Value="10"/>
+ <Setter Property="FontWeight" Value="Medium"/>
+ <Setter Property="LineHeight" Value="12"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<Style Selector="TextBlock.Mono"> <!-- family only; size comes from the role -->
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
</Style>
- <Style Selector="TextBlock.Readout"> <!-- transport position and tempo: mono 13 / 500 -->
+ <Style Selector="TextBlock.Readout"> <!-- transport numbers: mono 13 / 400 -->
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
<Setter Property="FontSize" Value="13"/>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextStrong}"/>
+ <Setter Property="FontWeight" Value="Normal"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
- <Style Selector="TextBlock.Value"> <!-- value in a row, metadata: mono 10 / 400 -->
+ <Style Selector="TextBlock.Value"> <!-- value in a row, metadata: mono 11 / 400 -->
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
- <Setter Property="FontSize" Value="10"/>
+ <Setter Property="FontSize" Value="11"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="TextBlock.Eyebrow"> <!-- eyebrow, format badge: mono 9 / 500 / .18em caps -->
+ <Style Selector="TextBlock.Eyebrow"> <!-- format badge: mono 10 / 400, muted, as written -->
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
- <Setter Property="FontSize" Value="9"/>
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="LetterSpacing" Value="1.62"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentDim}"/>
+ <Setter Property="FontSize" Value="10"/>
+ <Setter Property="FontWeight" Value="Normal"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<!-- Device scale (inside a 260px card) -->
@@ -909,34 +726,31 @@
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
- <Style Selector="TextBlock.DeviceSection"> <!-- 9 / 700 / .12em caps -->
+ <Style Selector="TextBlock.DeviceSection"> <!-- section title: 10.5 / 600, muted -->
+ <Setter Property="FontSize" Value="10.5"/>
+ <Setter Property="FontWeight" Value="SemiBold"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
+ </Style>
+ <Style Selector="TextBlock.RowLabel"> <!-- slider-row label: 9 / 500 -->
<Setter Property="FontSize" Value="9"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="LetterSpacing" Value="1.08"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Setter Property="FontWeight" Value="Medium"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="TextBlock.RowLabel"> <!-- slider-row label: 8 / 700 / .1em caps -->
+ <Style Selector="TextBlock.KnobLabel"> <!-- the control's name: 8 / 500 -->
<Setter Property="FontSize" Value="8"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="LetterSpacing" Value="0.8"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
- </Style>
- <Style Selector="TextBlock.KnobLabel"> <!-- under a knob: 7 / 700 / .08em caps — the floor -->
- <Setter Property="FontSize" Value="7"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="LetterSpacing" Value="0.56"/>
+ <Setter Property="FontWeight" Value="Medium"/>
<Setter Property="LineHeight" Value="9"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="TextBlock.KnobValue"> <!-- parameter value: mono 7 -->
+ <Style Selector="TextBlock.KnobValue"> <!-- parameter value: mono 8 -->
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
- <Setter Property="FontSize" Value="7"/>
+ <Setter Property="FontSize" Value="8"/>
<Setter Property="LineHeight" Value="10"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
- <Style Selector="TextBlock.Axis"> <!-- axis label inside a graph: mono 7 -->
+ <Style Selector="TextBlock.Axis"> <!-- tick label inside a graph: mono 7.5 -->
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
- <Setter Property="FontSize" Value="7"/>
+ <Setter Property="FontSize" Value="7.5"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextAxis}"/>
</Style>
@@ -957,18 +771,18 @@
<!-- ===== Lists ===== -->
<Style Selector="ListBox">
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Panel}"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
</Style>
- <!-- A list row: 26px, one line of text (almanac § layout). -->
+ <!-- A list row: 26px, one line of text. Selected = raised hover + a 2px accent tick. -->
<Style Selector="ListBoxItem">
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="MinHeight" Value="{StaticResource Control.Shell}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Clip}"/>
<!-- Not Transparent: that is #00FFFFFF, and the 120ms brush fade to a dark hover
would pass through a translucent white — a visible flash on every hover. -->
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHoverClear}"/>
@@ -985,30 +799,33 @@
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="0"/>
</Style>
+ <!-- Tabs: 12 / 500 secondary; the selected tab is primary ink over a 2px accent
+ underline, not a fill. -->
<Style Selector="TabItem">
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
- <Setter Property="FontSize" Value="10"/>
+ <Setter Property="FontSize" Value="12"/>
+ <Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="4,4"/>
<Setter Property="MinHeight" Value="0"/>
</Style>
<Style Selector="TabItem:selected">
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TabItem:pointerover /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
</Style>
<Style Selector="TabItem:selected /template/ Border#PART_LayoutRoot">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceSelected}"/>
+ <Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="TabItem /template/ Border#PART_SelectedPipe">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<!-- ===== Browser icon rail (custom vertical tabs) ===== -->
- <!-- Full-bleed 36px tab in a 40px rail; the active one is marked by a 2px brass edge
- on the left rather than a filled chip, so the rail stays quiet (mockup 1a). -->
+ <!-- Full-bleed 36px tab in a 40px rail; the active one is marked by a 2px accent edge
+ on the left and an accent icon rather than a filled chip, so the rail stays quiet. -->
<Style Selector="Border.RailTab">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Height" Value="36"/>
@@ -1016,13 +833,13 @@
<Style Selector="Border.RailTab:pointerover">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
</Style>
- <Style Selector="Border.RailTab Path">
- <Setter Property="Stroke" Value="{DynamicResource Brush.TextSecondary}"/>
+ <Style Selector="Border.RailTab app|Glyph">
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="Border.RailTab.active Path">
- <Setter Property="Stroke" Value="{DynamicResource Brush.AccentBright}"/>
+ <Style Selector="Border.RailTab.active app|Glyph">
+ <Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
- <!-- The active edge: a 2px brass bar inset from the tab's top and bottom. -->
+ <!-- The active edge: a 2px accent bar inset from the tab's top and bottom. -->
<Style Selector="Border.RailBar">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Width" Value="2"/>
@@ -1035,7 +852,7 @@
</Style>
<!-- ===== Browser list (compact index rows, mockup 1a) ===== -->
- <!-- Single-line 24px rows, full-bleed: the selection wash and its brass left edge run
+ <!-- Single-line 24px rows, full-bleed: the selection ground and its accent left edge run
to both margins, so the list reads as one column rather than a stack of chips. -->
<Style Selector="ListBox.browser">
<Setter Property="Background" Value="Transparent"/>
@@ -1072,24 +889,49 @@
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="TextBlock.RowPrefix">
- <Setter Property="FontSize" Value="11"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
- </Style>
- <!-- Row metadata on the right: mono, like every other measurement-ish value. -->
+ <!-- Row metadata on the right: mono, like every other measurement-ish value, and one ink
+ step under the name's tertiary neighbours so the names lead (T3.3 still holds). -->
<Style Selector="TextBlock.RowTag">
<Setter Property="FontFamily" Value="{StaticResource Font.Mono}"/>
<Setter Property="FontSize" Value="10"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextFaint}"/>
</Style>
<Style Selector="ListBoxItem:selected TextBlock.RowTag">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
- <Style Selector="TextBlock.GroupLabel">
- <Setter Property="FontSize" Value="10"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="LetterSpacing" Value="1.4"/>
- <Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
+
+ <!-- Theme cards (Preferences → Appearance): a row of previews with no list chrome. The
+ frame is always 2px; state changes only its colour — seam at rest, rule on hover,
+ the accent when chosen. -->
+ <Style Selector="ListBox.themes">
+ <Setter Property="Background" Value="Transparent"/>
+ <Setter Property="BorderThickness" Value="0"/>
+ <Setter Property="Padding" Value="0"/>
+ </Style>
+ <Style Selector="ListBox.themes ListBoxItem">
+ <Setter Property="Padding" Value="0"/>
+ <Setter Property="MinHeight" Value="0"/>
+ <Setter Property="CornerRadius" Value="0"/>
+ </Style>
+ <Style Selector="ListBox.themes ListBoxItem /template/ ContentPresenter#PART_ContentPresenter, ListBox.themes ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter, ListBox.themes ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="Transparent"/>
+ </Style>
+ <Style Selector="Border.ThemeFrame">
+ <Setter Property="BorderThickness" Value="2"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Tile}"/>
+ <Setter Property="ClipToBounds" Value="True"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
+ </Style>
+ <Style Selector="ListBox.themes ListBoxItem:pointerover Border.ThemeFrame">
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
+ </Style>
+ <Style Selector="ListBox.themes ListBoxItem:selected Border.ThemeFrame">
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
+ </Style>
+ <Style Selector="TextBlock.GroupLabel"> <!-- browser section: 11 / 600, muted, sentence case -->
+ <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontWeight" Value="SemiBold"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<!-- ===== Flat search box ===== -->
@@ -1100,9 +942,9 @@
<Setter Property="Padding" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
- <Setter Property="CaretBrush" Value="{DynamicResource Brush.AccentBright}"/>
+ <Setter Property="CaretBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="TextBox.search /template/ Border#PART_BorderElement">
@@ -1119,17 +961,27 @@
<Setter Property="BorderThickness" Value="0"/>
</Style>
- <!-- ===== Context / flyout menus (Ember Graphite) =====
- Recolours MenuFlyout + ContextMenu popups and their items to match the app
- instead of the default Fluent light-ish menu. -->
+ <!-- ===== Menus, flyouts, drop-downs, tooltips: floating layers =====
+ Raised grey, 3px corners, a seam ring. Avalonia draws each popup in a window of its
+ own, sized to its content, so a blurred shadow would be clipped at the popup's edge;
+ these carry the seam ring only, and Shadow.Popover / Shadow.Modal are for overlays
+ drawn inside the main window (command palette). Menu items are 24px; hover is a
+ full accent fill with derived ink. -->
<Style Selector="MenuFlyoutPresenter">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceCard}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="Padding" Value="4"/>
</Style>
- <!-- A flyout whose content draws its own card (Connect Phone): no Fluent frame around it. -->
+ <!-- A plain flyout (a popover with its own content). -->
+ <Style Selector="FlyoutPresenter">
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
+ <Setter Property="BorderThickness" Value="1"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
+ </Style>
+ <!-- A flyout whose content draws its own card (Connect Phone): no frame around it. -->
<Style Selector="FlyoutPresenter.bare">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
@@ -1138,8 +990,8 @@
<Setter Property="MaxHeight" Value="720"/>
</Style>
<Style Selector="ContextMenu">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceCard}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
<Setter Property="Padding" Value="4"/>
@@ -1148,42 +1000,76 @@
<Style Selector="MenuItem">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
- <Setter Property="FontSize" Value="11"/>
+ <Setter Property="FontSize" Value="12"/>
+ <Setter Property="MinHeight" Value="24"/>
+ <Setter Property="Padding" Value="8,0"/>
</Style>
- <!-- Root Border of the MenuItem template: transparent by default, warm brass-tinted
- on highlight (Avalonia marks the hovered flyout item :selected). -->
+ <!-- Root Border of the MenuItem template: transparent by default, a full accent fill on
+ highlight (Avalonia marks the hovered flyout item :selected). -->
<Style Selector="MenuItem /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="Transparent"/>
- <Setter Property="CornerRadius" Value="{StaticResource Radius.Badge}"/>
- <Setter Property="Margin" Value="2,1"/>
- </Style>
- <Style Selector="MenuItem:selected /template/ Border#PART_LayoutRoot">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceSelected}"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Clip}"/>
+ <Setter Property="Margin" Value="0"/>
</Style>
- <Style Selector="MenuItem:pointerover /template/ Border#PART_LayoutRoot">
- <Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
+ <Style Selector="MenuItem:selected /template/ Border#PART_LayoutRoot,
+ MenuItem:pointerover /template/ Border#PART_LayoutRoot">
+ <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
- <Style Selector="MenuItem:selected">
- <Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
+ <Style Selector="MenuItem:selected, MenuItem:pointerover">
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="MenuItem:disabled">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
- <!-- Shortcut on the right of an item (MenuItem.InputGesture): the label's own ink, faded,
- so it follows hover / disabled but stays secondary to the command name. -->
+ <Style Selector="MenuItem:disabled /template/ Border#PART_LayoutRoot">
+ <Setter Property="Background" Value="Transparent"/>
+ </Style>
+ <!-- Shortcut on the right of an item (MenuItem.InputGesture): muted ink — the next ink
+ step, not opacity — and the derived ink while the item is highlighted. -->
<Style Selector="MenuItem /template/ TextBlock#PART_InputGestureText">
- <Setter Property="Foreground" Value="{Binding $parent[MenuItem].Foreground}"/>
- <Setter Property="Opacity" Value="0.45"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
<Setter Property="Margin" Value="20,0,0,0"/>
</Style>
+ <Style Selector="MenuItem:selected /template/ TextBlock#PART_InputGestureText,
+ MenuItem:pointerover /template/ TextBlock#PART_InputGestureText">
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
+ </Style>
+
+ <!-- The menubar's own triggers (File, Edit…): secondary ink that lifts to the raised tone
+ on hover or while open — only the items inside a menu fill with the accent. -->
+ <Style Selector="Menu > MenuItem">
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
+ <Setter Property="Padding" Value="8,0"/>
+ <Setter Property="MinHeight" Value="22"/>
+ </Style>
+ <Style Selector="Menu > MenuItem:selected /template/ Border#PART_LayoutRoot,
+ Menu > MenuItem:pointerover /template/ Border#PART_LayoutRoot,
+ Menu > MenuItem:open /template/ Border#PART_LayoutRoot">
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
+ </Style>
+ <Style Selector="Menu > MenuItem:selected, Menu > MenuItem:pointerover, Menu > MenuItem:open">
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
+ </Style>
<Style Selector="Separator">
- <Setter Property="Background" Value="{DynamicResource Brush.BorderDefault}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="Height" Value="1"/>
- <Setter Property="Margin" Value="6,4"/>
+ <Setter Property="Margin" Value="4,4"/>
</Style>
- <!-- ===== Scrollbars (thin, subtle, brass on hover — Ember Graphite) ===== -->
+ <!-- Tooltip: a small raised popover, primary ink, 11px. -->
+ <Style Selector="ToolTip">
+ <Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
+ <Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
+ <Setter Property="BorderThickness" Value="1"/>
+ <Setter Property="CornerRadius" Value="{StaticResource Radius.Control}"/>
+ <Setter Property="Padding" Value="7,4"/>
+ <Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
+ <Setter Property="FontSize" Value="11"/>
+ </Style>
+
+ <!-- ===== Scrollbars: a thin muted thumb on a transparent track ===== -->
<Style Selector="ScrollBar">
<Setter Property="Background" Value="Transparent"/>
</Style>
@@ -1194,16 +1080,16 @@
<Setter Property="Height" Value="9"/>
</Style>
<Style Selector="ScrollBar /template/ Thumb">
- <Setter Property="Background" Value="{DynamicResource Brush.BorderStrong}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Pill}"/>
<Setter Property="MinWidth" Value="5"/>
<Setter Property="MinHeight" Value="5"/>
</Style>
<Style Selector="ScrollBar:pointerover /template/ Thumb">
- <Setter Property="Background" Value="{DynamicResource Brush.TextTertiary}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.TextFaint}"/>
</Style>
<Style Selector="ScrollBar /template/ Thumb:pressed">
- <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
+ <Setter Property="Background" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<!-- Track buttons (the little arrows) are noise at this scale — hide them. -->
<Style Selector="ScrollBar /template/ RepeatButton">
diff --git a/src/managed/Nota.App/Theme/NotaThemeService.cs b/src/managed/Nota.App/Theme/NotaThemeService.cs
index a0552963..dcf2b3aa 100644
--- a/src/managed/Nota.App/Theme/NotaThemeService.cs
+++ b/src/managed/Nota.App/Theme/NotaThemeService.cs
@@ -1,23 +1,28 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// Owns which palette variant the app is wearing. Two layers have to agree:
+// Owns which colour theme the app is wearing (spec 011). Three layers have to agree:
//
-// • XAML — Application.RequestedThemeVariant picks the Light/Dark branch of the
-// ThemeDictionaries in NotaTheme.axaml (and of FluentTheme's own resources),
-// and every {DynamicResource Brush.*} re-resolves on its own.
-// • C# — NotaPalette.Apply() re-tints the shared brush objects that the
-// custom-drawn layer holds. Those changes don't reach a Render() override
-// that never subscribed to the brush, so we force a repaint of every window.
+// • Slots — NotaPalette.Apply() re-tints the shared brush objects. The same objects are
+// published once into Application.Resources under their Brush.* keys, so
+// every {DynamicResource Brush.*} in XAML follows along with no lookup.
+// • Non-brush resources — shadows (BoxShadows) and Fluent's SystemAccentColor ramp are
+// values, not brushes, so they are re-set from the theme on every switch.
+// • Variant — Application.RequestedThemeVariant is the theme's kind (Dark/Light), which
+// drives Fluent's own internals and the OS window chrome. In follow-system mode
+// it is Default: Avalonia resolves it from the OS and raises
+// ActualThemeVariantChanged when the OS flips, which swaps the theme.
//
-// "System" is expressed as ThemeVariant.Default: Avalonia resolves it from the OS and
-// raises ActualThemeVariantChanged when the OS flips, which is the single place the
-// managed palette follows from.
+// Custom-drawn Render() overrides read slot colours without subscribing to them, so every
+// switch forces a repaint of every window.
using System;
+using System.Collections.Generic;
+using System.Linq;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Media;
using Avalonia.Styling;
using Avalonia.VisualTree;
using Nota.Application;
@@ -27,43 +32,84 @@ namespace Nota.App;
internal static class NotaThemeService
{
private static bool _hooked;
+ private static bool _published;
+ private static AppearanceChoice _choice = new(false, Appearance.StudioDark, Appearance.StudioDark, Appearance.StudioLight);
- /// <summary>Apply a mode and keep following it. Safe to call repeatedly.</summary>
- public static void Set(AppTheme mode)
+ /// <summary>The appearance being followed.</summary>
+ public static AppearanceChoice Choice => _choice;
+
+ /// <summary>Every loaded theme id → whether it is dark — what <see cref="Appearance.Resolve"/> needs.</summary>
+ public static IReadOnlyDictionary<string, bool> KnownThemes =>
+ NotaThemes.BuiltIn.ToDictionary(t => t.Id, t => t.IsDark);
+
+ /// <summary>Wear <paramref name="choice"/> and keep following it. Safe to call repeatedly.</summary>
+ public static void Set(AppearanceChoice choice)
{
var app = Avalonia.Application.Current;
if (app is null) return;
+ Publish(app);
+ _choice = choice;
if (!_hooked)
{
- app.ActualThemeVariantChanged += (_, _) => SyncManagedPalette();
+ app.ActualThemeVariantChanged += (_, _) => { if (_choice.FollowSystem) ApplyActive(); };
_hooked = true;
}
- app.RequestedThemeVariant = mode switch
- {
- AppTheme.Light => ThemeVariant.Light,
- AppTheme.Dark => ThemeVariant.Dark,
- _ => ThemeVariant.Default, // follow the OS
- };
-
- // ActualThemeVariantChanged only fires when the resolved variant actually moved;
- // sync unconditionally so the first call (and a no-op re-apply) still lands.
- SyncManagedPalette();
+ if (choice.FollowSystem)
+ app.RequestedThemeVariant = ThemeVariant.Default; // follow the OS
+ // A single theme sets its own kind inside ApplyActive.
+ ApplyActive();
}
- private static void SyncManagedPalette()
+ // The theme the choice names right now — for follow system, the one for the OS mode.
+ private static void ApplyActive()
{
var app = Avalonia.Application.Current;
if (app is null) return;
+ // With no OS signal Avalonia reports Light, which is the spec's fallback too.
+ bool osDark = app.ActualThemeVariant == ThemeVariant.Dark;
+ var theme = NotaThemes.Find(_choice.Active(osDark)) ?? NotaThemes.Default;
- var want = app.ActualThemeVariant == ThemeVariant.Light ? NotaThemeVariant.Light : NotaThemeVariant.Dark;
- if (NotaPalette.Variant == want) return;
+ if (!_choice.FollowSystem)
+ app.RequestedThemeVariant = theme.IsDark ? ThemeVariant.Dark : ThemeVariant.Light;
+ if (ReferenceEquals(NotaPalette.Theme, theme)) return;
- NotaPalette.Apply(want);
+ NotaPalette.Apply(theme);
+ ApplyResources(app, theme);
RepaintEverything();
}
+ // Put the slot brushes into the application resources once. They are re-tinted in
+ // place afterwards, so the resource entries never need replacing.
+ private static void Publish(Avalonia.Application app)
+ {
+ if (_published) return;
+ foreach (var (key, brush) in NotaPalette.AllKeys) app.Resources[key] = brush;
+ _published = true;
+ }
+
+ // The resources that are values rather than brushes: Studio's elevation, built from the
+ // theme's colours (geometry is structure — specs/010 data-model § Elevation), and the
+ // accent ramp Fluent's own templates read.
+ private static void ApplyResources(Avalonia.Application app, NotaColourTheme t)
+ {
+ var res = app.Resources;
+ res["Shadow.Raised"] = new BoxShadows(new BoxShadow { IsInset = true, OffsetY = 1, Color = t["ShadowBevel"] });
+ res["Shadow.Sunken"] = new BoxShadows(new BoxShadow { IsInset = true, Spread = 1, Color = t["Rule"] });
+ res["Shadow.Popover"] = new BoxShadows(new BoxShadow { Spread = 1, Color = t["Seam"] },
+ new[] { new BoxShadow { OffsetY = 10, Blur = 28, Color = t["ShadowPopover"] } });
+ res["Shadow.Modal"] = new BoxShadows(new BoxShadow { Spread = 1, Color = t["Seam"] },
+ new[] { new BoxShadow { OffsetY = 24, Blur = 64, Color = t["ShadowModal"] } });
+
+ res["SystemAccentColor"] = t["SystemAccent"];
+ for (int i = 1; i <= 3; i++)
+ {
+ res[$"SystemAccentColorLight{i}"] = t[$"SystemAccentLight{i}"];
+ res[$"SystemAccentColorDark{i}"] = t[$"SystemAccentDark{i}"];
+ }
+ }
+
// Custom-drawn views read palette brushes inside Render() without ever binding to
// them, so a colour change is invisible until the visual is asked to draw again.
private static void RepaintEverything()
diff --git a/src/managed/Nota.App/Theme/Themes/ember-graphite.json b/src/managed/Nota.App/Theme/Themes/ember-graphite.json
new file mode 100644
index 00000000..92ced817
--- /dev/null
+++ b/src/managed/Nota.App/Theme/Themes/ember-graphite.json
@@ -0,0 +1,114 @@
+{
+ "formatVersion": 1,
+ "id": "ember-graphite",
+ "name": "Ember Graphite",
+ "kind": "dark",
+ "colors": {
+ "SurfaceAbyss": "#0A0908",
+ "BgApp": "#0B0A09",
+ "Gutter": "#0C0B09",
+ "BgSunken": "#100F0D",
+ "CanvasBg": "#121110",
+ "SurfaceDeep": "#131210",
+ "LaneB": "#131210",
+ "Panel": "#141310",
+ "SurfaceCard": "#171613",
+ "SurfaceInset": "#1A1815",
+ "SurfaceRaised": "#1C1A16",
+ "SurfaceHover": "#252219",
+ "TrackOff": "#26231E",
+ "SurfaceActive": "#100F0D",
+ "GridSubBeat": "#191712",
+ "GridBeat": "#1E1C18",
+ "GridRow": "#141311",
+ "GridBar": "#2A2721",
+ "GraphBorder": "#221F1A",
+ "WellGrid": "#232019",
+ "PadGrid": "#1C1A16",
+ "TextHeading": "#F2EDE1",
+ "TextPrimary": "#E9E4D8",
+ "TextStrong": "#C7C0B0",
+ "TextSecondary": "#A39D8F",
+ "TextMuted": "#8F897C",
+ "TextTertiary": "#716D60",
+ "TextDisabled": "#646054",
+ "TextAxis": "#65614F",
+ "TextOnAccent": "#171613",
+ "TextFaint": "#646054",
+ "VizInk": "#D8D3C8",
+ "VizGrid": "#232019",
+ "BorderDefault": "#2C2923",
+ "BorderStrong": "#3A362D",
+ "BorderBrass": "#6B5326",
+ "Seam": "#0C0B09",
+ "Rule": "#3A362D",
+ "Accent": "#D8A03D",
+ "AccentBright": "#F0C060",
+ "AccentHover": "#E9BE6A",
+ "AccentDeep": "#B08536",
+ "AccentDim": "#8A6B2E",
+ "AccentEdge": "#5E4A22",
+ "AccentMute": "#7A6130",
+ "AccentPale": "#FCE5B8",
+ "AccentSubtle": "#241F17",
+ "Record": "#BE563E",
+ "RecordInk": "#F4E3DC",
+ "Success": "#58B368",
+ "SuccessDim": "#7FB069",
+ "Warning": "#D9C34C",
+ "Mute": "#D9C34C",
+ "Solo": "#6D8FB5",
+ "Danger": "#C2554A",
+ "DangerHover": "#D0685C",
+ "DangerBright": "#E08A72",
+ "DangerDeep": "#A8453B",
+ "DangerPale": "#F0928A",
+ "Teal": "#5B9E9C",
+ "TealBright": "#7FC0BE",
+ "Rose": "#B57286",
+ "RoseBright": "#D79BAB",
+ "Steel": "#6D8FB5",
+ "Sage": "#6FA383",
+ "Threshold": "#C9884F",
+ "Marker": "#7FCCE1",
+ "MarkerHot": "#CDEEF8",
+ "Frozen": "#7FC7EC",
+ "SignalIn": "#52604F",
+ "SignalInFill": "#3E4A3C",
+ "HandleSel": "#FFFFFF",
+ "SelHeaderBg": "#241F17",
+ "FrozenHeaderBg": "#1B2A33",
+ "MuteTint": "#3A2320",
+ "Veil": "#121418",
+ "TooltipBg": "#18181E",
+ "TooltipText": "#F0E4C8",
+ "KeyWhite": "#1C1A16",
+ "KeyBlack": "#0E0D0B",
+ "MiniKeyWhite": "#2A2721",
+ "MiniKeyBlack": "#151310",
+ "ShadeUp": "#FFFFFF",
+ "ShadeDown": "#141210",
+ "Master": "#8D8779",
+ "Track1": "#58B368",
+ "Track2": "#4E9E7A",
+ "Track3": "#3E8E8E",
+ "Track4": "#5AA0B8",
+ "Track5": "#C77F55",
+ "Track6": "#7A6FB0",
+ "Track7": "#B05A7A",
+ "Track8": "#9AA64A",
+ "Track9": "#7FA88E",
+ "ReturnA": "#7FA88E",
+ "ReturnB": "#6B907B",
+ "SystemAccent": "#D8A03D",
+ "SystemAccentLight1": "#DDAB54",
+ "SystemAccentLight2": "#E1B76C",
+ "SystemAccentLight3": "#E6C283",
+ "SystemAccentDark1": "#C29037",
+ "SystemAccentDark2": "#AD8031",
+ "SystemAccentDark3": "#97702B",
+ "ShadowBevel": "#08FFFFFF",
+ "ShadowPopover": "#6B000000",
+ "ShadowModal": "#80000000"
+ }
+}
diff --git a/src/managed/Nota.App/Theme/Themes/ember-paper.json b/src/managed/Nota.App/Theme/Themes/ember-paper.json
new file mode 100644
index 00000000..35561a64
--- /dev/null
+++ b/src/managed/Nota.App/Theme/Themes/ember-paper.json
@@ -0,0 +1,114 @@
+{
+ "formatVersion": 1,
+ "id": "ember-paper",
+ "name": "Ember Paper",
+ "kind": "light",
+ "colors": {
+ "SurfaceAbyss": "#D8D1BE",
+ "BgApp": "#DCD6C5",
+ "Gutter": "#E0DAC9",
+ "BgSunken": "#E4DFD1",
+ "CanvasBg": "#E6E1D3",
+ "SurfaceDeep": "#E7E2D4",
+ "LaneB": "#E7E2D4",
+ "Panel": "#EAE5D7",
+ "SurfaceCard": "#EFEADE",
+ "SurfaceInset": "#E9E4D6",
+ "SurfaceRaised": "#F8F5EC",
+ "SurfaceHover": "#E7E1D0",
+ "TrackOff": "#DBD4C0",
+ "SurfaceActive": "#D5CEBB",
+ "GridSubBeat": "#E5DFCE",
+ "GridBeat": "#DED8C8",
+ "GridRow": "#E6E1D2",
+ "GridBar": "#CFC8B4",
+ "GraphBorder": "#D5CFBE",
+ "WellGrid": "#DDD7C6",
+ "PadGrid": "#DED8C7",
+ "TextHeading": "#1A150E",
+ "TextPrimary": "#241F17",
+ "TextStrong": "#3E382C",
+ "TextSecondary": "#5E5849",
+ "TextMuted": "#625B50",
+ "TextTertiary": "#7E786C",
+ "TextDisabled": "#8D866F",
+ "TextAxis": "#8D8669",
+ "TextOnAccent": "#FFFBF2",
+ "TextFaint": "#8D866F",
+ "VizInk": "#332E26",
+ "VizGrid": "#DDD7C6",
+ "BorderDefault": "#D5CEBB",
+ "BorderStrong": "#BDB5A0",
+ "BorderBrass": "#C9A254",
+ "Seam": "#E0DAC9",
+ "Rule": "#BDB5A0",
+ "Accent": "#AD7716",
+ "AccentBright": "#744D07",
+ "AccentHover": "#8F6110",
+ "AccentDeep": "#7A5008",
+ "AccentDim": "#9C8034",
+ "AccentEdge": "#D3B173",
+ "AccentMute": "#C39B4F",
+ "AccentPale": "#5C3C04",
+ "AccentSubtle": "#F2E4C4",
+ "Record": "#B54A32",
+ "RecordInk": "#FFF4EE",
+ "Success": "#2C7A3E",
+ "SuccessDim": "#609548",
+ "Warning": "#837010",
+ "Mute": "#837010",
+ "Solo": "#3E6288",
+ "Danger": "#B13E33",
+ "DangerHover": "#C64A36",
+ "DangerBright": "#A3391B",
+ "DangerDeep": "#9C3221",
+ "DangerPale": "#8E2416",
+ "Teal": "#2F7472",
+ "TealBright": "#3E8A88",
+ "Rose": "#86465B",
+ "RoseBright": "#7F2D43",
+ "Steel": "#3E6288",
+ "Sage": "#42765A",
+ "Threshold": "#8A5218",
+ "Marker": "#1B6E8C",
+ "MarkerHot": "#0E5470",
+ "Frozen": "#1C6E96",
+ "SignalIn": "#6E7C68",
+ "SignalInFill": "#D3DCCF",
+ "HandleSel": "#1E1A14",
+ "SelHeaderBg": "#F2E4C4",
+ "FrozenHeaderBg": "#D8E8F0",
+ "MuteTint": "#F0D9D3",
+ "Veil": "#F2EFE6",
+ "TooltipBg": "#2A251C",
+ "TooltipText": "#F5EEDC",
+ "KeyWhite": "#F3EFE4",
+ "KeyBlack": "#DAD3C2",
+ "MiniKeyWhite": "#F5F1E4",
+ "MiniKeyBlack": "#38332A",
+ "ShadeUp": "#FFFCF2",
+ "ShadeDown": "#3A3227",
+ "Master": "#746D5C",
+ "Track1": "#328140",
+ "Track2": "#306F53",
+ "Track3": "#256464",
+ "Track4": "#317187",
+ "Track5": "#985127",
+ "Track6": "#4B4082",
+ "Track7": "#7F3450",
+ "Track8": "#6C752C",
+ "Track9": "#598C69",
+ "ReturnA": "#598C69",
+ "ReturnB": "#3E6A4D",
+ "SystemAccent": "#AD7716",
+ "SystemAccentLight1": "#B78732",
+ "SystemAccentLight2": "#C1984E",
+ "SystemAccentLight3": "#CBA86A",
+ "SystemAccentDark1": "#9C6B14",
+ "SystemAccentDark2": "#8A5F12",
+ "SystemAccentDark3": "#79530F",
+ "ShadowBevel": "#66FFFFFF",
+ "ShadowPopover": "#381A150E",
+ "ShadowModal": "#401A150E"
+ }
+}
diff --git a/src/managed/Nota.App/Theme/Themes/studio-dark.json b/src/managed/Nota.App/Theme/Themes/studio-dark.json
new file mode 100644
index 00000000..85790f62
--- /dev/null
+++ b/src/managed/Nota.App/Theme/Themes/studio-dark.json
@@ -0,0 +1,114 @@
+{
+ "formatVersion": 1,
+ "id": "studio-dark",
+ "name": "Studio Dark",
+ "kind": "dark",
+ "colors": {
+ "SurfaceAbyss": "#17181A",
+ "BgApp": "#1E1F22",
+ "Gutter": "#141517",
+ "BgSunken": "#17181A",
+ "CanvasBg": "#1E1F22",
+ "SurfaceDeep": "#1B1C1F",
+ "LaneB": "#222326",
+ "Panel": "#2B2D31",
+ "SurfaceCard": "#2B2D31",
+ "SurfaceInset": "#232427",
+ "SurfaceRaised": "#34363B",
+ "SurfaceHover": "#393C41",
+ "TrackOff": "#17181A",
+ "SurfaceActive": "#17181A",
+ "GridSubBeat": "#242528",
+ "GridBeat": "#2A2C30",
+ "GridRow": "#1B1C1F",
+ "GridBar": "#3A3C41",
+ "GraphBorder": "#45484E",
+ "WellGrid": "#2E2F32",
+ "PadGrid": "#2A2C30",
+ "TextHeading": "#F4F5F6",
+ "TextPrimary": "#E8E9EB",
+ "TextStrong": "#D4D6DA",
+ "TextSecondary": "#C0C4C9",
+ "TextMuted": "#A4A9B0",
+ "TextTertiary": "#92969D",
+ "TextDisabled": "#82868C",
+ "TextAxis": "#82868C",
+ "TextOnAccent": "#17181A",
+ "TextFaint": "#82868C",
+ "VizInk": "#D7D8DA",
+ "VizGrid": "#2E2F32",
+ "BorderDefault": "#141517",
+ "BorderStrong": "#45484E",
+ "BorderBrass": "#BF7D22",
+ "Seam": "#141517",
+ "Rule": "#45484E",
+ "Accent": "#FF9F1C",
+ "AccentBright": "#FFB547",
+ "AccentHover": "#FFB547",
+ "AccentDeep": "#C77612",
+ "AccentDim": "#C77612",
+ "AccentEdge": "#BF7D22",
+ "AccentMute": "#7A5F3D",
+ "AccentPale": "#FFD08A",
+ "AccentSubtle": "#4D3F2E",
+ "Record": "#F06A6E",
+ "RecordInk": "#FFFFFF",
+ "Success": "#6CC673",
+ "SuccessDim": "#3F8A45",
+ "Warning": "#F2B53C",
+ "Mute": "#F2B53C",
+ "Solo": "#6A9FD8",
+ "Danger": "#F06A6E",
+ "DangerHover": "#F48386",
+ "DangerBright": "#F58F92",
+ "DangerDeep": "#C4474B",
+ "DangerPale": "#F7A5A7",
+ "Teal": "#5FB3A8",
+ "TealBright": "#86C9C0",
+ "Rose": "#D77A8F",
+ "RoseBright": "#E49EAE",
+ "Steel": "#6A9FD8",
+ "Sage": "#7FB08A",
+ "Threshold": "#E0A84A",
+ "Marker": "#7FC4E0",
+ "MarkerHot": "#CDEEF8",
+ "Frozen": "#7FC7EC",
+ "SignalIn": "#5A6170",
+ "SignalInFill": "#3A3E46",
+ "HandleSel": "#FFFFFF",
+ "SelHeaderBg": "#393C41",
+ "FrozenHeaderBg": "#24323B",
+ "MuteTint": "#3B3426",
+ "Veil": "#1E1F22",
+ "TooltipBg": "#34363B",
+ "TooltipText": "#E8E9EB",
+ "KeyWhite": "#2B2D31",
+ "KeyBlack": "#17181A",
+ "MiniKeyWhite": "#3A3C41",
+ "MiniKeyBlack": "#17181A",
+ "ShadeUp": "#FFFFFF",
+ "ShadeDown": "#17181A",
+ "Master": "#A4A9B0",
+ "Track1": "#7FB87A",
+ "Track2": "#5FB3A8",
+ "Track3": "#5AA6C4",
+ "Track4": "#6A9FD8",
+ "Track5": "#E0A84A",
+ "Track6": "#9D90C9",
+ "Track7": "#D77A8F",
+ "Track8": "#B3B45E",
+ "Track9": "#8E9DB0",
+ "ReturnA": "#8E9DB0",
+ "ReturnB": "#7A889A",
+ "SystemAccent": "#FF9F1C",
+ "SystemAccentLight1": "#FFAB37",
+ "SystemAccentLight2": "#FFB652",
+ "SystemAccentLight3": "#FFC26E",
+ "SystemAccentDark1": "#E68F19",
+ "SystemAccentDark2": "#CC7F16",
+ "SystemAccentDark3": "#B26F14",
+ "ShadowBevel": "#12FFFFFF",
+ "ShadowPopover": "#6B000000",
+ "ShadowModal": "#80000000"
+ }
+}
diff --git a/src/managed/Nota.App/Theme/Themes/studio-light.json b/src/managed/Nota.App/Theme/Themes/studio-light.json
new file mode 100644
index 00000000..46a0a8e0
--- /dev/null
+++ b/src/managed/Nota.App/Theme/Themes/studio-light.json
@@ -0,0 +1,114 @@
+{
+ "formatVersion": 1,
+ "id": "studio-light",
+ "name": "Studio Light",
+ "kind": "light",
+ "colors": {
+ "SurfaceAbyss": "#D6D8DB",
+ "BgApp": "#C9CBCF",
+ "Gutter": "#9DA0A6",
+ "BgSunken": "#D6D8DB",
+ "CanvasBg": "#C9CBCF",
+ "SurfaceDeep": "#CFD1D4",
+ "LaneB": "#C4C6CA",
+ "Panel": "#E4E5E7",
+ "SurfaceCard": "#E4E5E7",
+ "SurfaceInset": "#DCDEE0",
+ "SurfaceRaised": "#EEEFF1",
+ "SurfaceHover": "#F7F8F9",
+ "TrackOff": "#D6D8DB",
+ "SurfaceActive": "#D6D8DB",
+ "GridSubBeat": "#C3C5C9",
+ "GridBeat": "#BDC0C4",
+ "GridRow": "#C5C7CB",
+ "GridBar": "#ADB0B5",
+ "GraphBorder": "#B3B6BB",
+ "WellGrid": "#C0C3C6",
+ "PadGrid": "#C8CACD",
+ "TextHeading": "#0E0F11",
+ "TextPrimary": "#16171A",
+ "TextStrong": "#282A2E",
+ "TextSecondary": "#3A3D42",
+ "TextMuted": "#4F535A",
+ "TextTertiary": "#65696F",
+ "TextDisabled": "#797C81",
+ "TextAxis": "#797C81",
+ "TextOnAccent": "#17181A",
+ "TextFaint": "#797C81",
+ "VizInk": "#252629",
+ "VizGrid": "#C0C3C6",
+ "BorderDefault": "#9DA0A6",
+ "BorderStrong": "#B3B6BB",
+ "BorderBrass": "#ECA54E",
+ "Seam": "#9DA0A6",
+ "Rule": "#B3B6BB",
+ "Accent": "#EF8A0C",
+ "AccentBright": "#C46A00",
+ "AccentHover": "#C46A00",
+ "AccentDeep": "#D47800",
+ "AccentDim": "#F7C27A",
+ "AccentEdge": "#ECA54E",
+ "AccentMute": "#C9A77A",
+ "AccentPale": "#8A4A00",
+ "AccentSubtle": "#E6D6C4",
+ "Record": "#B3262C",
+ "RecordInk": "#FFFFFF",
+ "Success": "#22692B",
+ "SuccessDim": "#79B880",
+ "Warning": "#7A4F00",
+ "Mute": "#7A4F00",
+ "Solo": "#3F78B8",
+ "Danger": "#B3262C",
+ "DangerHover": "#C2343A",
+ "DangerBright": "#9C1F24",
+ "DangerDeep": "#8E1C21",
+ "DangerPale": "#7F161B",
+ "Teal": "#3A8A7F",
+ "TealBright": "#2E7067",
+ "Rose": "#B4566B",
+ "RoseBright": "#93404F",
+ "Steel": "#3F78B8",
+ "Sage": "#4A7F56",
+ "Threshold": "#8A5F14",
+ "Marker": "#1B6E8C",
+ "MarkerHot": "#0E5470",
+ "Frozen": "#1C6E96",
+ "SignalIn": "#7A818C",
+ "SignalInFill": "#C9CDD3",
+ "HandleSel": "#16171A",
+ "SelHeaderBg": "#F7F8F9",
+ "FrozenHeaderBg": "#D3E2EA",
+ "MuteTint": "#BDB49F",
+ "Veil": "#E4E5E7",
+ "TooltipBg": "#EEEFF1",
+ "TooltipText": "#16171A",
+ "KeyWhite": "#EEEFF1",
+ "KeyBlack": "#C9CBCF",
+ "MiniKeyWhite": "#F7F8F9",
+ "MiniKeyBlack": "#3A3D42",
+ "ShadeUp": "#FFFFFF",
+ "ShadeDown": "#16171A",
+ "Master": "#4F535A",
+ "Track1": "#4A7F46",
+ "Track2": "#3A8A7F",
+ "Track3": "#357C99",
+ "Track4": "#3F78B8",
+ "Track5": "#B8862F",
+ "Track6": "#7363A8",
+ "Track7": "#B4566B",
+ "Track8": "#7E7F2F",
+ "Track9": "#5D6C80",
+ "ReturnA": "#5D6C80",
+ "ReturnB": "#4E5B6D",
+ "SystemAccent": "#EF8A0C",
+ "SystemAccentLight1": "#F19829",
+ "SystemAccentLight2": "#F3A646",
+ "SystemAccentLight3": "#F5B463",
+ "SystemAccentDark1": "#D77C0B",
+ "SystemAccentDark2": "#BF6E0A",
+ "SystemAccentDark3": "#A76108",
+ "ShadowBevel": "#B3FFFFFF",
+ "ShadowPopover": "#381E2024",
+ "ShadowModal": "#401E2024"
+ }
+}
diff --git a/src/managed/Nota.App/WaveformView.cs b/src/managed/Nota.App/WaveformView.cs
index 3d2c2375..e3db3889 100644
--- a/src/managed/Nota.App/WaveformView.cs
+++ b/src/managed/Nota.App/WaveformView.cs
@@ -17,10 +17,10 @@ public sealed class WaveformView : Control
private float[]? _peaks;
private int _buckets;
- // Design tokens (see .claude/skills/nota-design — Data colors).
+ // Design tokens (see DESIGN.md): a waveform at rest is neutral viz ink on the well.
private static readonly IBrush Background = NotaPalette.BgSunken;
- private static readonly IPen WavePen = new Pen(NotaPalette.Accent, 1);
- private static readonly IPen MidPen = new Pen(NotaPalette.BorderDefault, 1);
+ private static readonly IPen WavePen = new Pen(NotaPalette.VizInk, 1);
+ private static readonly IPen MidPen = new Pen(NotaPalette.Rule, 1);
public void SetPeaks(float[] minMax, int buckets)
{
diff --git a/src/managed/Nota.App/WelcomeWindow.cs b/src/managed/Nota.App/WelcomeWindow.cs
index d1d9a916..3b4d0b86 100644
--- a/src/managed/Nota.App/WelcomeWindow.cs
+++ b/src/managed/Nota.App/WelcomeWindow.cs
@@ -105,7 +105,7 @@ public sealed class WelcomeWindow : NotaWindow
// --- Recent projects ----------------------------------------------
var recentHead = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8, Margin = new Thickness(0, 0, 0, 8) };
- recentHead.Children.Add(new TextBlock { Classes = { "SectionLabel" }, Text = "RECENT PROJECTS", VerticalAlignment = VerticalAlignment.Bottom });
+ recentHead.Children.Add(new TextBlock { Classes = { "SectionLabel" }, Text = "Recent projects", VerticalAlignment = VerticalAlignment.Bottom });
recentHead.Children.Add(new TextBlock
{
Text = recent.Count.ToString(NotaNum.Culture),
@@ -447,8 +447,8 @@ public sealed class WelcomeWindow : NotaWindow
private static Border BannerCard() => new()
{
- Background = NotaPalette.AccentSubtle,
- BorderBrush = NotaPalette.Accent,
+ Background = NotaPalette.SurfaceRaised,
+ BorderBrush = NotaPalette.Seam,
BorderThickness = new Thickness(1),
CornerRadius = NotaRadius.Panel,
Padding = new Thickness(14, 12),
@@ -456,7 +456,7 @@ public sealed class WelcomeWindow : NotaWindow
};
// Title + message (+ an optional progress bar) on the left, buttons on the right. The
- // first "main" button is a plain button (not solid brass: "New project" is this window's
+ // first "main" button is a plain button (not the primary: "New project" is this window's
// primary action); the rest are ghosts.
private static Grid BannerContent(string title, string message, Control? progress,
params (string Label, bool Main, Action OnClick)[] actions)
@@ -564,7 +564,7 @@ public sealed class WelcomeWindow : NotaWindow
private void Paint()
{
- Background = _selected ? NotaPalette.AccentSubtle : _hover ? NotaPalette.SurfaceRaised : NotaPalette.Wash(NotaPalette.SurfaceRaised, 0);
+ Background = _selected ? NotaPalette.SurfaceHover : _hover ? NotaPalette.SurfaceRaised : NotaPalette.Wash(NotaPalette.SurfaceRaised, 0);
_edge.Background = _selected ? NotaPalette.Accent : null;
_name.Foreground = _selected ? NotaPalette.TextPrimary : NotaPalette.TextStrong;
_meta.Foreground = _selected ? NotaPalette.TextSecondary : NotaPalette.TextMuted;
diff --git a/src/managed/Nota.App/WhatsNewWindow.cs b/src/managed/Nota.App/WhatsNewWindow.cs
index 5d1f5f33..e4b31ef1 100644
--- a/src/managed/Nota.App/WhatsNewWindow.cs
+++ b/src/managed/Nota.App/WhatsNewWindow.cs
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// "What's New" — shown once after the first launch on a newer app version (see
+// "What's new" — shown once after the first launch on a newer app version (see
// MainWindow.OnOpenedWhatsNew). Lists the changelog entries the user hasn't seen
// yet, newest first. Reachable any time from the Help menu too.
@@ -20,7 +20,7 @@ public sealed class WhatsNewWindow : NotaWindow
{
public WhatsNewWindow(IReadOnlyList<ChangelogEntry> entries)
{
- Title = "What's New in Nota";
+ Title = "What's new in Nota";
Width = 460;
Height = 556; // + title-bar band
CanResize = false;
@@ -51,7 +51,7 @@ public sealed class WhatsNewWindow : NotaWindow
var header = new StackPanel { Margin = new Thickness(28, 24, 28, 4), Spacing = 2 };
header.Children.Add(new TextBlock
{
- Text = "What's New",
+ Text = "What's new",
FontSize = 24,
FontWeight = FontWeight.SemiBold,
Foreground = Brush("Brush.TextPrimary"),
@@ -91,7 +91,7 @@ public sealed class WhatsNewWindow : NotaWindow
Text = "Version " + entry.Version,
FontSize = 15,
FontWeight = FontWeight.SemiBold,
- Foreground = Brush("Brush.Accent"),
+ Foreground = Brush("Brush.TextHeading"),
VerticalAlignment = VerticalAlignment.Center,
});
if (!string.IsNullOrWhiteSpace(entry.Date))
diff --git a/src/managed/Nota.Application/Appearance.cs b/src/managed/Nota.Application/Appearance.cs
new file mode 100644
index 00000000..75d1fffe
--- /dev/null
+++ b/src/managed/Nota.Application/Appearance.cs
@@ -0,0 +1,85 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// Which colour theme to wear, from what settings.json says (spec 011). Pure: no UI, no
+// I/O, so the smoke test can walk every case. Themes themselves live in the app layer;
+// this only needs their ids and whether each is dark. Old settings (Dark / Light /
+// System) migrate here, and an unknown or wrong-kind id falls back to the Studio theme of
+// the kind needed — resolving never throws and never writes.
+
+using System.Collections.Generic;
+
+namespace Nota.Application;
+
+/// <summary>How Preferences → Appearance presents a choice: one dark theme, one light
+/// theme, or follow the OS with a theme per mode.</summary>
+public enum AppearanceMode { Dark, Light, FollowSystem }
+
+/// <summary>A resolved appearance: one theme, or follow the OS with a theme per mode. Every
+/// id is known and of the right kind.</summary>
+public sealed record AppearanceChoice(bool FollowSystem, string Single, string Dark, string Light)
+{
+ /// <summary>The theme to wear now, given whether the OS is in dark mode.</summary>
+ public string Active(bool osIsDark) => FollowSystem ? (osIsDark ? Dark : Light) : Single;
+}
+
+public static class Appearance
+{
+ public const string StudioDark = "studio-dark";
+ public const string StudioLight = "studio-light";
+ /// <summary>The <see cref="Settings.ColourTheme"/> value that means "follow the OS".</summary>
+ public const string System = "system";
+
+ /// <summary>Resolve the stored settings against the known themes (id → is it dark).</summary>
+ public static AppearanceChoice Resolve(Settings s, IReadOnlyDictionary<string, bool> known)
+ {
+ var stored = s.ColourTheme;
+ if (string.IsNullOrEmpty(stored))
+ stored = s.Theme switch
+ {
+ AppTheme.Light => StudioLight,
+ AppTheme.System => System,
+ _ => StudioDark,
+ };
+
+ string dark = known.TryGetValue(s.SystemDarkTheme ?? "", out var d) && d ? s.SystemDarkTheme! : StudioDark;
+ string light = known.TryGetValue(s.SystemLightTheme ?? "", out var l) && !l ? s.SystemLightTheme! : StudioLight;
+
+ if (stored == System) return new AppearanceChoice(true, dark, dark, light);
+ string single = known.ContainsKey(stored) ? stored : StudioDark;
+ return new AppearanceChoice(false, single, dark, light);
+ }
+
+ /// <summary>The page's mode for a choice: following the system, or the kind of the
+ /// single theme.</summary>
+ public static AppearanceMode ModeOf(AppearanceChoice c, bool singleIsDark) =>
+ c.FollowSystem ? AppearanceMode.FollowSystem : singleIsDark ? AppearanceMode.Dark : AppearanceMode.Light;
+
+ /// <summary>Switch mode. Dark and Light wear that mode's remembered pick, so switching
+ /// back and forth returns to the same theme; follow system keeps both picks.</summary>
+ public static AppearanceChoice WithMode(AppearanceChoice c, AppearanceMode mode) => mode switch
+ {
+ AppearanceMode.FollowSystem => c with { FollowSystem = true },
+ AppearanceMode.Dark => c with { FollowSystem = false, Single = c.Dark },
+ _ => c with { FollowSystem = false, Single = c.Light },
+ };
+
+ /// <summary>Pick a theme of one kind. While following the system it becomes that
+ /// mode's pick; otherwise it is worn and also remembered as that mode's pick.</summary>
+ public static AppearanceChoice WithPick(AppearanceChoice c, string id, bool isDark)
+ {
+ var picked = isDark ? c with { Dark = id } : c with { Light = id };
+ return c.FollowSystem ? picked : picked with { Single = id };
+ }
+
+ /// <summary>Write <paramref name="choice"/> into <paramref name="s"/>, keeping the legacy
+ /// <see cref="Settings.Theme"/> in step (the active theme's kind, or System when
+ /// following) so older versions still open in a sensible variant.</summary>
+ public static void Store(Settings s, AppearanceChoice choice, bool singleIsDark)
+ {
+ s.ColourTheme = choice.FollowSystem ? System : choice.Single;
+ s.SystemDarkTheme = choice.Dark;
+ s.SystemLightTheme = choice.Light;
+ s.Theme = choice.FollowSystem ? AppTheme.System : singleIsDark ? AppTheme.Dark : AppTheme.Light;
+ }
+}
diff --git a/src/managed/Nota.Application/Palette/CommandCatalog.cs b/src/managed/Nota.Application/Palette/CommandCatalog.cs
index 27626568..fca5bfa7 100644
--- a/src/managed/Nota.Application/Palette/CommandCatalog.cs
+++ b/src/managed/Nota.Application/Palette/CommandCatalog.cs
@@ -19,85 +19,85 @@ public static class CommandCatalog
public static List<PaletteCommand> Create() => new()
{
// ---- File -------------------------------------------------------------------------
- C("file.new", "New Project", "File", "⌘N", "create blank empty"),
- C("file.open", "Open Project…", "File", "⌘O", "load"),
- C("file.save", "Save Project", "File", "⌘S", "store write"),
- C("file.saveAs", "Save Project As…", "File", "⌘⇧S", "copy rename"),
- C("file.saveVersion", "Save Version with Note…", "File", "⌥⌘S", "snapshot history commit"),
- C("file.import", "Import Audio…", "File", "", "add file wav"),
- C("file.export", "Export Audio…", "File", "⌘⇧E", "render bounce mixdown stems"),
+ C("file.new", "New project", "File", "⌘N", "create blank empty"),
+ C("file.open", "Open project…", "File", "⌘O", "load"),
+ C("file.save", "Save project", "File", "⌘S", "store write"),
+ C("file.saveAs", "Save project as…", "File", "⌘⇧S", "copy rename"),
+ C("file.saveVersion", "Save version with note…", "File", "⌥⌘S", "snapshot history commit"),
+ C("file.import", "Import audio…", "File", "", "add file wav"),
+ C("file.export", "Export audio…", "File", "⌘⇧E", "render bounce mixdown stems"),
// ---- Edit -------------------------------------------------------------------------
C("edit.undo", "Undo", "Edit", "⌘Z", "back revert"),
C("edit.redo", "Redo", "Edit", "⌘⇧Z", "forward"),
C("edit.duplicate", "Duplicate", "Edit", "⌘D", "copy clone"),
- C("edit.split", "Split at Playhead", "Edit", "⌘E", "cut slice", view: "Arrangement"),
+ C("edit.split", "Split at playhead", "Edit", "⌘E", "cut slice", view: "Arrangement"),
C("edit.consolidate", "Consolidate", "Edit", "⌘J", "join merge glue", view: "Arrangement"),
- C("edit.duplicateTime", "Duplicate Time", "Edit", "⌘⇧D", "repeat range", view: "Arrangement"),
- C("edit.insertSilence", "Insert Silence", "Edit", "⌘⇧I", "gap space", view: "Arrangement"),
- C("edit.lockEnvelopes", "Lock Envelopes", "Edit", "", "automation pin"),
+ C("edit.duplicateTime", "Duplicate time", "Edit", "⌘⇧D", "repeat range", view: "Arrangement"),
+ C("edit.insertSilence", "Insert silence", "Edit", "⌘⇧I", "gap space", view: "Arrangement"),
+ C("edit.lockEnvelopes", "Lock envelopes", "Edit", "", "automation pin"),
C("edit.cut", "Cut", "Edit", "", ""),
C("edit.copy", "Copy", "Edit", "", ""),
C("edit.paste", "Paste", "Edit", "", ""),
- C("edit.pasteBounced", "Paste Bounced Audio", "Edit", "⌘⇧V", "render resample", view: "Arrangement"),
- C("edit.copyToOtherView", "Copy Clips to Session / Arrangement", "Edit", "⌘⇧C", "transfer"),
+ C("edit.pasteBounced", "Paste bounced audio", "Edit", "⌘⇧V", "render resample", view: "Arrangement"),
+ C("edit.copyToOtherView", "Copy clips to Session / Arrangement", "Edit", "⌘⇧C", "transfer"),
C("edit.delete", "Delete", "Edit", "", "remove erase"),
- C("edit.selectAll", "Select All Clips", "Edit", "⌘A", "everything", view: "Arrangement"),
- C("edit.toggleClipActive", "Activate / Deactivate Clip", "Edit", "0", "mute disable", view: "Arrangement"),
+ C("edit.selectAll", "Select all clips", "Edit", "⌘A", "everything", view: "Arrangement"),
+ C("edit.toggleClipActive", "Activate / deactivate clip", "Edit", "0", "mute disable", view: "Arrangement"),
// ---- View -------------------------------------------------------------------------
C("view.arrangement", "Show Arrangement", "View", "", "timeline linear"),
C("view.session", "Show Session", "View", "", "clips grid launch"),
C("view.modular", "Show Modular", "View", "", "graph patch cv"),
C("view.mixer", "Show Mixer", "View", "⌘⇧M", "faders channels"),
- C("view.connectPhone", "Connect Phone…", "View", "", "remote mobile qr"),
- C("view.toggleBrowser", "Toggle Browser", "View", "", "library sidebar"),
- C("view.toggleDetail", "Toggle Detail Panel", "View", "", "devices clip"),
- C("view.showDevices", "Show Devices", "View", "", "chain detail"),
- C("view.popOutDetail", "Open Devices in a Window", "View", "", "detach float pop out"),
- C("view.toggleOverview", "Toggle Overview", "View", "", "minimap", view: "Arrangement"),
- C("view.toggleSections", "Toggle Sections", "View", "", "markers locators", view: "Arrangement"),
- C("view.follow", "Follow Playhead", "View", "", "scroll"),
- C("view.clipNames", "Cycle Clip Names", "View", "", "labels", view: "Arrangement"),
- C("view.automation", "Toggle Automation Mode", "View", "⌘⇧A", "envelopes lanes", view: "Arrangement"),
- C("view.history", "Show Version History", "View", "", "undo history versions snapshots"),
- C("view.midiLearn", "MIDI Learn", "View", "", "map controller"),
- C("view.fullscreen", "Toggle Full Screen", "View", "F11", "maximize immersive hide chrome"),
- C(Palette, "Command Palette", "View", "⌘⇧P", "search", hide: true),
+ C("view.connectPhone", "Connect phone…", "View", "", "remote mobile qr"),
+ C("view.toggleBrowser", "Toggle browser", "View", "", "library sidebar"),
+ C("view.toggleDetail", "Toggle detail panel", "View", "", "devices clip"),
+ C("view.showDevices", "Show devices", "View", "", "chain detail"),
+ C("view.popOutDetail", "Open devices in a window", "View", "", "detach float pop out"),
+ C("view.toggleOverview", "Toggle overview", "View", "", "minimap", view: "Arrangement"),
+ C("view.toggleSections", "Toggle sections", "View", "", "markers locators", view: "Arrangement"),
+ C("view.follow", "Follow playhead", "View", "", "scroll"),
+ C("view.clipNames", "Cycle clip names", "View", "", "labels", view: "Arrangement"),
+ C("view.automation", "Toggle automation mode", "View", "⌘⇧A", "envelopes lanes", view: "Arrangement"),
+ C("view.history", "Show version history", "View", "", "undo history versions snapshots"),
+ C("view.midiLearn", "MIDI learn", "View", "", "map controller"),
+ C("view.fullscreen", "Toggle full screen", "View", "F11", "maximize immersive hide chrome"),
+ C(Palette, "Command palette", "View", "⌘⇧P", "search", hide: true),
// ---- Transport --------------------------------------------------------------------
- C("transport.playStop", "Play / Stop", "Transport", "Space", "start pause"),
+ C("transport.playStop", "Play / stop", "Transport", "Space", "start pause"),
C("transport.stop", "Stop", "Transport", "Return", "halt"),
C("transport.record", "Record", "Transport", "⌘R", "arm capture"),
- C("transport.loop", "Toggle Loop", "Transport", "⌘L", "cycle repeat"),
+ C("transport.loop", "Toggle loop", "Transport", "⌘L", "cycle repeat"),
C("transport.metronome", "Metronome", "Transport", "⌘M", "click"),
- C("transport.tapTempo", "Tap Tempo", "Transport", "", "bpm beat tap"),
+ C("transport.tapTempo", "Tap tempo", "Transport", "", "bpm beat tap"),
// ---- Track ------------------------------------------------------------------------
- C("track.newInstrument", "New MIDI Track", "Track", "", "add instrument track"),
- C("track.newAudio", "New Audio Track", "Track", "", "add"),
- C("track.newReturn", "New Return Track", "Track", "", "add send bus aux"),
- C("track.group", "Group Tracks", "Track", "⌘G", "folder bus", view: "Arrangement"),
- C("track.ungroup", "Ungroup Tracks", "Track", "⌘⇧G", "", view: "Arrangement"),
- C("track.freeze", "Freeze Track", "Track", "", "render bounce cpu"),
+ C("track.newInstrument", "New MIDI track", "Track", "", "add instrument track"),
+ C("track.newAudio", "New audio track", "Track", "", "add"),
+ C("track.newReturn", "New return track", "Track", "", "add send bus aux"),
+ C("track.group", "Group tracks", "Track", "⌘G", "folder bus", view: "Arrangement"),
+ C("track.ungroup", "Ungroup tracks", "Track", "⌘⇧G", "", view: "Arrangement"),
+ C("track.freeze", "Freeze track", "Track", "", "render bounce cpu"),
// ---- Session ----------------------------------------------------------------------
- C("session.launchScene", "Launch Scene", "Session", "", "play row", view: "Session"),
- C("session.stopAll", "Stop All Clips", "Session", "", "halt", view: "Session"),
- C("session.insertScene", "Insert Scene", "Session", "⌘I", "add scene row", view: "Session"),
+ C("session.launchScene", "Launch scene", "Session", "", "play row", view: "Session"),
+ C("session.stopAll", "Stop all clips", "Session", "", "halt", view: "Session"),
+ C("session.insertScene", "Insert scene", "Session", "⌘I", "add scene row", view: "Session"),
// ---- Piano roll -------------------------------------------------------------------
- C("roll.quantize", "Quantize Notes", "Piano roll", "", "quantise grid snap align"),
- C("roll.octaveUp", "Transpose Notes Up an Octave", "Piano roll", "", "pitch shift"),
- C("roll.octaveDown", "Transpose Notes Down an Octave", "Piano roll", "", "pitch shift"),
- C("roll.removeOutOfScale", "Remove Out-of-Scale Notes", "Piano roll", "", "key fix"),
+ C("roll.quantize", "Quantize notes", "Piano roll", "", "quantise grid snap align"),
+ C("roll.octaveUp", "Transpose notes up an octave", "Piano roll", "", "pitch shift"),
+ C("roll.octaveDown", "Transpose notes down an octave", "Piano roll", "", "pitch shift"),
+ C("roll.removeOutOfScale", "Remove out-of-scale notes", "Piano roll", "", "key fix"),
// ---- Grid (the arrangement or the piano roll — whichever was used last) -----------
- C("grid.narrower", "Narrow Grid", "Grid", "⌘1", "finer smaller snap"),
- C("grid.wider", "Widen Grid", "Grid", "⌘2", "coarser larger snap"),
- C("grid.triplets", "Toggle Triplet Grid", "Grid", "⌘3", "triplet 1/8T swing"),
- C("grid.snap", "Toggle Snap to Grid", "Grid", "⌘4", "magnet free"),
- C("grid.adaptive", "Toggle Adaptive Grid", "Grid", "⌘5", "auto zoom fixed"),
+ C("grid.narrower", "Narrow grid", "Grid", "⌘1", "finer smaller snap"),
+ C("grid.wider", "Widen grid", "Grid", "⌘2", "coarser larger snap"),
+ C("grid.triplets", "Toggle triplet grid", "Grid", "⌘3", "triplet 1/8T swing"),
+ C("grid.snap", "Toggle snap to grid", "Grid", "⌘4", "magnet free"),
+ C("grid.adaptive", "Toggle adaptive grid", "Grid", "⌘5", "auto zoom fixed"),
// ---- Settings ---------------------------------------------------------------------
C("prefs.open", "Settings", "Settings", "⌘,", "preferences options"),
@@ -113,7 +113,7 @@ public static class CommandCatalog
// ---- Help -------------------------------------------------------------------------
C("help.docs", "Documentation", "Help", "", "manual guide"),
- C("help.whatsNew", "What's New", "Help", "", "changelog release notes"),
+ C("help.whatsNew", "What's new", "Help", "", "changelog release notes"),
C("help.about", "About Nota", "Help", "", "version"),
};
diff --git a/src/managed/Nota.Application/Palette/DeviceCategories.cs b/src/managed/Nota.Application/Palette/DeviceCategories.cs
new file mode 100644
index 00000000..fc2bfd42
--- /dev/null
+++ b/src/managed/Nota.Application/Palette/DeviceCategories.cs
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// The browser's shelves: which category each built-in device sits under on its tab, and how
+// a plug-in's own reported category maps onto the same shelves. Kept apart from
+// BuiltinDeviceCatalog (whose descriptors serve the palette's search) so one block reads like
+// the list a musician would review. A new built-in device is added here too — the browser
+// design check (RunBrowser) fails until it is.
+
+namespace Nota.Application;
+
+public static class DeviceCategories
+{
+ /// <summary>Where a plug-in (or an unlisted built-in) lands when nothing maps it. Always last.</summary>
+ public const string Other = "Other";
+
+ public sealed record Category(string Name, string[] Builtins);
+
+ private static readonly Category[] Instruments =
+ {
+ new("Synths", ["Nota Synth", "Nota Volt", "Nota Bass", "Nota Monolith", "Nota Pentad", "Nota Consort",
+ "Nota Operator", "Nota Aurora", "Nota Flux", "Nota Pendulum"]),
+ new("Keys & physical", ["Nota Keys", "Nota Physical"]),
+ new("Drums", ["Nota Rhythm", "Nota Drum Rack"]),
+ new("Samplers", ["Nota Sampler", "Nota Mosaic", "Nota Grain"]),
+ new("Racks", ["Nota Instrument Rack"]),
+ };
+
+ private static readonly Category[] AudioEffects =
+ {
+ new("EQ & filter", ["Nota EQ-3", "Nota EQ-8", "Nota Dynamic EQ-8", "Nota Auto Filter"]),
+ new("Dynamics", ["Nota Compressor", "Nota Prism", "Nota Ceiling", "Nota Shutter"]),
+ new("Reverb & delay", ["Nota Reverb", "Nota Chamber", "Nota Delay"]),
+ new("Modulation", ["Nota Chorus", "Nota Flanger", "Nota Phaser", "Nota Orbit"]),
+ new("Distortion", ["Nota Valve", "Nota Vintage", "Nota Forge", "Nota Crush"]),
+ new("Pitch & time", ["Nota Auto Shift", "Nota Beat Repeat", "Nota Strata"]),
+ new("Utility", ["Nota Utility", "Nota Level", "Nota Lens"]),
+ new("Racks", ["Nota Audio Effect Rack"]),
+ };
+
+ private static readonly Category[] MidiEffects =
+ {
+ new("Generate", ["Nota Arp", "Nota Chord", "Nota Random"]),
+ new("Shape", ["Nota Scale", "Nota Length", "Nota Velocity"]),
+ };
+
+ /// <summary>The categories of one tab, in display order, with their built-in members.</summary>
+ public static IReadOnlyList<Category> Of(BuiltinDeviceType type) => type switch
+ {
+ BuiltinDeviceType.Instrument => Instruments,
+ BuiltinDeviceType.AudioEffect => AudioEffects,
+ _ => MidiEffects,
+ };
+
+ /// <summary>The category names of one tab, in display order (<see cref="Other"/> not included).</summary>
+ public static IReadOnlyList<string> Order(BuiltinDeviceType type) => Of(type).Select(c => c.Name).ToArray();
+
+ /// <summary>A category's place on its tab; <see cref="Other"/> and unknown names sort last.</summary>
+ public static int Position(BuiltinDeviceType type, string name)
+ {
+ var cats = Of(type);
+ for (int i = 0; i < cats.Count; i++) if (cats[i].Name == name) return i;
+ return int.MaxValue;
+ }
+
+ /// <summary>The category a built-in device is shelved under, or <see cref="Other"/>.</summary>
+ public static string For(BuiltinDevice device)
+ {
+ foreach (var c in Of(device.Type))
+ if (Array.IndexOf(c.Builtins, device.Name) >= 0) return c.Name;
+ return Other;
+ }
+
+ // A plug-in's reported category, token by token: VST3 sub-categories ("Fx|Dynamics|EQ",
+ // which the plug-in host hands over as "Fx/Dynamics/EQ"), or an AU type name. The first
+ // token a table knows wins. Skipped on purpose: the markers "fx", "instrument", "mono",
+ // "stereo"; "generator", "external", "network"; AU type names ("effect", "music effect"),
+ // which say what a plug-in is but not what it does — those land in Other.
+ private static readonly Dictionary<string, string> InstrumentTokens = new(StringComparer.Ordinal)
+ {
+ ["synth"] = "Synths",
+ ["piano"] = "Keys & physical",
+ ["drum"] = "Drums",
+ ["sampler"] = "Samplers",
+ };
+
+ private static readonly Dictionary<string, string> EffectTokens = new(StringComparer.Ordinal)
+ {
+ ["eq"] = "EQ & filter", ["filter"] = "EQ & filter",
+ ["dynamics"] = "Dynamics", ["mastering"] = "Dynamics",
+ ["reverb"] = "Reverb & delay", ["delay"] = "Reverb & delay",
+ ["modulation"] = "Modulation",
+ ["distortion"] = "Distortion",
+ ["pitch shift"] = "Pitch & time",
+ ["analyzer"] = "Utility", ["tools"] = "Utility", ["spatial"] = "Utility",
+ ["surround"] = "Utility", ["restoration"] = "Utility", ["up-downmix"] = "Utility",
+ };
+
+ /// <summary>The category an installed plug-in joins, from the category it reports.</summary>
+ public static string ForPlugin(bool instrument, string reported)
+ {
+ var table = instrument ? InstrumentTokens : EffectTokens;
+ foreach (var raw in (reported ?? "").Split('/', '|'))
+ {
+ var token = raw.Trim().ToLowerInvariant();
+ if (table.TryGetValue(token, out var name)) return name;
+ }
+ return Other;
+ }
+}
diff --git a/src/managed/Nota.Application/Palette/PaletteSearch.cs b/src/managed/Nota.Application/Palette/PaletteSearch.cs
index b9fede57..953717a4 100644
--- a/src/managed/Nota.Application/Palette/PaletteSearch.cs
+++ b/src/managed/Nota.Application/Palette/PaletteSearch.cs
@@ -281,8 +281,8 @@ public sealed class PaletteSearch
public static string GroupLabel(PaletteKind k) => k switch
{
- PaletteKind.Action => "ACTIONS", PaletteKind.Track => "TRACKS", PaletteKind.Device => "DEVICES",
- PaletteKind.Preset => "PRESETS", _ => "MODULAR",
+ PaletteKind.Action => "Actions", PaletteKind.Track => "Tracks", PaletteKind.Device => "Devices",
+ PaletteKind.Preset => "Presets", _ => "Modular",
};
// CP-8: an unavailable action is shown only when the query names it.
@@ -367,14 +367,14 @@ public sealed class PaletteSearch
var recent = (_usage?.Recent ?? []).Select(_index.Find).Where(Ok).Select(it => it!).ToList();
if (recent.Count > 0)
{
- res.Rows.Add(new PaletteRow("RECENT", default));
+ res.Rows.Add(new PaletteRow("Recent", default));
foreach (var it in recent) { AddItem(res, Make(it)); seen.Add(it.Id); }
}
var sug = (suggested ?? []).Select(_index.Find).Where(it => Ok(it) && !seen.Contains(it!.Id)).Select(it => it!)
.Where(it => it.Kind != PaletteKind.Action || availability is null || availability(it).Ok).ToList();
if (sug.Count > 0)
{
- res.Rows.Add(new PaletteRow("SUGGESTED · " + OriginLabel(ctx.Origin).ToUpperInvariant(), default));
+ res.Rows.Add(new PaletteRow("Suggested · " + OriginLabel(ctx.Origin), default));
foreach (var it in sug) AddItem(res, Make(it));
}
return;
diff --git a/src/managed/Nota.Application/Settings.cs b/src/managed/Nota.Application/Settings.cs
index e2235004..b8eb083c 100644
--- a/src/managed/Nota.Application/Settings.cs
+++ b/src/managed/Nota.Application/Settings.cs
@@ -11,16 +11,29 @@ namespace Nota.Application;
public enum ToolbarSide { Left, Right }
-/// <summary>Which palette the UI wears. <see cref="System"/> follows the OS appearance
-/// and flips live when the user changes it.</summary>
+/// <summary>The appearance before colour themes (spec 011). Still written, in step with
+/// the chosen theme's kind, so an older Nota opening this settings file gets a sensible
+/// variant; read only to migrate (see <see cref="Appearance"/>).</summary>
public enum AppTheme { Dark, Light, System }
public sealed class Settings
{
public ToolbarSide ToolbarSide { get; set; } = ToolbarSide.Left;
- /// <summary>Palette variant: Ember Graphite (dark), Ember Paper (light), or the OS
- /// appearance. Dark by default — a DAW is used in dark rooms for long sessions.</summary>
+ /// <summary>Legacy appearance (Dark / Light / System). Kept in step with
+ /// <see cref="ColourTheme"/> for older versions; read only when ColourTheme is empty.</summary>
public AppTheme Theme { get; set; } = AppTheme.Dark;
+ /// <summary>The colour theme the UI wears — a theme id such as "studio-dark", or
+ /// "system" to follow the OS with <see cref="SystemDarkTheme"/> / <see cref="SystemLightTheme"/>.
+ /// Empty until first resolved from the legacy <see cref="Theme"/>. Studio Dark by default —
+ /// a DAW is used in dark rooms for long sessions.</summary>
+ public string ColourTheme { get; set; } = "";
+ /// <summary>Theme worn while following the OS and it is in dark mode (a dark theme).</summary>
+ public string SystemDarkTheme { get; set; } = Appearance.StudioDark;
+ /// <summary>Theme worn while following the OS and it is in light mode (a light theme).</summary>
+ public string SystemLightTheme { get; set; } = Appearance.StudioLight;
+ /// <summary>Whether Session view shows its inspector column (toolbar toggle). On by default;
+ /// folding it gives the clip grid its width back on small windows.</summary>
+ public bool SessionInspectorOpen { get; set; } = true;
/// <summary>Browser sample library folder ("" = default ~/Music/Nota Samples). M7-4.</summary>
public string SamplesFolder { get; set; } = "";
/// <summary>Browser projects folder ("" = default ~/Documents/Nota Projects). M7-4.</summary>
@@ -87,6 +100,8 @@ public sealed class Settings
public bool BrowserShowTypeTags { get; set; } = true;
/// <summary>Group the device tabs into BUILT-IN and PLUG-INS sections with counts.</summary>
public bool BrowserGroupBySource { get; set; } = true;
+ /// <summary>Show the category chips above the device lists (Synths, Dynamics…).</summary>
+ public bool BrowserCategoryChips { get; set; } = true;
/// <summary>Float favorited devices to the top of their section.</summary>
public bool BrowserFavoritesFirst { get; set; } = true;
/// <summary>The browser is folded down to its icon rail.</summary>
diff --git a/src/managed/Nota.Presentation/ViewModels/BrowserViewModel.cs b/src/managed/Nota.Presentation/ViewModels/BrowserViewModel.cs
index 6ab92ac2..3cb51e96 100644
--- a/src/managed/Nota.Presentation/ViewModels/BrowserViewModel.cs
+++ b/src/managed/Nota.Presentation/ViewModels/BrowserViewModel.cs
@@ -55,6 +55,7 @@ public sealed class BrowserItem : INotifyPropertyChanged
public string Format { get; init; } = ""; // plug-ins: "VST3" / "AU" (Sub carries the vendor)
public string Vendor { get; init; } = ""; // plug-ins: the manufacturer
public string Category { get; init; } = ""; // plug-ins: VST3 sub-categories ("Fx|Reverb") or the AU type
+ public string DeviceCategory { get; init; } = ""; // device rows: the browser shelf ("Reverb & delay"), see DeviceCategories
public string Path { get; init; } = ""; // file/bundle path for samples/projects/presets
/// <summary>Long-form description for the row's tooltip, where <see cref="Sub"/> (the
/// narrow tag column) has no room for it. Falls back to Sub when empty.</summary>
@@ -151,6 +152,40 @@ public sealed partial class BrowserViewModel : ObservableObject
set { if (_favoritesFirst == value) return; _favoritesFirst = value; RebuildDeviceTabs(); }
}
+ // The category chip picked on each device tab (0 Instruments, 1 Audio effects, 2 MIDI
+ // effects), "" for none. Held while the app runs; a restart starts unfiltered.
+ private readonly string[] _categoryFilter = { "", "", "" };
+
+ /// <summary>The category a device tab is narrowed to, or "" for the whole list.</summary>
+ public string CategoryFilter(int tab) => tab is >= 0 and < 3 ? _categoryFilter[tab] : "";
+
+ /// <summary>Narrows a device tab to one category ("" clears it) and refreshes it.</summary>
+ public void SetCategoryFilter(int tab, string category)
+ {
+ if (tab is < 0 or >= 3 || _categoryFilter[tab] == (category ?? "")) return;
+ _categoryFilter[tab] = category ?? "";
+ RebuildVisible(tab);
+ }
+
+ /// <summary>A device tab's category chips, in order: the fixed categories, then Other
+ /// when a device on the tab lands there (an unrecognised plug-in).</summary>
+ public IReadOnlyList<string> CategoriesOn(int tab)
+ {
+ var list = DeviceCategories.Order(TypeOf(tab)).ToList();
+ var tree = tab == 2 ? _midiTree : tab == 1 ? _fxTree : _instrTree;
+ if (tree.Any(n => ShelfOf(tab, n) == DeviceCategories.Other)) list.Add(DeviceCategories.Other);
+ return list;
+ }
+
+ private string ShelfOf(int tab, BrowserItem node)
+ => DeviceCategories.Position(TypeOf(tab), node.DeviceCategory) == int.MaxValue ? DeviceCategories.Other : node.DeviceCategory;
+
+ private bool PassesCategoryFilter(int tab, BrowserItem node)
+ => _categoryFilter[tab].Length == 0 || ShelfOf(tab, node) == _categoryFilter[tab];
+
+ private static BuiltinDeviceType TypeOf(int tab)
+ => tab == 2 ? BuiltinDeviceType.MidiEffect : tab == 1 ? BuiltinDeviceType.AudioEffect : BuiltinDeviceType.Instrument;
+
private void RebuildDeviceTabs() { RebuildVisible(0); RebuildVisible(1); RebuildVisible(2); }
public ObservableCollection<BrowserItem> Instruments { get; } = new();
@@ -256,6 +291,7 @@ public sealed partial class BrowserViewModel : ObservableObject
},
BuiltinKind = d.Kind,
Sub = d.Sub,
+ DeviceCategory = DeviceCategories.For(d),
}).OrderBy(x => x.Name).ToList();
_instrTree.AddRange(builtins.Where(b => b.Kind == BrowserItemKind.BuiltinInstrument));
_fxTree.AddRange(builtins.Where(b => b.Kind == BrowserItemKind.BuiltinEffect));
@@ -363,6 +399,7 @@ public sealed partial class BrowserViewModel : ObservableObject
Format = fmt,
Vendor = vendor,
Category = category,
+ DeviceCategory = DeviceCategories.ForPlugin(isInstrument, category),
Kind = isInstrument ? BrowserItemKind.PluginInstrument : BrowserItemKind.PluginEffect,
CatalogIndex = i,
};
@@ -469,6 +506,7 @@ public sealed partial class BrowserViewModel : ObservableObject
foreach (var node in ordered)
{
if (!PassesLibraryFilter(node)) continue; // header favorite/tag chip
+ if (!PassesCategoryFilter(tab, node)) continue; // category chip
if (q.Length == 0 || Matches(node, q) || AnyMatch(node.Children, q))
devices.Add(node);
}
diff --git a/src/managed/Nota.Presentation/ViewModels/TransportViewModel.cs b/src/managed/Nota.Presentation/ViewModels/TransportViewModel.cs
index 4b6ca76e..d6d94d76 100644
--- a/src/managed/Nota.Presentation/ViewModels/TransportViewModel.cs
+++ b/src/managed/Nota.Presentation/ViewModels/TransportViewModel.cs
@@ -38,7 +38,7 @@ public partial class TransportViewModel(IAudioEngine engine) : ObservableObject
/// <summary>The count-in is clicking (the transport hasn't rolled yet).</summary>
[ObservableProperty] private bool _isCountingIn;
[ObservableProperty] private bool _loopOn;
- [ObservableProperty] private string _loopRangeText = "1.1 – 5.1";
+ [ObservableProperty] private string _loopRangeText = "1.1–5.1";
[ObservableProperty] private bool _recordOn;
/// <summary>Which clock the position readout is showing, printed under it so the
/// number is never ambiguous (transport console, mockup 1b).</summary>
@@ -100,7 +100,7 @@ public partial class TransportViewModel(IAudioEngine engine) : ObservableObject
LoopRangeText = FormatRange(_engine.LoopStart, _engine.LoopEnd);
}
- private static string FormatRange(double startBeat, double endBeat) => $"{BarBeat(startBeat)} – {BarBeat(endBeat)}";
+ private static string FormatRange(double startBeat, double endBeat) => $"{BarBeat(startBeat)}–{BarBeat(endBeat)}"; // closed: plain numbers
private static string BarBeat(double beat)
{
int bar = (int)(beat / BeatsPerBar) + 1;
diff --git a/tests/Nota.SmokeTest/BrowserCategoryTests.cs b/tests/Nota.SmokeTest/BrowserCategoryTests.cs
new file mode 100644
index 00000000..ce71d1d3
--- /dev/null
+++ b/tests/Nota.SmokeTest/BrowserCategoryTests.cs
@@ -0,0 +1,117 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// The browser's category chips (spec 013), driven through BrowserViewModel over the factory
+// catalogue and fake plug-ins: with no chip the list is exactly today's; a chip narrows a
+// tab to one category and stacks with search and favourites; picks are per tab; plug-ins
+// join by the category they report, with an Other chip only when something lands there.
+// Run alone with `--browser`.
+
+using System.Text.Json;
+using Nota.Infrastructure;
+using Nota.Presentation;
+
+namespace Nota.SmokeTest;
+
+internal static class BrowserCategoryTests
+{
+ public static IEnumerable<(bool Ok, string Label)> Run()
+ {
+ var lib = new FakeBrowserLibrary();
+ var vm = new BrowserViewModel(new EmptyPluginCatalog(), new EmptyPresetLibrary(), new FactoryPresetCatalog(), library: lib);
+ var tabs = new (int Tab, BuiltinDeviceType Type, IList<BrowserItem> Rows)[]
+ {
+ (0, BuiltinDeviceType.Instrument, vm.Instruments), (1, BuiltinDeviceType.AudioEffect, vm.Effects), (2, BuiltinDeviceType.MidiEffect, vm.MidiEffects),
+ };
+ static List<string> Devices(IList<BrowserItem> rows) => rows.Where(r => !r.IsGroup && r.Depth == 0).Select(r => r.Name).ToList();
+
+ foreach (var (tab, type, rows) in tabs)
+ {
+ // No chip: today's list, row for row (SC-003).
+ var today = new[] { "BUILT-IN" }.Concat(BuiltinDeviceCatalog.All.Where(d => d.Type == type).Select(d => d.Name).OrderBy(x => x)).ToList();
+ yield return (rows.Select(r => r.Name).SequenceEqual(today), $"{type}: with no chip the list is today's list");
+ yield return (vm.CategoriesOn(tab).SequenceEqual(DeviceCategories.Order(type)),
+ $"{type}: chips in order ({string.Join(" · ", vm.CategoriesOn(tab))})");
+
+ // Each chip lists exactly its category; together they cover every device once.
+ var covered = new List<string>();
+ var wrong = new List<string>();
+ foreach (var c in DeviceCategories.Of(type))
+ {
+ vm.SetCategoryFilter(tab, c.Name);
+ var got = Devices(rows);
+ if (!got.OrderBy(x => x).SequenceEqual(c.Builtins.OrderBy(x => x))) wrong.Add($"{c.Name}: {string.Join(", ", got)}");
+ covered.AddRange(got);
+ }
+ vm.SetCategoryFilter(tab, "");
+ yield return (wrong.Count == 0, wrong.Count == 0 ? $"{type}: each chip lists exactly its category" : $"{type}: {string.Join(" | ", wrong)}");
+ yield return (covered.Count == today.Count - 1 && covered.ToHashSet().Count == covered.Count,
+ $"{type}: the chips cover every device once ({covered.Count}/{today.Count - 1})");
+ yield return (rows.Select(r => r.Name).SequenceEqual(today), $"{type}: clearing the chip restores the whole list");
+ }
+
+ // Picks are per tab, and a pick keeps "Group by source"'s header.
+ vm.SetCategoryFilter(1, "Reverb & delay");
+ yield return (vm.CategoryFilter(1) == "Reverb & delay" && vm.CategoryFilter(0) == "" && Devices(vm.Instruments).Count == 18,
+ "a pick narrows only its own tab");
+ yield return (vm.Effects.Select(r => r.Name).SequenceEqual(new[] { "BUILT-IN", "Nota Chamber", "Nota Delay", "Nota Reverb" }),
+ $"Reverb & delay lists Chamber, Delay, Reverb ({string.Join(", ", vm.Effects.Select(r => r.Name))})");
+ yield return (vm.VisibleDeviceCounts(1) == (3, 0), "the status line counts the narrowed list");
+
+ // The chip stacks with search and with the Favorites chip (FR-006).
+ vm.SetCategoryFilter(1, "Dynamics");
+ vm.FilterTree(1, "Prism");
+ yield return (Devices(vm.Effects).SequenceEqual(new[] { "Nota Prism" }), "a chip and a search narrow together");
+ vm.FilterTree(1, "Delay");
+ yield return (Devices(vm.Effects).Count == 0, "a search with no match inside the chip lists nothing");
+ vm.FilterTree(1, "");
+ var compressor = vm.Effects.First(r => r.Name == "Nota Compressor");
+ lib.SetFavorite(compressor.LibraryKey, true);
+ vm.SetLibraryFilter(BrowserFilter.Favorites);
+ yield return (Devices(vm.Effects).SequenceEqual(new[] { "Nota Compressor" }), "a chip and the Favorites chip narrow together");
+ vm.SetLibraryFilter(BrowserFilter.None);
+ lib.SetFavorite(compressor.LibraryKey, false);
+
+ // Expanding a device while a chip is picked shows its presets beneath it (FR-007).
+ vm.SetCategoryFilter(1, "");
+ vm.SetCategoryFilter(0, "Synths");
+ var synth = vm.Instruments.First(r => r.Name == "Nota Synth");
+ vm.ToggleExpand(synth);
+ int si = vm.Instruments.IndexOf(synth);
+ yield return (si >= 0 && si + 1 < vm.Instruments.Count && vm.Instruments[si + 1].Depth > 0, "expanding a device under a chip lists its presets");
+ vm.ToggleExpand(synth);
+ vm.SetCategoryFilter(0, "");
+
+ // Plug-ins join the categories from the category they report (FR-005).
+ var mapping = new (bool Inst, string Reported, string Expected)[]
+ {
+ (false, "Fx/Reverb", "Reverb & delay"), (false, "Fx|Dynamics|EQ", "Dynamics"), (false, "Fx/Pitch Shift", "Pitch & time"),
+ (false, "Fx/Analyzer", "Utility"), (true, "Instrument/Synth/Sampler", "Synths"), (true, "Instrument/Drum", "Drums"),
+ (false, "Effect", DeviceCategories.Other), (false, "", DeviceCategories.Other), (false, "Fx", DeviceCategories.Other),
+ };
+ var mapped = mapping.Where(m => DeviceCategories.ForPlugin(m.Inst, m.Reported) != m.Expected)
+ .Select(m => $"{m.Reported} → {DeviceCategories.ForPlugin(m.Inst, m.Reported)}").ToList();
+ yield return (mapped.Count == 0, mapped.Count == 0 ? "plug-in categories map by their first recognised token" : $"plug-in mapping: {string.Join(", ", mapped)}");
+
+ var plugins = new FakePluginCatalog(
+ "Ambience | VST3 | fx | Smart | Fx/Reverb",
+ "Mystery | AU | fx | Acme | Effect",
+ "Ana | VST3 | inst | Sonic | Instrument/Synth");
+ var pvm = new BrowserViewModel(plugins, new EmptyPresetLibrary(), new FactoryPresetCatalog());
+ pvm.SetCategoryFilter(1, "Reverb & delay");
+ var reverbs = pvm.Effects.Select(r => r.Name).ToList();
+ yield return (reverbs.SequenceEqual(new[] { "BUILT-IN", "Nota Chamber", "Nota Delay", "Nota Reverb", "PLUG-INS", "Ambience" }),
+ $"a plug-in joins its category, after the built-ins ({string.Join(", ", reverbs)})");
+ yield return (pvm.CategoriesOn(1).Last() == DeviceCategories.Other, "an unrecognised plug-in adds an Other chip, last");
+ pvm.SetCategoryFilter(1, DeviceCategories.Other);
+ yield return (Devices(pvm.Effects).SequenceEqual(new[] { "Mystery" }), "the Other chip lists it");
+ pvm.SetCategoryFilter(0, "Synths");
+ yield return (Devices(pvm.Instruments).Last() == "Ana", "a synth plug-in is under Synths");
+ yield return (!pvm.CategoriesOn(0).Contains(DeviceCategories.Other) && !pvm.CategoriesOn(2).Contains(DeviceCategories.Other),
+ "no Other chip where nothing lands there");
+
+ // An existing settings file has no key: the chips are on (FR-003).
+ var old = JsonSerializer.Deserialize<Settings>("{}")!;
+ yield return (old.BrowserCategoryChips, "settings without the new key show the category chips");
+ }
+}
diff --git a/tests/Nota.SmokeTest/BrowserTestSupport.cs b/tests/Nota.SmokeTest/BrowserTestSupport.cs
index ffed6a7f..406828d9 100644
--- a/tests/Nota.SmokeTest/BrowserTestSupport.cs
+++ b/tests/Nota.SmokeTest/BrowserTestSupport.cs
@@ -40,3 +40,35 @@ internal sealed class FakeMosaicPacks(params MosaicPackPreset[] presets) : IMosa
public string? Resolve(string reference) => null;
public double? DetectNote(string path) => null;
}
+
+/// <summary>In-memory favourites (no tags), for the browser's favourites-first ordering.</summary>
+internal sealed class FakeBrowserLibrary : IBrowserLibrary
+{
+ private readonly HashSet<string> _favorites = new(StringComparer.Ordinal);
+ public IReadOnlyList<BrowserTag> Tags => Array.Empty<BrowserTag>();
+ public bool IsFavorite(string deviceKey) => _favorites.Contains(deviceKey);
+ public void SetFavorite(string deviceKey, bool on) { if (on) _favorites.Add(deviceKey); else _favorites.Remove(deviceKey); }
+ public IReadOnlyList<string> TagIdsFor(string deviceKey) => Array.Empty<string>();
+ public void AssignTag(string deviceKey, string tagId, bool on) { }
+ public BrowserTag CreateTag(string title, string color) => new() { Id = title, Title = title, Color = color };
+ public void UpdateTag(string id, string title, string color) { }
+ public void DeleteTag(string id) { }
+ public void Save() { }
+ public event Action? Changed { add { } remove { } }
+}
+
+/// <summary>A fixed list of scanned plug-ins, each described the way the plug-in host does:
+/// "Name | Format | inst|fx | Vendor | Category".</summary>
+internal sealed class FakePluginCatalog(params string[] descriptions) : IPluginCatalog
+{
+ public int Scan(string workerPath) => descriptions.Length;
+ public int Count => descriptions.Length;
+ public string? Description(int index) => index >= 0 && index < descriptions.Length ? descriptions[index] : null;
+ public string? Id(int index) => index >= 0 && index < descriptions.Length ? $"fake:{index}" : null;
+ public int IndexOfId(string identifier)
+ => identifier.StartsWith("fake:", StringComparison.Ordinal) && int.TryParse(identifier[5..], out var i) && i < descriptions.Length ? i : -1;
+ public void AddScanPath(string dir) { }
+ public void RemoveScanPath(int index) { }
+ public int ScanPathCount => 0;
+ public string? ScanPath(int index) => null;
+}
diff --git a/tests/Nota.SmokeTest/DesignTokenCheck.Browser.cs b/tests/Nota.SmokeTest/DesignTokenCheck.Browser.cs
new file mode 100644
index 00000000..50796aa5
--- /dev/null
+++ b/tests/Nota.SmokeTest/DesignTokenCheck.Browser.cs
@@ -0,0 +1,78 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// The browser's device categories (spec 013), checked as data: every built-in device sits
+// on exactly one shelf of its own tab, every shelf names real devices, and the names read
+// in sentence case. A device registered in BuiltinDeviceCatalog without a category fails
+// here instead of drifting silently into "Other" (FR-009).
+
+
+namespace Nota.SmokeTest;
+
+internal static partial class DesignTokenCheck
+{
+ public static IEnumerable<(bool Ok, string Label)> RunBrowser()
+ {
+ var types = new[] { BuiltinDeviceType.Instrument, BuiltinDeviceType.AudioEffect, BuiltinDeviceType.MidiEffect };
+ var expected = new Dictionary<BuiltinDeviceType, int>
+ {
+ [BuiltinDeviceType.Instrument] = 18, [BuiltinDeviceType.AudioEffect] = 26, [BuiltinDeviceType.MidiEffect] = 6,
+ };
+ foreach (var type in types)
+ {
+ var cats = DeviceCategories.Of(type);
+ var devices = BuiltinDeviceCatalog.All.Where(d => d.Type == type).ToList();
+
+ // Every built-in device on exactly one shelf.
+ var unshelved = new List<string>();
+ var twice = new List<string>();
+ foreach (var d in devices)
+ {
+ int n = cats.Count(c => c.Builtins.Contains(d.Name));
+ if (n == 0) unshelved.Add(d.Name);
+ else if (n > 1) twice.Add(d.Name);
+ }
+ yield return (unshelved.Count == 0,
+ unshelved.Count == 0 ? $"{type}: every built-in device has a category"
+ : $"{type}: no category for {string.Join(", ", unshelved)} — add it in DeviceCategories.cs");
+ yield return (twice.Count == 0,
+ twice.Count == 0 ? $"{type}: no device in two categories" : $"{type}: in two categories: {string.Join(", ", twice)}");
+
+ // Every listed name is a real device of this tab (a renamed or removed device fails).
+ var names = devices.Select(d => d.Name).ToHashSet();
+ var stale = cats.SelectMany(c => c.Builtins.Where(b => !names.Contains(b)).Select(b => $"{c.Name}/{b}")).ToList();
+ yield return (stale.Count == 0,
+ stale.Count == 0 ? $"{type}: no stale category entries" : $"{type}: not in the catalogue: {string.Join(", ", stale)}");
+
+ var empty = cats.Where(c => c.Builtins.Length == 0).Select(c => c.Name).ToList();
+ yield return (empty.Count == 0,
+ empty.Count == 0 ? $"{type}: no empty category" : $"{type}: empty categories: {string.Join(", ", empty)}");
+
+ var dupNames = cats.GroupBy(c => c.Name).Where(g => g.Count() > 1).Select(g => g.Key).ToList();
+ var shouting = cats.Select(c => c.Name).Where(n => !SentenceCase(n) || n == DeviceCategories.Other).ToList();
+ yield return (dupNames.Count == 0 && shouting.Count == 0,
+ dupNames.Count == 0 && shouting.Count == 0 ? $"{type}: category names unique, sentence case"
+ : $"{type}: category names: {string.Join(", ", dupNames.Concat(shouting))}");
+
+ int shelved = cats.Sum(c => c.Builtins.Length);
+ yield return (devices.Count == expected[type] && shelved == expected[type],
+ $"{type}: {shelved} shelved of {devices.Count} built-in devices (expected {expected[type]})");
+ }
+ }
+
+ // "EQ & filter", "Keys & physical": a capital first word, the rest lowercase, except a
+ // known acronym (the same short list the label rule keeps upper-case).
+ private static bool SentenceCase(string name)
+ {
+ var words = name.Split(' ', StringSplitOptions.RemoveEmptyEntries);
+ if (words.Length == 0 || !char.IsUpper(words[0][0])) return false;
+ for (int i = 0; i < words.Length; i++)
+ {
+ var w = words[i];
+ if (w is "EQ" or "MIDI" or "LFO" or "&") continue;
+ var rest = i == 0 ? w[1..] : w;
+ if (rest.Any(char.IsUpper)) return false;
+ }
+ return true;
+ }
+}
diff --git a/tests/Nota.SmokeTest/DesignTokenCheck.Labels.cs b/tests/Nota.SmokeTest/DesignTokenCheck.Labels.cs
new file mode 100644
index 00000000..b67785d5
--- /dev/null
+++ b/tests/Nota.SmokeTest/DesignTokenCheck.Labels.cs
@@ -0,0 +1,316 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// Labels are sentence case (DESIGN.md § Labels and copy), but nothing held that
+// rule: caps literals and Title Case crept back one view at a time. This check reads the
+// label literals as text — the strings a view hands to Text/Content/Header/Title, a tooltip,
+// a command title, a palette or Settings heading, or a local label builder — and fails on
+//
+// - ALL CAPS: two or more letters, no lower case, not made only of NotaText.Fixed
+// acronyms, and not on its way through NotaText.Label (which sentence-cases it);
+// - Title Case: capitalised words after the first that are not an acronym, a view or
+// product name, or part of a "Nota …" device name — and that outnumber the literal's
+// lower-case words. A tooltip sentence may name a control ("Shift for fine steps");
+// a label whose words are mostly capitals is Title Case.
+//
+// Interpolated strings are skipped: their text is built at run time.
+//
+// It started as a ratchet (spec 012 T006): LabelAllowList.txt lists every offender found on
+// the day it landed, by path and exact literal, so later changes can only remove lines.
+// When spec 012 is done the list holds only data — preset and parameter names, proper nouns.
+// See specs/012-ui-polish/data-model.md § Label rules.
+
+using System.Net;
+using System.Text.RegularExpressions;
+
+namespace Nota.SmokeTest;
+
+internal static partial class DesignTokenCheck
+{
+ // Capitalised mid-label because they name a thing, not because of Title Case: the views
+ // and panels, the product and its themes, plug-in formats.
+ private static readonly HashSet<string> ProperNouns = new(StringComparer.Ordinal)
+ {
+ "Arrangement", "Session", "Modular", "Mixer", "Finder", "Nota", "Studio", "Ember",
+ "Graphite", "Paper", "MIDI", "VST3", "AU", "CLAP",
+ };
+
+ // Local helpers that build a label from their first argument.
+ private const string Builders = "Mono|SectionHead|Field|Caps|DrumCap|Header|SectionLabel";
+
+ // C# label contexts. Group lit is the literal with its quotes; b names the builder.
+ private static readonly Regex[] CsContexts =
+ {
+ new(@"\b(?:Text|Content|Header|Title)\s*=(?!=)\s*(?<lit>""(?:[^""\\\n]|\\.)*"")"),
+ new(@"\b(?:Text|Content|Header|Title)\s*=(?!=)[^;,""{}]*?\?\s*(?<lit>""(?:[^""\\\n]|\\.)*"")\s*:\s*(?<lit>""(?:[^""\\\n]|\\.)*"")"),
+ new(@"\bToolTip\.SetTip\([^,()""]+,\s*(?<lit>""(?:[^""\\\n]|\\.)*"")"),
+ new($@"(?<![\w.]|new\s)(?<b>{Builders})\(\s*(?<lit>""(?:[^""\\\n]|\\.)*"")"),
+ // A heading table row, ("DEVICES", new[] { … }) — the Settings sidebar and shortcut groups.
+ new(@"^\s*\(\s*(?<lit>""(?:[^""\\\n]|\\.)*"")\s*,\s*new\s*(?:\w+\s*)?\[\]"),
+ };
+ // Command titles: C("file.new", "New Project", "File", …).
+ private static readonly Regex CatalogTitle = new(@"\bC\(\s*(?:""[^""]*""|\w+)\s*,\s*(?<lit>""(?:[^""\\\n]|\\.)*"")");
+ // Palette group headings: new PaletteRow("RECENT", …) and the GroupLabel switch arms.
+ private static readonly Regex[] PaletteHeadings =
+ {
+ new(@"\bnew PaletteRow\(\s*(?<lit>""(?:[^""\\\n]|\\.)*"")"),
+ new(@"(?:\b\w+\.\w+|\b_)\s*=>\s*(?<lit>""(?:[^""\\\n]|\\.)*"")"),
+ };
+ private static readonly Regex XamlContext = new(@"(?<![\w.:])(?:Header|Text|Content|Title|ToolTip\.Tip)=""(?<v>[^""{][^""]*)""");
+
+ public static IEnumerable<(bool Ok, string Label)> RunLabels()
+ {
+ var root = RepoRoot();
+ if (root is null) { yield return (false, "repo root located"); yield break; }
+ var managed = Path.Combine(root, "src/managed");
+ var app = Path.Combine(managed, "Nota.App");
+
+ var fixedMap = FixedMap(File.ReadAllText(Path.Combine(app, "Theme/NotaText.cs")));
+ yield return (fixedMap.Count > 0, $"NotaText.Fixed parsed ({fixedMap.Count} acronyms and units)");
+
+ var files = SourceFiles(app, ".cs", ".axaml")
+ .Concat(SourceFiles(Path.Combine(managed, "Nota.Application/Palette"), ".cs")).ToList();
+ var defs = files.Where(f => f.EndsWith(".cs")).ToDictionary(f => f, f => BuilderDefs(File.ReadAllText(f)));
+
+ var caps = new List<Hit>();
+ var title = new List<Hit>();
+ foreach (var f in files)
+ {
+ var rel = RelManaged(root, f);
+ foreach (var (line, key, text, viaLabel) in LabelLiterals(f, rel, defs))
+ {
+ if (Shouts(text, fixedMap)) { if (!viaLabel) caps.Add(new Hit(rel, line, key)); }
+ else if (TitleCaseWord(text, fixedMap) is not null) title.Add(new Hit(rel, line, key));
+ }
+ }
+
+ var list = ReadRatchet(Path.Combine(root, RatchetDir, "LabelAllowList.txt"));
+ var allowed = list.ToHashSet();
+ var used = new HashSet<(string, string)>();
+ yield return RatchetVerdict("ALL CAPS label", caps, allowed, used);
+ yield return RatchetVerdict("Title Case label", title, allowed, used);
+ yield return RatchetStale("label allow-list", list, used);
+ yield return (true, $"label allow-list: {allowed.Count} entries (ratchet: may only shrink)");
+ }
+
+ /// <summary>NotaText.Fixed as KEY → Value, read from the source like KeyMap is.</summary>
+ private static Dictionary<string, string> FixedMap(string notaText)
+ {
+ var body = Regex.Match(notaText, @"\bFixed\s*=\s*new\([^)]*\)\s*\{(?<b>.*?)\n \};", RegexOptions.Singleline).Groups["b"].Value;
+ return Regex.Matches(body, @"\[""(?<k>[^""]+)""\]\s*=\s*""(?<v>[^""]+)""")
+ .ToDictionary(m => m.Groups["k"].Value, m => m.Groups["v"].Value, StringComparer.Ordinal);
+ }
+
+ /// <summary>The label literals in one file: (line, literal as written, its text, whether it
+ /// reaches the screen through NotaText.Label).</summary>
+ private static IEnumerable<(int Line, string Key, string Text, bool ViaLabel)> LabelLiterals(
+ string file, string rel, Dictionary<string, Dictionary<string, List<bool>>> defs)
+ {
+ if (file.EndsWith(".axaml"))
+ {
+ var lines = BlankXmlComments(File.ReadAllText(file)).Split('\n');
+ for (int i = 0; i < lines.Length; i++)
+ foreach (Match m in XamlContext.Matches(lines[i]))
+ {
+ var v = m.Groups["v"].Value;
+ // "_File": the underscore marks the access key, it is not shown.
+ yield return (i + 1, v, Regex.Replace(WebUtility.HtmlDecode(v), @"_(?=\w)", ""), false);
+ }
+ yield break;
+ }
+
+ var contexts = CsContexts.AsEnumerable();
+ if (rel.EndsWith("Palette/CommandCatalog.cs")) contexts = contexts.Append(CatalogTitle);
+ if (rel.EndsWith("Palette/PaletteSearch.cs")) contexts = contexts.Concat(PaletteHeadings);
+ var routed = RoutedBuilders(file, defs);
+ int n = 0;
+ foreach (var line in File.ReadLines(file))
+ {
+ n++;
+ var code = CodeOf(line);
+ var seen = new HashSet<int>();
+ foreach (var re in contexts)
+ foreach (Match m in re.Matches(code))
+ {
+ bool viaBuilder = m.Groups["b"].Success && routed.Contains(m.Groups["b"].Value);
+ foreach (Capture c in m.Groups["lit"].Captures)
+ {
+ if (!seen.Add(c.Index)) continue;
+ var body = c.Value[1..^1];
+ yield return (n, body, Unescape(body), viaBuilder || InsideLabelCall(code, c.Index));
+ }
+ }
+ }
+ }
+
+ /// <summary>Whether the literal at <paramref name="at"/> is an argument of a Label( call
+ /// that is still open there — "NotaText.Label(on ? "ON" : "OFF")".</summary>
+ private static bool InsideLabelCall(string code, int at)
+ {
+ int depth = 0;
+ for (int i = at - 1; i >= 0; i--)
+ {
+ if (code[i] == ')') depth++;
+ else if (code[i] == '(')
+ {
+ if (depth > 0) { depth--; continue; }
+ if (code[..i].TrimEnd().EndsWith("Label")) return true;
+ }
+ }
+ return false;
+ }
+
+ /// <summary>The label builders a file defines, each with whether every body routes its
+ /// text through NotaText.Label.</summary>
+ private static Dictionary<string, List<bool>> BuilderDefs(string text)
+ {
+ var defs = new Dictionary<string, List<bool>>(StringComparer.Ordinal);
+ // A declaration: a return type, the name, then a typed first parameter.
+ foreach (Match m in Regex.Matches(text, $@"(?<type>[\w.<>?\[\]]+)\s+(?<b>{Builders})\s*\(\s*[\w.<>?\[\]]+\s+\w+\s*[,)=]"))
+ {
+ if (m.Groups["type"].Value is "return" or "new" or "await" or "else" or "yield" or "in" or "is") continue;
+ var body = DeclarationBody(text, m.Index + m.Length - 1);
+ var name = m.Groups["b"].Value;
+ if (!defs.TryGetValue(name, out var l)) defs[name] = l = new List<bool>();
+ l.Add(body.Contains("NotaText.Label("));
+ }
+ return defs;
+ }
+
+ /// <summary>The text of a declaration from inside its parameter list to the end of its
+ /// body: an expression body to its ';', a block body to its closing brace.</summary>
+ private static string DeclarationBody(string text, int from)
+ {
+ // Close the parameter list first: we start inside it, at depth 1.
+ int i = from, depth = 1;
+ while (i < text.Length && depth > 0)
+ {
+ i = SkipString(text, i);
+ if (i >= text.Length) break;
+ if (text[i] == '(') depth++;
+ else if (text[i] == ')') depth--;
+ i++;
+ }
+ int start = i;
+ while (i < text.Length && char.IsWhiteSpace(text[i])) i++;
+ bool expression = i + 1 < text.Length && text[i] == '=' && text[i + 1] == '>';
+ depth = 0;
+ for (; i < text.Length; i++)
+ {
+ i = SkipString(text, i);
+ if (i >= text.Length) break;
+ char c = text[i];
+ if (c is '{' or '(') depth++;
+ else if (c is '}' or ')')
+ {
+ depth--;
+ if (!expression && depth == 0 && c == '}') return text[start..(i + 1)];
+ }
+ else if (expression && depth == 0 && c == ';') return text[start..(i + 1)];
+ }
+ return text[start..];
+ }
+
+ private static int SkipString(string text, int i)
+ {
+ while (i < text.Length && text[i] == '"')
+ {
+ i++;
+ while (i < text.Length && text[i] != '"' && text[i] != '\n') i += text[i] == '\\' ? 2 : 1;
+ i++;
+ }
+ return i;
+ }
+
+ /// <summary>The builders whose literals reach the screen through NotaText.Label: every
+ /// definition in the file routes, or — when the file defines none — every definition in
+ /// its partial-class siblings (SessionView.Inspector.cs → SessionView*.cs).</summary>
+ private static HashSet<string> RoutedBuilders(string file, Dictionary<string, Dictionary<string, List<bool>>> defs)
+ {
+ var routed = new HashSet<string>(StringComparer.Ordinal);
+ var name = Path.GetFileName(file);
+ var stem = name[..name.IndexOf('.')];
+ var dir = Path.GetDirectoryName(file);
+ var siblings = defs.Where(d => d.Key != file && Path.GetDirectoryName(d.Key) == dir
+ && Path.GetFileName(d.Key).StartsWith(stem + ".", StringComparison.Ordinal)).ToArray();
+ foreach (var b in Builders.Split('|'))
+ {
+ var own = defs[file].GetValueOrDefault(b);
+ var found = own ?? siblings.SelectMany(s => s.Value.GetValueOrDefault(b) ?? new List<bool>()).ToList();
+ if (found.Count > 0 && found.All(r => r)) routed.Add(b);
+ }
+ return routed;
+ }
+
+ /// <summary>All caps: two or more letters, none lower case, and some word that is not an
+ /// acronym kept as written (one letter, a note or code with digits, or a NotaText.Fixed
+ /// entry whose value is its key).</summary>
+ private static bool Shouts(string text, Dictionary<string, string> fixedMap)
+ {
+ if (text.Count(char.IsLetter) < 2 || text.Any(char.IsLower)) return false;
+ var whole = text.Trim();
+ if (fixedMap.TryGetValue(whole, out var wv) && wv == whole) return false;
+ return Regex.Matches(text, @"[\p{L}\p{N}#]+").Any(m => !KeepsCase(m.Value, fixedMap));
+ }
+
+ // Mirrors NotaText.Word: which upper-case words NotaText.Label would leave as they are.
+ private static bool KeepsCase(string w, Dictionary<string, string> fixedMap)
+ {
+ if (fixedMap.TryGetValue(w, out var f)) return f == w;
+ if (w.Length == 1 || w.Any(char.IsDigit) || w.Contains('#'))
+ {
+ var stem = w.TrimEnd('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
+ if (stem.Length > 1 && stem.Length < w.Length && fixedMap.TryGetValue(stem, out var fs)) return fs == stem;
+ return true;
+ }
+ return false;
+ }
+
+ // Short words that stay lower case in Title Case too, so they say nothing either way.
+ private static readonly HashSet<string> MinorWords = new(StringComparer.Ordinal)
+ {
+ "a", "an", "the", "and", "or", "nor", "but", "for", "to", "of", "in", "on", "at", "by",
+ "with", "from", "as", "into", "onto", "per", "via", "vs", "than", "it", "its",
+ };
+
+ /// <summary>The first offending capitalised word if the literal is Title Case, else null.
+ /// A word offends when it is capitalised, is not the first of its phrase (a phrase restarts
+ /// after · — – : | ? ! → or a full stop), and has no reason to be: not an acronym, a view
+ /// or product name, or part of a "Nota …" device name. The literal is Title Case when its
+ /// offending words outnumber its lower-case ones — so "Copy to Scene" and "Stop All Clips"
+ /// fail, while a tooltip sentence that names a control ("drag up / down, Shift for fine")
+ /// does not: there the capital marks a name, which the label rule allows.</summary>
+ private static string? TitleCaseWord(string text, Dictionary<string, string> fixedMap)
+ {
+ if (!text.Any(char.IsLower)) return null;
+ bool first = true, nota = false;
+ string? offender = null;
+ int offending = 0, lower = 0;
+ foreach (Match m in Regex.Matches(text, @"(?<w>[\p{L}\p{N}][\p{L}\p{N}#'’\-&+]*)|(?<s>[·—–:|?!•→]|\.(?=\s|$)|\s-\s)"))
+ {
+ if (m.Groups["s"].Success) { first = true; nota = false; continue; }
+ var w = m.Groups["w"].Value;
+ if (first) { first = false; nota = w == "Nota"; continue; }
+ if (!char.IsLetter(w[0])) continue;
+ if (!char.IsUpper(w[0]))
+ {
+ nota = false;
+ if (!MinorWords.Contains(w)) lower++;
+ continue;
+ }
+ if (w == "Nota") { nota = true; continue; }
+ // "Nota Auto Filter": every word of a Nota device name is part of the name.
+ if (nota || NameLike(w, fixedMap)) continue;
+ offender ??= w;
+ offending++;
+ }
+ return offending > lower ? offender : null;
+ }
+
+ private static bool NameLike(string w, Dictionary<string, string> fixedMap)
+ {
+ var head = Regex.Replace(w.Split('-')[0], "['’]s$", "");
+ return head.Length <= 1 || head.Any(char.IsDigit) || head.Contains('#') || ProperNouns.Contains(head)
+ || fixedMap.ContainsKey(head) || fixedMap.ContainsValue(head);
+ }
+}
diff --git a/tests/Nota.SmokeTest/DesignTokenCheck.Themes.cs b/tests/Nota.SmokeTest/DesignTokenCheck.Themes.cs
new file mode 100644
index 00000000..676640ea
--- /dev/null
+++ b/tests/Nota.SmokeTest/DesignTokenCheck.Themes.cs
@@ -0,0 +1,244 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+//
+// The colour themes (spec 011), checked as data: every Theme/Themes/*.json file against
+// the theme-file contract (F1–F6: shape, the exact token catalogue, valid colours) and
+// the readability pairings every theme must meet (T3: contrast and colour distance,
+// calibrated on Studio — specs/011-colour-themes/contracts/ui-contract.md). A failure
+// names the theme and the token, so a broken or new theme is easy to fix. Plus the
+// appearance resolver: old settings migrate and unknown ids fall back.
+
+using System.Text.Json;
+using System.Text.RegularExpressions;
+using Nota.Application;
+
+namespace Nota.SmokeTest;
+
+internal static partial class DesignTokenCheck
+{
+ private static readonly string[] ExtraTokens =
+ {
+ "SystemAccent", "SystemAccentLight1", "SystemAccentLight2", "SystemAccentLight3",
+ "SystemAccentDark1", "SystemAccentDark2", "SystemAccentDark3",
+ "ShadowBevel", "ShadowPopover", "ShadowModal",
+ };
+ private static readonly HashSet<string> AlphaTokens = new() { "ShadowBevel", "ShadowPopover", "ShadowModal" };
+
+ public static IEnumerable<(bool Ok, string Label)> RunThemes()
+ {
+ var root = RepoRoot();
+ if (root is null) { yield return (false, "repo root located"); yield break; }
+ var app = Path.Combine(root, "src/managed/Nota.App");
+ var palette = File.ReadAllText(Path.Combine(app, "Theme/NotaPalette.cs"));
+
+ // The catalogue: every slot NotaPalette declares by name, plus the non-slot tokens.
+ var catalogue = Regex.Matches(palette, @"\bT\((?:nameof\((?<n>\w+)\)|""(?<n>\w+)"")\)").Select(m => m.Groups["n"].Value)
+ .Concat(ExtraTokens).ToList();
+ var dup = catalogue.GroupBy(t => t).Where(g => g.Count() > 1).Select(g => g.Key).ToArray();
+ yield return (catalogue.Count > 0 && dup.Length == 0,
+ dup.Length == 0 ? $"token catalogue: {catalogue.Count} tokens" : $"tokens declared twice: {string.Join(", ", dup)}");
+ var cat = catalogue.ToHashSet();
+
+ // Built-in order names exactly the files there are (FR-012: file + one line).
+ var themeSrc = File.ReadAllText(Path.Combine(app, "Theme/NotaColourTheme.cs"));
+ var order = Regex.Match(themeSrc, @"BuiltInOrder\s*=\s*\{(?<b>[^}]*)\}").Groups["b"].Value;
+ var ordered = Regex.Matches(order, @"""(?<id>[a-z0-9-]+)""").Select(m => m.Groups["id"].Value).ToList();
+ var files = Directory.EnumerateFiles(Path.Combine(app, "Theme/Themes"), "*.json").OrderBy(f => f).ToList();
+ var fileIds = files.Select(Path.GetFileNameWithoutExtension).ToList();
+ var unlisted = fileIds.Except(ordered).ToArray();
+ var noFile = ordered.Except(fileIds).ToArray();
+ yield return (unlisted.Length == 0 && noFile.Length == 0,
+ unlisted.Length == 0 && noFile.Length == 0 ? $"BuiltInOrder lists exactly the {files.Count} theme files"
+ : $"theme files vs BuiltInOrder — not listed: [{string.Join(", ", unlisted)}]; no file: [{string.Join(", ", noFile)}]");
+
+ // Nothing else names a theme: the built-in list, the palette's seed and the
+ // appearance defaults are the only places a theme id may appear in code.
+ var allowed = new[] { "Theme/NotaColourTheme.cs", "Theme/NotaPalette.cs" };
+ var naming = Files(app, "*.cs", SearchOption.AllDirectories)
+ .Where(f => !f.Contains("/obj/") && !f.Contains("/bin/") && !allowed.Any(a => f.EndsWith(a)))
+ .Where(f => fileIds.Any(id => File.ReadAllText(f).Contains($"\"{id}\"")))
+ .Select(f => Rel(app, f)).ToArray();
+ yield return (naming.Length == 0,
+ naming.Length == 0 ? "no view or control names a theme id (adding a theme is its file + BuiltInOrder)"
+ : $"theme ids named in: {string.Join(", ", naming)}");
+
+ // A theme's preview shows that theme, whichever one is live (FR-015).
+ var prefs = File.ReadAllText(Path.Combine(app, "PreferencesWindow.cs"));
+ var chip = Regex.Match(prefs, @"class ThemePreview\b.*?\n \}", RegexOptions.Singleline).Value;
+ yield return (chip.Contains("NotaPalette.ColorIn(") && chip.Contains("_theme)") && !Regex.IsMatch(chip, @"\b(slot|track)\.Color\b"),
+ "the theme card preview draws the theme's own colours (ColorIn), not the live slots");
+
+ foreach (var file in files)
+ {
+ var id = Path.GetFileNameWithoutExtension(file)!;
+ var (theme, error) = LoadTheme(File.ReadAllText(file), cat);
+ yield return (theme is not null && theme.Id == id,
+ theme is null ? $"{id}: {error}" : theme.Id != id ? $"{id}: file declares id '{theme.Id}'"
+ : $"{id}: valid ({theme.Kind}, {theme.Colors.Count} tokens, all opaque but shadows)");
+ if (theme is null) continue;
+
+ var fails = Pairings(theme.Colors).Where(p => p.Value < p.Min - 1e-9).ToList();
+ yield return (fails.Count == 0,
+ fails.Count == 0 ? $"{id}: every readability pairing holds (T3.1–T3.8)"
+ : $"{id}: {fails.Count} pairing(s) below the bar — " +
+ string.Join("; ", fails.Take(6).Select(f => $"{f.Id} {f.What} {f.Value:0.00} < {f.Min}")));
+ }
+ }
+
+ private sealed record ThemeData(string Id, string Kind, Dictionary<string, string> Colors);
+
+ // F1–F6 of contracts/theme-file.md — the same rules NotaThemes.Parse applies at runtime.
+ private static (ThemeData? Theme, string? Error) LoadTheme(string json, HashSet<string> catalogue)
+ {
+ try
+ {
+ using var doc = JsonDocument.Parse(json);
+ var r = doc.RootElement;
+ if (!r.TryGetProperty("formatVersion", out var fv) || fv.ValueKind != JsonValueKind.Number || fv.GetInt32() != 1) return (null, "formatVersion must be 1");
+ var id = r.TryGetProperty("id", out var i) ? i.GetString() ?? "" : "";
+ if (!Regex.IsMatch(id, "^[a-z0-9]+(-[a-z0-9]+)*$") || id == "system") return (null, $"invalid id '{id}'");
+ var name = r.TryGetProperty("name", out var n) ? n.GetString() ?? "" : "";
+ if (name.Length is < 1 or > 40) return (null, "name must be 1–40 characters");
+ var kind = r.TryGetProperty("kind", out var k) ? k.GetString() ?? "" : "";
+ if (kind is not ("dark" or "light")) return (null, $"kind must be dark or light, not '{kind}'");
+ if (!r.TryGetProperty("colors", out var colors) || colors.ValueKind != JsonValueKind.Object) return (null, "colors missing");
+ var map = new Dictionary<string, string>();
+ foreach (var p in colors.EnumerateObject())
+ {
+ if (!catalogue.Contains(p.Name)) return (null, $"unknown token '{p.Name}'");
+ var hex = p.Value.ValueKind == JsonValueKind.String ? p.Value.GetString() ?? "" : "";
+ if (!Regex.IsMatch(hex, "^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$")) return (null, $"token '{p.Name}' has invalid colour '{hex}'");
+ if (hex.Length == 9 && !hex[1..3].Equals("FF", StringComparison.OrdinalIgnoreCase) && !AlphaTokens.Contains(p.Name))
+ return (null, $"token '{p.Name}' must be opaque");
+ map[p.Name] = hex;
+ }
+ var missing = catalogue.Where(t => !map.ContainsKey(t)).ToArray();
+ if (missing.Length > 0) return (null, "missing token(s) " + string.Join(", ", missing));
+ return (new ThemeData(id, kind, map), null);
+ }
+ catch (JsonException e) { return (null, "not valid JSON: " + e.Message); }
+ }
+
+ // ---- T3: readability pairings -------------------------------------------------------
+
+ private sealed record Pairing(string Id, string What, double Value, double Min);
+
+ private static readonly string[] FiveSurfaces = { "BgApp", "Panel", "SurfaceRaised", "SurfaceHover", "BgSunken" };
+
+ private static IEnumerable<Pairing> Pairings(Dictionary<string, string> c)
+ {
+ Pairing Cr(string id, string a, string b, double min) => new(id, $"{a}/{b}", Contrast(c[a], c[b]), min);
+ foreach (var t in new[] { "TextPrimary", "TextSecondary", "TextMuted" })
+ foreach (var s in FiveSurfaces) yield return Cr("T3.1", t, s, 4.5);
+ foreach (var s in FiveSurfaces) yield return Cr("T3.2", "TextTertiary", s, 3.0);
+ foreach (var t in new[] { "TextFaint", "TextDisabled", "TextAxis" })
+ foreach (var s in FiveSurfaces) yield return Cr("T3.3", t, s, 2.5);
+ foreach (var s in new[] { "BgApp", "Panel", "BgSunken" }) yield return Cr("T3.4", "AccentBright", s, 2.3);
+ foreach (var f in new[] { "Accent", "Mute", "Solo", "Record" })
+ yield return new("T3.5", $"ink on {f}", Contrast(Ink(c[f]), c[f]), 4.5);
+ foreach (var f in Enumerable.Range(1, 9).Select(i => $"Track{i}").Append("ReturnA").Append("ReturnB"))
+ yield return new("T3.6", $"ink on {f}", Contrast(Ink(c[f]), c[f]), 3.0);
+ var tracks = Enumerable.Range(1, 9).Select(i => $"Track{i}").ToArray();
+ for (int i = 0; i < tracks.Length; i++)
+ for (int j = i + 1; j < tracks.Length; j++)
+ yield return new("T3.7", $"ΔE {tracks[i]}/{tracks[j]}", DeltaE(c[tracks[i]], c[tracks[j]]), 12);
+ var states = new[] { "Accent", "Mute", "Solo", "Record" };
+ for (int i = 0; i < states.Length; i++)
+ for (int j = i + 1; j < states.Length; j++)
+ yield return new("T3.8", $"ΔE {states[i]}/{states[j]}", DeltaE(c[states[i]], c[states[j]]), 15);
+ }
+
+ private static (double R, double G, double B) Rgb(string hex)
+ {
+ hex = hex.TrimStart('#');
+ if (hex.Length == 8) hex = hex[2..];
+ return (Convert.ToInt32(hex[..2], 16), Convert.ToInt32(hex[2..4], 16), Convert.ToInt32(hex[4..6], 16));
+ }
+
+ private static double Luminance(string hex)
+ {
+ static double Ch(double v) { v /= 255; return v <= 0.03928 ? v / 12.92 : Math.Pow((v + 0.055) / 1.055, 2.4); }
+ var (r, g, b) = Rgb(hex);
+ return 0.2126 * Ch(r) + 0.7152 * Ch(g) + 0.0722 * Ch(b);
+ }
+
+ private static double Contrast(string a, string b)
+ {
+ double la = Luminance(a), lb = Luminance(b);
+ return (Math.Max(la, lb) + 0.05) / (Math.Min(la, lb) + 0.05);
+ }
+
+ // NotaPalette.ReadableInkOn: dark ink or white, whichever reads better on the fill.
+ private static string Ink(string fill) => Contrast("#17181A", fill) >= Contrast("#FFFFFF", fill) ? "#17181A" : "#FFFFFF";
+
+ private static (double L, double A, double B) Lab(string hex)
+ {
+ static double Lin(double v) { v /= 255; return v <= 0.04045 ? v / 12.92 : Math.Pow((v + 0.055) / 1.055, 2.4); }
+ static double F(double t) => t > 0.008856 ? Math.Cbrt(t) : 7.787 * t + 16.0 / 116;
+ var (r0, g0, b0) = Rgb(hex);
+ double r = Lin(r0), g = Lin(g0), b = Lin(b0);
+ double x = (r * .4124 + g * .3576 + b * .1805) / .95047, y = r * .2126 + g * .7152 + b * .0722, z = (r * .0193 + g * .1192 + b * .9505) / 1.08883;
+ return (116 * F(y) - 16, 500 * (F(x) - F(y)), 200 * (F(y) - F(z)));
+ }
+
+ private static double DeltaE(string a, string b)
+ {
+ var (l1, a1, b1) = Lab(a); var (l2, a2, b2) = Lab(b);
+ return Math.Sqrt((l1 - l2) * (l1 - l2) + (a1 - a2) * (a1 - a2) + (b1 - b2) * (b1 - b2));
+ }
+
+ // ---- Appearance: migration and fallbacks (data-model.md § Resolution) ----------------
+
+ public static IEnumerable<(bool Ok, string Label)> RunAppearance()
+ {
+ var known = new Dictionary<string, bool>
+ {
+ ["studio-dark"] = true, ["studio-light"] = false, ["ember-graphite"] = true, ["ember-paper"] = false,
+ };
+ AppearanceChoice R(Settings s) => Appearance.Resolve(s, known);
+
+ var a = R(new Settings { Theme = AppTheme.Dark });
+ yield return (!a.FollowSystem && a.Single == "studio-dark", "legacy Dark → Studio Dark");
+ a = R(new Settings { Theme = AppTheme.Light });
+ yield return (!a.FollowSystem && a.Single == "studio-light", "legacy Light → Studio Light");
+ a = R(new Settings { Theme = AppTheme.System });
+ yield return (a.FollowSystem && a.Dark == "studio-dark" && a.Light == "studio-light", "legacy System → follow system, Studio Dark / Studio Light");
+ a = R(new Settings());
+ yield return (!a.FollowSystem && a.Single == "studio-dark", "no setting → Studio Dark");
+ a = R(new Settings { ColourTheme = "ember-paper" });
+ yield return (!a.FollowSystem && a.Single == "ember-paper", "a stored theme is kept");
+ a = R(new Settings { ColourTheme = "no-such-theme", Theme = AppTheme.Light });
+ yield return (!a.FollowSystem && a.Single == "studio-dark", "unknown theme id → Studio Dark");
+ a = R(new Settings { ColourTheme = "system", SystemDarkTheme = "gone", SystemLightTheme = "studio-dark" });
+ yield return (a.FollowSystem && a.Dark == "studio-dark" && a.Light == "studio-light", "unknown dark-mode id and wrong-kind light-mode id fall back per mode");
+ yield return (a.Active(osIsDark: true) == "studio-dark" && R(new Settings { ColourTheme = "system", SystemLightTheme = "ember-paper" }).Active(osIsDark: false) == "ember-paper",
+ "follow system wears the theme for the OS mode");
+
+ // The Appearance page: a mode first, then a theme of that kind.
+ var m = new AppearanceChoice(false, "ember-graphite", "ember-graphite", "studio-light");
+ yield return (Appearance.ModeOf(m, singleIsDark: true) == AppearanceMode.Dark
+ && Appearance.ModeOf(m with { FollowSystem = true }, singleIsDark: true) == AppearanceMode.FollowSystem,
+ "the page shows Follow system while following, else the single theme's kind");
+ var toLight = Appearance.WithMode(m, AppearanceMode.Light);
+ yield return (!toLight.FollowSystem && toLight.Single == "studio-light" && Appearance.WithMode(toLight, AppearanceMode.Dark).Single == "ember-graphite",
+ "Dark / Light wear that mode's remembered pick, and switching back returns to it");
+ var picked = Appearance.WithPick(toLight, "ember-paper", isDark: false);
+ yield return (picked.Single == "ember-paper" && picked.Light == "ember-paper" && picked.Dark == "ember-graphite",
+ "picking a theme wears it and remembers it for its mode");
+ var across = Appearance.WithPick(m, "studio-light", isDark: false);
+ yield return (!across.FollowSystem && across.Single == "studio-light" && Appearance.ModeOf(across, singleIsDark: false) == AppearanceMode.Light && across.Dark == "ember-graphite",
+ "picking a theme of the other kind switches mode and keeps the other mode's pick");
+ var follow = Appearance.WithPick(Appearance.WithMode(picked, AppearanceMode.FollowSystem), "studio-dark", isDark: true);
+ yield return (follow.FollowSystem && follow.Dark == "studio-dark" && follow.Light == "ember-paper" && follow.Single == "ember-paper",
+ "while following, a pick sets only that mode's theme");
+
+ var s = new Settings();
+ Appearance.Store(s, new AppearanceChoice(false, "ember-paper", "ember-graphite", "studio-light"), singleIsDark: false);
+ a = R(s);
+ yield return (s.ColourTheme == "ember-paper" && s.Theme == AppTheme.Light && a.Single == "ember-paper" && a.Dark == "ember-graphite",
+ "store round-trips and keeps the legacy Theme in step (Light)");
+ Appearance.Store(s, a with { FollowSystem = true }, singleIsDark: false);
+ yield return (s.ColourTheme == "system" && s.Theme == AppTheme.System && R(s).FollowSystem && R(s).Light == "studio-light",
+ "follow system stores as \"system\", legacy Theme = System");
+ }
+}
diff --git a/tests/Nota.SmokeTest/DesignTokenCheck.cs b/tests/Nota.SmokeTest/DesignTokenCheck.cs
index cb207983..63b8124d 100644
--- a/tests/Nota.SmokeTest/DesignTokenCheck.cs
+++ b/tests/Nota.SmokeTest/DesignTokenCheck.cs
@@ -1,27 +1,25 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
//
-// The palette lives in two files that nothing but discipline kept in step:
-// Theme/NotaTheme.axaml serves XAML through {DynamicResource Brush.*}, and
-// Theme/NotaPalette.cs serves the custom-drawn layer, which cannot cheaply
-// resolve a resource inside a Render override. A token changed in one and
-// missed in the other is invisible until someone opens the other variant.
+// Colour has one home (spec 011): the theme files in Theme/Themes/*.json. NotaPalette
+// declares one slot per token by name and re-tints it from the active theme, and
+// NotaThemeService publishes those same brushes to XAML under their Brush.* keys
+// (NotaPalette.KeyMap). So instead of keeping two copies of a palette in step, these
+// checks keep the *wiring* honest — read as text, with no reference to Nota.App, no
+// Avalonia and no UI thread:
//
-// So this reads both as text — no reference to Nota.App, no Avalonia, no UI
-// thread — and enforces what the two files claim about each other:
+// 1. NotaTheme.axaml holds no colour at all (no brush, colour or shadow resource);
+// 2. every Brush.* key a style or view names is in KeyMap, so it resolves to a slot;
+// 3. every Shadow.* key a style names is one NotaThemeService builds.
//
-// 1. the Dark and Light dictionaries declare the same keys;
-// 2. a NotaPalette slot tagged `// Brush.Key` holds the same dark/light pair
-// that NotaTheme.axaml gives that key;
-// 3. every key NotaPalette.KeyMap hands out actually exists in the theme.
-//
-// See DESIGN.md § How theming works.
+// The theme files themselves are checked in DesignTokenCheck.Themes.cs.
+// See DESIGN.md § Colour themes.
using System.Text.RegularExpressions;
namespace Nota.SmokeTest;
-internal static class DesignTokenCheck
+internal static partial class DesignTokenCheck
{
public static IEnumerable<(bool Ok, string Label)> Run()
{
@@ -32,76 +30,47 @@ internal static class DesignTokenCheck
yield break;
}
- var themePath = Path.Combine(root, "src/managed/Nota.App/Theme/NotaTheme.axaml");
- var palettePath = Path.Combine(root, "src/managed/Nota.App/Theme/NotaPalette.cs");
- if (!File.Exists(themePath) || !File.Exists(palettePath))
- {
- yield return (false, "both palette files found");
- yield break;
- }
-
- var theme = File.ReadAllText(themePath);
- var palette = File.ReadAllText(palettePath);
-
- var dark = Brushes(theme, "Dark");
- var light = Brushes(theme, "Light");
-
- // 1. Both variants must declare the same keys: a token added to one branch
- // and not the other is a colour that vanishes when the variant flips.
- var onlyDark = dark.Keys.Except(light.Keys).OrderBy(k => k).ToArray();
- var onlyLight = light.Keys.Except(dark.Keys).OrderBy(k => k).ToArray();
- yield return (onlyDark.Length == 0 && onlyLight.Length == 0,
- onlyDark.Length == 0 && onlyLight.Length == 0
- ? $"NotaTheme Dark and Light declare the same {dark.Count} keys"
- : $"NotaTheme variants disagree — only Dark: [{string.Join(", ", onlyDark)}]; only Light: [{string.Join(", ", onlyLight)}]");
-
- // 2. Every mirrored slot must carry the theme's pair. A slot claims its
- // mirror in a trailing comment: T("#dark", "#light"); // Brush.Key — note
- var slot = new Regex(
- """public\s+static\s+readonly\s+SolidColorBrush\s+(?<name>\w+)\s*=\s*T\(\s*"(?<d>#[0-9A-Fa-f]{6,8})"\s*,\s*"(?<l>#[0-9A-Fa-f]{6,8})"\s*\)\s*;\s*//\s*(?<key>Brush\.\w+)""",
- RegexOptions.Compiled);
-
- var mismatched = new List<string>();
- int mirrored = 0;
- foreach (Match m in slot.Matches(palette))
- {
- var key = m.Groups["key"].Value;
- if (!dark.TryGetValue(key, out var td) || !light.TryGetValue(key, out var tl))
- {
- mismatched.Add($"{m.Groups["name"].Value} claims {key}, which the theme does not declare");
- continue;
- }
- mirrored++;
- var sd = m.Groups["d"].Value;
- var sl = m.Groups["l"].Value;
- if (!Same(sd, td)) mismatched.Add($"{key} dark: palette {sd} vs theme {td}");
- if (!Same(sl, tl)) mismatched.Add($"{key} light: palette {sl} vs theme {tl}");
- }
-
- yield return (mirrored > 0, $"NotaPalette mirrors {mirrored} theme keys by name");
- yield return (mismatched.Count == 0,
- mismatched.Count == 0
- ? "every mirrored slot matches the theme in both variants"
- : $"palette/theme drift ({mismatched.Count}): {string.Join("; ", mismatched.Take(8))}");
+ var app = Path.Combine(root, "src/managed/Nota.App");
+ var theme = File.ReadAllText(Path.Combine(app, "Theme/NotaTheme.axaml"));
+ var palette = File.ReadAllText(Path.Combine(app, "Theme/NotaPalette.cs"));
+ var service = File.ReadAllText(Path.Combine(app, "Theme/NotaThemeService.cs"));
+
+ // 1. A colour in the XAML would be a second copy that no theme switch reaches.
+ var inXaml = Regex.Matches(theme, """<(?<t>SolidColorBrush|Color|BoxShadows)\s+x:Key="(?<k>[^"]+)">""")
+ .Select(m => m.Groups["k"].Value).ToArray();
+ yield return (inXaml.Length == 0 && !theme.Contains("<ResourceDictionary.ThemeDictionaries>"),
+ inXaml.Length == 0 ? "NotaTheme.axaml holds no colour (the theme files are the only home)"
+ : $"colour resources left in NotaTheme.axaml: {string.Join(", ", inXaml.Take(8))}");
+
+ // 2. KeyMap is what NotaThemeService publishes, so a key missing from it is a
+ // DynamicResource that resolves to nothing — the control keeps a stale colour.
+ var keyMap = KeyMapKeys(palette);
+ yield return (keyMap.Count > 0, $"NotaPalette.KeyMap parsed ({keyMap.Count} keys)");
+ var referenced = Files(app, "*.*", SearchOption.AllDirectories)
+ .Where(f => (f.EndsWith(".cs") || f.EndsWith(".axaml")) && !f.Contains("/obj/") && !f.Contains("/bin/"))
+ .SelectMany(f => Regex.Matches(File.ReadAllText(f), @"(?:DynamicResource |"")(?<key>Brush\.\w+)[}""]").Select(m => m.Groups["key"].Value))
+ .Distinct().Where(k => !keyMap.Contains(k)).OrderBy(k => k).ToArray();
+ yield return (referenced.Length == 0,
+ referenced.Length == 0 ? "every referenced Brush.* key is published (in KeyMap)"
+ : $"references to unpublished brush keys: {string.Join(", ", referenced)}");
+
+ // 3. Shadows are values built from theme colours on every switch.
+ var built = Regex.Matches(service, @"res\[""(?<k>Shadow\.\w+)""\]").Select(m => m.Groups["k"].Value).ToHashSet();
+ var shadowRefs = Files(app, "*.*", SearchOption.AllDirectories)
+ .Where(f => (f.EndsWith(".cs") || f.EndsWith(".axaml")) && !f.Contains("/obj/") && !f.Contains("/bin/"))
+ .SelectMany(f => Regex.Matches(File.ReadAllText(f), @"(?:DynamicResource |"")(?<key>Shadow\.\w+)[}""]").Select(m => m.Groups["key"].Value))
+ .Distinct().Where(k => !built.Contains(k)).OrderBy(k => k).ToArray();
+ yield return (built.Count == 4 && shadowRefs.Length == 0,
+ shadowRefs.Length == 0 ? $"every Shadow.* key is built from the theme ({string.Join(", ", built.OrderBy(k => k))})"
+ : $"Shadow.* keys nothing builds: {string.Join(", ", shadowRefs)}");
+ }
- // 3. KeyMap is how a code-built view resolves a token by its XAML key, so
- // every key it offers has to be a key the theme really defines.
+ private static HashSet<string> KeyMapKeys(string palette)
+ {
var keyMap = Regex.Match(palette, @"KeyMap\s*=\s*new\([^)]*\)\s*\{(?<body>.*?)\n \};", RegexOptions.Singleline);
- var unknown = new List<string>();
- int mapped = 0;
- if (keyMap.Success)
- {
- foreach (Match m in Regex.Matches(keyMap.Groups["body"].Value, @"\[""(?<key>Brush\.\w+)""\]"))
- {
- mapped++;
- if (!dark.ContainsKey(m.Groups["key"].Value)) unknown.Add(m.Groups["key"].Value);
- }
- }
- yield return (keyMap.Success && mapped > 0, $"NotaPalette.KeyMap parsed ({mapped} keys)");
- yield return (unknown.Count == 0,
- unknown.Count == 0
- ? "every KeyMap key exists in NotaTheme"
- : $"KeyMap offers keys the theme lacks: {string.Join(", ", unknown)}");
+ return keyMap.Success
+ ? Regex.Matches(keyMap.Groups["body"].Value, @"\[""(?<key>Brush\.\w+)""\]").Select(m => m.Groups["key"].Value).ToHashSet()
+ : new HashSet<string>();
}
/// <summary>Geometry: Radius.* / Control.* / Space.* in NotaTheme.axaml must equal the
@@ -165,6 +134,29 @@ internal static class DesignTokenCheck
var gradients = Offenders(@"\b(?:Linear|Radial|Conic)GradientBrush\b|NotaPalette\.VGradient\(");
yield return (gradients.Length == 0,
gradients.Length == 0 ? "no gradients in views" : $"gradients in: {string.Join(", ", gradients)}");
+
+ // A Rectangle's RadiusX/RadiusY is a corner radius too, so it keeps the 0/1/2/3/4
+ // scale (spec 012 R9: the add-device targets drew at 7 and 6). Ratchet in
+ // RadiusAllowList.txt (path + "RadiusX = n") with today's offenders.
+ var inv = System.Globalization.CultureInfo.InvariantCulture;
+ var offScale = new List<Hit>();
+ foreach (var f in SourceFiles(app, ".cs", ".axaml"))
+ {
+ int n = 0;
+ foreach (var line in File.ReadLines(f))
+ {
+ n++;
+ var code = f.EndsWith(".cs") ? CodeOf(line) : Regex.Replace(line, "<!--.*?-->", "");
+ foreach (Match m in Regex.Matches(code, @"\bRadius(?<axis>[XY])\s*=\s*""?(?<v>[0-9]+(?:\.[0-9]+)?)\b"))
+ if (!new[] { 0d, 1, 2, 3, 4 }.Contains(double.Parse(m.Groups["v"].Value, inv)))
+ offScale.Add(new Hit(RelManaged(root, f), n, $"Radius{m.Groups["axis"].Value} = {m.Groups["v"].Value}"));
+ }
+ }
+ var list = ReadRatchet(Path.Combine(root, RatchetDir, "RadiusAllowList.txt"));
+ var radiusUsed = new HashSet<(string, string)>();
+ yield return RatchetVerdict("Rectangle radius off the 0/1/2/3/4 scale", offScale, list.ToHashSet(), radiusUsed);
+ yield return RatchetStale("radius allow-list", list, radiusUsed);
+ yield return (true, $"radius allow-list: {list.Distinct().Count()} entries (ratchet: may only shrink)");
}
/// <summary>Type: the theme and NotaFonts point at the same bundled Geist files, and no
@@ -274,6 +266,7 @@ internal static class DesignTokenCheck
("vowel-dropped parameter label", new("\"(FDBK|FEEDB|FB|ATK|DEC|SUS|REL|LVL|DET|SPR|QNT|PIT|TRANSP|AMT|VOL|POS|EMPH|RESON)\"")),
};
var hits = rules.ToDictionary(r => r.Name, _ => new List<string>());
+ var minus = new List<Hit>();
foreach (var f in Files(app, "*.cs", SearchOption.AllDirectories)
.Where(f => !f.Contains("/obj/") && !f.Contains("/bin/") && !f.EndsWith("NotaNum.cs")))
{
@@ -286,10 +279,37 @@ internal static class DesignTokenCheck
var literals = string.Join("\n", Regex.Matches(code, "\"((?:[^\"\\\\]|\\\\.)*)\"").Select(m => m.Value));
foreach (var (name, re) in rules)
if (re.IsMatch(name.StartsWith("invariant") ? code : literals)) hits[name].Add($"{Rel(app, f)}:{n}");
+ var full = CodeOf(line);
+ foreach (var (at, body) in Literals(full))
+ if (ShowsHyphenMinus(full, at, Unescape(body))) minus.Add(new Hit(RelManaged(root, f), n, body));
}
}
foreach (var (name, _) in rules)
yield return (hits[name].Count == 0, hits[name].Count == 0 ? $"no {name}" : $"{name}: {string.Join(", ", hits[name].Take(8))}");
+
+ // A negative number on screen takes U+2212 (spec 012 R9): a typed "-12" is a hyphen,
+ // shorter and lower than the minus every formatted readout already shows. Ratchet in
+ // NumberAllowList.txt (path + literal) with today's offenders.
+ var list = ReadRatchet(Path.Combine(root, RatchetDir, "NumberAllowList.txt"));
+ var allowed = list.ToHashSet();
+ var used = new HashSet<(string, string)>();
+ yield return RatchetVerdict("hyphen-minus before a digit in a view literal (use U+2212)", minus, allowed, used);
+ yield return RatchetStale("number allow-list", list, used);
+ yield return (true, $"number allow-list: {allowed.Count} entries (ratchet: may only shrink)");
+ }
+
+ /// <summary>A literal that puts a hyphen-minus in front of a number on screen ("-12",
+ /// "+6 / -48"). Not: format strings, key or shortcut text, path data, version strings, or
+ /// a hyphen inside a word or range ("track-1", "1-127" — the range rule is DESIGN.md's).</summary>
+ private static bool ShowsHyphenMinus(string code, int at, string text)
+ {
+ if (!Regex.IsMatch(text, @"(?<![\p{L}\p{N}_.\-])-[0-9]")) return false;
+ if (text.Contains('{') || text.Contains('#') || Regex.IsMatch(text, @"^[\s+\-0.,;%‰]*$")) return false; // format
+ if (Regex.IsMatch(code[..at], @"(?:ToString|Format|TryParse|Parse)\(\s*$")) return false; // format / parse argument
+ if (Regex.IsMatch(text, @"Ctrl|Cmd|Shift|Alt\b|[⌘⌥⇧⌃]")) return false; // key text
+ if (PathData.IsMatch(text) || Regex.IsMatch(text, @"[0-9]\s+[LlHhVvCcAaZz]\s*-?[0-9]")) return false; // path data
+ if (Regex.IsMatch(text, @"\b\d+\.\d+\.\d+")) return false; // version
+ return true;
}
/// <summary>Visualisers: one graph window, no fills under curves, meters on the almanac
@@ -322,7 +342,7 @@ internal static class DesignTokenCheck
var arr = string.Concat(Files(app, "ArrangementView*.cs").Select(File.ReadAllText));
yield return (!arr.Contains("PlayheadGlow") && Regex.IsMatch(arr, @"PlayheadPen = new Pen\(PlayheadBrush, 1\)"),
- "the arrangement playhead is a 1px brass line with no glow");
+ "the arrangement playhead is a 1px accent line with no glow");
}
/// <summary>The almanac's closed list of bans (§ 9) that the other checks do not already
@@ -355,7 +375,8 @@ internal static class DesignTokenCheck
var hits = rules.ToDictionary(r => r.Name, _ => new List<string>());
foreach (var f in Files(app, "*.*", SearchOption.AllDirectories)
.Where(f => (f.EndsWith(".cs") || f.EndsWith(".axaml")) && !f.Contains("/obj/") && !f.Contains("/bin/")
- && !f.EndsWith("Theme/NotaPalette.cs") && !f.EndsWith("Theme/NotaTheme.axaml")))
+ && !f.EndsWith("Theme/NotaPalette.cs") && !f.EndsWith("Theme/NotaTheme.axaml")
+ && !f.EndsWith("Theme/NotaColourTheme.cs"))) // the theme loader parses colour values by definition
{
var rel = Rel(app, f);
int n = 0;
@@ -383,9 +404,11 @@ internal static class DesignTokenCheck
yield return (Regex.IsMatch(kit, @"HeaderH = 22;"), "device card header is 22px");
// Accepted exceptions (decided 2026-09-16): parameter stubs are narrow; the Bass and
- // Physical instruments keep their wider layouts. (Plug-ins are S 260 / L 700.)
+ // Physical instruments keep their wider layouts. (Plug-ins are S 260 / L 700.) The
+ // generic instrument card is an "Open GUI" stub, 170 wide since before it joined the
+ // shared shell (spec 012).
var exempt = new HashSet<string> { "GenericParamDeviceBody.cs", "GenericMidiBody.cs",
- "BassInstrumentCard.cs", "PhysicalInstrumentCard.cs" };
+ "BassInstrumentCard.cs", "PhysicalInstrumentCard.cs", "GenericInstrumentCard.cs" };
var off = Files(Path.Combine(app, "DeviceCards"), "*.cs", SearchOption.AllDirectories)
.Where(f => !exempt.Contains(Path.GetFileName(f)))
.SelectMany(f => Regex.Matches(File.ReadAllText(f), @"public double (?:Card)?Width => (?<w>[0-9]+);")
@@ -395,35 +418,279 @@ internal static class DesignTokenCheck
var main = File.ReadAllText(Path.Combine(app, "MainWindow.axaml"));
yield return (Regex.IsMatch(main, "x:Name=\"TransportBar\" DockPanel.Dock=\"Top\"[^>]*Height=\"\\{StaticResource Control.TransportBar\\}\""),
- "transport is a 60px island at the top of the window");
+ "transport is a docked row at the top of the window");
yield return (Regex.IsMatch(main, "<Border Grid.Column=\"1\" Classes=\"console\">"),
- "transport console is the 42px recess inside it");
+ "transport console is the recessed group inside it");
var browser = File.ReadAllText(Path.Combine(app, "BrowserView.cs"));
yield return (Regex.IsMatch(browser, @"const double RowH = 2[6-8];"), "browser list rows are 26–28px");
}
- /// <summary>The Brush.* keys and values of one ThemeDictionary.</summary>
- private static Dictionary<string, string> Brushes(string theme, string variant)
+ /// <summary>The Studio rules (DESIGN.md) that the older checks do not hold:
+ /// the 0/1/2/3/4 radius scale, blurred shadows only on floating layers, sentence-case
+ /// labels without tracking, values neutral at rest in the shared controls, the docked
+ /// shell's sizes, and no value left from the earlier Ember palette.</summary>
+ public static IEnumerable<(bool Ok, string Label)> RunStudio()
{
- var dict = new Dictionary<string, string>(StringComparer.Ordinal);
- var block = Regex.Match(theme,
- $"""x:Key="{variant}">(?<body>.*?)\n </ResourceDictionary>""", RegexOptions.Singleline);
- if (!block.Success) return dict;
- foreach (Match m in Regex.Matches(block.Groups["body"].Value,
- """<SolidColorBrush\s+x:Key="(?<key>Brush\.\w+)">(?<val>#[0-9A-Fa-f]{6,8})</SolidColorBrush>"""))
- dict[m.Groups["key"].Value] = m.Groups["val"].Value;
- return dict;
+ var root = RepoRoot();
+ if (root is null) { yield return (false, "repo root located"); yield break; }
+ var app = Path.Combine(root, "src/managed/Nota.App");
+ var theme = File.ReadAllText(Path.Combine(app, "Theme/NotaTheme.axaml"));
+ var inv = System.Globalization.CultureInfo.InvariantCulture;
+
+ // Radius: 0 docked · 1 plot bars · 2 inner keys, rows, clips · 3 controls, cards · 4 modals.
+ var radii = Regex.Matches(theme, """<CornerRadius x:Key="(?<k>Radius\.\w+)">(?<v>[0-9.]+)</CornerRadius>""")
+ .Where(m => !new[] { 0d, 1, 2, 3, 4 }.Contains(double.Parse(m.Groups["v"].Value, inv)))
+ .Select(m => $"{m.Groups["k"].Value} {m.Groups["v"].Value}").ToArray();
+ yield return (radii.Length == 0,
+ radii.Length == 0 ? "every Radius.* is on the 0/1/2/3/4 scale" : $"radii off the scale: {string.Join(", ", radii)}");
+
+ // A blurred shadow means the element floats. Only Shadow.Popover / Shadow.Modal may
+ // carry a blur; every other shadow is a bevel or an edge. They are built from the
+ // theme in NotaThemeService, one res["Shadow.*"] = … statement each.
+ var service = File.ReadAllText(Path.Combine(app, "Theme/NotaThemeService.cs"));
+ var blurred = Regex.Matches(service, @"res\[""(?<k>Shadow\.\w+)""\]\s*=(?<v>[^;]+);")
+ .Where(m => m.Groups["v"].Value.Contains("Blur") && m.Groups["k"].Value is not ("Shadow.Popover" or "Shadow.Modal"))
+ .Select(m => m.Groups["k"].Value).ToList();
+ yield return (blurred.Count == 0,
+ blurred.Count == 0 ? "only Shadow.Popover / Shadow.Modal carry a blur (floating layers)" : $"blurred shadows on docked surfaces: {string.Join(", ", blurred.Distinct())}");
+ var axamlShadows = Files(app, "*.axaml", SearchOption.AllDirectories)
+ .Where(f => !f.Contains("/obj/") && !f.Contains("/bin/") && !f.EndsWith("Theme/NotaTheme.axaml"))
+ .Where(f => Regex.IsMatch(File.ReadAllText(f), """BoxShadow="(?!\{)"""))
+ .Select(f => Rel(app, f)).ToArray();
+ yield return (axamlShadows.Length == 0,
+ axamlShadows.Length == 0 ? "views take shadows from Shadow.* resources only" : $"literal BoxShadow in: {string.Join(", ", axamlShadows)}");
+
+ // No shouting: labels are sentence case with no tracking. The theme's text classes
+ // carry no positive LetterSpacing, NotaType's tracking constants are 0, and the shared
+ // label builders do not upper-case.
+ var tracked = Regex.Matches(theme, """<Setter Property="LetterSpacing" Value="(?<v>[0-9.]+)"/>""")
+ .Where(m => double.Parse(m.Groups["v"].Value, inv) > 0).Count();
+ yield return (tracked == 0, tracked == 0 ? "no tracked (letter-spaced) text class in the theme" : $"{tracked} text style(s) still set LetterSpacing");
+ var fonts = File.ReadAllText(Path.Combine(app, "Theme/NotaFonts.cs"));
+ var trackConsts = Regex.Matches(fonts, @"(?<n>\w+Tracking)\s*=\s*(?<v>[0-9.]+)").Where(m => double.Parse(m.Groups["v"].Value, inv) != 0).Select(m => m.Groups["n"].Value).ToArray();
+ yield return (trackConsts.Length == 0, trackConsts.Length == 0 ? "NotaType tracking constants are 0" : $"tracking left in NotaType: {string.Join(", ", trackConsts)}");
+ var shouters = new[] { "DeviceCardKit.cs", "Controls/NotaGraph.cs", "ClipEditorKit.cs", "DeviceChainView.Shell.cs", "../Nota.Application/Palette/PaletteSearch.cs" }
+ .Where(f => File.ReadAllText(Path.Combine(app, f)).Contains("ToUpperInvariant()")).ToArray();
+ yield return (shouters.Length == 0,
+ shouters.Length == 0 ? "the shared label builders do not upper-case (NotaText.Label)" : $"upper-casing label builders: {string.Join(", ", shouters)}");
+
+ // Live or chosen: the shared value controls draw a resting value in neutral ink.
+ var knob = File.ReadAllText(Path.Combine(app, "Controls/Knob.cs"));
+ var graph = File.ReadAllText(Path.Combine(app, "Controls/NotaGraph.cs"));
+ var slider = File.ReadAllText(Path.Combine(app, "Controls/SliderTrack.cs"));
+ yield return (knob.Contains("RestArc = NotaPalette.VizInk") && graph.Contains("PrimaryPen = new Pen(NotaPalette.VizInk")
+ && slider.Contains("Fill = NotaPalette.VizInk"),
+ "knob arcs, slider fills and graph curves are neutral at rest (accent only while live)");
+
+ // The docked shell: a 44px transport row with a 30px console, panels on a 1px seam.
+ var geo = File.ReadAllText(Path.Combine(app, "Theme/NotaGeometry.cs"));
+ yield return (Regex.IsMatch(geo, @"TransportBar = 44;") && Regex.IsMatch(geo, @"Console = 30;") && Regex.IsMatch(geo, @"Gutter = 1;"),
+ "transport row 44 · console 30 · panels meet on a 1px seam");
+
+ // No value of the earlier Ember palette is in a Studio theme (the Ember themes are
+ // Ember by definition — spec 011 FR-016).
+ var studio = string.Join("\n", Directory.EnumerateFiles(Path.Combine(app, "Theme/Themes"), "studio-*.json").Select(File.ReadAllText));
+ var left = EmberHexes.Where(h => studio.Contains(h, StringComparison.OrdinalIgnoreCase)).ToArray();
+ yield return (studio.Length > 0 && left.Length == 0,
+ left.Length == 0 ? "no Ember palette value in the Studio themes" : $"Ember values in Studio themes: {string.Join(", ", left)}");
}
- // #RRGGBB and #FFRRGGBB name the same colour; compare on the opaque form.
- private static bool Same(string a, string b) => Norm(a) == Norm(b);
+ // Signature values of the Ember palette (0.52.1): brass accents, warm grounds.
+ private static readonly string[] EmberHexes = { "#D8A03D", "#0B0A09", "#141310", "#E9E4D8", "#A87415", "#EAE5D7", "#241F17", "#F0C060" };
+
+ /// <summary>Icons: one icon set. Glyph draws every icon from its own path data, so path
+ /// geometry anywhere else in the app is an icon drawn outside the set (spec 012 R8).
+ /// Today's call sites sit in IconAllowList.txt as a per-file count that may only go down
+ /// — a file above its count has a new inline icon, a file below it must lower the count.
+ /// See DESIGN.md § Controls.</summary>
+ public static IEnumerable<(bool Ok, string Label)> RunIcons()
+ {
+ var root = RepoRoot();
+ if (root is null) { yield return (false, "repo root located"); yield break; }
+ var app = Path.Combine(root, "src/managed/Nota.App");
+
+ var parse = new Regex(@"\b(?:Stream|Path)?Geometry\.Parse\(");
+ var xamlPath = new Regex(@"\b(?:Data|Figures)=""\s*[MmFf]|<(?:StreamGeometry|PathGeometry)\b[^>]*>\s*[MmFf]");
+ var counts = new SortedDictionary<string, int>(StringComparer.Ordinal);
+ foreach (var f in SourceFiles(app, ".cs", ".axaml").Where(f => !Norm(f).EndsWith("/Controls/Glyph.cs")))
+ {
+ int n = 0;
+ if (f.EndsWith(".cs"))
+ foreach (var line in File.ReadLines(f))
+ {
+ var code = CodeOf(line);
+ // A parsed constant and the constant itself are two sites: both go when
+ // the icon becomes a Glyph kind.
+ n += Math.Max(parse.Matches(code).Count,
+ Literals(code).Count(l => PathData.IsMatch(Unescape(l.Body))));
+ }
+ else
+ n = xamlPath.Matches(BlankXmlComments(File.ReadAllText(f))).Count;
+ if (n > 0) counts[RelManaged(root, f)] = n;
+ }
+
+ var allowed = new Dictionary<string, int>(StringComparer.Ordinal);
+ foreach (var (path, key) in ReadRatchet(Path.Combine(root, RatchetDir, "IconAllowList.txt")))
+ allowed[path] = int.TryParse(key, out var c) ? c : 0;
+ var over = counts.Where(kv => kv.Value > allowed.GetValueOrDefault(kv.Key))
+ .Select(kv => $"{kv.Key} ({kv.Value}, allowed {allowed.GetValueOrDefault(kv.Key)})").ToArray();
+ yield return (over.Length == 0,
+ over.Length == 0 ? "no new icon geometry outside Glyph (Geometry.Parse, Data=\"M…\", path strings)"
+ : $"icon geometry outside Glyph: {string.Join(", ", over.Take(8))}");
+ var slack = allowed.Where(kv => kv.Value > counts.GetValueOrDefault(kv.Key))
+ .Select(kv => $"{kv.Key} {kv.Value} → {counts.GetValueOrDefault(kv.Key)}").ToArray();
+ yield return (slack.Length == 0,
+ slack.Length == 0 ? "icon allow-list counts are tight" : $"icon allow-list above today's count (lower it): {string.Join(", ", slack.Take(8))}");
+ yield return (true, $"icon allow-list: {allowed.Values.Sum()} sites in {allowed.Count} files (ratchet: may only shrink)");
+ }
+
+ // ---- shared by the ratchet checks (labels, icons, minus signs, radii) ---------------
+ //
+ // A ratchet starts green by listing today's offenders in a text file next to this one,
+ // so the check lands before the fixes do. Every later change can only remove lines:
+ // a new offender fails, and so does a line that no longer matches anything (stale).
+
+ private const string RatchetDir = "tests/Nota.SmokeTest";
+
+ /// <summary>The regular string literals on a C# line (comment already stripped), with
+ /// their index and body as written. Interpolated, verbatim and raw strings are not
+ /// returned — their text is built, not written — but a regular literal inside an
+ /// interpolation hole is.</summary>
+ private static List<(int Index, string Body)> Literals(string code)
+ {
+ var list = new List<(int, string)>();
+ for (int i = 0; i < code.Length;)
+ i = code[i] is '"' or '\'' or '$' or '@' ? Lex(code, i, list) : i + 1;
+ return list;
+ }
+
+ /// <summary>Scans the literal that starts at <paramref name="i"/> (if one does) and returns
+ /// the index after it, adding regular string literals to <paramref name="list"/>.</summary>
+ private static int Lex(string s, int i, List<(int, string)> list)
+ {
+ char c = s[i];
+ if (c == '\'')
+ {
+ for (i++; i < s.Length && s[i] != '\''; i += s[i] == '\\' ? 2 : 1) { }
+ return i + 1;
+ }
+ if (c == '"')
+ {
+ if (i + 2 < s.Length && s[i + 1] == '"' && s[i + 2] == '"') return s.Length; // raw string: rest of the line
+ int start = i;
+ for (i++; i < s.Length && s[i] != '"'; i += s[i] == '\\' ? 2 : 1) { }
+ list.Add((start, s[(start + 1)..Math.Min(i, s.Length)]));
+ return i + 1;
+ }
+ int j = i;
+ while (j < s.Length && s[j] is '$' or '@') j++;
+ if (j >= s.Length || s[j] != '"') return i + 1; // @identifier, $ elsewhere
+ bool verbatim = s[i..j].Contains('@'), interpolated = s[i..j].Contains('$');
+ int depth = 0;
+ for (i = j + 1; i < s.Length;)
+ {
+ char d = s[i];
+ if (depth > 0)
+ {
+ if (d is '"' or '\'' or '$' or '@') { i = Lex(s, i, list); continue; }
+ if (d == '{') depth++; else if (d == '}') depth--;
+ i++;
+ }
+ else if (d == '"')
+ {
+ if (verbatim && i + 1 < s.Length && s[i + 1] == '"') { i += 2; continue; }
+ return i + 1;
+ }
+ else if (d == '\\' && !verbatim) i += 2;
+ else if (d == '{' && interpolated)
+ {
+ if (i + 1 < s.Length && s[i + 1] == '{') { i += 2; continue; }
+ depth = 1; i++;
+ }
+ else i++;
+ }
+ return i;
+ }
+
+ /// <summary>SVG path data: an optional fill rule (F0/F1), then a move-to with two coordinates.</summary>
+ private static readonly Regex PathData = new(@"^\s*(?:F[01]\s*)?[Mm]\s*-?[0-9.]+[\s,]+-?[0-9.]");
+
+ private readonly record struct Hit(string Path, int Line, string Key);
+
+ private static string Norm(string path) => path.Replace('\\', '/');
+
+ /// <summary>Path relative to src/managed with forward slashes — the allow-list key.</summary>
+ private static string RelManaged(string root, string file) => Norm(Path.GetRelativePath(Path.Combine(root, "src/managed"), file));
+
+ private static IEnumerable<string> SourceFiles(string dir, params string[] exts) =>
+ Directory.EnumerateFiles(dir, "*.*", SearchOption.AllDirectories)
+ .Where(f => exts.Any(e => f.EndsWith(e)) && !Norm(f).Contains("/obj/") && !Norm(f).Contains("/bin/"))
+ .OrderBy(f => f, StringComparer.Ordinal);
+
+ /// <summary>A C# line without its // comment; a // inside a string or char literal stays
+ /// (the older checks split on "//" and lose the rest of a line holding a URL).</summary>
+ private static string CodeOf(string line)
+ {
+ var scratch = new List<(int, string)>();
+ for (int i = 0; i < line.Length;)
+ {
+ if (line[i] == '/' && i + 1 < line.Length && line[i + 1] == '/') return line[..i];
+ i = line[i] is '"' or '\'' or '$' or '@' ? Lex(line, i, scratch) : i + 1;
+ }
+ return line;
+ }
+
+ /// <summary>axaml with its comments blanked out; line breaks stay so line numbers hold.</summary>
+ private static string BlankXmlComments(string text) =>
+ Regex.Replace(text, "<!--.*?-->", m => Regex.Replace(m.Value, "[^\n]", " "), RegexOptions.Singleline);
+
+ /// <summary>The text a C# literal body stands for (\" \\ \uXXXX …).</summary>
+ private static string Unescape(string body)
+ {
+ try { return Regex.Unescape(body); } catch (ArgumentException) { return body; }
+ }
+
+ /// <summary>A ratchet allow-list: one `path&lt;TAB&gt;key&lt;TAB&gt;# reason` per line, where
+ /// path is relative to src/managed. Blank lines and lines starting with # are comments.</summary>
+ private static List<(string Path, string Key)> ReadRatchet(string file)
+ {
+ var list = new List<(string, string)>();
+ if (!File.Exists(file)) return list;
+ foreach (var raw in File.ReadLines(file))
+ {
+ if (raw.Length == 0 || raw.StartsWith('#')) continue;
+ var parts = raw.Split('\t');
+ if (parts.Length >= 2) list.Add((parts[0].Trim(), parts[1]));
+ }
+ return list;
+ }
+
+ /// <summary>One rule's verdict against a path+key ratchet. Allow-listed hits pass and are
+ /// marked used, so the caller can report the entries nothing matched.</summary>
+ private static (bool Ok, string Label) RatchetVerdict(string what, IReadOnlyList<Hit> hits,
+ HashSet<(string, string)> allowed, HashSet<(string, string)> used)
+ {
+ var fresh = new List<Hit>();
+ foreach (var h in hits)
+ if (allowed.Contains((h.Path, h.Key))) used.Add((h.Path, h.Key));
+ else fresh.Add(h);
+ var listed = hits.Count - fresh.Count;
+ return fresh.Count == 0
+ ? (true, $"no {what} ({listed} allow-listed)")
+ : (false, $"{what}: {string.Join(", ", fresh.Take(8).Select(h => $"{h.Path}:{h.Line} \"{h.Key}\""))}"
+ + (fresh.Count > 8 ? $" (+{fresh.Count - 8} more)" : ""));
+ }
- private static string Norm(string hex)
+ /// <summary>Entries that matched nothing: the offender was fixed, so the line must go.</summary>
+ private static (bool Ok, string Label) RatchetStale(string list, IEnumerable<(string Path, string Key)> entries,
+ HashSet<(string, string)> used)
{
- hex = hex.TrimStart('#').ToUpperInvariant();
- if (hex.Length == 8 && hex.StartsWith("FF", StringComparison.Ordinal)) hex = hex[2..];
- return hex;
+ var stale = entries.Distinct().Where(e => !used.Contains(e)).Select(e => $"{e.Path} \"{e.Key}\"").ToArray();
+ return stale.Length == 0
+ ? (true, $"{list} has no stale entries")
+ : (false, $"stale {list} entries (fixed — remove them): {string.Join(", ", stale.Take(8))}"
+ + (stale.Length > 8 ? $" (+{stale.Length - 8} more)" : ""));
}
// The rules match paths written with '/' ("/obj/", "Theme/NotaPalette.cs"); Windows
diff --git a/tests/Nota.SmokeTest/IconAllowList.txt b/tests/Nota.SmokeTest/IconAllowList.txt
new file mode 100644
index 00000000..99aac210
--- /dev/null
+++ b/tests/Nota.SmokeTest/IconAllowList.txt
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+#
+# Icon ratchet for DesignTokenCheck.RunIcons (spec 012 T007).
+#
+# Inline icon geometry outside Controls/Glyph.cs — Geometry.Parse / StreamGeometry.Parse /
+# PathGeometry.Parse calls, axaml Data="M…" attributes and SVG path strings — counted per
+# file on the day the check landed. A count may only go down: a file above its count fails,
+# and so does a file below it (lower the number, or drop the line at 0).
+#
+# Format: path (from src/managed) <TAB> sites <TAB> # reason
diff --git a/tests/Nota.SmokeTest/LabelAllowList.txt b/tests/Nota.SmokeTest/LabelAllowList.txt
new file mode 100644
index 00000000..100ac40e
--- /dev/null
+++ b/tests/Nota.SmokeTest/LabelAllowList.txt
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+#
+# Label ratchet for DesignTokenCheck.RunLabels (spec 012 T006).
+#
+# Every ALL CAPS or Title Case label literal that existed when the check landed, so it
+# started green. A line may only be removed: a new offender fails the check, and so does a
+# line that no longer matches anything. When spec 012 is done, only "data:" lines remain.
+#
+# Format: path (from src/managed) <TAB> the literal exactly as written <TAB> # reason
+Nota.App/AboutWindow.cs © 2026 Egor Khindikaynen (Ambertape) # data: proper names (author, label)
+Nota.App/DeviceCards/Bodies/ShutterDeviceBody.cs Ramp Up # data: Shutter pattern preset name
+Nota.App/DeviceCards/Instruments/PendulumInstrumentCard.cs The voice: soft Keys, bright Glass, Saw, hollow Square or inharmonic Bell # data: names the Pendulum voice models
+Nota.App/DeviceCards/Midi/RandomMidiBody.cs Distribution: Gauss / Even / Walk — click for the next, Shift-click for the previous # data: names the Random distribution modes
+Nota.App/DetailWindow.cs Devices / Clip # data: names the window's two tabs, Devices and Clip
+Nota.App/MainWindow.Downloads.cs Open Settings → Downloads # data: names the Settings window and its Downloads page
diff --git a/tests/Nota.SmokeTest/NumberAllowList.txt b/tests/Nota.SmokeTest/NumberAllowList.txt
new file mode 100644
index 00000000..846110d1
--- /dev/null
+++ b/tests/Nota.SmokeTest/NumberAllowList.txt
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+#
+# Minus-sign ratchet for DesignTokenCheck.RunNumbers (spec 012 T008).
+#
+# View literals that show a negative number with a hyphen-minus ("-12") instead of U+2212,
+# as of the day the check landed. A line may only be removed: a new offender fails, and so
+# does a line that no longer matches anything.
+#
+# Format: path (from src/managed) <TAB> the literal exactly as written <TAB> # reason
diff --git a/tests/Nota.SmokeTest/PaletteTests.cs b/tests/Nota.SmokeTest/PaletteTests.cs
index a4e9e853..f27dbb52 100644
--- a/tests/Nota.SmokeTest/PaletteTests.cs
+++ b/tests/Nota.SmokeTest/PaletteTests.cs
@@ -97,8 +97,8 @@ internal static class PaletteTests
("granular texture", "Nota Grain"), ("автотюн", "Nota Auto Shift"), ("тёплый пэд", "Preset:*pad"), ("warm pad", "Preset:*pad"),
("dark reverb", "Nota Chamber"), ("acid bass", "Preset:*acid"), ("pluck", "Preset:*pluck"),
// actions & tracks (CP-6a)
- ("quant", "Quantize Notes"), (">quant", "Quantize Notes"), ("export", "Export Audio…"), ("render", "Export Audio…"),
- ("settings audio", "Settings: Audio"), ("hotkeys", "Settings: Shortcuts"), ("metronome", "Metronome"), ("tap tempo", "Tap Tempo"),
+ ("quant", "Quantize notes"), (">quant", "Quantize notes"), ("export", "Export audio…"), ("render", "Export audio…"),
+ ("settings audio", "Settings: Audio"), ("hotkeys", "Settings: Shortcuts"), ("metronome", "Metronome"), ("tap tempo", "Tap tempo"),
("@vox", "Lead Vox"), ("bass", "Bass"), ("phaser", "Nota Phaser"),
};
@@ -192,8 +192,8 @@ internal static class PaletteTests
var usage = new PaletteUsage(settings);
usage.Record("d:be:3", fromPalette: true);
var empty = search.Run("", Devices, suggested: PaletteTargets.Suggested(Devices));
- yield return (empty.Rows.Count > 0 && empty.Rows[0].Header == "RECENT" && empty.Items[0].Item.Name == "Nota Delay"
- && empty.Rows.Any(r => r.Header?.StartsWith("SUGGESTED", StringComparison.Ordinal) == true),
+ yield return (empty.Rows.Count > 0 && empty.Rows[0].Header == "Recent" && empty.Items[0].Item.Name == "Nota Delay"
+ && empty.Rows.Any(r => r.Header?.StartsWith("Suggested", StringComparison.Ordinal) == true),
"an empty query shows Recent, then Suggested for the context (CP-19)");
// ---- insertion through the shared service on a real engine (CP-3, CP-25, undo) ----------
diff --git a/tests/Nota.SmokeTest/Program.cs b/tests/Nota.SmokeTest/Program.cs
index ee5fbcd1..ca62368a 100644
--- a/tests/Nota.SmokeTest/Program.cs
+++ b/tests/Nota.SmokeTest/Program.cs
@@ -59,7 +59,7 @@ Console.WriteLine($"engine v{NotaEngine.Version}");
// NotaTheme.axaml and NotaPalette.cs carry the same palette for two different
// consumers and nothing but discipline kept them in step. See DESIGN.md § Enforced by tests.
{
- Console.WriteLine("-- design: palette mirror --");
+ Console.WriteLine("-- design: palette wiring --");
foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.Run()) Check(ok, label);
Console.WriteLine("-- design: geometry --");
foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunGeometry()) Check(ok, label);
@@ -75,6 +75,18 @@ Console.WriteLine($"engine v{NotaEngine.Version}");
foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunNumbers()) Check(ok, label);
Console.WriteLine("-- design: bans --");
foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunBans()) Check(ok, label);
+ Console.WriteLine("-- design: studio --");
+ foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunStudio()) Check(ok, label);
+ Console.WriteLine("-- design: themes --");
+ foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunThemes()) Check(ok, label);
+ Console.WriteLine("-- design: appearance --");
+ foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunAppearance()) Check(ok, label);
+ Console.WriteLine("-- design: labels --");
+ foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunLabels()) Check(ok, label);
+ Console.WriteLine("-- design: icons --");
+ foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunIcons()) Check(ok, label);
+ Console.WriteLine("-- design: browser --");
+ foreach (var (ok, label) in Nota.SmokeTest.DesignTokenCheck.RunBrowser()) Check(ok, label);
}
// Opt-in plugin-scan check (M3-1): `--scan <path-to-nota-scanworker>`. Kept out
@@ -117,6 +129,14 @@ if (args.Length >= 1 && args[0] == "--palette")
Console.WriteLine(failures == 0 ? "PALETTE PASSED" : $"PALETTE FAILED ({failures})");
return failures == 0 ? 0 : 1;
}
+// Browser device categories alone: `--browser`.
+if (args.Length >= 1 && args[0] == "--browser")
+{
+ Console.WriteLine("-- browser: device categories --");
+ foreach (var (ok, label) in BrowserCategoryTests.Run()) Check(ok, label);
+ Console.WriteLine(failures == 0 ? "BROWSER PASSED" : $"BROWSER FAILED ({failures})");
+ return failures == 0 ? 0 : 1;
+}
// Get Plug-ins alone: `--store`; live installs from a registry index: `--store-live <index> <id>…`.
if (args.Length >= 1 && args[0] == "--store")
{
@@ -14572,6 +14592,10 @@ Console.WriteLine("-- background audio import --");
Check(!bvm.Effects.Any(i => i.Depth > 0), "clearing the search collapses back to devices");
}
+// --- browser: device categories (spec 013) — category chips narrow the device tabs ---
+Console.WriteLine("-- browser: device categories --");
+foreach (var (ok, label) in BrowserCategoryTests.Run()) Check(ok, label);
+
// --- browser: preset audition (offline-rendered, cached, played on the preview voice) ---
Console.WriteLine("-- browser: preset audition --");
foreach (var (ok, label) in AuditionTests.Run()) Check(ok, label);
diff --git a/tests/Nota.SmokeTest/RadiusAllowList.txt b/tests/Nota.SmokeTest/RadiusAllowList.txt
new file mode 100644
index 00000000..66c23739
--- /dev/null
+++ b/tests/Nota.SmokeTest/RadiusAllowList.txt
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+#
+# Radius ratchet for DesignTokenCheck.RunGeometry (spec 012 T009).
+#
+# Rectangle RadiusX / RadiusY literals off the 0/1/2/3/4 scale, as of the day the check
+# landed. A line may only be removed: a new offender fails, and so does a line that no
+# longer matches anything.
+#
+# Format: path (from src/managed) <TAB> RadiusX|RadiusY = value <TAB> # reason