The whistle lies under the book, turned about its ball, as the design now has it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 17:36:35 +01:00
1 parent 1a1f43ddf7
commit 0089c2378c
3 files changed
+10 -6

No files matched your search

+5 -2
View File
@@ -243,9 +243,12 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
"<path d=\"M8 41L140 34V84L8 77Z\" fill=\"url(#t)\"/><circle cx=\"158\" cy=\"82\" r=\"62\" fill=\"url(#b)\"/><circle cx=\"158\" cy=\"82\" r=\"62\" fill=\"url(#d)\"/>"
"<rect x=\"90\" y=\"30\" width=\"32\" height=\"16\" rx=\"5\" fill=\"#2e2b25\"/><circle cx=\"158\" cy=\"82\" r=\"28\" fill=\"none\" stroke=\"#643312\" stroke-opacity=\".45\" stroke-width=\"3\"/>"
"<ellipse cx=\"142\" cy=\"47\" rx=\"18\" ry=\"7\" fill=\"#f9f4ed\" fill-opacity=\".5\" transform=\"rotate(-28 142 47)\"/><circle cx=\"226\" cy=\"84\" r=\"18\" fill=\"none\" stroke=\"#82796a\" stroke-width=\"7\"/><circle cx=\"226\" cy=\"84\" r=\"18\" fill=\"none\" stroke=\"#c0b6a5\" stroke-width=\"4\"/>";
out += btn(engine_mode_ ? std::string("engine-open") : std::string("open:kickoff"),
"<span class=\"nb-whistle-art\">" + picture(renderer_.diagram("nb-whistle", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 450 262\">" + whistle + "</svg>", 1300), 810, 471) + "</span>", "nb-whistle",
// it lies under the book, turned so that its ball and ring look out at the lower right corner
const auto whistle_button = btn(engine_mode_ ? std::string("engine-open") : std::string("open:kickoff"),
"<span class=\"nb-whistle-art\">" + picture(renderer_.diagram("nb-whistle", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 450 262\">" + whistle + "</svg>", 1300), 1012.5, 589.5) + "</span>", "nb-whistle",
"id=\"object-app-kickoff\" data-id=\"kickoff\" aria-label=\"Anstoß\"" + std::string(enabled("kickoff") ? "" : " disabled=\"disabled\""));
if (const auto under = out.find("<div class=\"nb-cover-shadow\">"); under != std::string::npos) out.insert(under, whistle_button);
else out += whistle_button;
return out + "</div>";
}