feat(dank16): Support full matugen color format output - #3148
Conversation
|
/claude review |
| R string `json:"red"` | ||
| G string `json:"green"` | ||
| B string `json:"blue"` |
There was a problem hiding this comment.
Compat note: this drops the "r", "g", "b" JSON keys (and changes them from numbers to strings). The in-repo templates under quickshell/matugen/templates/ only use hex/hex_stripped, so nothing here breaks, but any user template consuming dank16.colorN.r from dms dank16 --json silently renders empty after this. That makes the change breaking despite the "non-breaking" checkbox — either keep r/g/b as additional aliases or call it out in the PR description / release notes.
There was a problem hiding this comment.
This is a legitimate complaint if users are consuming this data directly using the non-standard keys. I can revert the R, G, B keys to their original int values and add new Red, Green, Blue keys to carry the new string values if this is required.
There was a problem hiding this comment.
Nah I'm fine with this since it's non breaking
Claude reviewOne real bug (negative hue for magenta-range colors), plus a compat note on the removed
Checked: HSL math against the existing HSV path, JSON field contract vs. in-repo matugen templates and all Go consumers of |
0202699 to
64590fd
Compare
64590fd to
5b5a7e6
Compare
|
/claude review |
Claude reviewNo issues found. Re-checked after the push: the Checked: HSL math and the |
|
Do you want me to raise a docs change for this? The docs currently state the available keys as |
Yes, a docs PR would be appreciated with changes like these. Thanks for the feat! |
Description
Currently dank16 only outputs a limited subset of matugen color formats. This makes it problematic to support any targets that do no support (stripped-)hex explicitly.
This change adds support for all standard upstream color formats.
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possible (N/A)make fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings (N/A)