feat: add reusable private and shared account icons

This commit is contained in:
陈煜 committed 2026-10-01 18:55:15 +08:00
1 parent d2b2681698
commit a4e9d56b8a
44 files changed
+1443 -20

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
"""Optional catalog maintenance: convert downloaded ICO files using Pillow.
Normal installs use the committed PNG assets and do not need Python.
Run after download-icons.cjs, before icons:seed.
"""
from pathlib import Path
from PIL import Image
folder = Path(__file__).resolve().parent.parent / 'assets' / 'icons'
for source in folder.glob('*.ico'):
with Image.open(source) as image:
image.convert('RGBA').save(source.with_suffix('.png'))
source.unlink()
print('Catalog ICO sources converted to PNG.')