adjust MILB logos to be closer to edges

This commit is contained in:
Chuck
2025-06-18 09:05:21 -05:00
parent 4ae98a5b52
commit 0b29882a8a

View File

@@ -158,15 +158,16 @@ class BaseMiLBManager:
# Calculate vertical center line for alignment # Calculate vertical center line for alignment
center_y = height // 2 center_y = height // 2
# Draw home team logo (far right, extending beyond screen) # Position logos with their centers at the screen edges
home_x = width - home_logo.width + 2 # Home team logo (right edge)
home_x = width - (home_logo.width // 2)
home_y = center_y - (home_logo.height // 2) home_y = center_y - (home_logo.height // 2)
# Paste the home logo onto the overlay # Paste the home logo onto the overlay
overlay.paste(home_logo, (home_x, home_y), home_logo) overlay.paste(home_logo, (home_x, home_y), home_logo)
# Draw away team logo (far left, extending beyond screen) # Away team logo (left edge)
away_x = -2 away_x = -(away_logo.width // 2)
away_y = center_y - (away_logo.height // 2) away_y = center_y - (away_logo.height // 2)
overlay.paste(away_logo, (away_x, away_y), away_logo) overlay.paste(away_logo, (away_x, away_y), away_logo)
@@ -592,15 +593,16 @@ class MiLBLiveManager(BaseMiLBManager):
# Calculate vertical center line for alignment # Calculate vertical center line for alignment
center_y = height // 2 center_y = height // 2
# Draw home team logo (far right, extending beyond screen) # Position logos with their centers at the screen edges
home_x = width - home_logo.width + 2 # Home team logo (right edge)
home_x = width - (home_logo.width // 2)
home_y = center_y - (home_logo.height // 2) home_y = center_y - (home_logo.height // 2)
# Paste the home logo onto the overlay # Paste the home logo onto the overlay
overlay.paste(home_logo, (home_x, home_y), home_logo) overlay.paste(home_logo, (home_x, home_y), home_logo)
# Draw away team logo (far left, extending beyond screen) # Away team logo (left edge)
away_x = -2 away_x = -(away_logo.width // 2)
away_y = center_y - (away_logo.height // 2) away_y = center_y - (away_logo.height // 2)
overlay.paste(away_logo, (away_x, away_y), away_logo) overlay.paste(away_logo, (away_x, away_y), away_logo)