From c525b2f84c8352fa4009790d644da7cf3a7837bb Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 24 Oct 2026 20:01:40 +0200 Subject: [PATCH] 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. --- shared/src/book/design/design-cover-riso.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shared/src/book/design/design-cover-riso.ts b/shared/src/book/design/design-cover-riso.ts index ac5e8e6a2..bc08c762d 100644 --- a/shared/src/book/design/design-cover-riso.ts +++ b/shared/src/book/design/design-cover-riso.ts @@ -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(