From 73cf19f941c004bbfa0542634fda24f0b3fe897c Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 18 Apr 2025 18:55:48 -0500 Subject: [PATCH] Fix weather icon vertical positioning: - Center icon in top 2/3 of display - Improve layout balance between icon and metrics - Maintain bottom space for additional weather data --- src/weather_manager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/weather_manager.py b/src/weather_manager.py index bdbe11d7..6c9cf62a 100644 --- a/src/weather_manager.py +++ b/src/weather_manager.py @@ -230,9 +230,11 @@ class WeatherManager: # --- Top Left: Icon --- condition = weather_data['weather'][0]['main'] - icon_size = self.ICON_SIZE['extra_large'] # Use new extra_large size + icon_size = self.ICON_SIZE['extra_large'] # Use extra_large size icon_x = 1 # Small padding from left edge - icon_y = 1 # Small padding from top edge + # Center the icon vertically in the top two-thirds of the display + available_height = (self.display_manager.matrix.height * 2) // 3 # Use top 2/3 of screen + icon_y = (available_height - icon_size) // 2 WeatherIcons.draw_weather_icon(image, condition, icon_x, icon_y, size=icon_size) # --- Top Right: Condition Text ---