From 2d41118e805f534a8f8649198c40f7fadabcfb6a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Apr 2026 21:34:49 +0000 Subject: [PATCH] feat(icons): swap drawer "Chess" menu icon to MaterialSymbols.ChessKnight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace R.drawable.ic_chess (custom drawable) with MaterialSymbols.ChessKnight (U+F25E) in the navigation drawer's Chess menu entry. Knight is the most recognizable chess piece silhouette. - Drop ic_chess.xml. Chess board pieces (ChessPieceVectors.kt, CBurnett set) stay as ImageVector — Material Symbols glyphs are monochrome and can't do the white-with-black-outline style that keeps pieces visible on both light and dark squares. https://claude.ai/code/session_016gV9gEaSud6kDMdcaqy8ti --- .../amethyst/ui/navigation/drawer/DrawerContent.kt | 3 +-- amethyst/src/main/res/drawable/ic_chess.xml | 9 --------- .../amethyst/commons/icons/symbols/MaterialSymbols.kt | 1 + 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 amethyst/src/main/res/drawable/ic_chess.xml diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/drawer/DrawerContent.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/drawer/DrawerContent.kt index 735c6c705..2a522939b 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/drawer/DrawerContent.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/drawer/DrawerContent.kt @@ -548,8 +548,7 @@ fun ListContent( if (isDebug) { NavigationRow( title = R.string.route_chess, - icon = R.drawable.ic_chess, - iconReference = 1, + icon = MaterialSymbols.ChessKnight, tint = MaterialTheme.colorScheme.onBackground, nav = nav, route = Route.Chess, diff --git a/amethyst/src/main/res/drawable/ic_chess.xml b/amethyst/src/main/res/drawable/ic_chess.xml deleted file mode 100644 index 5786fe6c1..000000000 --- a/amethyst/src/main/res/drawable/ic_chess.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/symbols/MaterialSymbols.kt b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/symbols/MaterialSymbols.kt index b3a65d107..8bd3931f3 100644 --- a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/symbols/MaterialSymbols.kt +++ b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/icons/symbols/MaterialSymbols.kt @@ -59,6 +59,7 @@ object MaterialSymbols { val Chat = MaterialSymbol("\uE0C9") val Check = MaterialSymbol("\uE5CA") val CheckCircle = MaterialSymbol("\uF0BE") + val ChessKnight = MaterialSymbol("\uF25E") val Checklist = MaterialSymbol("\uE6B1") val ChevronRight = MaterialSymbol("\uE5CC") val Circle = MaterialSymbol("\uEF4A")