From 42828e900c1ce7ac2511e1f08774c618cf9f39ed Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Wed, 28 Oct 2026 01:23:13 +0300 Subject: [PATCH] Great move (!) in chess.com's own green, #7AAB59 #81B64C was their best-move color. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- .../java/io/github/vrubelroman/chesspenguin/theme/Color.kt | 4 ++-- apps/desktop/src/notation.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7754753..fb165aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https author's own sign, when there is one, stands instead. - Desktop, a game against the computer: the draw offer is «½–½» on its button («Offer a draw» in its tooltip), so that the game's buttons fit in a narrow panel. -- Move marks in the owner's palette (as on chess.com): !! #26C2A3, ! #81B64C, ?! yellow +- Move marks in the owner's palette (as on chess.com): !! #26C2A3, ! #7AAB59, ?! yellow #F7C631, ? #FFA459, ?? #FA412D, on the board, in the notation, the report and the graph, on the desktop and Android; as text in the light theme darkened to stay readable. The accuracy numbers follow the same colors. diff --git a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt index d025a89..529fba3 100644 --- a/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt +++ b/androidApp/app/src/main/java/io/github/vrubelroman/chesspenguin/theme/Color.kt @@ -58,7 +58,7 @@ val DarkChess = LightChess.copy( /// background they are darkened to stay readable (contrast at least 4.5:1). fun nagColor(nag: Int, dark: Boolean): Color? = if (dark) { when (nag) { - 1 -> Color(0xFF81B64C) // ! + 1 -> Color(0xFF7AAB59) // ! 2 -> Color(0xFFFFA459) // ? 3 -> Color(0xFF26C2A3) // !! 4 -> Color(0xFFFA412D) // ?? @@ -68,7 +68,7 @@ fun nagColor(nag: Int, dark: Boolean): Color? = if (dark) { } } else { when (nag) { - 1 -> Color(0xFF5B8135) + 1 -> Color(0xFF5B8141) 2 -> Color(0xFFC25700) 3 -> Color(0xFF1A846F) 4 -> Color(0xFFD2301C) diff --git a/apps/desktop/src/notation.rs b/apps/desktop/src/notation.rs index 25e0964..027708f 100644 --- a/apps/desktop/src/notation.rs +++ b/apps/desktop/src/notation.rs @@ -693,7 +693,7 @@ fn mark_block(ui: &mut Ui, n: &Notation, id: NodeId, mark: &Mark, out: &mut Nota /// for badges and dark backgrounds. pub fn assessment_color(nag: Nag) -> Option { Some(match nag.0 { - 1 => Color32::from_rgb(0x81, 0xb6, 0x4c), + 1 => Color32::from_rgb(0x7a, 0xab, 0x59), 2 => Color32::from_rgb(0xff, 0xa4, 0x59), 3 => Color32::from_rgb(0x26, 0xc2, 0xa3), 4 => Color32::from_rgb(0xfa, 0x41, 0x2d), @@ -710,7 +710,7 @@ pub fn assessment_text_color(nag: Nag, dark: bool) -> Option { return assessment_color(nag); } Some(match nag.0 { - 1 => Color32::from_rgb(0x5b, 0x81, 0x35), + 1 => Color32::from_rgb(0x5b, 0x81, 0x41), 2 => Color32::from_rgb(0xc2, 0x57, 0x00), 3 => Color32::from_rgb(0x1a, 0x84, 0x6f), 4 => Color32::from_rgb(0xd2, 0x30, 0x1c),