A warmer paper skin; table zones tint whole rows and the table fills its window

Within the light skin the blue-grey panels, stripes, selections and button gradients
become paper tones. League tables tint the rows of the European, promotion and
relegation places, mark the own club's row in blue and stretch their rows to the
window's height.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 22:47:32 +01:00
1 parent 6a8d4084a5
commit e22801ce0c
27 files changed
+84 -60

No files matched your search

+5 -2
View File
@@ -69,7 +69,7 @@ std::string App::render_reports(const std::string &mode) {
const double heading_height = matches ? 80 : strengths ? (rows.size() >= 20 ? 64 : 66)
: rows.size() >= 20 ? 64 : 80;
const double row_height = matches ? 118 : strengths ? (rows.size() >= 20 ? 64 : 66)
: rows.size() >= 20 ? (1682 - heading_height) / rows.size() : 80;
: rows.size() >= 16 ? (1682 - heading_height) / rows.size() : 80;
std::string body = "<div id=\"report-underlay\" class=\"report-underlay\">";
if (matches) {
const int round = engine_mode_?fixture.at("round").get<int>()-1:std::clamp(state.value("round", 0), 0,
@@ -127,7 +127,10 @@ std::string App::render_reports(const std::string &mode) {
std::string own_colour;
if (own_row)
if (const auto *club = world_->find("clubs", row_club); club && !club->value("crest", "").empty()) own_colour = renderer_.crest_colour(club->value("crest", ""));
body += "<div class=\"report-row " + std::string(i % 2 == 0 ? "striped" : "") + (own_row ? " own" : "") +
// a place the season decides tints its whole row
const std::string row_zone = matches || strengths ? std::string()
: engine_mode_ ? row.value("zone", std::string()) : report_zone(row.value("rank", 0), int(rows.size()), tier);
body += "<div class=\"report-row " + std::string(i % 2 == 0 ? "striped" : "") + (own_row ? " own" : "") + (row_zone.empty() ? "" : " zone-" + row_zone) +
"\" role=\"row\" data-club=\"" + esc(row.value("club", "")) +
"\" style=\"height:" + scalar(row_height) + "dp;" + (own_colour.empty() ? "" : "border-left-color:" + own_colour + ";") + "\">";
for (size_t column = 0; column < headings.size(); ++column) {