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
@@ -61,7 +61,11 @@ void App::engine_render() {
|
||||
} else {
|
||||
const auto &desk = engine_data_.at("desktop").at("data"), &meta = engine_data_.at("desktop").at("meta");
|
||||
const auto &team = desk.at("team"), &person = desk.at("manager");
|
||||
out = "<div class=\"desktop-layer\"><div class=\"info-bar\"><div class=\"identity\">" + engine_widget_crest(team, 82) +
|
||||
// the bar carries the club's colour as a line along its foot
|
||||
std::string club_line;
|
||||
if (const auto *club = world_->find("clubs", team.at("id").get<std::string>()); club && !club->value("crest", "").empty())
|
||||
if (const auto colour = renderer_.crest_colour(club->value("crest", "")); !colour.empty()) club_line = " style=\"border-bottom:8dp " + colour + ";\"";
|
||||
out = "<div class=\"desktop-layer\"><div class=\"info-bar\"" + club_line + "><div class=\"identity\">" + engine_widget_crest(team, 82) +
|
||||
"<span><strong>" + esc(engine_text(team.at("name"))) + "</strong><small>" + esc(engine_text(person.at("name"))) +
|
||||
"</small></span></div><div class=\"info-date\">" + esc(ui_long_date(meta.at("date").get<std::string>())) + "<small>Saison " +
|
||||
esc(meta.at("season").at("label").get<std::string>()) + "</small></div><div class=\"info-cash\"><small>Guthaben</small><strong id=\"engine-cash\" class=\"" + money_classes(engine_money_minor(desk.at("accounts").at("cash"))) + "\">" +
|
||||
|
||||
Reference in new issue
Block a user