Inital Version
This commit is contained in:
commit
94cd6b984b
211 changed files with 4765 additions and 0 deletions
14
tools/make_app_icon.py
Normal file
14
tools/make_app_icon.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"""Rasterize the simple orbital mark for the taskbar and executable icon."""
|
||||
from pathlib import Path
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
out=Path(__file__).resolve().parent.parent/'src/AstroFrame.Desktop/Assets'
|
||||
out.mkdir(parents=True,exist_ok=True)
|
||||
im=Image.new('RGBA',(256,256),(0,0,0,0));d=ImageDraw.Draw(im)
|
||||
d.rounded_rectangle((8,8,248,248),radius=54,fill='#101925')
|
||||
d.ellipse((49,49,207,207),outline='#6D8DAB',width=7)
|
||||
d.line((35,192,221,64),fill='#A0BEDD',width=9)
|
||||
d.polygon([(128,70),(141,115),(186,128),(141,141),(128,186),(115,141),(70,128),(115,115)],fill='#E1E7EF')
|
||||
d.ellipse((194,56,219,81),fill='#83CDB8')
|
||||
im.save(out/'astroframe.ico',sizes=[(16,16),(24,24),(32,32),(48,48),(64,64),(128,128),(256,256)])
|
||||
im.resize((64,64),Image.Resampling.LANCZOS).save(out/'astroframe.png')
|
||||
Loading…
Add table
Add a link
Reference in a new issue