aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/test-columns.mjs
Commit message (Collapse)AuthorAgeFilesLines
* feat(theme-studio): show view-area > element usages on palette tile hoverCraig Jennings37 hours1-1/+17
| | | | I added paletteUsages, which enumerates every place a color is assigned, grouped by view area (the view dropdown's names: color/code assignments, ui faces, each package app) and the element within it. renderPalette builds the per-area scopes once and appends the list to each used tile's hover title, under the existing name/hex/nearest-deltaE line. Node tests and a #usagetest gate cover it.
* feat(theme-studio): flag unused palette tiles and columnsCraig Jennings38 hours1-1/+16
| | | | | | I added usedPaletteHexes, a reverse lookup over the syntax, ui, and package assignments (plus the ground endpoints) that resolves each reference to a hex. renderPalette outlines a tile whose color is referenced nowhere and outlines a whole column when none of its colors are used, so dead colors stand out for pruning before a theme ships. The check is biased safe: an unresolvable reference marks nothing, so a color that is actually used is never flagged. Node tests cover the lookup. A #unusedtest gate covers the tile and column flags.
* fix(theme-studio): clamp generated palette spans to the bg/fg boundsCraig Jennings38 hours1-0/+21
| | | | | | Spanning a color generated steps toward pure black and white, so a column could produce colors darker than bg or lighter than fg. I changed regenColumn to ramp the dark side toward the darker ground endpoint and the light side toward the lighter one, bounded by bg and fg. Pure black/white duplicates are still skipped, and callers that pass no ground fall back to the old black/white ramp. Node tests cover the bounded span and the no-ground fallback. The #counttest gate asserts the regenerated column stays within the bg/fg bounds.
* Update theme studio palette workflowCraig Jennings3 days1-0/+5
|
* Change theme studio spans to endpoint divisionsCraig Jennings4 days1-3/+15
|
* Fix theme studio span endpoint tilesCraig Jennings4 days1-4/+10
|
* Fix theme studio bg-prefixed span inferenceCraig Jennings4 days1-0/+8
|
* Fix theme studio bg-like imported colorsCraig Jennings4 days1-1/+18
|
* Group numeric color names by stemCraig Jennings4 days1-0/+8
|
* Treat legacy color names as base columnsCraig Jennings4 days1-0/+15
|
* Rename theme studio color model to columnsCraig Jennings4 days1-0/+132