adjust odds scroll delay and font size of team ticker odds

This commit is contained in:
Chuck
2025-07-20 21:01:09 -05:00
parent 1dcd79f758
commit 8356c0dab5
2 changed files with 5 additions and 5 deletions

View File

@@ -113,7 +113,7 @@
"enabled_leagues": ["mlb"], "enabled_leagues": ["mlb"],
"update_interval": 3600, "update_interval": 3600,
"scroll_speed": 1, "scroll_speed": 1,
"scroll_delay": 0.001 "scroll_delay": 0.01
}, },
"calendar": { "calendar": {
"enabled": true, "enabled": true,

View File

@@ -384,7 +384,7 @@ class OddsTickerManager:
# Fonts # Fonts
team_font = self.fonts['medium'] team_font = self.fonts['medium']
odds_font = self.fonts['small'] odds_font = self.fonts['medium']
vs_font = self.fonts['medium'] vs_font = self.fonts['medium']
# Get team logos # Get team logos
@@ -416,8 +416,8 @@ class OddsTickerManager:
away_team_odds = odds.get('away_team_odds', {}) away_team_odds = odds.get('away_team_odds', {})
# Determine the favorite and get the spread # Determine the favorite and get the spread
home_spread = home_team_odds.get('point_spread') home_spread = home_team_odds.get('spread_odds')
away_spread = away_team_odds.get('point_spread') away_spread = away_team_odds.get('spread_odds')
# Check for valid spread values before comparing # Check for valid spread values before comparing
home_favored = isinstance(home_spread, (int, float)) and home_spread < 0 home_favored = isinstance(home_spread, (int, float)) and home_spread < 0
@@ -481,7 +481,7 @@ class OddsTickerManager:
current_x += team_info_width + section_padding current_x += team_info_width + section_padding
# Odds (stacked) # Odds (stacked)
odds_font_height = odds_font.size if hasattr(odds_font, 'size') else 6 odds_font_height = odds_font.size if hasattr(odds_font, 'size') else 8
odds_y_away = 2 odds_y_away = 2
odds_y_home = height - odds_font_height - 2 odds_y_home = height - odds_font_height - 2