fix(studio): the riso cover's year band deepens a mid-tone ink so the year reads

In a theme whose second ink is a mid tone (riviera's olive), neither white nor
near black reached 4.5:1 on the year's band. The band is taken towards the dark
until the year reads, as the other covers do for small words.
This commit is contained in:
Maurice
2026-10-24 20:01:40 +02:00
parent b3d30a834e
commit c525b2f84c
+4 -2
View File
@@ -5,6 +5,7 @@ import { frameOf } from './design-compose';
import {
addLockup,
clearOfTrim,
deepened,
inkOn,
keptTurn,
mmOn,
@@ -96,11 +97,12 @@ export function riso(k: CoverKit): CoverDraft {
if (head.length > 1) draft.groups.push(head.map((t) => t.id));
}
const year = k.words.year ?? '';
// The year on a band of the second ink at the foot, left of the photo and its block.
// The year on a band of the second ink at the foot, left of the photo and its block, deepened
// where a mid-tone ink would not carry a small line.
const room = (photoBox ? photoBox.x : W - m) - m - mmOn(k, 4);
if (year && room > mmOn(k, 18)) {
const frame = frameOf(m, H - m - mmOn(k, 7), Math.min(room, mmOn(k, 40)), mmOn(k, 7));
draft.elements.push(onBand(k, { ...spacedLine(k, year, frame, ink, 9), align: 'left' }, second));
draft.elements.push(onBand(k, { ...spacedLine(k, year, frame, ink, 9), align: 'left' }, deepened(second)));
}
const count = (c.art ?? CALM_ART).bare ? 0 : k.rng.int(2, 4);
draft.elements.push(