[PR #43] [MERGED] Fix weather UI icon rendering by using PNG icons #94

Closed
opened 2026-05-07 00:18:38 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/43
Author: @juliarzymowska
Created: 12/14/2025
Status: Merged
Merged: 12/15/2025
Merged by: @IAmTomShaw

Base: mainHead: fix-weather-icons


📝 Commits (2)

📊 Changes

5 files changed (+36 additions, -7 deletions)

View changed files

images/weather/drop.png (+0 -0)
images/weather/rain.png (+0 -0)
images/weather/thermometer.png (+0 -0)
images/weather/wind.png (+0 -0)
📝 src/ui_components.py (+36 -7)

📄 Description

Description

When running the project locally after cloning, some icons in the UI (weather icons / control icons) did not render correctly in my environment.
before
In my setup, the text-based icon representations were not displayed as expected.

To address this, I replaced the text icons with .png icons to ensure more consistent and reliable rendering across environments.

Changes

  • Replaced text-based icons with PNG icons in weather HUD.
  • Updated resources accordingly so that the weather HUD displays icons correctly.
    after

Environment

  • OS: Fedora 42 (KDE Plasma, Wayland)
  • Python version: 3.13.9

Notes

I’m not certain whether this issue occurs in all environments or is specific to certain setups, but this change improves UI rendering in my case.

If there is a preferred way to manage icons or this issue is environment-specific, I’m happy to adjust the approach.
Thanks for reviewing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/43 **Author:** [@juliarzymowska](https://github.com/juliarzymowska) **Created:** 12/14/2025 **Status:** ✅ Merged **Merged:** 12/15/2025 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `fix-weather-icons` --- ### 📝 Commits (2) - [`c9f426a`](https://github.com/IAmTomShaw/f1-race-replay/commit/c9f426a1b7589307fb06ae9e41075eaad00d1a94) add weather assets - [`6724883`](https://github.com/IAmTomShaw/f1-race-replay/commit/6724883f301fa265551771a3b166fd01bc8466af) Update weather HUD to icons ### 📊 Changes **5 files changed** (+36 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `images/weather/drop.png` (+0 -0) ➕ `images/weather/rain.png` (+0 -0) ➕ `images/weather/thermometer.png` (+0 -0) ➕ `images/weather/wind.png` (+0 -0) 📝 `src/ui_components.py` (+36 -7) </details> ### 📄 Description ### Description When running the project locally after cloning, some icons in the UI (weather icons / control icons) did not render correctly in my environment. <img width="233" height="201" alt="before" src="https://github.com/user-attachments/assets/1350d4b3-6801-4ae7-85a5-f45d53db7026" /> In my setup, the text-based icon representations were not displayed as expected. To address this, I replaced the text icons with `.png` icons to ensure more consistent and reliable rendering across environments. ### Changes - Replaced text-based icons with PNG icons in weather HUD. - Updated resources accordingly so that the weather HUD displays icons correctly. <img width="223" height="177" alt="after" src="https://github.com/user-attachments/assets/d458def7-f545-4059-ac5c-561ed858751b" /> ### Environment - OS: Fedora 42 (KDE Plasma, Wayland) - Python version: 3.13.9 ### Notes I’m not certain whether this issue occurs in all environments or is specific to certain setups, but this change improves UI rendering in my case. If there is a preferred way to manage icons or this issue is environment-specific, I’m happy to adjust the approach. Thanks for reviewing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:18:38 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#94
No description provided.