diff --git a/CLAUDE.md b/CLAUDE.md
index db0667f..cae6573 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -427,7 +427,8 @@ Two independent apps that talk over HTTP:
- Data flow: the whole library is fetched once (`/api/tracks?limit=20000`);
filtering and sorting happen **client-side** for instant interaction. Edits
apply in-memory (server holds them) and the sidebar **Save to Traktor**
- button flushes to disk. Styling is Tailwind v4 with tokens in `src/index.css`.
+ button flushes to disk. Styling is Tailwind v4 with tokens in `src/index.css`
+ — see "Theme" below.
Library column layout (visibility/order/width) persists to `userprefs.json`
via `GET`/`PATCH /api/prefs` (debounced; hydrated on launch, merged against
defaults so newly-added columns still appear). The prep deck's main-waveform
@@ -648,8 +649,48 @@ frontend at `http://localhost:5173`.
- Backend: type hints, Pydantic models for all responses, keep query logic in
`collection_service.py` (routes stay thin).
- Frontend: functional components, TanStack Query for fetching, Tailwind
- utility classes with the `ink-*`/`accent`/`gold`/`mint`/`pink` tokens from
- `index.css`. Keep `api.ts` types aligned with `schemas.py`.
+ utility classes with the `ink-*`/`well`/`accent`/`gold`/`mint`/`pink` tokens
+ and the material classes from `index.css` (see "Theme"). Icons come from
+ `lib/icons.tsx`, never emoji. Keep `api.ts` types aligned with `schemas.py`.
+
+## Theme — "dark liquid glass"
+
+Floating frosted panels (12 px gutters) over a drifting wash of colour sampled
+from the loaded track's cover art. Colour is reserved for MEANING — cue types,
+key, playhead, the one primary action; chrome stays neutral. The rules that are
+easy to break:
+
+- **`ink-900`…`ink-600` are translucent WHITE overlays, not greys**, so they
+ read on any panel. Only `ink-950` is opaque: it is the dark text on light
+ buttons and the page base. Recessed things (inputs, waveforms, readouts,
+ progress tracks) use `well` / the `.well` class — never `bg-ink-950`.
+- **Materials are classes in `index.css`**: `.glass` (panel), `.glass-overlay`
+ (menus, dialogs, toasts — denser), `.well`, `.btn-glass`, `.btn-primary`
+ (white→accent pill, one per view), `.is-selected`. The rim light is a
+ `::before`, so these set `position: relative`; Tailwind's `fixed`/`absolute`
+ utilities win because utilities outrank the components layer.
+- **Never put `backdrop-filter` (or `filter`/`transform`) on an element that can
+ contain a popup.** It makes that element the containing block for every
+ `position: fixed` descendant, so a context menu or dialog opened inside it is
+ placed relative to the panel, not the window — the sidebar's playlist menu
+ opened far from the cursor. `.glass`'s blur and tint therefore live on its
+ `::after` (z-index -1 under `isolation: isolate`), not on the panel.
+- **The accent is `oklch(0.8 0.11 var(--accent-hue))`** — the cover's hue at a
+ FIXED lightness and chroma, so dark text on it keeps its contrast whatever is
+ loaded. `lib/ambient.ts` sets `--accent-hue` and `--amb-1..4` on ``;
+ they are `@property`-registered so a track change glides, and nothing in React
+ state depends on them (no re-render on a track change). The art is fetched as
+ a blob → `createImageBitmap`, because a cross-origin `` (the API under
+ Tauri) taints the canvas. A device track, or greyscale art, gets the default.
+- `AmbientBackdrop` is mounted in `main.tsx`, behind the picker too; so no root
+ container may set an opaque background, or the glass has nothing behind it.
+- **Canvas drawing glows instead of outlining** (`cues.ts`): a black outline on
+ glass reads as a gap in the waveform. The playhead is `drawPlayhead`, shared
+ by both waveforms.
+- The table's Cues column draws one dot per occupied slot from
+ `Track.hotcues` (`HotcueChip`: slot, type, colour), which every adapter
+ projects with the SAME slot test its `track_cues()` uses, so the dots cannot
+ disagree with the pads. OneLibrary fills it lazily, like `hotcue_count`.
- Python 3.14 note: pin dependencies loosely enough to get prebuilt wheels
(older `pydantic-core` pins force a from-source Rust build that fails).
@@ -929,9 +970,14 @@ The prep strip plays every track through the **Web Audio API** (a plain
playback buffer's views). Playback and scratch also run on **separate
`AudioContext`s** — sharing one goes silent after a source has played.
- `waveform.ts` — decodes once (buffer reused by both engines, no re-decode),
- splits into 3 bands via `OfflineAudioContext` biquads, and colors each column
- by blending three palette targets (bass→orange, mids→violet, highs→cyan — no
- green, matching Traktor's Spectrum). Height = amplitude.
+ splits into 3 bands via `OfflineAudioContext` biquads, and paints them as
+ **three layers**, not one blended colour per column: bass (orange) first and
+ tallest, then mids (violet) and highs (cyan) with a `screen` blend — no green,
+ matching Traktor's Spectrum. Each band is normalised to its own 99.5th
+ percentile and then EXPANDED (bass steepest): dance music holds its bass near
+ full scale for whole sections, so a linear map draws a solid orange wall
+ instead of the kick pulse. The main view draws 2 px bars with a 1 px gap,
+ **binned in track space** so bars scroll rather than flicker.
- `cues.ts` — canvas drawers for cue markers (type-colored), the active loop
band, the beatgrid (per-segment white beats/brighter downbeats, plus marker
lines — gold for the one governing the playhead, accent otherwise, with the
diff --git a/backend/konduktor/adapters/onelibrary/adapter.py b/backend/konduktor/adapters/onelibrary/adapter.py
index 511c3e8..d66fb1a 100644
--- a/backend/konduktor/adapters/onelibrary/adapter.py
+++ b/backend/konduktor/adapters/onelibrary/adapter.py
@@ -24,7 +24,7 @@ from pathlib import Path
from ...core.adapter import Unsupported
from ...core.capabilities import Capabilities
-from ...core.model import PlaylistNode, Track, TrackCues
+from ...core.model import HotcueChip, PlaylistNode, Track, TrackCues
from ...core.pathmap import PathMapping, common_dir_prefix
from ...core.query import TrackIndex
from . import capabilities as caps
@@ -125,7 +125,15 @@ class OneLibraryAdapter:
if track is not None:
track.grid_marker_count = len(result.grid_markers)
track.cue_count = len(result.cues)
- track.hotcue_count = sum(1 for c in result.cues if c.role == "hotcue")
+ track.hotcues = sorted(
+ (
+ HotcueChip(slot=c.slot, type=c.type, color=c.color)
+ for c in result.cues
+ if c.role == "hotcue" and c.slot is not None
+ ),
+ key=lambda chip: chip.slot,
+ )
+ track.hotcue_count = len(track.hotcues)
return result
# ---- playlists -------------------------------------------------------
diff --git a/backend/konduktor/adapters/rekordbox/adapter.py b/backend/konduktor/adapters/rekordbox/adapter.py
index 5f04a79..aaf97a8 100644
--- a/backend/konduktor/adapters/rekordbox/adapter.py
+++ b/backend/konduktor/adapters/rekordbox/adapter.py
@@ -43,10 +43,10 @@ class RekordboxAdapter:
# ---- projection maintenance -----------------------------------------
def _rebuild(self) -> None:
- counts = self._store.cue_counts()
+ kinds = self._store.cue_kinds()
self._index.rebuild(
[
- projection.to_track(row, counts.get(str(row.ID), (0, 0)))
+ projection.to_track(row, kinds.get(str(row.ID), ()))
for row in self._store.iter_content()
]
)
@@ -66,9 +66,9 @@ class RekordboxAdapter:
Every mutating command must end in this — a forgotten refresh is a
silently stale projection that no byte- or row-level test would catch.
"""
- counts = self._store.cue_counts()
+ kinds = self._store.cue_kinds()
row = self._store.content(track_id)
- self._index.replace(projection.to_track(row, counts.get(str(row.ID), (0, 0))))
+ self._index.replace(projection.to_track(row, kinds.get(str(row.ID), ())))
def close(self) -> None:
"""Release the database connection.
diff --git a/backend/konduktor/adapters/rekordbox/projection.py b/backend/konduktor/adapters/rekordbox/projection.py
index af019f2..27cd735 100644
--- a/backend/konduktor/adapters/rekordbox/projection.py
+++ b/backend/konduktor/adapters/rekordbox/projection.py
@@ -7,7 +7,7 @@ from __future__ import annotations
import re
-from ...core.model import CuePoint, GridMarker, Track, TrackCues
+from ...core.model import CuePoint, GridMarker, HotcueChip, Track, TrackCues
from . import beatgrid
from .cue_types import cue_type, role_and_slot
@@ -97,12 +97,14 @@ def _name_of(related) -> str | None:
return None
-def to_track(row, cue_counts: tuple[int, int] = (0, 0)) -> Track:
+def to_track(row, cue_kinds=()) -> Track:
"""Project one ``DjmdContent`` row.
- `cue_counts` is ``(total, hotcues)`` from the store's single aggregate
+ `cue_kinds` is this track's ``(Kind, OutMsec)`` pairs from the store's single
query — passed in rather than read off the row, which would be a per-track
- round trip.
+ round trip. "Is this a hot cue, and on which pad?" is `role_and_slot`, the
+ same definition `to_track_cues` uses, so the table's count and dots agree
+ with the pads shown in the deck (it also rules out the reserved Kind).
**`grid_marker_count` is an approximation here**: the real count needs the
track's ANLZ file, which is far too slow to read for every track at open
@@ -115,7 +117,14 @@ def to_track(row, cue_counts: tuple[int, int] = (0, 0)) -> Track:
On the reference library the two sets agree exactly: all 22 tracks with no
BPM are precisely the 22 with no grid.
"""
- total_cues, hotcues = cue_counts
+ chips: list[HotcueChip] = []
+ for kind, out_msec in cue_kinds:
+ role, slot = role_and_slot(kind)
+ if role == "hotcue" and slot is not None:
+ # Rekordbox's colour is a palette index nobody has decoded yet (see
+ # `_cue_color`), so no colour is claimed and the UI uses the type's.
+ chips.append(HotcueChip(slot=slot, type=cue_type(out_msec), color=None))
+ chips.sort(key=lambda chip: chip.slot)
key_name = _name_of(getattr(row, "Key", None))
wheel, mode = parse_key(key_name)
return Track(
@@ -142,8 +151,9 @@ def to_track(row, cue_counts: tuple[int, int] = (0, 0)) -> Track:
last_played=None, # not modelled as a date in master.db
release_date=_iso_date(getattr(row, "ReleaseDate", None)),
filepath=str(getattr(row, "FolderPath", "") or "") or None,
- cue_count=total_cues,
- hotcue_count=hotcues,
+ cue_count=len(cue_kinds),
+ hotcue_count=len(chips),
+ hotcues=chips,
grid_marker_count=1 if (_bpm(row) and getattr(row, "AnalysisDataPath", None)) else 0,
grid_locked=False, # Rekordbox has no per-track grid lock
media_kind="audio",
diff --git a/backend/konduktor/adapters/rekordbox/store.py b/backend/konduktor/adapters/rekordbox/store.py
index 1c67ed8..7738fe2 100644
--- a/backend/konduktor/adapters/rekordbox/store.py
+++ b/backend/konduktor/adapters/rekordbox/store.py
@@ -171,23 +171,22 @@ class RekordboxStore:
raise NotFound(f"No track {track_id!r}")
return row
- def cue_counts(self) -> dict[str, tuple[int, int]]:
- """``{track_id: (total_cues, hotcue_count)}`` in one aggregate query."""
+ def cue_kinds(self) -> dict[str, list[tuple[int | None, int | None]]]:
+ """``{track_id: [(Kind, OutMsec), ...]}`` for every live cue, in one query.
+
+ Just enough per cue for the library table's count and hotcue dots,
+ without a per-track round trip. What a ``Kind`` means is decided in the
+ projection, by the same `role_and_slot` the deck's cues use, so the
+ table and the pads cannot disagree.
+ """
t = self._tables
rows = self._db.session.execute(
- select(t.DjmdCue.ContentID, t.DjmdCue.Kind, func.count())
+ select(t.DjmdCue.ContentID, t.DjmdCue.Kind, t.DjmdCue.OutMsec)
.where(t.DjmdCue.rb_local_deleted == 0)
- .group_by(t.DjmdCue.ContentID, t.DjmdCue.Kind)
).all()
- out: dict[str, tuple[int, int]] = {}
- for content_id, kind, n in rows:
- total, hot = out.get(str(content_id), (0, 0))
- # "Is this a hot cue?" must mean the same here as in the projection,
- # or the count in the library table disagrees with the pads shown in
- # the deck. `role_and_slot` is the single definition — it also rules
- # out the reserved Kind, which occupies no pad.
- is_hotcue = role_and_slot(kind)[0] == "hotcue"
- out[str(content_id)] = (total + n, hot + (n if is_hotcue else 0))
+ out: dict[str, list[tuple[int | None, int | None]]] = {}
+ for content_id, kind, out_msec in rows:
+ out.setdefault(str(content_id), []).append((kind, out_msec))
return out
def cues(self, track_id: str) -> list:
diff --git a/backend/konduktor/adapters/traktor/projection.py b/backend/konduktor/adapters/traktor/projection.py
index bd5bf4f..df9124e 100644
--- a/backend/konduktor/adapters/traktor/projection.py
+++ b/backend/konduktor/adapters/traktor/projection.py
@@ -7,7 +7,7 @@ from __future__ import annotations
import re
-from ...core.model import CuePoint, GridMarker, Track, TrackCues
+from ...core.model import CuePoint, GridMarker, HotcueChip, Track, TrackCues
from . import beatgrid
from .cue_types import NATIVE_TO_CUE_TYPE
@@ -83,8 +83,19 @@ def to_track(e) -> Track:
# question, two answers.
markers = beatgrid.grid_markers(e)
cues = [c for c in (e.cue_v2 or []) if getattr(c, "grid", None) is None]
- hotcues = sum(
- 1 for c in cues if c.hotcue is not None and c.hotcue >= 0
+ # The same "is this in the bank" test as `to_track_cues`' slot, so the
+ # table's dots and the deck's pads cannot disagree.
+ chips = sorted(
+ (
+ HotcueChip(
+ slot=c.hotcue,
+ type=NATIVE_TO_CUE_TYPE.get(c.type, "cue"),
+ color=c.color or None,
+ )
+ for c in cues
+ if c.hotcue is not None and c.hotcue >= 0
+ ),
+ key=lambda chip: chip.slot,
)
wheel, mode = parse_key(info.key if info else None)
return Track(
@@ -111,7 +122,8 @@ def to_track(e) -> Track:
release_date=iso_date(info.release_date if info else None),
filepath=_display_path(loc) if loc else None,
cue_count=len(cues),
- hotcue_count=hotcues,
+ hotcue_count=len(chips),
+ hotcues=chips,
grid_marker_count=len(markers),
grid_locked=bool(e.lock),
media_kind="stem" if getattr(e, "stems", None) is not None else "audio",
diff --git a/backend/konduktor/core/model.py b/backend/konduktor/core/model.py
index 6ab7c00..b000713 100644
--- a/backend/konduktor/core/model.py
+++ b/backend/konduktor/core/model.py
@@ -16,6 +16,18 @@ from pydantic import BaseModel, ConfigDict, Field
from .capabilities import CueRole, CueType, MediaKind, PlaylistKind
+class HotcueChip(BaseModel):
+ """One occupied hotcue slot, as the library table previews it.
+
+ Deliberately far smaller than a `CuePoint`: it rides on every `Track` in the
+ whole-library fetch, and a row only needs enough to draw a coloured dot.
+ """
+
+ slot: int
+ type: CueType = "cue"
+ color: str | None = None # "#RRGGBB" as the platform stored it
+
+
class Track(BaseModel):
"""A single track in the library, as the app sees it."""
@@ -47,6 +59,10 @@ class Track(BaseModel):
filepath: str | None = None # human-readable OS path
cue_count: int = 0
hotcue_count: int = 0
+ # The occupied hotcue slots, ordered by slot. Where cues are parsed lazily
+ # (OneLibrary) this is empty until `track_cues()` corrects it, exactly like
+ # `hotcue_count` — the two must always agree.
+ hotcues: list[HotcueChip] = Field(default_factory=list)
# 0 = no beatgrid, 1 = constant tempo, >1 = a flexible (multi-tempo) grid.
grid_marker_count: int = 0
grid_locked: bool = False
diff --git a/backend/konduktor/schemas.py b/backend/konduktor/schemas.py
index 4a419db..7e4ccc0 100644
--- a/backend/konduktor/schemas.py
+++ b/backend/konduktor/schemas.py
@@ -314,6 +314,7 @@ from .core.model import ( # noqa: E402,F401
Facets,
GenreCount,
GridMarker,
+ HotcueChip,
PlaylistNode,
PrefixGroup,
PrefixSuggestions,
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 33f0aff..891de0c 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -12,6 +12,8 @@
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
+ "@fontsource-variable/geist": "^5.3.0",
+ "@fontsource-variable/geist-mono": "^5.3.0",
"@tanstack/react-query": "^5.101.2",
"@tanstack/react-table": "^8.21.3",
"@tanstack/react-virtual": "^3.14.5",
@@ -150,6 +152,24 @@
"tslib": "^2.4.0"
}
},
+ "node_modules/@fontsource-variable/geist": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/geist/-/geist-5.3.0.tgz",
+ "integrity": "sha512-j0m+vLQuG5XAYoHtGCVu0spvlGreR3EzpECUVzkFmI1mTVnAO38l/NEPDCFgZ177JxzYJCLSmTQibIiYPilGrA==",
+ "license": "OFL-1.1",
+ "funding": {
+ "url": "https://github.com/sponsors/ayuhito"
+ }
+ },
+ "node_modules/@fontsource-variable/geist-mono": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/geist-mono/-/geist-mono-5.3.0.tgz",
+ "integrity": "sha512-vBbuwDEo9AkrqADMXOrlAR3DFcJi4/JxeuU43FoiQERnNwsfXNnvxvReZG02cQKmyk4DZkZdBZX3oTDvy2zBAw==",
+ "license": "OFL-1.1",
+ "funding": {
+ "url": "https://github.com/sponsors/ayuhito"
+ }
+ },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index d867ac5..4ff1372 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -15,6 +15,8 @@
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
+ "@fontsource-variable/geist": "^5.3.0",
+ "@fontsource-variable/geist-mono": "^5.3.0",
"@tanstack/react-query": "^5.101.2",
"@tanstack/react-table": "^8.21.3",
"@tanstack/react-virtual": "^3.14.5",
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index fc923df..8347ecd 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -24,6 +24,7 @@ import { PathMappingDialog } from './components/PathMappingDialog'
import { HistoryPanel } from './components/HistoryPanel'
import { PrepStrip } from './components/PrepStrip'
import { ImportDialog } from './components/ImportDialog'
+import { Icon } from './lib/icons'
function applyFilters(tracks: Track[], f: Filters): Track[] {
const q = f.search.trim().toLowerCase()
@@ -506,7 +507,7 @@ export default function App() {
if (collection.isLoading || (loaded && !capabilities.data)) {
return (
-
+
+ {/* A slim capsule of its own under both columns, as on the deck above. */}
+ {
+ setBatchCancelling(true)
+ api.cancelJob(batchJob.id).catch((e) => onError((e as Error).message))
+ },
+ }
+ : null
+ }
+ loading={loading}
+ collectionName={capabilities.data ? libraryName : null}
+ onChangeCollection={() => setForcePicker(true)}
+ />
)
diff --git a/frontend/src/api.ts b/frontend/src/api.ts
index f99181e..1bdf31a 100644
--- a/frontend/src/api.ts
+++ b/frontend/src/api.ts
@@ -29,12 +29,23 @@ export interface Track {
filepath: string | null
cue_count: number
hotcue_count: number
+ /** The occupied hotcue slots, ordered by slot — what the table's Cues column
+ * draws as dots. Empty until corrected where cues load lazily (OneLibrary),
+ * exactly like `hotcue_count`. */
+ hotcues: HotcueChip[]
/** 0 = no beatgrid, 1 = constant tempo, >1 = a flexible (multi-tempo) grid. */
grid_marker_count: number
grid_locked: boolean
media_kind: MediaKind
}
+/** One occupied hotcue slot, as the library table previews it. */
+export interface HotcueChip {
+ slot: number
+ type: CueType
+ color: string | null // "#RRGGBB" as the platform stored it
+}
+
export interface TrackPage {
total: number
offset: number
diff --git a/frontend/src/components/AmbientBackdrop.tsx b/frontend/src/components/AmbientBackdrop.tsx
new file mode 100644
index 0000000..4935706
--- /dev/null
+++ b/frontend/src/components/AmbientBackdrop.tsx
@@ -0,0 +1,20 @@
+/**
+ * The drifting wash of colour every glass surface sits on. Its colours are CSS
+ * custom properties set by `lib/ambient.ts` from the loaded track's cover art,
+ * so this renders once and never re-renders on a track change.
+ *
+ * Fixed behind the whole app (and pointer-transparent). The drift is transform
+ * only, so it stays on the compositor; reduced motion stops it.
+ */
+export function AmbientBackdrop() {
+ return (
+
+
+
+
+
+ {/* Vignette: keeps the edges and the table's lower rows calm. */}
+
+
@@ -274,7 +274,7 @@ export function CollectionPicker({ onOpened, onCancel }: Props) {
@@ -302,12 +302,12 @@ export function CollectionPicker({ onOpened, onCancel }: Props) {
? '…or paste a full path to the drive'
: `…or paste a full path to ${platform!.library_label}`
}
- className="min-w-0 flex-1 rounded-md border border-line bg-ink-850 px-3 py-2 font-mono text-xs text-text outline-none placeholder:text-faint focus:border-accent"
+ className="min-w-0 flex-1 rounded-lg well px-3 py-2 font-mono text-xs text-text outline-none placeholder:text-faint focus:ring-1 focus:ring-accent"
/>
diff --git a/frontend/src/components/ConfirmDialog.tsx b/frontend/src/components/ConfirmDialog.tsx
index c664b7e..32c0e9d 100644
--- a/frontend/src/components/ConfirmDialog.tsx
+++ b/frontend/src/components/ConfirmDialog.tsx
@@ -46,11 +46,11 @@ export function ConfirmDialog({ title, body, confirmLabel, onConfirm, onClose }:
return (
!busy && onClose()}
>
e.stopPropagation()}
>
@@ -68,7 +68,7 @@ export function ConfirmDialog({ title, body, confirmLabel, onConfirm, onClose }:
diff --git a/frontend/src/components/ContextMenu.tsx b/frontend/src/components/ContextMenu.tsx
index 5878331..3ac7cff 100644
--- a/frontend/src/components/ContextMenu.tsx
+++ b/frontend/src/components/ContextMenu.tsx
@@ -1,8 +1,10 @@
+import type { ReactNode } from 'react'
import { useEffect, useRef, useState } from 'react'
+import { Icon } from '../lib/icons'
/** One row of a menu: an action, a submenu (`label ▸`), or a section heading. */
export type MenuItem =
- | { label: string; onClick: () => void; danger?: boolean; hint?: string; icon?: string; disabled?: boolean }
+ | { label: string; onClick: () => void; danger?: boolean; hint?: string; icon?: ReactNode; disabled?: boolean }
| { label: string; submenu: MenuItem[] }
// Toggles in place and leaves the menu open, so several can be flipped in one go.
| { label: string; checked: boolean; onToggle: () => void }
@@ -54,7 +56,10 @@ export function ContextMenu({ x, y, items, onClose }: Props) {
}, [])
return (
-
e.stopPropagation()}>
+ // `contents`: the panels are fixed-positioned, so this wrapper must take no
+ // part in layout. As an ordinary empty block it became one more item in
+ // the app's gapped flex column and pushed every panel down by a gap.
+
@@ -143,14 +143,14 @@ export function ExportRunDialog({ set, onClose, onDone, onError }: Props) {
{/* Reported and skipped, not a failure halfway through a long
copy. A gig stick short four tracks must never be silent. */}
{p.missing.length > 0 && (
-
+
{p.missing.length} track{p.missing.length === 1 ? '' : 's'} will be skipped —
the audio file is not on this disk:
{p.missing.slice(0, 4).join(', ')}
)}
{p.replacing && (
-
+
This folder already holds an export. Its files will be replaced.
That folder already has files in it that Konduktor didn’t put there. An export
replaces what it wrote last time, so it will only write into an empty folder or
one of its own. Edit the export and choose somewhere else.
)}
{blocked === 'nothing_to_export' && (
-
+
There’s nothing to export yet — add some tracks or a playlist.
{editing ? (
) : (
{/* Only a marker you are standing on can be deleted, so one that is
scrolled off-screen can never go by accident. Deleting the last
@@ -325,7 +326,7 @@ export const GridControls = memo(function GridControls({
: 'Park the playhead on a marker to delete it (‹ › to step)'
}
>
- 🗑 Mrk
+ Mrk
@@ -355,7 +356,8 @@ export const GridControls = memo(function GridControls({
disabled={analyzing}
title="Detect BPM and first beat, then set the grid + hotcue 1 (fix octave with ÷2 / ×2)"
>
- {analyzing ? '…' : 'Analyze'}
+
+ {analyzing ? 'Analyzing…' : 'Analyze'}
)
}
+
+/**
+ * A lit pad: tinted glass in the cue's colour with a soft glow of it, the way a
+ * backlit controller pad reads. Selection brightens the tint and rings it in
+ * the colour itself, so it stays legible whichever colour the cue is.
+ */
+function padStyle(color: string, selected: boolean): CSSProperties {
+ return {
+ background: `linear-gradient(180deg, ${withAlpha(color, selected ? 0.5 : 0.3)}, ${withAlpha(
+ color,
+ selected ? 0.24 : 0.1,
+ )})`,
+ boxShadow: [
+ 'inset 0 1px 0 rgba(255,255,255,0.22)',
+ `inset 0 0 0 ${selected ? 2 : 1}px ${withAlpha(color, selected ? 0.95 : 0.55)}`,
+ `0 0 ${selected ? 24 : 18}px -4px ${withAlpha(color, selected ? 0.8 : 0.55)}`,
+ ].join(', '),
+ }
+}
diff --git a/frontend/src/components/ImportDialog.tsx b/frontend/src/components/ImportDialog.tsx
index ce8d500..40473ac 100644
--- a/frontend/src/components/ImportDialog.tsx
+++ b/frontend/src/components/ImportDialog.tsx
@@ -153,8 +153,8 @@ export function ImportDialog({ playlistId, deviceLabel, onClose, onDone, onError
onClose={() => setBrowsing(false)}
/>
)}
-
-
+
+
Import from {deviceLabel}
@@ -170,14 +170,14 @@ export function ImportDialog({ playlistId, deviceLabel, onClose, onDone, onError
{baseFolder || 'Loading…'}
@@ -228,7 +228,7 @@ export function ImportDialog({ playlistId, deviceLabel, onClose, onDone, onError
{/* Reported and then skipped, rather than failing the whole
import halfway through a multi-minute copy. */}
{p.missing.length > 0 && (
-
+
{p.missing.length} track{p.missing.length === 1 ? '' : 's'} will be skipped —
the audio file is not on the drive:
{p.missing.slice(0, 4).join(', ')}
@@ -238,7 +238,7 @@ export function ImportDialog({ playlistId, deviceLabel, onClose, onDone, onError
{/* A warning, not a block: everything is imported as a new
entry, so a re-import legitimately duplicates. */}
{p.duplicates.length > 0 && (
-
+
{p.duplicates.length} of these look like tracks your collection already has.
They will be added again as new entries.