mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-08-17 18:40:54 +03:00
reduce icon set size to fit iconutil limits
This commit is contained in:
parent
ce85382c68
commit
71f84b1023
@ -34,7 +34,7 @@ def render(output, sz=256):
|
||||
iname = 'icon_{0}x{0}.png'.format(sz)
|
||||
iname2x = 'icon_{0}x{0}@2x.png'.format(sz // 2)
|
||||
render(iname, sz)
|
||||
if sz > 16:
|
||||
if sz > 16 and sz != 128:
|
||||
shutil.copy2(iname, iname2x)
|
||||
if sz > 512:
|
||||
if sz in (64, 1024):
|
||||
os.remove(iname)
|
||||
|
Loading…
Reference in New Issue
Block a user