Fix transparency problem with alert icons
This commit is contained in:
parent
c674f97f50
commit
6b7e277f84
2 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue