From c07763340047c023feaea9a642ca8317d446f9dd Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Thu, 17 Apr 2025 17:58:51 -0500 Subject: [PATCH] refactor: Shift forecast icons further up --- src/weather_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/weather_manager.py b/src/weather_manager.py index 3bfda0ad..2a0fa310 100644 --- a/src/weather_manager.py +++ b/src/weather_manager.py @@ -368,7 +368,7 @@ class WeatherManager: available_height_for_icon = bottom_text_y - top_text_height # Ensure calculated y is not negative if space is very tight calculated_y = top_text_height + (available_height_for_icon - icon_size) // 2 - icon_y = max(top_text_height, calculated_y - 2) # Shift up by 2 pixels + icon_y = max(top_text_height, calculated_y - 6) # Shift up by 6 pixels icon_x = center_x - icon_size // 2 WeatherIcons.draw_weather_icon(image, forecast['condition'], icon_x, icon_y, icon_size) @@ -438,7 +438,7 @@ class WeatherManager: available_height_for_icon = bottom_text_y - top_text_height # Ensure calculated y is not negative if space is very tight calculated_y = top_text_height + (available_height_for_icon - icon_size) // 2 - icon_y = max(top_text_height, calculated_y - 2) # Shift up by 2 pixels + icon_y = max(top_text_height, calculated_y - 6) # Shift up by 6 pixels icon_x = center_x - icon_size // 2 WeatherIcons.draw_weather_icon(image, forecast['condition'], icon_x, icon_y, icon_size)