Play against Maia: the designer's must-fix items
- The toolbar's words (Take back, Abort, Resign, Yes/No) at 14 pt, as tall as the icon buttons beside them. - The result strip: four even buttons in a row when they fit; else Analyse, Rematch and New game side by side, Save — each as wide as the strip. - ♞ instead of ⚔ for Play and New game: at small sizes ⚔ read as a cross. - Maia not downloaded: the main button says «Download and play» and starts the game once she is there; the size line, progress and errors sit by the buttons, outside the scrolling body. - No unsaved mark during the game; an unnamed user is «You» in the title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9d44c3fea0
commit
ff4dc8b7ed
4 changed files with 155 additions and 69 deletions
|
|
@ -119,13 +119,13 @@ fn legacy_pgn(path: &Path) -> bool {
|
|||
/// database actions.
|
||||
fn shelf_buttons_w(ui: &Ui, update: Option<&str>, icons: bool) -> f32 {
|
||||
let texts: [&str; 4] = if icons {
|
||||
["⚙", "📋", "♟", "⚔"]
|
||||
["⚙", "📋", "♟", "♞"]
|
||||
} else {
|
||||
[
|
||||
tr("⚙ Settings"),
|
||||
tr("📋 Paste PGN"),
|
||||
tr("♟ New game"),
|
||||
tr("⚔ Play"),
|
||||
tr("♞ Play"),
|
||||
]
|
||||
};
|
||||
texts.iter().map(|t| button_w(ui, t)).sum::<f32>()
|
||||
|
|
@ -713,9 +713,9 @@ impl Library {
|
|||
actions.push(LibraryAction::NewGame);
|
||||
}
|
||||
if ui
|
||||
.button(label(tr("⚔ Play"), "⚔"))
|
||||
.button(label(tr("♞ Play"), "♞"))
|
||||
.on_hover_text(hint(
|
||||
tr("⚔ Play"),
|
||||
tr("♞ Play"),
|
||||
tr("A game against Maia, which plays like a human of the chosen rating (Ctrl+G)"),
|
||||
))
|
||||
.clicked()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue