From 0089c2378c7485cbc8ea3da9696afaa477c8b56e Mon Sep 17 00:00:00 2001 From: Weyoune Date: Sun, 15 Nov 2026 17:36:35 +0100 Subject: [PATCH] The whistle lies under the book, turned about its ball, as the design now has it Co-Authored-By: Claude Fable 5.2 --- assets/modern/notebook.rcss | 7 ++++--- assets/modern/pages.rcss | 2 +- src/modern/ui/notebook.inc | 7 +++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/assets/modern/notebook.rcss b/assets/modern/notebook.rcss index 0159af4..4d9b3a1 100644 --- a/assets/modern/notebook.rcss +++ b/assets/modern/notebook.rcss @@ -155,9 +155,6 @@ body.midnight .hw-item,body.matchday .hw-item {background-color:#ffffff14;} body .window.nb-sheet>* {pointer-events:auto;} .hw-step button,.hw-step button:hover {white-space:nowrap;flex-shrink:0;display:block;line-height:64dp;} .hw-kicker,.nb-heading small {text-transform:none;} -.nb-whistle,.nb-whistle:hover,.nb-whistle:disabled {left:3250dp;top:1690dp;width:810dp;height:471dp;transform-origin:540dp 414dp;} -.nb-whistle-art {width:810dp;height:471dp;} -.nb-whistle,.nb-whistle:hover,.nb-whistle:disabled {left:3345dp;top:1735dp;} /* --- The cards, second design: paper notes, a dark match card, a tear-off calendar, lamps on a dashboard, photographs in white frames. --- */ @@ -318,3 +315,7 @@ body.midnight .hw-item,body.matchday .hw-item {background-color:#ffffff14;} body .hw-chart-label.now span {font-size:46dp;} .hw-empty {font-size:32dp;line-height:42dp;} .hw-duel small {font-size:30dp;} +/* the whistle after the design: 300 x 230 units at (1466, 820), turned about its ball, under the book */ +.nb-whistle,.nb-whistle:hover,.nb-whistle:disabled {left:3298.5dp;top:1845dp;width:1012.5dp;height:589.5dp;transform-origin:355.5dp 184.5dp;transform:rotate(115deg) scale(0.64);} +.nb-whistle:hover {transform:rotate(108deg) scale(0.7);filter:brightness(1.07);} +.nb-whistle-art {width:1012.5dp;height:589.5dp;} diff --git a/assets/modern/pages.rcss b/assets/modern/pages.rcss index 4667dc3..e1cadac 100644 --- a/assets/modern/pages.rcss +++ b/assets/modern/pages.rcss @@ -28,7 +28,7 @@ body.matchday {--p-bg:#e4eed6;--p-surf:#cfe0b8;--p-text:#1d2a16;--p-div:#1d2a162 .pg-col {display:flex;flex-direction:column;gap:27dp;min-width:0;min-height:0;} .pg-row {display:flex;align-items:center;gap:27dp;min-width:0;} .pg-grow {flex:1;min-width:0;min-height:0;} -.pg-foot {display:flex;flex:none;align-items:center;gap:18dp;height:81dp;padding-right:130dp;} +.pg-foot {display:flex;flex:none;align-items:center;gap:18dp;height:81dp;padding-right:0dp;} .pg-sp {display:block;flex:1;} .pg-status {display:block;max-width:1500dp;height:60dp;line-height:60dp;padding:0 27dp;border-radius:30dp;background-color:var(--p-n1);font-size:28dp;color:var(--p-n8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .pg-panel {display:block;background-color:var(--p-n1);border:2dp var(--p-div);border-radius:45dp;padding:32dp 36dp;} diff --git a/src/modern/ui/notebook.inc b/src/modern/ui/notebook.inc index dd8cdb1..cd08d08 100644 --- a/src/modern/ui/notebook.inc +++ b/src/modern/ui/notebook.inc @@ -243,9 +243,12 @@ std::string App::notebook_shell(const std::function & "" "" ""; - out += btn(engine_mode_ ? std::string("engine-open") : std::string("open:kickoff"), - "" + picture(renderer_.diagram("nb-whistle", "" + whistle + "", 1300), 810, 471) + "", "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"), + "" + picture(renderer_.diagram("nb-whistle", "" + whistle + "", 1300), 1012.5, 589.5) + "", "nb-whistle", "id=\"object-app-kickoff\" data-id=\"kickoff\" aria-label=\"Anstoß\"" + std::string(enabled("kickoff") ? "" : " disabled=\"disabled\"")); + if (const auto under = out.find("
"); under != std::string::npos) out.insert(under, whistle_button); + else out += whistle_button; return out + "
"; }