jpg to png

This commit is contained in:
SimplifiedPrivacy 2026-10-27 10:53:21 -04:00
parent a6f3779a98
commit 0d1580026a
2 changed files with 2 additions and 0 deletions

View file

Before

Width:  |  Height:  |  Size: 1 MiB

After

Width:  |  Height:  |  Size: 1 MiB

View file

@ -225,6 +225,8 @@ class LocationPage(Page):
max_size = QtCore.QSize(300, 300)
target_size = self.display.size().boundedTo(max_size)
print(f"show_location is looking for a location of {location}")
self.display.setPixmap(QPixmap(os.path.join(self.btn_path, f"icon_{location}.png")).scaled(
target_size, Qt.AspectRatioMode.KeepAspectRatio))
self.selected_location_icon = location