Opponent prep: the designer's review

The period caption shortens in a narrow row; «Last N» with both colours
shows «N + N»; the menu says from which date it counts; undated games
left out are named in the summary; no games in a period offer all games.
Without any dates a period by months takes all. Crisp icons (★, 🗐);
saved is a quiet mark. The list cuts long texts, names the colour in
words, opens on double-click, renames with Cancel, explains a missing
database, and tells while it opens one. CP_PREP_LIST for screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-31 21:47:08 +03:00
parent 570bd84dcf
commit e80933d48d
6 changed files with 456 additions and 169 deletions

View file

@ -87,7 +87,7 @@ pub enum LibraryAction {
path: PathBuf,
index: usize,
},
/// «📑 Preparations»: the saved preparations against opponents.
/// «🗐 Preparations»: the saved preparations against opponents.
Preparations,
/// «Prepare against…» for a player of this database (opponent-prep.md §2).
PrepareAgainst {
@ -160,9 +160,9 @@ fn shelf_buttons_w(ui: &Ui, update: Option<&str>, icons: bool) -> f32 {
button_w(
ui,
if icons {
"📑"
"🗐"
} else {
tr("📑 Preparations")
tr("🗐 Preparations")
},
)
} else {
@ -810,15 +810,15 @@ impl Library {
if crate::platform::CAPS.prep {
ui.separator();
let label = if icons {
"📑"
"🗐"
} else {
tr("📑 Preparations")
tr("🗐 Preparations")
};
if ui
.button(label)
.on_hover_text(shelf_hint(
icons,
tr("📑 Preparations"),
tr("🗐 Preparations"),
tr("Preparations against opponents: the saved ones and a new one"),
))
.clicked()