Use tiny font for daily forecast temperatures

This commit is contained in:
ChuckBuilds
2025-04-17 09:02:40 -05:00
parent 16e94d7f16
commit 8092148adc

View File

@@ -428,11 +428,11 @@ class WeatherManager:
# Draw high/low temperatures at bottom
temp_text = f"{forecast['temp_low']}°/{forecast['temp_high']}°"
temp_width = draw.textlength(temp_text, font=self.display_manager.small_font)
temp_width = draw.textlength(temp_text, font=self.display_manager.extra_small_font)
temp_y = self.display_manager.matrix.height - 8 # Position at bottom with small margin
draw.text((center_x - temp_width // 2, temp_y),
temp_text,
font=self.display_manager.small_font,
font=self.display_manager.extra_small_font,
fill=self.COLORS['text'])
# Update the display