Fix transparency problem with alert icons

This commit is contained in:
nemunaire 2022-08-14 18:41:51 +02:00
commit 6b7e277f84
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@ class RATPWeatherModule:
def alert_icon(mode, line):
def icon(size=64):
image = Image.new('RGBA', (size, size), '#0000')
image = Image.new('RGB', (size, size), '#000')
white = Image.new('RGB', (int(size / 2), int(size / 2)), '#fff')
mode_icon = Image.open("icons/" + mode + ".png").resize((int(size/2), int(size/2)))