The evaluation reads on every skin and speaks plainly

The report draws the match sheet's event pictures instead of pale outlines,
the league pickers take the sheet's colours, and notices no longer talk
about recordings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-17 11:36:29 +01:00
1 parent 52157159cb
commit 811edfa900
4 files changed
+19 -48

No files matched your search

+2
View File
@@ -182,3 +182,5 @@
.pm-total-copy {display:flex;flex-direction:column;align-items:flex-start;min-width:460dp;}
.postmatch-total .pm-total-copy strong {display:block;font-family:Display;font-size:150dp;line-height:160dp;letter-spacing:0;}
.postmatch-total .pm-total-copy>span {display:block;font-size:34dp;line-height:44dp;color:var(--p-n7);}
.mv-stage .postmatch-pickers select {border:2dp var(--p-n4);background-color:var(--p-n1);color:var(--p-text);}
.mv-stage .postmatch-pickers select selectbox {border-color:var(--p-n4);background-color:var(--p-n1);color:var(--p-text);}
+2 -2
View File
@@ -138,9 +138,9 @@ void App::postmatch_update_report() {
n->SetInnerRML(std::to_string(postmatch_minute_) + "′");
if (auto *n = element("postmatch-recorded-note"))
n->SetInnerRML(
live_text("Aufgezeichneter Stand: " +
live_text("Stand nach " +
std::to_string(report.at("recorded_minute").get<int>()) +
"′ · keine Zwischenberechnung"));
"′"));
if (auto *n = element("postmatch-play")) {
n->SetInnerRML(live_text(
postmatch_playing_ ? "Pause" : "Rückblick abspielen", "control-label"));
+2 -8
View File
@@ -78,14 +78,8 @@ inline std::string postmatch_eleven_markup(const Json &eleven,
out += "</div></div><div id=\"postmatch-eleven-list\" "
"class=\"postmatch-eleven-list\">";
if (!available)
out += "<h3>" + text("Keine Nominierungen aufgezeichnet") + "</h3><p>" +
text("Die feste Liveaufnahme enthält keine Spielernoten oder "
"Nominierungen. Es wird keine Elf aus Kaderstärken oder "
"vermuteten Ereignisakteuren erfunden.") +
"</p><p>" +
text("Ergebnisse und Bericht zeigen ausschließlich die vorhandene "
"Aufzeichnung.") +
"</p>";
out += "<h3>" + text("Keine Elf des Tages") + "</h3><p>" +
text("Für diesen Spieltag wurde keine Elf des Tages gewählt.") + "</p>";
else {
out += "<p class=\"postmatch-eleven-notice\">" +
text(eleven.value("notice", "Explizit gelieferte Nominierungen")) +
+13 -38
View File
@@ -39,32 +39,9 @@ std::string postmatch_kind(const std::string &kind) {
}
} // namespace
std::string App::postmatch_icon(const std::string &kind, double size) {
const std::string color = kind == "yellow" ? "#dfbd66"
: kind == "red" ? "#e5938b"
: theme_ == "silver" ? "#42627d"
: theme_ == "matchday" ? "#d6b9bf"
: "#b4cfde";
const std::string path =
kind == "goal"
? "<circle cx='12' cy='12' r='9'/><path d='m12 7 5 4-2 6H9l-2-6z'/>"
: kind == "yellow" || kind == "red"
? "<rect x='6' y='3' width='12' height='18' rx='2'/>"
: kind == "crowd"
? "<circle cx='12' cy='7' r='3'/><path d='M6 21v-3a6 6 0 0 1 12 "
"0v3M3 10a2 2 0 0 0-2 2v7M21 10a2 2 0 0 1 2 2v7'/>"
: kind == "injury" ? "<path d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/>"
: "<circle cx='12' cy='12' r='8'/><path d='M12 1v6M12 "
"17v6M1 12h6M17 12h6'/>";
return picture(
renderer_.diagram("postmatch-icon-" + kind,
"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 "
"24 24'><g fill='none' stroke='" +
color +
"' stroke-width='1.5' stroke-linecap='round' "
"stroke-linejoin='round'>" +
path + "</g></svg>",
int(size * 2)),
size, size);
// the report uses the pictures of the match sheet, so they read on every skin
const bool whistle = kind == "kickoff" || kind == "interval" || kind == "fulltime" || kind == "restart";
return live_icon(whistle ? "time" : kind, size);
}
// The pictures of the day's totals: drawn large and filled, in the sheet's colours.
std::string App::postmatch_art(const std::string &kind, double size) {
@@ -180,7 +157,7 @@ std::string App::postmatch_events(const Json &report, const std::string &side) {
}
if (!shown)
out += "<li class=\"postmatch-no-events\">" +
live_text("Noch keine aufgezeichneten Ereignisse") + "</li>";
live_text("Noch keine Ereignisse") + "</li>";
return out + "</ol>";
}
std::string App::postmatch_report_markup(const Json &report) {
@@ -198,8 +175,7 @@ std::string App::postmatch_report_markup(const Json &report) {
"<strong>" + live_text(report.at("away").at("name")) +
"</strong></div></header>";
out += "<p class=\"postmatch-report-meta\">" +
live_text(live_match_info_text(report, postmatch_data_.at("surface") == "indoor") +
" · Spielort und Spielerzuordnung nicht aufgezeichnet") +
live_text(live_match_info_text(report, postmatch_data_.at("surface") == "indoor")) +
"</p><div id=\"postmatch-events\" class=\"postmatch-event-columns\">" +
postmatch_events(report, "home") + postmatch_events(report, "away") +
"</div><section class=\"postmatch-timeline\"><div "
@@ -250,9 +226,9 @@ std::string App::postmatch_report_markup(const Json &report) {
std::to_string(postmatch_minute_) +
"′</span></div><p id=\"postmatch-recorded-note\" "
"class=\"postmatch-recorded-note\">" +
live_text("Aufgezeichneter Stand: " +
live_text("Stand nach " +
std::to_string(report.at("recorded_minute").get<int>()) +
"′ · keine Zwischenberechnung") +
"′") +
"</p>";
const auto matches = postmatch_matches();
size_t at = 0;
@@ -394,14 +370,14 @@ std::string App::render_postmatch() {
const int games = total.at("games");
body +=
"</div><p>" +
live_text(std::to_string(games) + (games == 1 ? " aufgezeichnete Partie · " : " aufgezeichnete Partien · ") +
live_text(std::to_string(games) + (games == 1 ? " Partie · " : " Partien · ") +
(games ? scalar(double(total.at("goals").get<int>()) / games)
: "—") +
" Tore pro Partie") +
"</p><p class=\"postmatch-scope-note\">" +
live_text(total.at("attendance").is_null()
? "Zuschauer nicht aufgezeichnet · keine Ligagesamtwertung"
: "Aufgezeichnete menschliche Partien · keine Ligagesamtwertung") +
? "Zuschauerzahl unbekannt · nur Partien mit eigener Beteiligung"
: "Nur Partien mit eigener Beteiligung") +
"</p></section>";
} else {
const Json *table = nullptr;
@@ -444,7 +420,7 @@ std::string App::render_postmatch() {
if (!table)
body +=
"<p>" +
live_text("Für diese Partie ist kein Tabellenstand aufgezeichnet.") +
live_text("Zu dieser Partie gehört keine Tabelle.") +
"</p>";
body += "</div>";
}
@@ -481,7 +457,7 @@ std::string App::render_postmatch() {
const bool home = match->at("home").at("id") == postmatch_detail_team_;
const auto &final = match->at("final");
const size_t side = home ? 0 : 1;
detail += "<h3>" + live_text("Teamwerte der aufgezeichneten Partie") + "</h3><p class=\"postmatch-detail-result\">" +
detail += "<h3>" + live_text("Teamwerte der Partie") + "</h3><p class=\"postmatch-detail-result\">" +
live_text(match->at("home").at("name").get<std::string>() +
" · " + live_score_text(final.at("score")) + " · " +
match->at("away").at("name").get<std::string>()) +
@@ -497,8 +473,7 @@ std::string App::render_postmatch() {
detail += "<div><dt>Zuschauer</dt><dd>" + live_text(postmatch_count(match->at("attendance"))) + "</dd></div></dl>";
} else
detail += "<p>" +
live_text("Keine Partie dieses Teams in der gehaltenen "
"Aufnahme enthalten.") +
live_text("Dieser Verein spielte in keiner deiner Partien, deshalb gibt es keinen Spielbericht.") +
"</p>";
dialog =
"<div id=\"postmatch-dialog-layer\" "