Skip to content

library: import rekordbox's colour names (djmdColor) - #196

Merged
vynulldev merged 1 commit into
mainfrom
color-names
Nov 21, 2026
Merged

vynulldev merged 1 commit into
mainfrom
color-names

Conversation

@vynulldev

Copy link
Copy Markdown
Owner

What & why

rekordbox lets a library rename its eight track colours (stored in djmdColor's Commnt), and serves the names wherever a colour is named: the COLOR menu, a colour second column and TRACK INFO. link-spec records this in SORT_AND_COLOR_ORACLE.md ("Custom color labels") and the custom-colors suite. Vynull always served the stock names, Pink to Purple.

Changes:

  • Import: the dump reads djmdColor, and a master.db import with settings brings the names, as it brings the SORT menu and the root categories.
  • Library: keeps the names that differ from the stock ones in colors.json beside the track list, or beside the overlay for a music dir, like the tag list (whose path logic they now share). A change moves the library's revision, so served rows pick it up.
  • Serving: the COLOR menu, both colour second-column paths (configured and render override), TRACK INFO, the song-info title and the web UI's track info use the library's names. A colour second column keeps 127 characters, as the other lookup names do.

A library without renamed colours, like mine, is unchanged. The web UI's colour picker still shows the stock names.

Tests:

  • TestColorNames: replacing names, dropping stock, empty and out-of-range ones, the revision, and a reload.
  • TestCustomColorNames: the COLOR menu, the colour column, the override's 127-character cut and TRACK INFO.

Both use the new library calls, so they don't build on main.

Conformance against main, on the default-settings fixtures: 3,682 to 3,693 of 4,250 cases exact (+11, none lost): custom-colors +2, display-song-info-boundaries +8 and secondary-string-boundaries +1.

Cost: none: BenchmarkRenderPage and BenchmarkTrackList (default, and changed, which rebuilds every row of a 20k-track library) keep the same bytes and allocations per request, with times within noise over six alternating runs.

Build, vet, gofmt, all tests, the race detector on the API, the dbserver and the library, and the e2e suite pass.

Hardware testing

  • Tested on: CDJ-2000NXS2

Checklist

  • go build ./..., go vet ./..., and go test ./... pass
  • gofmt -l . is clean
  • New source files carry an SPDX header (GPL-3.0-or-later)
  • Tested on real hardware (deck + firmware noted above), or this change doesn't affect deck behaviour
  • I agree my contribution is licensed under the project's GPLv3

rekordbox lets a library rename its eight track colours (djmdColor's
Commnt), and serves the names wherever a colour is named: the COLOR
menu, a colour second column and TRACK INFO (link-spec
SORT_AND_COLOR_ORACLE.md, "Custom color labels"). Vynull always served
the stock names, Pink to Purple.

A master.db import with settings now brings the names. The library
keeps the ones that differ from the stock names, in colors.json beside
the track list (beside the overlay for a music dir, as the tag list),
and the COLOR menu, both colour second-column paths, TRACK INFO, the
song-info title and the web UI's track info serve them. A colour
second column keeps 127 characters, as the other lookup names do.
@vynulldev vynulldev added the enhancement New feature or request label Nov 21, 2026
@vynulldev
vynulldev merged commit 608c531 into main Nov 21, 2026
1 check passed
@vynulldev
vynulldev deleted the color-names branch November 21, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant