mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
MLB Manager improvements: Add color parameter to _draw_bdf_text calls to make status text visible
This commit is contained in:
@@ -134,7 +134,7 @@ class BaseMLBManager:
|
||||
status_width = self.display_manager.get_text_width(status_text, self.display_manager.calendar_font)
|
||||
status_x = (width - status_width) // 2
|
||||
status_y = 2
|
||||
self.display_manager._draw_bdf_text(status_text, status_x, status_y)
|
||||
self.display_manager._draw_bdf_text(status_text, status_x, status_y, color=(255, 255, 255))
|
||||
|
||||
# Format game date and time
|
||||
game_time = datetime.fromisoformat(game_data['start_time'].replace('Z', '+00:00'))
|
||||
@@ -162,7 +162,7 @@ class BaseMLBManager:
|
||||
status_width = self.display_manager.get_text_width(status_text, self.display_manager.calendar_font)
|
||||
status_x = (width - status_width) // 2
|
||||
status_y = 2
|
||||
self.display_manager._draw_bdf_text(status_text, status_x, status_y)
|
||||
self.display_manager._draw_bdf_text(status_text, status_x, status_y, color=(255, 255, 255))
|
||||
|
||||
# Draw scores at the bottom (matching NHL layout) using PressStart2P
|
||||
away_score = str(game_data['away_score'])
|
||||
|
||||
Reference in New Issue
Block a user