diff --git a/assets/modern/postmatch.rcss b/assets/modern/postmatch.rcss index bc3d8fe..b25a13b 100644 --- a/assets/modern/postmatch.rcss +++ b/assets/modern/postmatch.rcss @@ -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);} diff --git a/src/modern/ui/postmatch_controls.inc b/src/modern/ui/postmatch_controls.inc index b747573..fc2283b 100644 --- a/src/modern/ui/postmatch_controls.inc +++ b/src/modern/ui/postmatch_controls.inc @@ -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()) + - "′ · keine Zwischenberechnung")); + "′")); if (auto *n = element("postmatch-play")) { n->SetInnerRML(live_text( postmatch_playing_ ? "Pause" : "Rückblick abspielen", "control-label")); diff --git a/src/modern/ui/postmatch_eleven_markup.hpp b/src/modern/ui/postmatch_eleven_markup.hpp index 60efaee..f45794b 100644 --- a/src/modern/ui/postmatch_eleven_markup.hpp +++ b/src/modern/ui/postmatch_eleven_markup.hpp @@ -78,14 +78,8 @@ inline std::string postmatch_eleven_markup(const Json &eleven, out += "
"; if (!available) - out += "

" + text("Keine Nominierungen aufgezeichnet") + "

" + - text("Die feste Liveaufnahme enthält keine Spielernoten oder " - "Nominierungen. Es wird keine Elf aus Kaderstärken oder " - "vermuteten Ereignisakteuren erfunden.") + - "

" + - text("Ergebnisse und Bericht zeigen ausschließlich die vorhandene " - "Aufzeichnung.") + - "

"; + out += "

" + text("Keine Elf des Tages") + "

" + + text("Für diesen Spieltag wurde keine Elf des Tages gewählt.") + "

"; else { out += "

" + text(eleven.value("notice", "Explizit gelieferte Nominierungen")) + diff --git a/src/modern/ui/postmatch_screens.inc b/src/modern/ui/postmatch_screens.inc index 8b48b43..583503f 100644 --- a/src/modern/ui/postmatch_screens.inc +++ b/src/modern/ui/postmatch_screens.inc @@ -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" - ? "" - : kind == "yellow" || kind == "red" - ? "" - : kind == "crowd" - ? "" - : kind == "injury" ? "" - : ""; - return picture( - renderer_.diagram("postmatch-icon-" + kind, - "" + - path + "", - 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 += "

  • " + - live_text("Noch keine aufgezeichneten Ereignisse") + "
  • "; + live_text("Noch keine Ereignisse") + ""; return out + ""; } std::string App::postmatch_report_markup(const Json &report) { @@ -198,8 +175,7 @@ std::string App::postmatch_report_markup(const Json &report) { "" + live_text(report.at("away").at("name")) + "
    "; out += "

    " + - 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")) + "

    " + postmatch_events(report, "home") + postmatch_events(report, "away") + "

    " + - live_text("Aufgezeichneter Stand: " + + live_text("Stand nach " + std::to_string(report.at("recorded_minute").get()) + - "′ · keine Zwischenberechnung") + + "′") + "

    "; 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 += "

    " + - 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()) / games) : "—") + " Tore pro Partie") + "

    " + 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") + "

    "; } else { const Json *table = nullptr; @@ -444,7 +420,7 @@ std::string App::render_postmatch() { if (!table) body += "

    " + - live_text("Für diese Partie ist kein Tabellenstand aufgezeichnet.") + + live_text("Zu dieser Partie gehört keine Tabelle.") + "

    "; body += ""; } @@ -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 += "

    " + live_text("Teamwerte der aufgezeichneten Partie") + "

    " + + detail += "

    " + live_text("Teamwerte der Partie") + "

    " + live_text(match->at("home").at("name").get() + " · " + live_score_text(final.at("score")) + " · " + match->at("away").at("name").get()) + @@ -497,8 +473,7 @@ std::string App::render_postmatch() { detail += "

    Zuschauer
    " + live_text(postmatch_count(match->at("attendance"))) + "
    "; } else detail += "

    " + - 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.") + "

    "; dialog = "