From 26e975ac9dbce316d7b341336a5de9a8759eac74 Mon Sep 17 00:00:00 2001 From: Weyoune Date: Sun, 15 Nov 2026 19:32:30 +0100 Subject: [PATCH] The cup ring shows only where the lower right corner of the page is free Co-Authored-By: Claude Fable 5.2 --- src/modern/ui/notebook.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modern/ui/notebook.inc b/src/modern/ui/notebook.inc index 9452dc8..6b42b4d 100644 --- a/src/modern/ui/notebook.inc +++ b/src/modern/ui/notebook.inc @@ -218,7 +218,15 @@ std::string App::notebook_shell(const std::function & lines += ""; // the ring a cup left in the lower right corner: only where the page keeps that corner free or covers it // with a panel of its own, never under bare writing or an older sheet - const bool stain = menu_.empty() || (page_native() && menu_ != "tactics"); + // (the transfer market keeps it free; on the home page it shows while no card lies on the last two cells of the bottom row) + bool stain = menu_ == "transfer" && page_native(); + if (menu_.empty()) { + stain = true; + const auto &pages = notebook_pages().at("pages"); + if (home_page_ >= 0 && home_page_ < int(pages.size())) + for (const auto &card : pages[size_t(home_page_)].at("cards")) + if (card.at("row").get() + card.at("rows").get() - 1 >= 5 && card.at("col").get() + card.at("cols").get() - 1 >= 7) stain = false; + } if (stain) lines += ""; out += "
" + picture(paper, 3163.5, 1948.5, true) + "
"; if (const auto art = notebook_art(); !art.token.empty()) out += "
" + picture(art, 3163.5, 1948.5, true) + "
";