commitshow 0.3.19 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/render.js +17 -2
- package/package.json +1 -1
package/dist/lib/render.js
CHANGED
|
@@ -396,8 +396,23 @@ export function renderAudit(view) {
|
|
|
396
396
|
lines.push(trophyIndent + trophyRow(slugVisible.length, c.muted(slugVisible)));
|
|
397
397
|
}
|
|
398
398
|
lines.push(trophyIndent + trophyBlank);
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
// Metallic-gold gradient · top row brightest, bottom row darkest. Single
|
|
400
|
+
// tone (`c.pixelInk`) read as flat — the SKILLS-style banner Google ships
|
|
401
|
+
// gets its "embossed coin" feel from a vertical light fall-off, which we
|
|
402
|
+
// approximate here within monospace constraints. Six rows because the
|
|
403
|
+
// ANSI Shadow font is 6 tall.
|
|
404
|
+
const GOLD_GRADIENT = [
|
|
405
|
+
[0xFF, 0xE0, 0x78], // row 0 · highlight
|
|
406
|
+
[0xF8, 0xD0, 0x60], // row 1
|
|
407
|
+
[0xF0, 0xC0, 0x40], // row 2 · brand mid
|
|
408
|
+
[0xE0, 0xA8, 0x30], // row 3
|
|
409
|
+
[0xC8, 0x90, 0x20], // row 4
|
|
410
|
+
[0xA8, 0x70, 0x18], // row 5 · base shadow
|
|
411
|
+
];
|
|
412
|
+
for (let i = 0; i < bigRows.length; i++) {
|
|
413
|
+
const [rr, gg, bb] = GOLD_GRADIENT[Math.min(i, GOLD_GRADIENT.length - 1)];
|
|
414
|
+
const colored = `\x1b[38;2;${rr};${gg};${bb}m${bigRows[i]}\x1b[0m`;
|
|
415
|
+
lines.push(trophyIndent + trophyRow(bigWidth, colored));
|
|
401
416
|
}
|
|
402
417
|
lines.push(trophyIndent + trophyBlank);
|
|
403
418
|
const captionColored = isWalkOn
|