Carry the match day's score board into the review; minutes on the time line; depth on the desk
- The review after a match opens with the score board of the stage at its final whistle. - The time line names its quarter hours; the repeated status under a running match is gone. - Desk: cards and tiles cast a shadow and answer the pointer, the bar carries the club's colour along its foot, the club's name is set in the display serif. - Settings: themes are called Mitternacht, Papier and Spieltag; two filler lines removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
3a3513fb60
commit
9b33e1f8c1
7 files changed
+42
-15
No files matched your search
@@ -260,7 +260,7 @@ std::string App::live_card(const Json &match, const Json &frame, const std::stri
|
||||
const bool quad = layout == "quad";
|
||||
const double crest = layout == "solo" ? 250 : layout == "duo" ? 190 : 110;
|
||||
const auto id = match.at("id").get<std::string>();
|
||||
const double tw = layout == "solo" ? 2480 : 1180, th = quad ? 84 : 124, W = tw / th * 100;
|
||||
const double tw = layout == "solo" ? 2480 : 1180, th = quad ? 84 : 112, W = tw / th * 100;
|
||||
|
||||
// the clock: a ring that fills with the minutes
|
||||
const double turn = std::clamp(double(minute) / duration, 0.0, 1.0) * 289.03;
|
||||
@@ -320,6 +320,11 @@ std::string App::live_card(const Json &match, const Json &frame, const std::stri
|
||||
";\"></div><div class=\"live-press-away\" style=\"background-color:" + colours[1] + ";\"></div></div>";
|
||||
out += "</div><div class=\"live-side away\">" + live_badge(match.at("away"), crest) + live_text(match.at("away").at("name"), "live-team-name") + "</div></div>";
|
||||
out += "<div class=\"live-timeline\">" + picture(renderer_.diagram("live-line-" + std::to_string(index), timeline, 2048), tw, th) + "</div>";
|
||||
if (!quad) {
|
||||
out += "<div class=\"live-timeline-ticks\" style=\"width:" + scalar(tw) + "dp;\">";
|
||||
for (int at = 15; at < duration; at += 15) out += "<span style=\"left:" + scalar(at * 100.0 / duration) + "%;\">" + std::to_string(at) + "′</span>";
|
||||
out += "</div>";
|
||||
}
|
||||
|
||||
// a goal that has just fallen: a banner across this card, once
|
||||
if (!frame.at("events").empty()) {
|
||||
|
||||
Reference in new issue
Block a user