From 3daa4c5f48ece57bd1599c02b72aa158e53fa5e9 Mon Sep 17 00:00:00 2001 From: Zach Chartrand Date: Wed, 21 Jul 2021 02:57:11 -0400 Subject: [PATCH] Bug fix - Put themes in dictionary called "themes" for other code to function (I don't remember removing this?). --- chess_themes.py | 55 +++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/chess_themes.py b/chess_themes.py index 2519c39..61fa00d 100644 --- a/chess_themes.py +++ b/chess_themes.py @@ -7,7 +7,7 @@ Document containing the different board themes for the chess progrum. The colors are structured in this order: - + light square dark square light square highlight @@ -17,31 +17,32 @@ """ - # TODO: Add more themes for custom board colors. -blue = ( - (214, 221, 229), - (82, 133, 180), - (253, 187, 115), - (255, 129, 45), - (116, 194, 229), - (32, 154, 215), +themes = dict( + blue = ( + (214, 221, 229), + (82, 133, 180), + (253, 187, 115), + (255, 129, 45), + (116, 194, 229), + (32, 154, 215), + ), + + bw = ( + (255, 255, 255), + (100, 100, 100), + (140, 236, 146), + (30, 183, 37), + (116, 194, 229), + (32, 154, 215), + ), + + yellow = ( + (247, 241, 142), + (244, 215, 4), + (253, 187, 115), + (255, 129, 45), + (116, 194, 229), + (32, 154, 215), + ), ) - -bw = ( - (255, 255, 255), - (100, 100, 100), - (140, 236, 146), - (30, 183, 37), - (116, 194, 229), - (32, 154, 215), -) - -yellow = ( - (247, 241, 142), - (244, 215, 4), - (253, 187, 115), - (255, 129, 45), - (116, 194, 229), - (32, 154, 215), -) \ No newline at end of file