From 7265f50ab388db4050dc637f01d70acd01cfc1a8 Mon Sep 17 00:00:00 2001
From: fheinrich <fheinrich@techfak.uni-bielefeld.de>
Date: Wed, 3 Apr 2024 10:34:20 +0200
Subject: [PATCH] Fixed score label size when blinking red or green

---
 cooperative_cuisine/pygame_2d_vis/gui.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py
index 4ad01fc3..20ff8d1a 100644
--- a/cooperative_cuisine/pygame_2d_vis/gui.py
+++ b/cooperative_cuisine/pygame_2d_vis/gui.py
@@ -1443,21 +1443,21 @@ class PyGameGUI:
         duration_color_change = 60
         if score > self.last_score:
             self.score_label.update_theming(
-                '{"colours": {"normal_text": "#03b706"}, "font": { "size": 20, "bold": 1}}'
+                '{"colours": {"normal_text": "#03b706"}, "font": { "size": 24, "bold": 1}}'
             )
 
             self.count_frames_score_label = 0
             self.switch_score_color = True
         elif score < self.last_score:
             self.score_label.update_theming(
-                '{"colours": {"normal_text": "#e22312"}, "font": { "size": 20, "bold": 1}}'
+                '{"colours": {"normal_text": "#e22312"}, "font": { "size": 24, "bold": 1}}'
             )
             self.count_frames_score_label = 0
             self.switch_score_color = True
         elif self.switch_score_color:
             if self.count_frames_score_label >= duration_color_change:
                 self.score_label.update_theming(
-                    '{"colours": {"normal_text": "#000000"}, "font": { "size": 20, "bold": 1}}'
+                    '{"colours": {"normal_text": "#000000"}, "font": { "size": 24, "bold": 1}}'
                 )
                 self.count_frames_score_label = 0
                 self.switch_score_color = False
-- 
GitLab