The transfer market's offers as large cards; nothing lies half over the cup ring

An offer card shows photograph or initials, position, country, age and seller, the
four values as figures and the fee; three rows of them fill the page. The deal's
buttons sit under the squad's strength, clear of the lower right corner. What is
switched off on a page is pale, not translucent, and the ring a cup left on the
paper is drawn only where the page keeps its corner free or covers it with a panel.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 19:29:38 +01:00
1 parent aeef2ed653
commit ee2968d1a3
3 files changed
+52 -8

No files matched your search

+5 -2
View File
@@ -216,10 +216,13 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
std::string lines;
for (double y = 44; y < 850; y += 32) lines += "<path d=\"M10 " + scalar(y) + "H1396\" stroke=\"" + rule + "\" stroke-opacity=\"" + (light ? "1" : ".08") + "\" stroke-width=\"1.2\"/>";
lines += "<path d=\"M66 8V858\" stroke=\"" + margin + "\" stroke-opacity=\"" + (light ? "1" : ".4") + "\" stroke-width=\"2\"/>";
lines += "<g fill=\"none\" stroke=\"" + ring + "\"><path d=\"M1183 800A61 61 0 1 1 1257 786\" stroke-width=\"6\" stroke-opacity=\".13\" stroke-linecap=\"round\"/><path d=\"M1200 720A58 58 0 1 0 1290 716\" stroke-width=\"2\" stroke-opacity=\".1\"/></g>";
// the ring a cup left in the lower right corner: only where the page keeps that corner free or covers it
// with a panel of its own, never under bare writing or an older sheet
const bool stain = menu_.empty() || (page_native() && menu_ != "tactics");
if (stain) lines += "<g fill=\"none\" stroke=\"" + ring + "\"><path d=\"M1183 800A61 61 0 1 1 1257 786\" stroke-width=\"6\" stroke-opacity=\".13\" stroke-linecap=\"round\"/><path d=\"M1200 720A58 58 0 1 0 1290 716\" stroke-width=\"2\" stroke-opacity=\".1\"/></g>";
out += "<div class=\"nb-paper\">" + picture(paper, 3163.5, 1948.5, true) + "<div class=\"nb-paper-edge\"></div>";
if (const auto art = notebook_art(); !art.token.empty()) out += "<div class=\"nb-paper-art\">" + picture(art, 3163.5, 1948.5, true) + "</div>";
out += "<div class=\"nb-paper-lines\">" + svg("nb-lines", 1406, 866, lines, 2800) + "</div><div class=\"nb-corner\">" +
out += "<div class=\"nb-paper-lines\">" + svg(stain ? "nb-lines" : "nb-lines-plain", 1406, 866, lines, 2800) + "</div><div class=\"nb-corner\">" +
svg("nb-corner", 62, 62, "<defs><linearGradient id=\"c\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"" + std::string(light ? "#f9f4ed" : "#3a4654") + "\"/><stop offset=\".46\" stop-color=\"" +
std::string(light ? "#eee7db" : "#313c49") + "\"/><stop offset=\".5\" stop-color=\"" + std::string(light ? "#a19786" : "#10151b") + "\"/><stop offset=\".62\" stop-color=\"" + std::string(light ? "#dcd3c4" : "#27313c") +
"\"/><stop offset=\"1\" stop-color=\"" + std::string(light ? "#eee7db" : "#2c3743") + "\"/></linearGradient></defs><path d=\"M4 0H62V34A28 28 0 0 1 34 62H0V4A4 4 0 0 1 4 0Z\" fill=\"url(#c)\"/>", 200) + "</div></div>";