App version 2.1.1 - Branding updates (Logo change)
All checks were successful
Ascently - Docs Deploy / build-and-push (push) Successful in 3m59s

This commit is contained in:
2025-10-17 09:20:21 -06:00
parent 602b5f8938
commit d4023133b7
7 changed files with 14 additions and 21 deletions

View File

@@ -246,33 +246,26 @@ def main() -> None:
with open(dst, "w") as f:
f.write(content)
img_light = Image.new("RGBA", (1024, 1024), (255, 255, 255, 255))
img_light = Image.new("RGB", (1024, 1024), (255, 255, 255))
draw_light = ImageDraw.Draw(img_light)
mask = Image.new("L", (1024, 1024), 0)
mask_draw = ImageDraw.Draw(mask)
mask_draw.rounded_rectangle((0, 0, 1024, 1024), radius=180, fill=255)
scaled = scale_and_center(polygons, 1024, int(1024 * 0.7))
for poly in scaled:
coords = [(x, y) for x, y in poly["coords"]]
draw_light.polygon(coords, fill=poly["fill"])
img_light.putalpha(mask)
img_light.save(ios_assets / "app_icon_1024.png")
img_dark = Image.new("RGBA", (1024, 1024), (26, 26, 26, 255))
img_dark = Image.new("RGB", (1024, 1024), (26, 26, 26))
draw_dark = ImageDraw.Draw(img_dark)
for poly in scaled:
coords = [(x, y) for x, y in poly["coords"]]
draw_dark.polygon(coords, fill=poly["fill"])
img_dark.putalpha(mask)
img_dark.save(ios_assets / "app_icon_1024_dark.png")
img_tinted = Image.new("RGBA", (1024, 1024), (0, 0, 0, 0))
img_tinted = Image.new("RGB", (1024, 1024), (0, 0, 0))
draw_tinted = ImageDraw.Draw(img_tinted)
for i, poly in enumerate(scaled):
coords = [(x, y) for x, y in poly["coords"]]
opacity = int(255 * (0.8 if i == 0 else 0.9))
draw_tinted.polygon(coords, fill=(0, 0, 0, opacity))
img_tinted.putalpha(mask)
draw_tinted.polygon(coords, fill=(0, 0, 0))
img_tinted.save(ios_assets / "app_icon_1024_tinted.png")
print(" Android...")