mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
shift hourly icon up by 11 px
This commit is contained in:
@@ -360,7 +360,7 @@ class WeatherManager:
|
||||
draw.text((center_x - hour_width // 2, 1),
|
||||
hour_text,
|
||||
font=self.display_manager.small_font,
|
||||
fill=self.COLORS['extra_dim'])
|
||||
fill=self.COLORS['dim'])
|
||||
|
||||
# Draw weather icon centered vertically between top/bottom text
|
||||
icon_size = self.ICON_SIZE['large'] # Changed from medium to large (28)
|
||||
@@ -369,7 +369,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 - 1) # Shift up by 6 pixels
|
||||
icon_y = max(top_text_height, calculated_y + 20) # 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user